/**
 * ====================================================================
 * ALPHAVAULT AI - FOREX CONVERTER PRO - STYLES COMPLETS
 * ====================================================================
 * Design: Glassmorphism + Gradient Titles + Ultra Premium
 * + Wall Street Institutional Indicators Styles
 */

/* ========================================
   VARIABLES
   ======================================== */
:root {
    --forex-primary: #3b82f6;
    --forex-secondary: #8b5cf6;
    --forex-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --forex-gradient-soft: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    --forex-success: #10b981;
    --forex-danger: #ef4444;
    --forex-warning: #f59e0b;
    --forex-info: #3b82f6;
    
    /* ✨ NOUVEAU: Wall Street Colors */
    --forex-gold: #fbbf24;
    --forex-platinum: #e5e7eb;
    --forex-institutional: linear-gradient(135deg, #1e3a8a 0%, #3730a3 50%, #4c1d95 100%);
    
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
    
    --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);
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

body.dark-mode {
    --glass-bg: rgba(15, 23, 42, 0.95);
    --glass-border: rgba(100, 116, 139, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ========================================
   HEADER BUTTONS
   ======================================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--forex-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.dashboard-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.dashboard-btn:hover::before {
    left: 100%;
}

.dashboard-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.dashboard-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.dashboard-btn-export {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

@media (max-width: 768px) {
    .dashboard-btn .btn-text {
        display: none;
    }
    
    .dashboard-btn {
        padding: 10px 14px;
    }
}

/* ========================================
   INFO BUTTONS
   ======================================== */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: auto;
}

.info-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-color: transparent;
    transform: scale(1.15);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 32px;
    margin-bottom: 32px;
    transition: var(--transition-smooth);
}

.section:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.25);
}

/* ========================================
   MAJOR PAIRS GRID
   ======================================== */
.major-pairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.major-pair-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius);
    border: 2px solid var(--glass-border);
    padding: 20px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.major-pair-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--forex-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.major-pair-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.3);
    border-color: var(--forex-primary);
}

.major-pair-card:hover::before {
    opacity: 1;
}

.pair-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.pair-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pair-flag {
    font-size: 1.5rem;
}

.pair-name h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.pair-change {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.pair-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--forex-success);
}

.pair-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--forex-danger);
}

.pair-rate {
    font-size: 2.2rem;
    font-weight: 900;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1.2;
}

