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

body {
    font-family: 'Inter', sans-serif;
    background: #ffffff !important;
    color: #1a1a1a !important;
    line-height: 1.6;
    transition: all 0.3s ease;
}

/* Forcer le thème blanc par défaut */
body:not(.dark-theme) {
    background: #ffffff !important;
    color: #1a1a1a !important;
}

/* Thème sombre */
body.dark-theme {
    background: #0b0e14 !important;
    color: #e6f1ff !important;
}

/* Navigation */
    .navbar {
    background: #f8f9fa !important;
    border-bottom: none !important;
    padding: 8px 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    transition: all 0.3s ease;
}

body:not(.dark-theme) .navbar {
    background: #f8f9fa !important;
    border-bottom: none !important;
}

body.dark-theme .navbar {
    background: #101521;
    border-bottom: none !important;
}

body.dark-theme .nav-logo {
    color: #e6f1ff;
}

body.dark-theme .nav-link {
    color: #9aa4ad;
}

body.dark-theme .nav-link:hover {
    color: #e6f1ff;
    background: #1b2230;
}

body.dark-theme .nav-link.active {
    color: #ffffff;
    background: #007bff;
}

body.dark-theme .header-controls .lang-toggle-btn {
    background: transparent;
    color: #9aa4ad;
    border-color: #9aa4ad;
}

body.dark-theme .header-controls .theme-toggle-btn {
    background: transparent;
    color: #9aa4ad;
    border-color: #9aa4ad;
}

body.dark-theme .btn-login {
    color: #9aa4ad;
    border-color: #9aa4ad;
}

body.dark-theme .btn-login:hover {
    background: #9aa4ad;
    color: #000;
}

body.dark-theme .btn-signup {
    background: #26d19a;
    color: #000;
}

body.dark-theme header {
    border-bottom: none !important;
    background: #101521 !important;
}

body.dark-theme header .wrap div {
    color: #e6f1ff !important;
}

body.dark-theme header .wrap div:last-child {
    color: #9aa4ad !important;
}

/* Forcer le thème sombre sur l'en-tête */
body.dark-theme header,
body.dark-theme .navbar {
    background: #101521 !important;
    color: #e6f1ff !important;
}

/* Forcer le thème sombre sur les éléments de navigation */
body.dark-theme .nav-logo {
    color: #e6f1ff !important;
}

body.dark-theme .nav-link {
    color: #9aa4ad !important;
}

body.dark-theme .nav-link:hover {
    color: #e6f1ff !important;
    background: #1b2230 !important;
}

/* Forcer le thème sombre sur les boutons d'authentification */
body.dark-theme .btn-login {
    background: transparent !important;
    color: #9aa4ad !important;
    border: 1px solid #9aa4ad !important;
}

body.dark-theme .btn-login:hover {
    background: #1b2230 !important;
    color: #e6f1ff !important;
    border-color: #e6f1ff !important;
}

body.dark-theme .btn-signup {
    background: #26d19a !important;
    color: #000 !important;
    border: 1px solid #26d19a !important;
}

body.dark-theme .card {
    background: #101521;
    border: 1px solid #1b2230;
}

body.dark-theme .card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-theme .hd {
    border-bottom: 1px solid #1b2230;
}

body.dark-theme .pair {
    color: #e6f1ff;
}

body.dark-theme .ft {
    border-top: 1px solid #1b2230;
    color: #9aa4ad;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.3s ease;
}

.crypto-text {
    color: #cc5500;
    font-weight: 900;
    text-shadow: none;
    animation: none;
    filter: none;
}

.nav-logo:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.nav-logo:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}


.nav-links {
    display: flex;
    gap: 20px;
}

.header-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 20px;
}

.btn-login,
.btn-signup {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-login {
    background: transparent;
    color: #6c757d;
    border-color: #6c757d;
}

.btn-login:hover {
    background: #6c757d;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-signup {
    background: #26d19a;
    color: #000;
}

.btn-signup:hover {
    background: #1fd5ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 209, 154, 0.4);
}

.btn-signup::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;
}

.btn-signup:hover::before {
    left: 100%;
}

/* Style pour le diviseur */
.divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: center;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    padding: 0 15px;
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Thème sombre pour le diviseur */
body.dark-theme .divider::before,
body.dark-theme .divider::after {
    background: #4a5568;
}

body.dark-theme .divider span {
    color: #9aa4ad;
}

/* Styles pour le bouton Google personnalisé */
.btn-google {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: #ffffff;
    color: #3c4043;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    margin: 15px 0 20px 0;
}

.btn-google:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #c0c0c0;
    transform: translateY(-1px);
}

.btn-google .google-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #4285f4 0%, #4285f4 25%, #34a853 25%, #34a853 50%, #fbbc04 50%, #fbbc04 75%, #ea4335 75%, #ea4335 100%);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
}

/* Thème sombre pour le bouton Google */
body.dark-theme .btn-google {
    background: #2d3748;
    border-color: #4a5568;
    color: #e6f1ff;
}

body.dark-theme .btn-google:hover {
    background: #4a5568;
    border-color: #718096;
}

.btn-logout {
    background: #ff6b6b;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-logout:hover {
    background: #ff4757;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-logout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-logout:hover::before {
    left: 100%;
}

/* Menu utilisateur déroulant */
.user-menu-container {
    position: relative;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 220px;
    overflow: hidden;
    display: none;
    margin-top: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
}

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

.menu-item:hover {
    background: #f8f9fa;
}

.menu-item.active {
    background: #e3f2fd;
    color: #1976d2;
}

