/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animation de mise à jour des prix */
.price-updating {
    animation: pricePulse 0.5s ease-in-out;
    font-weight: bold;
    transition: all 0.3s ease;
}

@keyframes pricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Indicateur de prix en temps réel */
.live-price {
    position: relative;
}

.live-price::after {
    content: "●";
    color: #10b981;
    font-size: 8px;
    position: absolute;
    top: -5px;
    right: -8px;
    animation: liveIndicator 2s infinite;
}

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

/* Animations pour les toasts */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========================================
   SYSTÈME D'ABONNEMENT
   ======================================== */

/* Modal d'abonnement */
.subscription-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.subscription-modal.show {
    opacity: 1;
    visibility: visible;
}

.subscription-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.subscription-header {
    text-align: center;
    margin-bottom: 30px;
}

.subscription-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.subscription-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 20px;
}

.subscription-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.subscription-close:hover {
    color: #ef4444;
}

/* Grille des packs */
.subscription-packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.subscription-pack {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.subscription-pack:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.subscription-pack.recommended {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    transform: scale(1.05);
}

.subscription-pack.recommended:hover {
    transform: scale(1.08) translateY(-5px);
}

.pack-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pack-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.pack-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.pack-period {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.pack-savings {
    background: #fef3c7;
    color: #92400e;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.subscription-pack.recommended .pack-savings {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pack-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.pack-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pack-features li::before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.subscription-pack.recommended .pack-features li::before {
    color: white;
}

.pack-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pack-button.primary {
    background: #3b82f6;
    color: white;
}

.pack-button.primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

.pack-button.recommended {
    background: white;
    color: #10b981;
}

.pack-button.recommended:hover {
    background: #f0fdf4;
    transform: translateY(-2px);
}

/* Message de restriction */
.restriction-message {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.15);
}

.restriction-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 15px;
}

.restriction-text {
    font-size: 1.1rem;
    color: #a16207;
    margin-bottom: 25px;
    line-height: 1.6;
}

.restriction-button {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.restriction-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Timeframe bloqué */
.timeframe-btn.locked {
    opacity: 0.6;
    cursor: pointer;
    position: relative;
    background: #f3f4f6;
    color: #6b7280;
    border-color: #d1d5db;
}

.timeframe-btn.locked:hover {
    background: #e5e7eb;
    color: #4b5563;
    transform: translateY(-1px);
}

.timeframe-btn.locked::after {
    content: "🔒";
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 0.7rem;
    background: #f59e0b;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
}

/* Badge Premium */
.premium-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: premiumGlow 2s ease-in-out infinite alternate;
}

.premium-badge::before {
    content: "👑";
    font-size: 0.9rem;
}

@keyframes premiumGlow {
    0% { box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
    100% { box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6); }
}

/* Menu utilisateur amélioré */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-top: 8px;
}

.user-menu-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.user-menu-item:last-child {
    border-bottom: none;
}

.user-menu-item:hover {
    background: #f8fafc;
    color: #1f2937;
}

.user-menu-item svg {
    width: 18px;
    height: 18px;
    color: #6b7280;
}

.user-menu-item:hover svg {
    color: #3b82f6;
}

.user-menu-item.has-submenu::after {
    content: ">";
    margin-left: auto;
    color: #9ca3af;
    font-size: 0.9rem;
}

