* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', monospace;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: -2;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #6f72c8;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    box-shadow: 0 0 10px #6f72c8;
}

.floating-particles::after {
    top: 60%;
    right: 20%;
    animation-delay: 3s;
    box-shadow: 0 0 20px #6f72c86b;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.2); opacity: 1; }
}

.rocket-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.rocket-particle {
    position: absolute;
    color: #6f72c8;
    opacity: 0;
    font-size: 1.5rem;
    animation: rocketFloat 15s linear infinite;
}

@keyframes rocketFloat {
    0% {
        transform: translateY(120vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.3;
    }
    95% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-20vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

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

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

.logo {
    font-size: 2.5rem;
    color: #6f72c8;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

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

.title-section h1 {
    font-size: 1.2rem;
    color: #6f72c8;
    margin-bottom: 5px;
    text-shadow: 0 0 10px #6f72c85e;
}

.title-section p {
    font-size: 0.6rem;
    color: #fff;
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
}

.header-right .social-icons {
    display: flex;
    gap: 15px;
    font-size: 1.2rem;
    color: #6f72c8;
}

.social-icons a {
    color: #6f72c8;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icons svg {
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.social-icons a:hover svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(111, 114, 200, 0.7));
}

.social-icons i {
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-icons i:hover {
    transform: scale(1.2);
    text-shadow: 0 0 20px #6f72c86b;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    animation: statusPulse 2s ease-in-out infinite;
}

.status-text {
    font-size: 0.5rem;
    color: #fff;
    opacity: 0.8;
}

@keyframes statusPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #6f72c8, transparent);
    margin: 20px 0;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.connect-section {
    text-align: center;
}

.burn-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgb(255 255 255 / 21%);
    letter-spacing: 2px;
}

.burn-subtitle {
    font-size: 0.8rem;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.accent-text {
    color: #6f72c8;
    text-shadow: 0 0 10px #6f72c8;
}

.faq-bail {
    background: rgba(111, 114, 200, 0.1);
    border: 1px solid #6f72c8;
    border-radius: 5px;
    margin-bottom: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 8px 15px 8px 25px;
    cursor: pointer;
    margin: 0;
    font-size: 0.9em;
    position: relative;
}

.faq-question::before {
    content: '▼';
    font-size: 12px;
    transition: transform 0.3s ease;
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-bail.active .faq-question::before {
    transform: translateY(-50%) rotate(180deg);
}

.faq-reponse {
    display: none;
    padding: 0 15px 10px 15px;
    font-size: 0.85em;
    line-height: 1.4;
}

.faq-bail.active .faq-reponse {
    display: block;
}

.wallet-btn {
    background: transparent;
    border: 2px solid #6f72c8;
    color: #fff;
    padding: 15px 30px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    position: relative;
    overflow: hidden;
}

.wallet-btn:hover {
    background: #6f72c8;
    box-shadow: 0 0 20px #6f72c8;
    transform: translateY(-2px);
}

.wallet-btn:active {
    transform: translateY(0);
}

.description {
    font-size: 0.6rem;
    color: #fff;
    margin: 20px 0;
    opacity: 0.9;
}

.stats-section {
    margin: 20px 0 40px 0;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-panel {
    flex: 1;
    border: 2px solid #6f72c8;
    padding: 20px;
    text-align: center;
    background: transparent;
    transition: all 0.3s ease;
}

.stat-panel:hover {
    box-shadow: 0 0 20px #6f72c86b;
    transform: translateY(-2px);
}

.stat-title {
    font-size: 0.6rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

:root {
    /* Thème sombre (par défaut) */
    --primary-color: #6f72c8;
    --secondary-color: #8e92e9;
    --background-color: #0a0a1a;
    --text-color: #ffffff;
    --card-bg: rgba(111, 114, 200, 0.1);
    --card-border: rgba(111, 114, 200, 0.3);
    --grid-color: rgba(111, 114, 200, 0.1);
}

[data-theme="light"] {
    --background-color: #ffffff;
    --text-color: #333333;
    --card-bg: rgba(111, 114, 200, 0.05);
    --card-border: rgba(111, 114, 200, 0.2);
    --grid-color: rgba(111, 114, 200, 0.05);
    
    /* Styles spécifiques pour le texte en mode clair */
    color: #333333;
}

[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6,
[data-theme="light"] p:not(.logo-text),
[data-theme="light"] span:not(.logo-text),
[data-theme="light"] div:not(.logo-container),
[data-theme="light"] a:not(.wallet-btn) {
    color: #8e92e9;
}

[data-theme="light"] .accent-text {
    color: #4a4d8c;
    text-shadow: 0 0 5px rgba(74, 77, 140, 0.5);
}

[data-theme="light"] .wallet-btn {
    color: #8e92e9 !important;
}

[data-theme="light"] .wallet-btn .fa-wallet {
    color: #8e92e9 !important;
}

[data-theme="light"] .status-text {
    color: #4a4d8c;
}

[data-theme="light"] .faq-question,
[data-theme="light"] .faq-bail.active {
    color: #6f72c8 !important;
}

[data-theme="light"] .faq-bail.active .faq-question {
    color: #6f72c8 !important;
}

/* Éléments fixes en #6f72c8 */
.logo-text,
.logo-svg,
.logo-container,
h1:not(.logo-text),
.fa-fire,
.burn-subtitle .accent-text {
    color: #6f72c8 !important;
    fill: #6f72c8 !important;
}

.trading-chart {
    height: 100px;
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--card-bg), var(--card-bg));
    border: 1px solid var(--card-border);
    margin-top: 10px;
    overflow: hidden;
    backdrop-filter: blur(2px);
    border-radius: 4px;
}

.chart-line {
    position: absolute;
    height: 1px;
    background: #6f72c8;
    transform-origin: left center;
    opacity: 0.7;
}

.chart-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #6f72c8;
    border-radius: 50%;
    box-shadow: 0 0 6px #6f72c8;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.8;
    }
    50% { 
        transform: scale(1.3);
        opacity: 1;
    }
}

.faq-section h2 {
    text-align: center;
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgb(255 255 255 / 21%);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Popup FAQ */
.faq-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.faq-popup-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid #333;
}

.faq-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.faq-popup h2 {
    color: #6f72c8;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.5rem;
}

.faq-bail {
    margin-bottom: 15px;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-bail:hover {
    box-shadow: 0 0 20px #6f72c86b;
    transform: translateY(-2px);
}

.faq-question {
    padding: 15px 20px;
    cursor: default;
    background: transparent;
    transition: all 0.3s ease;
}

.faq-question span {
    font-size: 0.7rem;
    color: #6f72c8;
}

.faq-reponse {
    padding: 20px;
    max-height: 300px;
}

.faq-reponse p {
    font-size: 0.6rem;
    color: #fff;
    line-height: 1.8;
    opacity: 0.9;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.6rem;
    color: #fff;
}

.toggle-switch {
    width: 40px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-handle {
    width: 16px;
    height: 16px;
    background: #6f72c8;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
}

.toggle-switch.active .toggle-handle {
    transform: translateX(20px);
}

[data-theme="light"] .toggle-switch {
    background-color: #e0e0e0;
}

[data-theme="light"] .faq-popup-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

[data-theme="light"] .faq-bail {
    border-color: #e0e0e0;
}

/* Popup Paramètres */
.settings-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.settings-popup-content {
    background: #1a1a1a;
    padding: 25px;
    border-radius: 12px;
    width: 300px;
    position: relative;
    border: 1px solid #333;
}

.settings-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

.settings-option {
    margin: 15px 0;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

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

.settings-option h3 {
    color: #6f72c8;
    margin-bottom: 10px;
    font-size: 1rem;
}

.theme-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.3s;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-option.active {
    background: rgba(111, 114, 200, 0.2);
}

.theme-option i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.version {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

/* Thème clair pour le popup des paramètres */
[data-theme="light"] .settings-popup-content {
    background: #ffffff;
    border: 1px solid #e0e0e0;
}

[data-theme="light"] .settings-option {
    border-bottom-color: #e0e0e0;
}

[data-theme="light"] .settings-option h3 {
    color: #6f72c8;
}

[data-theme="light"] .version {
    color: #999;
}

.mode-toggle span {
    font-size: 0.8em;
    color: #8e92e9;
    transition: color 0.3s ease;
}

[data-theme="light"] .mode-toggle span:first-child {
    color: #999;
}

[data-theme="light"] .mode-toggle span:last-child {
    color: #6f72c8;
    font-weight: bold;
}

.footer-right {
    display: flex;
    gap: 15px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
}

.footer-right i {
    transition: all 0.3s ease;
}

.footer-right i:hover {
    color: #6f72c8;
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-left {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .title-section h1 {
        font-size: 1rem;
    }
    
    .wallet-btn {
        padding: 12px 25px;
        font-size: 0.7rem;
    }
    
    .faq-question span {
        font-size: 0.6rem;
    }
    
    .faq-reponse p {
        font-size: 0.5rem;
    }
    
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }
}