.pair-stats {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.pair-stat {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 700;
}

.stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pair-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.pair-footer small {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ========================================
   AI RECOMMENDATIONS
   ======================================== */
.ai-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.ai-recommendation-card {
    background: var(--forex-gradient-soft);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.ai-recommendation-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.ai-recommendation-card:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-recommendation-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.3);
    border-color: var(--forex-primary);
}

.rec-header {
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.rec-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rec-pair h3 {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.rec-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rec-badge-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.rec-badge-sell {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.rec-badge-neutral {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.rec-confidence {
    margin-bottom: 16px;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.confidence-fill {
    height: 100%;
    background: var(--forex-gradient);
    border-radius: 4px;
    transition: width 1s ease;
}

.confidence-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.rec-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.rec-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.rec-metric {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rec-metric i {
    color: var(--forex-primary);
}

.rec-footer {
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.rec-footer small {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========================================
   CURRENCY CONVERTER
   ======================================== */
.converter-container {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.currency-input-group {
    flex: 1;
}

.currency-input-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.currency-input-wrapper {
    display: flex;
    gap: 12px;
}

.currency-input-wrapper input {
    flex: 1;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.currency-input-wrapper input:focus {
    outline: none;
    border-color: var(--forex-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.currency-input-wrapper select {
    min-width: 140px;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.currency-input-wrapper select:focus {
    outline: none;
    border-color: var(--forex-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.swap-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--forex-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    flex-shrink: 0;
}

.swap-button:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 12px 36px rgba(102, 126, 234, 0.6);
}

.swap-button:active {
    transform: scale(0.95);
}

.conversion-result {
    background: var(--forex-gradient-soft);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.conversion-rate {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    text-align: center;
}

.conversion-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conversion-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.conversion-detail-item:last-child {
    border-bottom: none;
}

.conversion-detail-item.total {
    padding-top: 16px;
    border-top: 2px solid var(--glass-border);
    font-size: 1.1rem;
}

.text-danger {
    color: var(--forex-danger);
}

.text-success {
    color: var(--forex-success);
}

/* ========================================
   MULTI-CURRENCY CONVERTER
   ======================================== */
.multi-converter-section {
    margin-top: 24px;
}

.multi-converter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.multi-converter-item {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    transition: var(--transition-smooth);
}

.multi-converter-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
    border-color: var(--forex-primary);
}

.multi-currency {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.multi-flag {
    font-size: 1.3rem;
}

.multi-code {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.multi-amount {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   TECHNICAL ANALYSIS - ENHANCED SECTION
   ======================================== */
.section-header-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.tech-analysis-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.tech-analysis-controls select {
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tech-analysis-controls select:focus {
    outline: none;
    border-color: var(--forex-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.tech-analysis-controls select:hover {
    border-color: var(--forex-primary);
    transform: translateY(-2px);
}

/* ✨ TECHNICAL CHART SECTIONS */
.technical-chart-section {
    background: var(--forex-gradient-soft);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
    margin-bottom: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.technical-chart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--forex-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.technical-chart-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.25);
    border-color: var(--forex-primary);
}

.technical-chart-section:hover::before {
    opacity: 1;
}

/* ✨ TECHNICAL CHART TITLES */
.technical-chart-title {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.technical-chart-title i {
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

/* ✨ CHART SUBTITLES */
.chart-subtitle {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
    background: none;
    -webkit-text-fill-color: var(--text-secondary);
}

/* ========================================
   ✨ WALL STREET INSTITUTIONAL INDICATORS
   ======================================== */

/* Premium Section with Institutional Gradient */
.section .section-title[style*="background: linear-gradient(135deg, #667eea"] {
    font-size: 2rem;
    padding: 20px 0;
    margin-bottom: 32px;
    position: relative;
    display: block;
}

.section .section-title span[style*="display: block"] {
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    margin-top: 8px;
    -webkit-text-fill-color: var(--text-secondary) !important;
    background: none !important;
    font-weight: 600;
}

/* ✨ Institutional Badge */
.institutional-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--forex-institutional);
    color: white;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 32px rgba(30, 58, 138, 0.5), 0 0 40px rgba(102, 126, 234, 0.3);
        transform: scale(1.05);
    }
}

/* ✨ Premium Chart Wrapper for Institutional Indicators */
.technical-chart-section .chart-wrapper {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(30px) saturate(200%);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--glass-bg), var(--glass-bg)), 
                      var(--forex-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.dark-mode .technical-chart-section .chart-wrapper {
    background-image: linear-gradient(var(--glass-bg), var(--glass-bg)), 
                      var(--forex-gradient);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(100, 116, 139, 0.3);
}

.technical-chart-section .chart-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 16px 64px rgba(102, 126, 234, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* ✨ Fibonacci Specific Styles */
#fibonacciChart .technical-chart-title,
#ichimokuChart .technical-chart-title,
#pivotPointsChart .technical-chart-title,
#adxChart .technical-chart-title,
#stochasticChart .technical-chart-title {
    position: relative;
    padding-left: 48px;
}

#fibonacciChart .technical-chart-title::before,
#ichimokuChart .technical-chart-title::before,
#pivotPointsChart .technical-chart-title::before,
#adxChart .technical-chart-title::before,
#stochasticChart .technical-chart-title::before {
    content: '⭐';
    position: absolute;
    left: 0;
    font-size: 2rem;
    animation: star-rotate 4s linear infinite;
}

@keyframes star-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ✨ Premium Tooltip for Institutional Indicators */
.institutional-tooltip {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: var(--forex-institutional);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: help;
    transition: var(--transition-bounce);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
}

.institutional-tooltip:hover {
    transform: scale(1.2) rotate(15deg);
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.6);
}

/* ✨ Professional Chart Legend */
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    padding: 16px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

body.dark-mode .chart-legend {
    background: rgba(30, 41, 59, 0.5);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.legend-color {
    width: 24px;
    height: 4px;
    border-radius: 2px;
}

/* ✨ Animated Loading Placeholder for Charts */
.chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.chart-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--forex-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.chart-loading-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ✨ Chart Overlay Badges (for highlighting key levels) */
.chart-badge {
    position: absolute;
    padding: 6px 12px;
    background: var(--forex-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    z-index: 100;
    animation: badge-float 3s ease-in-out infinite;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.chart-badge-fibonacci {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.chart-badge-pivot {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.chart-badge-ichimoku {
    background: linear-gradient(135deg, #10b981, #059669);
}

.technical-indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tech-indicator-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition-smooth);
}

.tech-indicator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(102, 126, 234, 0.2);
    border-color: var(--forex-primary);
}

.indicator-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.indicator-header i {
    font-size: 1.2rem;
    color: var(--forex-primary);
}

.indicator-header h4 {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.indicator-value {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.2;
}

.indicator-value.bullish {
    color: var(--forex-success);
}

.indicator-value.bearish {
    color: var(--forex-danger);
}

.indicator-value.neutral {
    color: var(--text-secondary);
}

.indicator-value.overbought {
    color: var(--forex-danger);
}

.indicator-value.oversold {
    color: var(--forex-success);
}

.indicator-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.indicator-bar {
    width: 100%;
    height: 8px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
}

.indicator-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

/* ========================================
   TIME RANGE SELECTOR
   ======================================== */
.time-range-selector {
    display: flex;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.time-btn {
    padding: 8px 16px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.time-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--forex-gradient);
    opacity: 0.2;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.time-btn:hover::before {
    width: 100%;
    height: 100%;
}

.time-btn:hover {
    color: var(--text-primary);
    border-color: var(--forex-primary);
}

.time-btn.active {
    background: var(--forex-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.time-btn.active::before {
    display: none;
}

/* ========================================
   CHARTS
   ======================================== */
.chart-wrapper {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 16px;
    border: 1px solid var(--glass-border);
}

.chart-wrapper:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.2);
}

.chart {
    min-height: 400px;
}

/* ========================================
   VOLATILITY METRICS
   ======================================== */
.volatility-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.volatility-metric-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition-smooth);
}

.volatility-metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(102, 126, 234, 0.2);
    border-color: var(--forex-primary);
}

.volatility-metric-card h4 {
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 12px 0;
}

.volatility-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.volatility-low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--forex-success);
}

.volatility-medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--forex-warning);
}

.volatility-high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--forex-danger);
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-row span {
    color: var(--text-secondary);
}

.metric-row strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* ========================================
   ECONOMIC INDICATORS
   ======================================== */
.economic-indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.economic-indicator-card {
    background: var(--forex-gradient-soft);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: var(--transition-smooth);
}

.economic-indicator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(102, 126, 234, 0.2);
    border-color: var(--forex-primary);
}

.indicator-country {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--glass-border);
}

.indicator-flag {
    font-size: 2rem;
}

.indicator-country h4 {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.indicator-stats {
    display: grid;
    gap: 16px;
}

.indicator-stat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.indicator-stat i {
    font-size: 1.2rem;
    color: var(--forex-primary);
    width: 24px;
    text-align: center;
}

.indicator-stat > div {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
}

/* ========================================
   LIVE RATES GRID
   ======================================== */
.search-filter {
    position: relative;
    margin-bottom: 24px;
}

.search-filter input {
    width: 100%;
    padding: 14px 48px 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.search-filter input:focus {
    outline: none;
    border-color: var(--forex-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.search-filter i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

#liveRatesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.live-rate-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 20px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.live-rate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--forex-gradient);
    opacity: 0;
    transition: var(--transition-smooth);
}

.live-rate-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 48px rgba(102, 126, 234, 0.3);
    border-color: var(--forex-primary);
}

.live-rate-card:hover::before {
    opacity: 1;
}

.rate-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.rate-card-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.rate-flag {
    font-size: 1.5rem;
}

.rate-value {
    font-size: 2rem;
    font-weight: 900;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.rate-sublabel {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.rate-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.rate-change.positive {
    background: rgba(16, 185, 129, 0.1);
    color: var(--forex-success);
}

.rate-change.negative {
    background: rgba(239, 68, 68, 0.1);
    color: var(--forex-danger);
}

.rate-date {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ========================================
   MODALS
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(40px) saturate(180%);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-content.modal-large {
    max-width: 900px;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--forex-gradient-soft);
}

.modal-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--forex-danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

.modal-body p {
    line-height: 1.8;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.modal-body ul,
.modal-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-body h4 {
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 24px 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warning-box {
    background: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--forex-warning);
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.warning-box i {
    color: var(--forex-warning);
    margin-right: 8px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .converter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .swap-button {
        align-self: center;
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 20px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .major-pairs-grid,
    .ai-recommendations-grid,
    .technical-indicators-grid,
    .volatility-metrics-grid,
    .economic-indicators-grid,
    #liveRatesGrid {
        grid-template-columns: 1fr;
    }
    
    .section-header-with-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tech-analysis-controls {
        width: 100%;
    }
    
    .tech-analysis-controls select {
        flex: 1;
        min-width: 0;
    }
    
    .technical-chart-section {
        padding: 16px;
    }
    
    .technical-chart-title {
        font-size: 1rem;
        padding-left: 0;
    }
    
    .technical-chart-title::before {
        display: none;
    }
    
    .chart-subtitle {
        font-size: 0.75rem;
    }
    
    .time-range-selector {
        width: 100%;
        justify-content: space-between;
        overflow-x: auto;
    }
    
    .time-btn {
        flex: 1;
        min-width: fit-content;
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .pair-rate {
        font-size: 1.8rem;
    }
    
    .rate-value {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .currency-input-wrapper {
        flex-direction: column;
    }
    
    .currency-input-wrapper input,
    .currency-input-wrapper select {
        width: 100%;
    }
    
    .multi-converter-grid {
        grid-template-columns: 1fr;
    }
    
    .pair-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .technical-chart-title {
        font-size: 0.9rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(100, 116, 139, 0.1);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--forex-gradient);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--forex-primary);
    outline-offset: 2px;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .sidebar,
    .top-header,
    .dashboard-btn,
    .info-btn,
    .modal {
        display: none !important;
    }
    
    .section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ========================================
   AI RECOMMENDATIONS - TECHNICAL SIGNALS
   (NOUVEAU - Affichage des signaux techniques réels)
   ======================================== */

.rec-technicals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.rec-technicals h4 {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rec-technicals h4 i {
    color: var(--primary);
}

.tech-signals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-signal {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tech-signal i {
    font-size: 16px;
    min-width: 20px;
    text-align: center;
}

.tech-signal span {
    flex: 1;
}

.tech-signal strong {
    font-weight: 800;
}

/* ✅ Signaux Bullish (Haussiers) */
.tech-signal-bullish {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-left: 4px solid #10b981;
}

.tech-signal-bullish i {
    color: #10b981;
}

body.dark-mode .tech-signal-bullish {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* ❌ Signaux Bearish (Baissiers) */
.tech-signal-bearish {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.tech-signal-bearish i {
    color: #ef4444;
}

body.dark-mode .tech-signal-bearish {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* ⚪ Signaux Neutral */
.tech-signal-neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-left: 4px solid #6b7280;
}

.tech-signal-neutral i {
    color: #6b7280;
}

body.dark-mode .tech-signal-neutral {
    background: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
}

/* Effet hover sur les signaux */
.tech-signal:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

body.dark-mode .tech-signal:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CURRENCY STRENGTH METER - AMÉLIORATIONS
   ======================================== */

/* Ajout d'un badge de rank sur le radar */
#currencyStrengthChart .highcharts-point {
    cursor: pointer;
}

#currencyStrengthChart .highcharts-tooltip {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 2px solid var(--primary) !important;
    border-radius: 12px !important;
    padding: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode #currencyStrengthChart .highcharts-tooltip {
    background: rgba(30, 41, 59, 0.95) !important;
}

/* Animation des zones du radar */
@keyframes pulse-zone {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

/* ========================================
   AI RECOMMENDATIONS - AMÉLIORATIONS GLOBALES
   ======================================== */

/* Ajustement de la hauteur des cartes de recommandations */
.ai-recommendation-card {
    min-height: 500px; /* Augmenté pour accommoder les signaux techniques */
    display: flex;
    flex-direction: column;
}

.rec-header {
    margin-bottom: 16px;
}

.rec-description {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.rec-metrics {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.rec-technicals {
    flex: 1 1 auto; /* Prend l'espace restant */
}

.rec-footer {
    flex: 0 0 auto;
    margin-top: auto;
}

/* Badge de confidence amélioré */
.rec-confidence {
    position: relative;
}

.confidence-bar {
    height: 8px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.confidence-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: confidence-shine 2s infinite;
}

@keyframes confidence-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.confidence-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Badge BUY/SELL/NEUTRAL amélioré */
.rec-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.rec-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.rec-badge:hover::before {
    width: 300px;
    height: 300px;
}

.rec-badge-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.rec-badge-sell {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.rec-badge-neutral {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Métriques (Target, Stop, Risk) améliorées */
.rec-metric {
    background: rgba(100, 116, 139, 0.05);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.rec-metric:hover {
    background: rgba(100, 116, 139, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rec-metric i {
    color: var(--primary);
    font-size: 18px;
    margin-right: 8px;
}

.rec-metric span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .ai-recommendation-card {
        min-height: 550px; /* Plus d'espace sur tablettes */
    }
}

@media (max-width: 768px) {
    .ai-recommendation-card {
        min-height: auto; /* Hauteur automatique sur mobile */
    }
    
    .tech-signal {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .tech-signal i {
        font-size: 14px;
    }
    
    .rec-technicals h4 {
        font-size: 13px;
    }
}

/* ========================================
   DARK MODE OPTIMIZATIONS
   ======================================== */

body.dark-mode .rec-metric {
    background: rgba(148, 163, 184, 0.05);
    border-color: rgba(148, 163, 184, 0.2);
}

body.dark-mode .rec-metric:hover {
    background: rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-mode .confidence-bar {
    background: rgba(148, 163, 184, 0.1);
}

/* ========================================
   AI RECOMMENDATIONS - CONFIDENCE BAR (FIX)
   ======================================== */

.rec-confidence {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 12px;
}

.confidence-bar {
    height: 10px;
    background: rgba(100, 116, 139, 0.15);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.dark-mode .confidence-bar {
    background: rgba(148, 163, 184, 0.2);
}

/* ========================================
   AI RECOMMENDATIONS - CONFIDENCE BAR (VIOLET)
   ======================================== */

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6 0%, #a78bfa 100%);
    border-radius: 10px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.confidence-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: confidence-shine 2.5s infinite;
}

/* Dark Mode : Violet plus clair */
body.dark-mode .confidence-fill {
    background: linear-gradient(90deg, #a78bfa 0%, #c4b5fd 100%);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.6);
}

@keyframes confidence-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.confidence-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: right;
}

body.dark-mode .confidence-text {
    color: var(--text-primary);
}

/* Structure de la carte améliorée */
.rec-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.rec-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rec-pair h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.gradient-title {
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.page-title {
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title i {
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.section-title i {
    background: var(--forex-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}