.user-menu-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* Sous-menu Profile & Settings */
.user-submenu {
    display: none;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.user-submenu.show {
    display: block;
    animation: slideDown 0.2s ease-out;
}

.user-submenu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 32px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.user-submenu-item:last-child {
    border-bottom: none;
}

.user-submenu-item:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.user-submenu-item[onclick*="cancel_subscription"],
.user-submenu-item[onclick*="delete_account"] {
    color: #dc2626;
}

.user-submenu-item[onclick*="cancel_subscription"]:hover,
.user-submenu-item[onclick*="delete_account"]:hover {
    background: #fef2f2;
    color: #b91c1c;
}

.user-submenu-item[onclick*="suspend_account"] {
    color: #ea580c;
}

.user-submenu-item[onclick*="suspend_account"]:hover {
    background: #fff7ed;
    color: #c2410c;
}

.submenu-arrow {
    font-size: 12px;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.user-menu-item.has-submenu.open .submenu-arrow {
    transform: rotate(90deg);
}

/* Header avec badge premium */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .subscription-content {
        padding: 20px;
        margin: 20px;
    }
    
    .subscription-packs {
        grid-template-columns: 1fr;
    }
    
    .subscription-pack.recommended {
        transform: none;
    }
    
    .subscription-pack.recommended:hover {
        transform: translateY(-5px);
    }
    
    .premium-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .user-menu-content {
        min-width: 200px;
        right: -10px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}


.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.free {
    font-size: 14px;
    font-weight: 600;
    color: #06b6d4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-settings {
    width: 40px;
    height: 40px;
    background: #1e293b;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-settings:hover {
    background: #334155;
    transform: translateY(-2px);
}

.btn-language {
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.btn-language:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

/* Language Dropdown */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f8fafc;
}

.language-option.active {
    background-color: #f1f5f9;
}

.lang-code {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    min-width: 30px;
}

.lang-info {
    flex: 1;
    margin-left: 12px;
}

.lang-name {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.lang-name-en {
    font-size: 12px;
    color: #64748b;
}

.lang-indicator {
    color: #1e293b;
    font-weight: bold;
    font-size: 16px;
}


/* User Menu */
.user-menu {
    position: relative;
    margin-right: 8px;
}

.btn-user {
    background: transparent;
    color: #1e293b;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-user i {
    font-size: 16px;
}

.btn-user .fa-user {
    font-size: 18px;
}

.btn-user .fa-chevron-down {
    font-size: 14px;
}

.btn-user:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #06b6d4;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.user-dropdown.show {
    display: block;
}

.user-option {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.user-option:last-child {
    border-bottom: none;
}

.user-option:hover {
    background-color: #f8fafc;
}

.user-option.active {
    background-color: #f1f5f9;
}

.user-option.logout {
    color: #dc2626;
}

.user-option i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

.user-option span {
    flex: 1;
    font-weight: 500;
}

.user-option .fa-chevron-right {
    margin-left: auto;
    margin-right: 0;
    font-size: 12px;
}

/* User Submenu */
.user-option.has-submenu {
    cursor: pointer;
}

.user-option.has-submenu:hover {
    background-color: #f8fafc;
}

.submenu-arrow {
    transition: transform 0.3s ease;
}

.user-option.has-submenu.open .submenu-arrow {
    transform: rotate(90deg);
}

.user-submenu {
    display: none;
    background: #f8fafc;
    border-left: 3px solid #06b6d4;
    margin-left: 20px;
    border-radius: 0 8px 8px 0;
}

.user-submenu.show {
    display: block;
}

.user-suboption {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.user-suboption:last-child {
    border-bottom: none;
}

.user-suboption:hover {
    background-color: #e2e8f0;
}

.user-suboption i {
    margin-right: 12px;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.user-suboption span {
    flex: 1;
    font-weight: 500;
}

/* Submenu option colors */
.user-suboption.cancel {
    color: #dc2626;
}

.user-suboption.cancel i {
    color: #dc2626;
}

.user-suboption.suspend {
    color: #f59e0b;
}

.user-suboption.suspend i {
    color: #f59e0b;
}

.user-suboption.delete {
    color: #dc2626;
}

.user-suboption.delete i {
    color: #dc2626;
}

.user-suboption:hover.cancel {
    background-color: #fef2f2;
}

.user-suboption:hover.suspend {
    background-color: #fffbeb;
}

.user-suboption:hover.delete {
    background-color: #fef2f2;
}

.btn-login, .btn-register {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-login {
    background: #6366f1;
    color: white;
}

.btn-register {
    background: #8b5cf6;
    color: white;
}

.btn-login:hover, .btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Data Section */
.data-section {
    margin-bottom: 3rem;
}

.data-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.data-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.forex-btn, .crypto-btn {
    background: #1e293b;
    color: white;
}

.tracking-btn {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.data-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Styles pour les éléments informatifs (non cliquables) */
.data-info {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    user-select: none;
}

.forex-info {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
}

.crypto-info {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    color: white;
}

.tracking-info {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
}


/* Timeframes Section */
.timeframes-section {
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

.timeframes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.timeframes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.timeframe-btn {
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.timeframe-btn.active {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}

.timeframe-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.asset-type-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.asset-type {
    display: flex;
    gap: 8px;
}

.asset-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.asset-btn.active {
    background: #374151;
    color: white;
}

.asset-btn:not(.active) {
    background: #6366f1;
    color: white;
}

.asset-btn:hover {
    transform: translateY(-2px);
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
}

.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.search-dropdown.show {
    display: block;
}

.search-results {
    max-height: 200px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-item.selected {
    background-color: #e0f2fe;
    color: #0369a1;
}

.search-result-item .asset-pair {
    font-weight: 600;
    font-size: 14px;
    margin-right: 8px;
}

.search-result-item .asset-type {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
}

.search-actions {
    padding: 12px 16px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.add-to-grid-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: #06b6d4;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-grid-btn:hover {
    background: #0891b2;
    transform: translateY(-1px);
}

.add-to-grid-btn:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 18px;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 60px;
    border: 2px solid #06b6d4;
    border-radius: 50px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* Signals Grid */
.signals-section {
    margin-bottom: 4rem;
}

.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    background: #ffffff; /* fond blanc demandé pour la grille */
    border-radius: 12px;
    padding: 12px;
}

.signal-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    max-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.signal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.signal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.signal-card.loss::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    margin-top: 16px;
}

.signal-pair {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pair-flags {
    display: flex;
    gap: 4px;
}

.flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.signal-title {
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.signal-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.signal-icon.profit {
    background: #dcfce7;
    color: #16a34a;
}

.signal-icon.loss {
    background: #fef2f2;
    color: #dc2626;
}

.signal-details {
    margin-bottom: 16px;
}

.signal-duration {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
}

.signal-status {
    display: inline-block;
    padding: 4px 12px;
    background: #dcfce7;
    color: #16a34a;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.trade-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.trade-detail {
    color: #64748b;
}

.trade-value {
    font-weight: 600;
    color: #1e293b;
}

.signal-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
}

.result-label {
    font-weight: 500;
    color: #64748b;
}

.result-value {
    font-weight: 700;
    font-size: 18px;
}

.result-value.profit {
    color: #16a34a;
}

.result-value.loss {
    color: #dc2626;
}

/* Educational Section */
.educational-section {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
}

.educational-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.educational-card {
    background: #1e293b;
    color: white;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.educational-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.educational-card i {
    font-size: 32px;
    margin-bottom: 16px;
    color: #06b6d4;
}

.educational-card h3 {
    font-size: 16px;
    font-weight: 600;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 12px;
}

.footer-logo h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-description {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #06b6d4;
    transform: translateY(-2px);
}

.footer-column h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #06b6d4;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #374151;
    border-radius: 8px;
    background: #374151;
    color: white;
    font-size: 14px;
}

.newsletter-input::placeholder {
    color: #94a3b8;
}

.newsletter-input:focus {
    outline: none;
    border-color: #06b6d4;
}

.newsletter-btn {
    padding: 12px 20px;
    background: #06b6d4;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    background: #0891b2;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .data-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .timeframes-container {
        flex-direction: column;
        align-items: center;
    }
    
    .timeframes {
        justify-content: center;
    }
    
    .signals-grid {
        grid-template-columns: 1fr;
    }
    
    .educational-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #06b6d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error Messages */
.message {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.message.success {
    background: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 45px;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 16px;
    padding: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #06b6d4;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    accent-color: #06b6d4;
}

.forgot-password {
    color: #06b6d4;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0891b2;
    text-decoration: underline;
}

/* Dark theme for form options */
.dark-theme .remember-me {
    color: #9ca3af;
}

.dark-theme .forgot-password {
    color: #06b6d4;
}

.dark-theme .forgot-password:hover {
    color: #0891b2;
}

.dark-theme .toggle-password {
    color: #9ca3af;
}

.dark-theme .toggle-password:hover {
    color: #06b6d4;
}

/* Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 45px;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #06b6d4;
}

.toggle-password i {
    font-size: 16px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #64748b;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background-color: #06b6d4;
    border-color: #06b6d4;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #06b6d4;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0891b2;
    text-decoration: underline;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal h2 {
    margin-bottom: 1.5rem;
    color: #1e293b;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #06b6d4;
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: #06b6d4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #0891b2;
    transform: translateY(-2px);
}

.modal-footer {
    text-align: center;
    margin-top: 1rem;
    color: #64748b;
}

.modal-footer a {
    color: #06b6d4;
    text-decoration: none;
    font-weight: 500;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Signal Card Enhancements */
.signal-card {
    position: relative;
}


.signal-timeframe {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #1e293b;
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.signal-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.signal-status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.signal-status-badge.expired {
    background: #fef2f2;
    color: #dc2626;
}

.signal-status-badge.executed {
    background: #dbeafe;
    color: #2563eb;
}

/* Unique Features */
.ai-powered-badge {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: inline-block;
}

.signal-confidence {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.confidence-bar {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.confidence-text {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}



/* Enhanced Signal Grid */
.signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

/* Grille 3x3 moderne pour 18 signaux (9 Forex + 9 Crypto) */
.signals-grid-3x3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
    max-width: 1600px;
    margin: 0 auto;
    background: #ffffff; /* fond blanc aussi pour la grille 3x3 */
    border-radius: 12px;
    padding: 16px;
}

@media (max-width: 1400px) {
    .signals-grid-3x3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        max-width: 1200px;
    }
}

@media (max-width: 1024px) {
    .signals-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .signals-grid-3x3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        max-width: 600px;
    }
}

@media (max-width: 480px) {
    .signals-grid-3x3 {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
    }
}

/* Real-time indicator */
.real-time-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #16a34a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

.real-time-indicator .pulse {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Mode Sombre */
.dark-theme {
    background-color: #0f172a;
    color: #e2e8f0;
}

.dark-theme .header {
    background: #1e293b;
    border-bottom: 1px solid #374151;
}

.dark-theme .main-content {
    background-color: #0f172a;
}

.dark-theme .signal-card {
    background: #ffffff;
    border-color: #e5e7eb;
    color: #1f2937;
}

.dark-theme .signal-card::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.dark-theme .signal-card.loss::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.dark-theme .educational-section {
    background: #1e293b;
}

.dark-theme .educational-card {
    background: #0f172a;
    border: 1px solid #374151;
}

/* Styles modernes pour les cartes de signaux - SUPPRIMÉ (déjà défini plus haut) */

.signal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 20px 20px 0 0;
}

.signal-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.signal-card.pinned {
    border: 2px solid #f59e0b;
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2);
}

.signal-card.pinned::before {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}


/* Améliorations des badges */
.signal-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.signal-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.signal-badge.ai-powered {
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    color: white;
}

.signal-badge.live {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.signal-badge.live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.signal-badge.pinned {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signal-badge.pinned:hover {
    background: linear-gradient(135deg, #4b5563, #6b7280);
    transform: scale(1.05);
}

.signal-badge.pinned.active {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Message d'erreur localisé pour l'épinglage */
.pin-error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ef4444;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
    animation: fadeInOut 3s ease-in-out;
    min-width: 280px;
    text-align: center;
    max-width: 350px;
    width: auto;
}

/* Flèche supprimée car le message est centré sur l'écran */

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Styles pour les prix en temps réel */
.signal-live-price {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.signal-live-price::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    animation: priceUpdate 2s ease-in-out;
}

.live-price-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.live-price {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

.live-price.price-updated {
    color: #059669;
    transform: scale(1.05);
    text-shadow: 0 0 8px rgba(5, 150, 105, 0.3);
}

.connection-status.connected {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.connection-status.disconnected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

@keyframes priceUpdate {
    0% { left: -100%; }
    50% { left: 0%; }
    100% { left: 100%; }
}

/* Animation pour les mises à jour de prix */
.signal-card .live-price {
    transition: all 0.3s ease;
}

.signal-card .live-price.updating {
    animation: pricePulse 0.6s ease-in-out;
}

@keyframes pricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #059669; }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Améliorations des informations de prix */
.signal-prices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.signal-price {
    background: rgba(248, 250, 252, 0.8);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.signal-price-label {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.signal-price-value {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

/* Barre de confiance IA améliorée */
.signal-confidence {
    margin: 16px 0;
}

.signal-confidence-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.signal-confidence-bar {
    height: 8px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.signal-confidence-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.signal-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: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Stop Loss et Take Profit */
.signal-trading-levels {
    display: flex;
    gap: 12px;
    margin: 12px 0;
}

.trading-level {
    flex: 1;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    border: 1px solid #e5e7eb;
}

.level-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.level-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Courier New', monospace;
}

.trading-level:first-child .level-label {
    color: #dc2626; /* Rouge pour Stop Loss */
}

.trading-level:last-child .level-label {
    color: #059669; /* Vert pour Take Profit */
}

/* Heure de déclenchement du signal */
.signal-trigger-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 8px;
    padding: 6px 8px;
    background: #f1f5f9;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.signal-trigger-time i {
    color: #3b82f6;
    font-size: 0.8rem;
}

/* Pourcentage de changement amélioré */
.signal-change {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 12px;
}

.signal-change.positive {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.signal-change.negative {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.signal-change i {
    font-size: 12px;
}

.dark-theme .footer {
    background: #0f172a;
}

.dark-theme .language-dropdown,
.dark-theme .user-dropdown {
    background: #1e293b;
    border-color: #374151;
}

.dark-theme .language-option,
.dark-theme .user-option {
    color: #ffffff !important;
    border-bottom-color: #374151;
}

.dark-theme .language-option:hover,
.dark-theme .user-option:hover {
    background-color: #374151;
    color: #ffffff !important;
}

.dark-theme .language-option.active,
.dark-theme .user-option.active {
    background-color: #374151;
    color: #ffffff !important;
}

.dark-theme .lang-code,
.dark-theme .lang-name,
.dark-theme .lang-name-en,
.dark-theme .lang-indicator {
    color: #ffffff !important;
}



/* Timestamp des signaux */
.signal-timestamp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}

.signal-timestamp i {
    color: #06b6d4;
}

.dark-theme .signal-timestamp {
    color: #94a3b8;
    border-top-color: #374151;
}

@keyframes themeRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.dark-theme .btn-user {
    background: transparent;
    color: #e2e8f0;
    border: none;
}

.dark-theme .btn-user:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #06b6d4;
}

.dark-theme .user-submenu {
    background: #374151;
    border-left-color: #06b6d4;
}

.dark-theme .user-suboption {
    color: #e2e8f0;
    border-bottom-color: #4b5563;
}

.dark-theme .user-suboption:hover {
    background-color: #4b5563;
}

.dark-theme .user-suboption.cancel {
    color: #fca5a5;
}

.dark-theme .user-suboption.cancel i {
    color: #fca5a5;
}

.dark-theme .user-suboption.suspend {
    color: #fbbf24;
}

.dark-theme .user-suboption.suspend i {
    color: #fbbf24;
}

.dark-theme .user-suboption.delete {
    color: #fca5a5;
}

.dark-theme .user-suboption.delete i {
    color: #fca5a5;
}

.dark-theme .user-suboption:hover.cancel {
    background-color: #7f1d1d;
}

.dark-theme .user-suboption:hover.suspend {
    background-color: #78350f;
}

.dark-theme .user-suboption:hover.delete {
    background-color: #7f1d1d;
}

/* Dark theme for search dropdown */
.dark-theme .search-dropdown {
    background: #1e293b;
    border-color: #374151;
}

.dark-theme .search-result-item {
    color: #e2e8f0;
    border-bottom-color: #374151;
}

.dark-theme .search-result-item:hover {
    background-color: #374151;
}

.dark-theme .search-result-item.selected {
    background-color: #0f172a;
    color: #06b6d4;
}

.dark-theme .search-result-item .asset-type {
    background: #374151;
    color: #94a3b8;
}

.dark-theme .search-actions {
    background: #0f172a;
    border-top-color: #374151;
}

.dark-theme .add-to-grid-btn {
    background: #06b6d4;
}

.dark-theme .add-to-grid-btn:hover {
    background: #0891b2;
}

.dark-theme .add-to-grid-btn:disabled {
    background: #4b5563;
}

/* Dark theme for logo text */
.dark-theme .free {
    color: #06b6d4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.dark-theme .title {
    color: #f8fafc;
}

/* Dark theme pour les titres de section */
.dark-theme .section-title {
    color: #f8fafc;
}

/* Dark theme pour les boutons de timeframe */
.dark-theme .timeframe-btn {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #374151;
}

.dark-theme .timeframe-btn.active {
    background: #374151;
    color: #ffffff;
    border-color: #374151;
}

.dark-theme .timeframe-btn:hover {
    border-color: #06b6d4;
    color: #06b6d4;
}

/* Dark theme pour les boutons d'actifs */
.dark-theme .asset-btn.active {
    background: #374151;
    color: #ffffff;
}

.dark-theme .asset-btn:not(.active) {
    background: #6366f1;
    color: #ffffff;
}

.dark-theme .asset-btn:hover {
    background: #4f46e5;
}

/* ===== ANIMATION PRIX ===== */
.price-flash { 
    transition: background 0.2s; 
    background: rgba(0,255,0,.1); 
}

/* ===== SECTIONS SÉPARÉES FOREX/CRYPTO ===== */
.forex-section, .crypto-section {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-theme .section-title {
    color: #f9fafb;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.forex-section .section-title {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.crypto-section .section-title {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.dark-theme .forex-section .section-title {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.dark-theme .crypto-section .section-title {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Animation pour les sections */
.forex-section, .crypto-section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.forex-section[style*="block"], .crypto-section[style*="block"] {
    opacity: 1;
    transform: translateY(0);
}