.menu-icon {
    font-size: 16px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.menu-arrow {
    font-size: 16px;
    color: #6c757d;
    font-weight: bold;
}

.logout-item {
    color: #dc3545;
}

.logout-item:hover {
    background: #f8d7da;
}

.logout-item .menu-text {
    color: #dc3545;
}

/* Thème sombre pour le menu */
body.dark-theme .user-menu {
    background: #101521 !important;
    border-color: #1b2230 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme .menu-item {
    border-bottom-color: #1b2230;
}

body.dark-theme .menu-item:hover {
    background: #1b2230;
}

body.dark-theme .menu-item.active {
    background: #0d47a1;
    color: #64b5f6;
}

body.dark-theme .menu-text {
    color: #e6f1ff !important;
}

/* Forcer le thème sombre sur tous les éléments du menu */
body.dark-theme .user-menu * {
    background: transparent !important;
}

body.dark-theme .menu-item {
    background: transparent !important;
    color: #e6f1ff !important;
}

body.dark-theme .menu-item:hover {
    background: #1b2230 !important;
    color: #e6f1ff !important;
}

body.dark-theme .menu-item.active {
    background: #0d47a1 !important;
    color: #64b5f6 !important;
}

body.dark-theme .sub-menu-item {
    background: transparent !important;
    color: #e6f1ff !important;
}

body.dark-theme .sub-menu-item:hover {
    background: #1b2230 !important;
    color: #e6f1ff !important;
}

body.dark-theme .menu-arrow {
    color: #9aa4ad;
}

body.dark-theme .logout-item:hover {
    background: #3d1a1a;
}

/* Styles pour le bouton utilisateur connecté */
.user-icon, .user-arrow {
    display: inline-block;
    vertical-align: middle;
}

.user-icon {
    font-size: 14px;
    margin-right: 8px;
}

.user-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.btn-login:hover .user-arrow {
    transform: rotate(180deg);
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #1a1a1a;
    background: #e9ecef;
}

.nav-link.active {
    color: #ffffff;
    background: #007bff;
}

/* Header */
header {
    padding: 2px 18px;
    border-bottom: none !important;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

header .wrap div {
    color: #1a1a1a !important;
}

header .wrap div:last-child {
    color: #6c757d !important;
}

body:not(.dark-theme) header .wrap div {
    color: #1a1a1a !important;
}

body:not(.dark-theme) header .wrap div:last-child {
    color: #6c757d !important;
}

.wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Réduire l'espace pour la section trading-styles */
.trading-styles-section .wrap {
    margin: 0 auto;
    padding: 0 16px;
}

/* Widgets Container */
.widgets-container {
    margin: 0 auto;
    max-width: 1300px;
    padding: 0 16px;
    position: relative;
    top: 0;
}

.widget-section {
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #e6f1ff;
}

/* CoinMarketCap Widgets */
#cmc-marquee {
    margin: 0;
    position: relative;
    overflow: hidden;
}

/* Ticker en dessous du titre */
.ticker-below-title {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
}

/* Couper le fond noir sur le côté gauche du ticker - Approche agressive */
#coinmarketcap-widget-marquee {
    margin-left: -50px !important;
    padding-left: 50px !important;
    overflow: hidden !important;
    transform: translateX(-30px) !important;
}

/* Supprimer l'espace noir à gauche du ticker */
#coinmarketcap-widget-marquee > div:first-child {
    margin-left: -50px !important;
    padding-left: 50px !important;
    transform: translateX(-30px) !important;
}

/* Styles supplémentaires pour couper le fond noir */
[data-coinmarketcap-widget] {
    margin-left: -50px !important;
    padding-left: 50px !important;
    overflow: hidden !important;
    transform: translateX(-30px) !important;
}

/* Cibler spécifiquement le conteneur du ticker */
div[data-coinmarketcap-widget="coinMarquee"] {
    margin-left: -50px !important;
    padding-left: 50px !important;
    overflow: hidden !important;
    transform: translateX(-30px) !important;
}

/* Masquer complètement le côté gauche du ticker */
#cmc-marquee::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 50px;
    height: 100%;
    background: white;
    z-index: 10;
    pointer-events: none;
}

/* Masquer le branding CoinMarketCap - géré par JavaScript */

/* Ticker de secours */
.fallback-ticker-content {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    gap: 40px;
    align-items: center;
}

.fallback-ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.crypto-symbol {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
}

.crypto-price {
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
}

.crypto-change {
    font-weight: 600;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.crypto-change.positive {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.crypto-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

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

/* Thème sombre pour le ticker de secours */
body.dark-theme .fallback-ticker-item {
    background: rgba(0, 0, 0, 0.3);
}


#coinmarketcap-widget-coin-price-block {
    max-width: 340px;
    margin-bottom: 16px;
}

/* CoinGecko Widgets */
.coingecko-widget {
    max-width: 340px;
    margin-bottom: 16px;
}

/* ECharts Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
}

.pair {
    font-weight: 700;
    color: #1a1a1a;
}

.price {
    font-variant-numeric: tabular-nums;
    color: #26d19a;
    font-weight: 600;
}

.chart {
    height: 160px;
    position: relative;
    overflow: hidden;
}

.ft {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 13px;
}

.badge {
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.buy {
    background: #26d19a;
    color: #000;
    border: 2px solid #1fd5ff;
}

.sell {
    background: #ff6b6b;
    color: #ffffff;
    border: 2px solid #ff4757;
}

/* Styles pour les robots détachés */
.robot-signal-detached {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    font-size: 12px !important;
    animation: robotPulse 2s ease-in-out infinite !important;
    position: relative !important;
    overflow: visible !important;
    padding: 6px 12px !important;
}

.robot-signal-detached.buy {
    background: linear-gradient(135deg, #26d19a, #1fd5ff) !important;
    color: #000 !important;
    border: 2px solid #1fd5ff !important;
    box-shadow: 0 0 15px rgba(38, 209, 154, 0.4) !important;
}

.robot-signal-detached.sell {
    background: linear-gradient(135deg, #ff6b6b, #ff4757) !important;
    color: #ffffff !important;
    border: 2px solid #ff4757 !important;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4) !important;
}

/* Container du robot */
.robot-container {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Icône du robot */
.robot-icon {
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    background: url('robot-friendly.svg') no-repeat center/contain !important;
    animation: robotBounce 1.5s ease-in-out infinite !important;
}

/* Texte du signal */
.signal-text {
    font-weight: 700 !important;
    font-size: 12px !important;
}

/* Flèches BUY/SELL */
.signal-arrow {
    font-weight: 900 !important;
    font-size: 14px !important;
    margin-right: 6px !important;
}
.signal-arrow.buy { color: #0f8f69 !important; }
.signal-arrow.sell { color: #b3261e !important; }

/* Style pour MONITORING */
.wait-signal {
    background: #0d3b66 !important; /* bleu foncé */
    color: #ffffff !important;
    border: 2px solid #0a2c4d !important;
    box-shadow: 0 0 15px rgba(13, 59, 102, 0.35) !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-align: center !important;
    padding: 6px 10px !important;
    animation: waitPulse 2s ease-in-out infinite !important;
    letter-spacing: 0.5px !important;
}

.wait-text {
    color: #ffffff !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    font-size: 11px !important;
    letter-spacing: 0.5px !important;
}

/* Animation pour WAIT */
@keyframes waitPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.95;
    }
}

/* Styles pour le thème sombre */
body.dark-theme .wait-signal {
    background: #0d3b66 !important;
    color: #ffffff !important;
    border: 2px solid #0a2c4d !important;
    box-shadow: 0 0 15px rgba(13, 59, 102, 0.55) !important;
}

body.dark-theme .wait-text {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .robot-signal-detached.buy {
    background: linear-gradient(135deg, #26d19a, #1fd5ff) !important;
    color: #000 !important;
    border: 2px solid #1fd5ff !important;
    box-shadow: 0 0 20px rgba(38, 209, 154, 0.5) !important;
}

body.dark-theme .robot-signal-detached.sell {
    background: linear-gradient(135deg, #ff6b6b, #ff4757) !important;
    color: #ffffff !important;
    border: 2px solid #ff4757 !important;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5) !important;
}

/* Animation des yeux qui clignotent */
.blinking-eyes {
    animation: blink 1.5s ease-in-out infinite !important;
    display: inline-block !important;
    font-size: 14px !important;
}

/* Animation du robot qui pulse */
@keyframes robotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.95;
    }
}

/* Animation des yeux qui clignotent */
@keyframes blink {
    0%, 85%, 100% {
        opacity: 1;
        transform: scaleY(1);
    }
    90%, 95% {
        opacity: 0.2;
        transform: scaleY(0.1);
    }
}

/* Styles pour les robots dans les popups */
.robot-popup {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.robot-popup .robot-icon {
    font-size: 20px !important;
    animation: robotBounce 1s ease-in-out infinite !important;
}

.robot-popup .blinking-eyes {
    font-size: 16px !important;
}

/* Animation du robot qui rebondit dans les popups */
@keyframes robotBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Style pour les valeurs EMA dans les popups */
.signal-popup-ema {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin-top: 8px !important;
    font-family: 'Courier New', monospace !important;
}

/* Responsive */
@media (max-width: 1400px) and (min-width: 1025px) {
    .pricing-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
        max-width: 1300px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 20px;
    }
    
    .nav-links {
        gap: 12px;
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 15px;
    }
    
    .auth-buttons {
        gap: 12px;
    }
    
    .btn-login, .btn-signup {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    header .wrap div {
        font-size: 16px;
    }
    
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    
    .nav-links {
    flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .auth-buttons {
    flex-direction: column;
        gap: 8px;
    width: 100%;
}

    .btn-login, .btn-signup {
    width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .user-menu {
        right: 0;
        left: auto;
        width: 280px;
        max-width: calc(100vw - 32px);
        margin: 8px 0 0 0;
        overflow-x: hidden;
    }
    
    .user-menu .menu-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .user-menu .sub-menu {
        width: 100%;
        left: 0;
        right: 0;
    }
    
    .user-menu .sub-menu-item {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 10px 16px;
        font-size: 13px;
    }
    
    /* Corriger le débordement du menu de langue sur mobile */
    .language-dropdown {
        right: auto;
        left: 0;
        min-width: 120px;
        max-width: calc(100vw - 32px);
    }
    
    .language-dropdown button {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .widgets-container {
        padding: 0 8px;
    }
    
    header {
        padding: 8px 16px;
    }
    
    header .wrap div {
        font-size: 14px;
    text-align: center;
        line-height: 1.4;
    }
    
    .subscription-text {
        flex-direction: column;
        gap: 12px;
    }
    
    .subscription-main {
        font-size: 16px;
    }
    
    .subscription-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 12px;
    }
    
    .nav-logo {
        font-size: 18px;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .auth-buttons {
        gap: 6px;
    }
    
    .btn-login, .btn-signup {
        padding: 10px;
        font-size: 13px;
    }
    
    header {
        padding: 6px 12px;
    }
    
    header .wrap div {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .theme-toggle-btn, .language-toggle-btn {
        padding: 8px;
        font-size: 14px;
    }
    
    .card {
        margin: 0 4px;
    }
    
    .user-menu {
        min-width: 200px;
        max-width: calc(100vw - 24px);
        right: 12px;
        left: auto;
    }
    
    .menu-item {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .sub-menu-item {
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
    overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .subscription-banner {
        padding: 16px 0;
    }
    
    .subscription-main {
        font-size: 14px;
    }
    
    .subscription-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Page de tarification responsive */
    .pricing-title {
        font-size: 32px;
    }
    
    .pricing-subtitle {
        font-size: 16px;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 16px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .pricing-card {
        max-width: 100%;
    margin: 0 auto;
        padding: 20px 16px;
        min-height: auto;
    }
    
    .pricing-card h3 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .pricing-card .price {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .pricing-card .plan-features {
        margin-bottom: 16px;
    }
    
    .pricing-card .feature-item {
        font-size: 13px;
        margin-bottom: 8px;
        padding: 6px 0;
    }
    
    .pricing-btn {
        padding: 14px 20px;
        font-size: 14px;
    width: 100%;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
    
    .pricing-header {
        flex-direction: column;
        gap: 20px;
    text-align: center;
    }
}

/* Section Affiliation */
.affiliate-section {
    background: #1A1A2E;
    padding: 40px 0;
    border-top: 1px solid #1b2230;
}

.affiliate-banner {
    background: #1A1A2E;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.affiliate-text {
    flex: 1;
}

.affiliate-text h3 {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.affiliate-text p {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.5;
}

.affiliate-action {
    flex-shrink: 0;
    text-align: center;
}

.affiliate-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    margin-bottom: 12px;
}

.affiliate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
    text-decoration: none;
    color: #000;
}

.btn-icon {
    font-size: 18px;
}

.affiliate-link {
    margin-top: 8px;
}

.affiliate-link a {
    color: #B0B0B0;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.affiliate-link a:hover {
    color: #FFD700;
    text-decoration: none;
}

.affiliate-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: #2A2A3E;
    border-radius: 12px;
    padding: 24px 32px;
    text-align: center;
    min-width: 200px;
    flex: 1;
    max-width: 250px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #26d19a;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #B0B0B0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

/* Réduire l'espacement après le header */
main, .main-content {
    margin-top: 0;
    padding-top: 0;
}

/* Supprimer complètement l'espacement entre header et contenu */
body {
    margin: 0;
    padding: 0;
}

/* Supprimer l'espacement de la section trading */
.trading-styles-section {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Coller le sous-titre directement au header */
.trading-subtitle {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #e6f1ff;
}

.affiliate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.affiliate-text h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #26d19a;
}

.affiliate-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #9aa4ad;
}

.affiliate-benefits {
    list-style: none;
    margin-bottom: 32px;
}

.affiliate-benefits li {
    padding: 8px 0;
    color: #e6f1ff;
    font-size: 16px;
}

.affiliate-btn {
    background: linear-gradient(135deg, #26d19a 0%, #1fd5ff 100%);
    color: #000;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.affiliate-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 24px;
    background: #101521;
    border-radius: 12px;
    border: 1px solid #1b2230;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #26d19a;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #9aa4ad;
}

/* Footer */
.footer {
    background: #0a0d14;
    border-top: 1px solid #1b2230;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    color: #e6f1ff;
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-section p {
    color: #9aa4ad;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

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

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

.footer-links a:hover {
    color: #26d19a;
}

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

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

.social-link:hover {
    background: #26d19a;
    color: #000;
}

.language-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lang-btn {
    background: #1b2230;
    border: 1px solid #1b2230;
    color: #9aa4ad;
        padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.lang-btn:hover {
    background: #26d19a;
    color: #000;
    border-color: #26d19a;
}

.footer-bottom {
    border-top: 1px solid #1b2230;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #9aa4ad;
    margin: 0;
}

#termsButton {
    font-size: 0.9em;
    color: #888 !important;
    font-weight: 500;
    margin-bottom: 8px !important;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    text-align: left;
    width: 100%;
}

#termsButton:hover {
    color: #666 !important;
}

.terms-modal {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.terms-content {
    line-height: 1.6;
    padding: 20px;
}

.terms-content h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.terms-content p {
    margin-bottom: 15px;
}

.terms-content ul {
    margin-bottom: 15px;
    padding-left: 20px;
}

.terms-content li {
    margin-bottom: 8px;
}

body.dark-theme #termsButton {
    color: #bbb !important;
}

body.dark-theme #termsButton:hover {
    color: #ddd !important;
}

body.dark-theme .terms-content h3 {
    color: #e0e0e0;
}

body.dark-theme .terms-content p {
    color: #b0b0b0;
}

.footer-links-bottom {
    display: flex;
    gap: 20px;
}

.footer-links-bottom a {
    color: #9aa4ad;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: #26d19a;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .affiliate-banner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 24px;
    }
    
    .affiliate-text h3 {
        font-size: 24px;
    }
    
    .affiliate-text p {
        font-size: 14px;
    }
    
    .affiliate-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .affiliate-stats {
    flex-direction: column;
        gap: 16px;
        margin-top: 24px;
    }
    
    .stat-card {
        min-width: auto;
        padding: 20px 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .affiliate-stats {
        grid-template-columns: 1fr;
    }
    
    /* Menu de langue pour très petits écrans */
    .language-dropdown {
        min-width: 100px;
        max-width: calc(100vw - 16px);
    }
    
    .language-dropdown button {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-links-bottom {
        flex-direction: column;
        gap: 10px;
    }
}

/* Bouton de langue unifié */
.language-selector-unified {
    position: relative;
}

.lang-toggle-btn {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: none;
}

.lang-toggle-btn:hover {
    background: #f8f9fa;
    color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 150px;
    overflow: hidden;
}

.language-dropdown button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 16px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: #1a1a1a;
    font-size: 14px;
}

.language-dropdown button:hover {
    background: #f8f9fa;
}

body.dark-theme .language-dropdown {
    background: #101521;
    border: 1px solid #1b2230;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-theme .language-dropdown button {
    color: #e6f1ff;
}

body.dark-theme .language-dropdown button:hover {
    background: #1b2230;
}

/* Widgets */
.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1a1a1a;
}

body.dark-theme .widget-title {
    color: #e6f1ff;
}

/* Bouton de thème */
.theme-toggle-btn {
    background: transparent;
    color: #6c757d;
    border: 1px solid #6c757d;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: none;
}

/* Badge Premium dans l'en-tête */
.premium-badge-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #22c55e; /* vert */
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    cursor: default;
}
.premium-badge-header .crown { font-size: 14px; }
.premium-badge-header .label { font-size: 12px; }

body.dark-theme .premium-badge-header {
    background: #16a34a;
}

.theme-toggle-btn:hover {
    background: #f8f9fa;
    color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Section Styles de Trading */
/* Bannière d'abonnement */
.subscription-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px 0;
    margin: 20px 0;
}

.subscription-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    text-align: center;
}

.subscription-icon {
    font-size: 24px;
    animation: pulse 2s infinite;
}

.subscription-main {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.highlight-500 {
    color: #ffd700;
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.subscription-btn {
    background: #ff6b6b;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.subscription-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

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

/* Thème sombre pour la bannière */
body.dark-theme .subscription-banner {
    background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
}

body.dark-theme .subscription-main {
    color: #e2e8f0;
}

/* Page de tarification */
.pricing-page {
    min-height: 100vh;
    background: #f8f9fa;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

.back-btn:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.back-arrow {
    font-size: 18px;
    font-weight: bold;
}

/* Style pour la flèche de retour sur fond sombre (comme Stripe) */
.back-btn.dark-style {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.back-btn.dark-style:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.language-selector-pricing {
    position: relative;
}

.pricing-content {
    text-align: center;
}

.pricing-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pricing-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 20px;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 320px;
    max-height: none;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
    border-color: #667eea;
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #667eea;
    color: #ffffff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.star {
    color: #ffd700;
}

.card-header {
    text-align: center;
    margin-bottom: 12px;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: #666;
}

.amount {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.period {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.plan-features {
    margin-bottom: 6px;
    flex-grow: 1;
    overflow-y: visible;
    max-height: none;
}

.feature-item {
    margin-bottom: 2px;
    font-size: 11px;
    color: #333;
    line-height: 1.1;
    text-align: left;
}

.check-icon {
    display: none;
}

.savings-item {
    margin-bottom: 2px;
    font-size: 11px;
    color: #10b981;
    font-weight: 600;
    text-align: left;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #10b981;
}

.pricing-btn {
    width: 100%;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-btn:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.payment-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f0f9ff;
    padding: 16px 24px;
    border-radius: 12px;
    max-width: 400px;
    margin: 40px auto 0 auto;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.security-icon {
    color: #10b981;
    font-size: 20px;
}

.security-text {
    color: #059669;
    font-weight: 600;
}

/* Boutons premium */
.style-btn.premium {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: 2px solid #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.style-btn.premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.premium-badge { display: none; }

/* Thème sombre pour la page de tarification */
body.dark-theme .pricing-page {
    background: #101521;
}

body.dark-theme .pricing-title {
    color: #e2e8f0;
}

body.dark-theme .pricing-subtitle {
    color: #a0aec0;
}

body.dark-theme .pricing-card {
    background: #1a202c;
    border-color: #2d3748;
}

body.dark-theme .plan-name {
    color: #e2e8f0;
}

body.dark-theme .amount {
    color: #e2e8f0;
}

body.dark-theme .feature-item {
    color: #cbd5e0;
}

body.dark-theme .pricing-btn {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

body.dark-theme .pricing-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

body.dark-theme .payment-security {
    background: #1a365d;
}

body.dark-theme .security-text {
    color: #63b3ed;
}

/* Note de paiement Stripe */
.stripe-note {
    animation: slideInRight 0.3s ease-out;
}

.note-content h4 {
    margin: 0 0 12px 0;
    color: #0369a1;
    font-size: 16px;
}

.note-content p {
    margin: 0 0 8px 0;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.note-content p:last-of-type {
    margin-bottom: 16px;
}

.note-close {
    background: #0ea5e9;
    color: white;
    border: none;
    padding: 8px 16px;
        border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.note-close:hover {
    background: #0284c7;
}

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

/* Thème sombre pour la note */
body.dark-theme .stripe-note {
    background: #1e3a8a;
    border-color: #3b82f6;
}

body.dark-theme .note-content h4 {
    color: #93c5fd;
}

body.dark-theme .note-content p {
    color: #e5e7eb;
}

body.dark-theme .note-close {
    background: #3b82f6;
}

body.dark-theme .note-close:hover {
    background: #2563eb;
}

.trading-styles-section {
    background: #f8f9fa;
    border-bottom: none;
    padding: 0;
    margin: 0;
    margin-top: -10px;
}

body.dark-theme .trading-styles-section {
    background: #101521;
    border-bottom: none;
}

/* Bannière d'abonnement */
.subscription-banner {
    text-align: center;
    margin: 0 auto 15px auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
    display: block;
    width: fit-content;
    max-width: fit-content;
}

#subscriptionTitle {
    color: #1a1a1a;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    margin-top: -5px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Styles pour le thème sombre */
body.dark-theme #subscriptionTitle {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5) !important;
}

body.dark-theme #subscriptionTitle .crypto-text {
    color: #ff8c00 !important;
    text-shadow: 0 2px 4px rgba(255, 140, 0, 0.3) !important;
}

.subscription-banner p {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Sous-titre stylé et professionnel */
.trading-subtitle {
    text-align: center;
    margin: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px 0;
}

.subtitle-main {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-24 {
    background: linear-gradient(135deg, #26d19a 0%, #1fd5ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(38, 209, 154, 0.3);
}

.subtitle-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(38, 209, 154, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(38, 209, 154, 0.15);
    border-color: rgba(38, 209, 154, 0.4);
}

.feature-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-item span:last-child {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.5;
    font-weight: 500;
}

body.dark-theme .subtitle-main {
    color: #e6f1ff;
}

body.dark-theme .feature-item {
    background: rgba(16, 21, 33, 0.8);
    border-color: rgba(38, 209, 154, 0.3);
    backdrop-filter: blur(10px);
}

body.dark-theme .feature-item:hover {
    border-color: rgba(38, 209, 154, 0.5);
    box-shadow: 0 8px 24px rgba(38, 209, 154, 0.2);
}

body.dark-theme .feature-item span:last-child {
    color: #9aa4ad;
}

.styles-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
}

body.dark-theme .styles-title {
    color: #e6f1ff;
}

.styles-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.style-btn {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.style-btn:hover {
    border-color: #26d19a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 209, 154, 0.2);
}

.style-btn.active {
    background: #26d19a;
    border-color: #26d19a;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 209, 154, 0.3);
}

body.dark-theme .style-btn {
    background: #101521;
    border-color: #1b2230;
    color: #e6f1ff;
}

body.dark-theme .style-btn:hover {
    border-color: #26d19a;
    background: #1b2230;
}

body.dark-theme .style-btn.active {
    background: #26d19a;
    border-color: #26d19a;
    color: #000;
}

.style-icon {
    font-size: 20px;
    margin-bottom: 2px;
}

.style-name {
    font-weight: 600;
    font-size: 12px;
        text-align: center;
    line-height: 1.1;
}

.style-timeframe {
    font-size: 11px;
    opacity: 0.8;
        text-align: center;
    font-weight: 500;
}

/* Icône d'épingle pour les boutons de style de trading */
.pin-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 16px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: auto;
}

.pin-icon:hover {
    opacity: 1;
    transform: scale(1.2);
    background: rgba(0, 0, 0, 0.2);
}

.pin-icon.pinned {
    opacity: 1;
    color: #ffff00;
    animation: pinPulse 2s infinite;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.8), 0 0 12px rgba(255, 255, 0, 0.5);
    filter: brightness(1.2);
}

/* Masquer l'icône d'épingle pour les utilisateurs non premium */
.pin-icon.premium-only {
    display: none;
}

/* Afficher l'icône d'épingle uniquement pour les utilisateurs premium */
body.premium-user .pin-icon.premium-only {
    display: block;
}

@keyframes pinPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

body.dark-theme .pin-icon {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .pin-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

body.dark-theme .pin-icon.pinned {
    color: #ffff00;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.9), 0 0 15px rgba(255, 255, 0, 0.6);
    filter: brightness(1.3);
}

/* Responsive pour les styles de trading */
@media (max-width: 768px) {
    .subtitle-main {
        font-size: 20px;
        padding: 0 16px;
    }
    
    .subtitle-features {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 16px;
    }
    
    .feature-item {
        padding: 14px 16px;
    }
    
    .feature-item span:last-child {
        font-size: 13px;
    }
    
    .styles-grid {
        flex-direction: column;
        gap: 12px;
        max-width: 300px;
    }
    
    .style-btn {
        padding: 8px 12px;
        min-width: auto;
    }
    
    .style-icon {
        font-size: 18px;
    }
    
    .style-name {
        font-size: 11px;
    }
    
    .style-timeframe {
        font-size: 10px;
    }
}

/* Pop-ups de Signaux en Temps Réel */
.signal-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 24px;
    z-index: 10000;
    min-width: 320px;
    max-width: 400px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 3px solid transparent;
}

.signal-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.signal-popup.buy {
    border-color: #26d19a;
    background: linear-gradient(135deg, #ffffff 0%, #f0fff4 100%);
}

.signal-popup.sell {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f5 100%);
}

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

.signal-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.signal-popup-close:hover {
    background: #f8f9fa;
    color: #1a1a1a;
}

.signal-popup-content {
        text-align: center;
    }
    
.signal-popup-symbol {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.signal-popup-price {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.signal-popup-direction {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
        font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    }
    
.signal-popup-direction.buy {
    color: #26d19a;
    }
    
.signal-popup-direction.sell {
    color: #ff6b6b;
    }
    
.signal-popup-arrow {
    font-size: 28px;
    }
    
.signal-popup-timeframe {
        font-size: 14px;
    color: #6c757d;
    margin-bottom: 16px;
}

.signal-popup-ema-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
        font-size: 13px;
    color: #6c757d;
}

body.dark-theme .signal-popup {
    background: #101521;
    border-color: #1b2230;
}

body.dark-theme .signal-popup.buy {
    background: linear-gradient(135deg, #101521 0%, #0a1f0a 100%);
    border-color: #26d19a;
}

body.dark-theme .signal-popup.sell {
    background: linear-gradient(135deg, #101521 0%, #1f0a0a 100%);
    border-color: #ff6b6b;
}

body.dark-theme .signal-popup-symbol,
body.dark-theme .signal-popup-price {
    color: #e6f1ff;
}

body.dark-theme .signal-popup-ema-info {
    background: #1b2230;
    color: #9aa4ad;
}

/* Overlay pour les pop-ups */
.signal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.signal-popup-overlay.show {
    opacity: 1;
}

/* Animations pour les pop-ups */
@keyframes signalPopupIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    }
}

.signal-popup.animate-in {
    animation: signalPopupIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Modales de Connexion et Inscription */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

/* Masquer l'en-tête de la modal de connexion */
#loginModal .modal-header {
    display: none !important;
}

/* Masquer l'en-tête de la modal d'inscription */
#signupModal .modal-header {
    display: none !important;
}

/* Gradient robot overlay pour les graphiques */
.chart::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(26, 209, 154, 0.5) 0%,
        rgba(31, 213, 255, 0.5) 25%,
        rgba(102, 126, 234, 0.5) 50%,
        rgba(118, 75, 162, 0.5) 75%,
        rgba(26, 209, 154, 0.5) 100%
    );
    background-size: 300% 300%;
    animation: robotGradientFlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 10;
    border-radius: 8px;
    mix-blend-mode: overlay;
}

@keyframes robotGradientFlow {
    0% {
        background-position: 0% 0%;
        transform: scale(1);
        opacity: 0.8;
    }
    25% {
        background-position: 100% 0%;
        transform: scale(1.05);
        opacity: 1;
    }
    50% {
        background-position: 100% 100%;
        transform: scale(1);
        opacity: 0.8;
    }
    75% {
        background-position: 0% 100%;
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        background-position: 0% 0%;
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Effet de flou et glow sur les graphiques */
.chart {
    filter: blur(0.3px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chart::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #26d19a, #1fd5ff, #667eea, #764ba2, #26d19a);
    background-size: 400% 400%;
    animation: robotGradientFlow 2s ease-in-out infinite;
    z-index: -1;
    border-radius: 10px;
    opacity: 0.3;
}

.chart:hover {
    filter: blur(0px);
    box-shadow: 0 0 30px rgba(26, 209, 154, 0.5);
    transform: scale(1.02);
}

/* Effet sur les canvas des graphiques */
.chart canvas {
    filter: blur(0.2px);
    transition: filter 0.3s ease;
    position: relative;
    z-index: 1;
}

.chart:hover canvas {
    filter: blur(0px);
}

.modal-content {
    background-color: #ffffff;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #26d19a 0%, #1fd5ff 100%);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: #000;
    font-weight: 700;
        font-size: 18px;
}

.close {
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 24px;
    padding-bottom: 30px;
}

/* Ajuster le padding pour la modal de connexion sans en-tête */
#loginModal .modal-body {
    padding-top: 30px;
}

/* Ajuster le padding pour la modal d'inscription sans en-tête */
#signupModal .modal-body {
    padding-top: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a1a1a;
        font-size: 14px;
}

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

.form-group input:focus {
    outline: none;
    border-color: #26d19a;
    box-shadow: 0 0 0 3px rgba(38, 209, 154, 0.1);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #26d19a 0%, #1fd5ff 100%);
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(38, 209, 154, 0.4);
}

/* Styles pour les champs de mot de passe avec bouton toggle */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    flex: 1;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #2563eb;
}


.forgot-password-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 28px;
    font-weight: 600;
    background: #2563eb;
    padding: 16px 32px;
    border-radius: 12px;
    display: inline-block;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    min-height: 60px;
    line-height: 28px;
}

.forgot-password-link:hover {
    color: #ffffff;
    background: #1d4ed8;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

.forgot-password-info {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Styles pour les nouveaux modals */
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.btn-cancel {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.btn-confirm {
    background: #dc3545;
    color: #ffffff;
    border: 1px solid #dc3545;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-confirm:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Styles pour le modal de bienvenue premium */
.premium-welcome-content {
    text-align: center;
    padding: 20px 0;
}

.premium-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 36px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
}

.premium-welcome-content p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.premium-welcome-content p:first-of-type {
    font-size: 18px;
    font-weight: 500;
    color: #28a745;
    margin-bottom: 10px;
}

/* Styles pour le modal de confirmation d'abonnement */
.subscription-confirm-content {
    text-align: center;
    padding: 20px 0;
}

.subscription-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 36px;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.subscription-confirm-content p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.subscription-confirm-content p:first-of-type {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 10px;
}

.subscription-features {
    margin-top: 20px;
    text-align: left;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.subscription-features .feature-item {
    padding: 8px 0;
    font-size: 14px;
    color: #495057;
    border-bottom: 1px solid #f8f9fa;
}

.subscription-features .feature-item:last-child {
    border-bottom: none;
}

/* Responsive pour les modals */
@media (max-width: 768px) {
    .modal-content {
        margin: 1% auto;
        max-height: 95vh;
        width: 95%;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-cancel, .btn-confirm {
        width: 100%;
        padding: 12px 20px;
    }
    
    .premium-success-icon,
    .subscription-success-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .subscription-features {
        max-width: 100%;
    }
}


/* Styles pour le bouton utilisateur et menu déroulant */
.user-menu-container {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #374151;
}

.user-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.user-icon, .user-arrow {
    font-size: 16px;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 200px;
    display: none;
}

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

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

.menu-item:hover {
    background: #f9fafb;
}

.menu-item.active {
    background: #eff6ff;
    color: #2563eb;
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.menu-arrow {
    font-size: 16px;
    color: #9ca3af;
}

.logout-item {
    color: #dc2626;
}

.logout-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* Styles pour le sous-menu */
.sub-menu {
    background: #f8f9fa;
    border-left: 3px solid #2563eb;
    margin-left: 20px;
    border-radius: 0 8px 8px 0;
}

.sub-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

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

.sub-menu-item:hover {
    background: #e5e7eb;
}

.sub-menu-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.sub-menu-text {
    flex: 1;
    font-weight: 500;
}

/* Couleurs spécifiques pour les actions dangereuses */
.sub-menu-item.cancel-action,
.sub-menu-item.delete-action {
    color: #dc2626;
}

.sub-menu-item.cancel-action:hover,
.sub-menu-item.delete-action:hover {
    background: #fef2f2;
    color: #dc2626;
}

.sub-menu-item.suspend-action {
    color: #f59e0b;
}

.sub-menu-item.suspend-action:hover {
    background: #fffbeb;
    color: #f59e0b;
}

/* Styles pour la section d'affiliation avec dégradé bleu-violet */
.affiliate-section {
    background: linear-gradient(180deg, #3b82f6, #6366f1, #8b5cf6, #a855f7) !important;
    color: white !important;
    padding: 30px 0 !important;
    position: relative !important;
}

.affiliate-section .affiliate-banner {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin: 10px 0 !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.affiliate-section .affiliate-text h3 {
    color: white !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    margin-bottom: 10px !important;
}

.affiliate-section .affiliate-text p {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    margin-bottom: 8px !important;
}

.affiliate-section .affiliate-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    border: 2px solid rgba(255, 215, 0, 0.6) !important;
    color: #000 !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4) !important;
}

.affiliate-section .affiliate-btn:hover {
    background: linear-gradient(135deg, #FFE55C, #FFB84D) !important;
    border-color: rgba(255, 215, 0, 0.8) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6) !important;
}

.affiliate-section .affiliate-link a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: underline !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.affiliate-section .affiliate-link a:hover {
    color: white !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5) !important;
}

.affiliate-section .stat-card {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 15px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

.affiliate-section .stat-number {
    color: white !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.affiliate-section .stat-label {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Styles pour les statistiques intégrées dans la bannière */
.affiliate-stats-integrated {
    margin-top: 20px !important;
    display: flex !important;
    justify-content: center !important;
}

.affiliate-stats-integrated .stat-card {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 15px !important;
    padding: 20px 30px !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    text-align: center !important;
    min-width: 200px !important;
}

/* Styles renforcés pour les boutons premium verrouillés */
.style-btn.premium:not(.unlocked) {
    position: relative;
    opacity: 0.8 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

.style-btn.premium:not(.unlocked):hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5) !important;
    background: linear-gradient(135deg, #7c8cff 0%, #8b5cf6 100%) !important;
    border-color: #7c8cff !important;
    color: #ffffff !important;
}

.style-btn.premium:not(.unlocked)::before {
    content: '🔒';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    z-index: 10;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.style-btn.premium.unlocked {
    opacity: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
}

.style-btn.premium.unlocked::before {
    display: none;
}

/* Empêcher complètement la sélection active des boutons premium verrouillés */
.style-btn.premium:not(.unlocked).active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border-color: #667eea !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3) !important;
}

/* Thème sombre pour les modales */
body.dark-theme .modal-content {
    background-color: #101521;
}

/* Améliorer la visibilité du texte en thème sombre */
body.dark-theme .modal-body {
    color: #e6f1ff !important;
}

body.dark-theme .form-group label {
    color: #e6f1ff !important;
    font-weight: 600;
}

body.dark-theme .form-group input {
    background-color: #2d3748 !important;
    border-color: #4a5568 !important;
    color: #e6f1ff !important;
}

body.dark-theme .form-group input::placeholder {
    color: #9aa4ad !important;
}

body.dark-theme .form-group input:focus {
    border-color: #26d19a !important;
    box-shadow: 0 0 0 2px rgba(38, 209, 154, 0.2) !important;
}

body.dark-theme .signup-link {
    color: #e6f1ff !important;
}

body.dark-theme .signup-link a {
    color: #26d19a !important;
    text-decoration: underline;
}

body.dark-theme .signup-link a:hover {
    color: #1fd5ff !important;
}

body.dark-theme .forgot-password-btn {
    color: #9aa4ad !important;
}

body.dark-theme .forgot-password-btn:hover {
    color: #e6f1ff !important;
}

body.dark-theme .remember-me {
    color: #e6f1ff !important;
}

body.dark-theme .remember-me input[type="checkbox"] {
    accent-color: #26d19a;
}

body.dark-theme .back-to-home a {
    color: #26d19a !important;
}

body.dark-theme .back-to-home a:hover {
    color: #1fd5ff !important;
}

/* Améliorer la visibilité des autres éléments en thème sombre */
body.dark-theme .card-title {
    color: #e6f1ff !important;
}

body.dark-theme .card-subtitle {
    color: #9aa4ad !important;
}

body.dark-theme .price {
    color: #26d19a !important;
}

body.dark-theme .badge {
    color: #000 !important;
    font-weight: 600;
}

body.dark-theme .wait-text {
    color: #000 !important;
    font-weight: 600;
}

body.dark-theme .signal-text {
    color: #000 !important;
    font-weight: 600;
}

body.dark-theme .footer {
    background: #0b0e14 !important;
    color: #e6f1ff !important;
}

body.dark-theme .footer h3 {
    color: #e6f1ff !important;
}

body.dark-theme .footer p {
    color: #9aa4ad !important;
}

body.dark-theme .footer a {
    color: #9aa4ad !important;
}

body.dark-theme .footer a:hover {
    color: #e6f1ff !important;
}

/* Styles pour le bouton retour */
.back-button-container {
    margin-bottom: 15px;
    text-align: left;
}

.back-button {
    background: transparent;
    border: 1px solid #ddd;
    color: #666;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #f5f5f5;
    border-color: #bbb;
    color: #333;
}

.back-button i {
    font-size: 12px;
}

/* Thème sombre pour le bouton retour */
body.dark-theme .back-button {
    background: transparent;
    border-color: #4a5568;
    color: #9aa4ad;
}

body.dark-theme .back-button:hover {
    background: #1b2230;
    border-color: #718096;
    color: #e6f1ff;
}

/* Styles pour le bouton "Mot de passe oublié" */
.forgot-password-btn {
    background: #2563eb !important;
    color: #ffffff !important;
    padding: 12px 20px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.forgot-password-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4) !important;
}

/* Thème sombre pour le bouton "Mot de passe oublié" */
body.dark-theme .forgot-password-btn {
    background: #2563eb !important;
    color: #ffffff !important;
}

body.dark-theme .forgot-password-btn:hover {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

body.dark-theme .modal-header {
    background: linear-gradient(135deg, #26d19a 0%, #1fd5ff 100%);
    border-bottom-color: #1b2230;
}

/* Styles pour la page de réinitialisation de mot de passe */
.reset-password-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.reset-password-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    text-align: center;
}

.reset-password-header {
    margin-bottom: 30px;
}

.reset-password-header img {
    margin-bottom: 15px;
}

.reset-password-header h1 {
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.reset-password-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.reset-password-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.back-to-home {
    color: #26d19a;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-to-home:hover {
    color: #1fd5ff;
}

/* Thème sombre pour la page de réinitialisation */
body.dark-theme .reset-password-container {
    background: linear-gradient(135deg, #0b0e14 0%, #1a202c 100%);
}

body.dark-theme .reset-password-card {
    background: #101521;
    border: 1px solid #1b2230;
}

body.dark-theme .reset-password-header h1 {
    color: #e6f1ff;
}

body.dark-theme .reset-password-content p {
    color: #9aa4ad;
}

body.dark-theme .reset-password-footer {
    border-top-color: #1b2230;
}

body.dark-theme .back-to-home {
    color: #26d19a;
}

body.dark-theme .back-to-home:hover {
    color: #1fd5ff;
}

body.dark-theme .modal-header h3 {
    color: #000;
}

body.dark-theme .close {
    color: #000;
}

body.dark-theme .form-group label {
    color: #e6f1ff;
}

body.dark-theme .form-group input {
    background-color: #1b2230;
    border-color: #1b2230;
    color: #e6f1ff;
}

body.dark-theme .form-group input:focus {
    border-color: #26d19a;
    box-shadow: 0 0 0 3px rgba(38, 209, 154, 0.2);
}

/* Animation pour les modales */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Styles pour le modal de gating des styles de trading */
.trading-gate-modal {
    max-width: 500px;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.trading-gate-modal .modal-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px 16px 0 0;
}

.trading-gate-modal .modal-header h3 {
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
}

.trading-gate-modal .close {
    color: white;
    font-size: 24px;
}

.trading-gate-modal .close:hover {
    color: #ffd700;
}

.gate-content {
    text-align: center;
    padding: 20px;
}

.gate-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

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

.gate-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.gate-content p {
    font-size: 1rem;
    margin-bottom: 25px;
    opacity: 0.9;
    line-height: 1.5;
}

.gate-benefits {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
}

.benefit-item {
    padding: 8px 0;
    font-size: 0.95rem;
    opacity: 0.95;
}

.gate-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    justify-content: center;
}

.btn-login-gate,
.btn-signup-gate {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login-gate {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-login-gate:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-signup-gate {
    background: #ffd700;
    color: #333;
    border: 2px solid #ffd700;
}

.btn-signup-gate:hover {
    background: #ffed4e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.gate-alternative {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.gate-alternative p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.gate-alternative a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
}

.gate-alternative a:hover {
    text-decoration: underline;
}

/* Responsive pour le modal de gating */
@media (max-width: 768px) {
    .trading-gate-modal {
        max-width: 95%;
        margin: 10px;
    }
    
    .gate-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-login-gate,
    .btn-signup-gate {
        width: 100%;
    }
    
    .gate-icon {
        font-size: 3rem;
    }
    
    .gate-content h4 {
        font-size: 1.1rem;
    }
}
/* Style pour la note des conditions d'utilisation - Th�me sombre */
body.dark-theme #termsNote {
    color: #ff8a80 !important;
}

/* === NOUVEAU POPUP DE NOTIFICATION SIGNAUX === */
.new-signal-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    max-width: 380px;
    font-family: 'Inter', sans-serif;
}

.new-signal-popup.show {
    display: block !important;
}

.signal-popup-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.signal-popup-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.signal-popup-icon {
    font-size: 28px;
    animation: pulse 2s infinite;
}

.signal-popup-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.signal-popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    font-size: 24px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signal-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.signal-popup-body {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.signal-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-info-row:last-child {
    border-bottom: none;
}

.signal-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.signal-value {
    font-size: 15px;
    color: #ffffff;
    font-weight: 700;
    text-align: right;
}

.signal-popup-tip {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-style: italic;
}

.signal-popup-footer {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
}

.signal-popup-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signal-popup-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .new-signal-popup {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
