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

/* Hide audio controls */
#backgroundMusic {
    display: none;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    overflow: hidden;
    background: #000;
    color: #fff;
    cursor: none;
}

* {
    cursor: none !important;
}

#solar-system {
    display: block;
    width: 100vw;
    height: 100vh;
    cursor: none;
}

#solar-system:active {
    cursor: none;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
    overflow: hidden;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
    position: relative;
}

/* Solar System Loader */
.solar-system-loader {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 30px;
}

/* Sun au centre */
.sun-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #ffd700 0%, #ffaa00 100%);
    border-radius: 50%;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
    animation: sunPulse 2s ease-in-out infinite;
}

@keyframes sunPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.5),
            inset 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 1),
            0 0 80px rgba(255, 215, 0, 0.7),
            inset 0 0 25px rgba(255, 255, 255, 0.4);
    }
}

/* Orbites des planètes */
.planet-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 50%;
}

.planet-orbit.planet-1 {
    width: 100px;
    height: 100px;
    animation: rotateOrbit 1s linear infinite;
}

.planet-orbit.planet-2 {
    width: 130px;
    height: 130px;
    animation: rotateOrbit 1.5s linear infinite reverse;
}

.planet-orbit.planet-3 {
    width: 160px;
    height: 160px;
    animation: rotateOrbit 2s linear infinite;
}

.planet-orbit.planet-4 {
    width: 190px;
    height: 190px;
    animation: rotateOrbit 2.5s linear infinite reverse;
}

@keyframes rotateOrbit {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Planètes */
.planet-loader {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

.planet-loader.planet-mercury {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #8c7853 0%, #6b5d4f 100%);
}

.planet-loader.planet-venus {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #ffc649 0%, #ffaa00 100%);
}

.planet-loader.planet-earth {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #6b93d6 0%, #4a7bc8 100%);
    box-shadow: 0 0 15px rgba(107, 147, 214, 0.8);
}

.planet-loader.planet-mars {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #c1440e 0%, #a0360a 100%);
}

.loading-text {
    color: #00d4ff;
    font-size: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 20px;
    animation: textPulse 2s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

#ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.top-left-container {
    position: absolute;
    top: 30px;
    left: 30px;
    pointer-events: auto;
    z-index: 101;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fuzzy-text-container {
    position: relative;
    line-height: 1;
}

.fuzzy-text-container canvas {
    display: block;
    font-family: 'Inter', sans-serif;
}

.subtitle-small {
    font-family: 'Inter', sans-serif;
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    padding: 0;
    padding-left: calc(1.8em + 1.7cm);
    font-weight: 500;
    line-height: 1;
    margin-top: 2px;
}

.top-buttons {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    pointer-events: auto;
    z-index: 101;
}

/* Fancy Button Style - From Uiverse.io by cssbuttons-io */
.fancy {
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 0.8em 1.2em;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-size: 11px;
    font-family: 'Inter', sans-serif;
}

.fancy::before {
    display: none;
}

.fancy .text {
    font-size: 0.9em;
    line-height: 1.2em;
    padding: 0;
    margin: 0;
    display: block;
    text-align: center;
    transition: all 0.3s ease-in-out;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    width: 100%;
}

.fancy#closeBtn .text {
    padding: 0;
    margin: 0;
    text-align: center;
    font-size: 1.2em;
    font-weight: 900;
}

.fancy .top-key {
    display: none;
}

.fancy .bottom-key-1 {
    display: none;
}

.fancy .bottom-key-2 {
    display: none;
}

.fancy:hover {
    color: #fff;
    background: #000;
    border-color: #000;
}

.fancy:hover::before {
    display: none;
}

.fancy:hover .text {
    color: #fff;
    padding-left: 0;
}

.fancy:hover .top-key {
    display: none;
}

.fancy:hover .bottom-key-1,
.fancy:hover .bottom-key-2 {
    display: none;
}

header {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-family: 'Inter', sans-serif;
    font-size: 2.5em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

header h1 span {
    background: linear-gradient(135deg, #00d4ff 0%, #5b86e5 50%, #a8e6cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.subtitle {
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 10px;
}

.subtitle-description {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    margin-top: 8px;
    line-height: 1.5;
    font-weight: 400;
    text-transform: none;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.controls {
    position: absolute;
    top: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    min-width: 250px;
}

.control-group {
    margin-bottom: 15px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.control-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00d4ff;
}

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    margin-top: 10px;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #5b86e5 100%);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4ff 0%, #5b86e5 100%);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

#speedValue {
    color: #00d4ff;
    font-weight: bold;
    margin-left: 10px;
}

/* Modal Styles - Centered on page */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.modal-content {
    background: rgba(0, 0, 0, 0.95);
    padding: 0;
    border: 1px solid #00d4ff;
    border-radius: 0;
    width: 75vw;
    max-width: 1100px;
    max-height: 75vh;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), inset 0 0 20px rgba(0, 212, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    pointer-events: auto;
    backdrop-filter: blur(10px);
    margin: auto;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(0, 212, 255, 0.1) 25%, 
        transparent 50%, 
        rgba(0, 212, 255, 0.1) 75%, 
        transparent 100%);
    background-size: 200% 200%;
    animation: borderScan 3s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes borderScan {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 200%; }
}

@keyframes modalSlideIn {
    0% {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Planet Modal Grid Layout */
.planet-modal-grid {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 0;
    height: 75vh;
    max-height: 600px;
    position: relative;
}

/* Close Button for Planet Modal */
.close-planet {
    color: #00d4ff;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #00d4ff;
    background: rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
}

.close-planet:hover,
.close-planet:focus {
    background: #00d4ff;
    color: #000;
    transform: scale(1.1);
}

/* Left Panel: Token Info */
.planet-modal-left {
    background: rgba(0, 20, 30, 0.6);
    border-right: 1px solid rgba(0, 212, 255, 0.3);
    padding: 30px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.planet-modal-section-title {
    font-family: 'Courier New', monospace;
    font-size: 0.7em;
    color: #00d4ff;
    letter-spacing: 2px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    font-weight: 700;
}

.planet-token-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.planet-data-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.planet-data-label {
    font-family: 'Courier New', monospace;
    font-size: 0.65em;
    color: rgba(0, 212, 255, 0.7);
    letter-spacing: 1px;
    font-weight: 600;
}

.planet-data-value {
    font-family: 'Courier New', monospace;
    font-size: 0.7em;
    color: #fff;
    word-break: break-all;
    line-height: 1.4;
}

.planet-token-addr {
    cursor: pointer;
    transition: color 0.2s ease;
}

.planet-token-addr:hover {
    color: #00d4ff;
}

.planet-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.75em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0;
}

/* Center: Planet Image */
.planet-modal-center {
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.planet-modal-center::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 212, 255, 0.03) 2px,
            rgba(0, 212, 255, 0.03) 4px
        );
    pointer-events: none;
    z-index: 0;
    animation: gridPulse 4s ease-in-out infinite;
}

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

.planet-name-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.planet-name-text {
    font-family: 'Courier New', monospace;
    font-size: 1.6em;
    color: #00d4ff;
    letter-spacing: 8px;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    animation: textGlitch 3s ease-in-out infinite;
}

@keyframes textGlitch {
    0%, 90%, 100% { 
        text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    }
    92%, 94%, 96% { 
        text-shadow: 
            -2px 0 0 rgba(255, 0, 0, 0.5),
            2px 0 0 rgba(0, 255, 255, 0.5),
            0 0 20px rgba(0, 212, 255, 0.8);
    }
}

.planet-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.planet-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -20px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    animation: orbitRing 8s linear infinite;
}

.planet-image-wrapper::after {
    content: '';
    position: absolute;
    inset: -40px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    animation: orbitRing 12s linear infinite reverse;
}

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

.planet-modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(0, 212, 255, 0.4));
    animation: planetFloat 6s ease-in-out infinite;
}

@keyframes planetFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Right Panel: Planet Metrics */
.planet-modal-right {
    background: rgba(0, 20, 30, 0.6);
    border-left: 1px solid rgba(0, 212, 255, 0.3);
    padding: 30px 20px;
    overflow-y: auto;
}

.planet-metrics {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.planet-metric-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 2px solid #00d4ff;
    transition: all 0.2s ease;
}

.planet-metric-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-left-width: 4px;
    transform: translateX(2px);
}

.planet-metric-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6em;
    color: rgba(0, 212, 255, 0.7);
    letter-spacing: 1px;
    font-weight: 600;
}

.planet-metric-value {
    font-family: 'Courier New', monospace;
    font-size: 0.75em;
    color: #fff;
    line-height: 1.3;
}

/* Scanline effect on modal */
.planet-modal-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 212, 255, 0.05) 50%,
        transparent 100%
    );
    height: 100%;
    animation: scanline 4s linear infinite;
    pointer-events: none;
    z-index: 1000;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Buy Token Button - Sci-Fi Tech Style */
.buy-token-btn-container {
    margin-top: auto;
    padding-top: 20px;
}

.buy-token-btn {
    width: 100%;
    padding: 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid #00d4ff;
    color: #00d4ff;
    font-family: 'Courier New', monospace;
    font-size: 0.8em;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.buy-token-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    transform: translateY(-2px);
}

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

.btn-text {
    position: relative;
    z-index: 1;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Solar Gallery Modal - Compact Fancy Style */
.gallery-modal-content {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    padding: 20px;
    width: 85%;
    max-width: 900px;
    max-height: 85vh;
    box-shadow: 2px 2px 3px #000000b4;
    animation: slideIn 0.3s ease;
    overflow-y: auto;
    pointer-events: auto;
    margin: auto;
    position: relative;
    box-sizing: border-box;
}

.gallery-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-left: 2em;
}

.gallery-title::before {
    content: " ";
    width: 1.2rem;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 1.2em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 5px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0;
    border: 2px solid #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
}

.gallery-item:hover {
    transform: translateY(-2px);
    background: #000;
    border-color: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.close-gallery {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.close-gallery:hover,
.close-gallery:focus {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Responsive Modal */
@media (max-width: 1200px) {
    .planet-modal-grid {
        grid-template-columns: 250px 1fr 250px;
    }
    
    .planet-name-text {
        font-size: 1.4em;
        letter-spacing: 4px;
    }
}

@media (max-width: 968px) {
    .planet-modal-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        max-height: 90vh;
    }
    
    .planet-modal-left,
    .planet-modal-right {
        border: none;
        border-top: 1px solid rgba(0, 212, 255, 0.3);
        padding: 20px;
    }
    
    .planet-modal-center {
        padding: 30px 20px;
    }
    
    .planet-image-wrapper {
        max-width: 350px;
    }
    
    .planet-name-text {
        font-size: 1.2em;
        letter-spacing: 3px;
    }
    
    .planet-modal-left {
        order: 2;
    }
    
    .planet-modal-center {
        order: 1;
    }
    
    .planet-modal-right {
        order: 3;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .planet-modal-grid {
        max-height: 95vh;
    }
    
    .planet-image-wrapper {
        max-width: 280px;
    }
    
    .planet-name-text {
        font-size: 1em;
        letter-spacing: 2px;
    }
    
    .planet-data-value,
    .planet-metric-value {
        font-size: 0.65em;
    }
    
    .planet-description {
        font-size: 0.7em;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .gallery-modal-content {
        padding: 15px;
        width: 95%;
    }
    
    .gallery-title {
        font-size: 1.1em;
    }
    
    .leaderboard-modal-content {
        padding: 15px;
        width: 95%;
    }
    
    .leaderboard-title {
        font-size: 1.1em;
    }
    
    .leaderboard-item {
        padding: 10px 12px;
    }
    
    .leaderboard-rank {
        font-size: 1em;
        min-width: 40px;
    }
    
    .leaderboard-planet-name {
        font-size: 0.9em;
    }
    
    .leaderboard-marketcap {
        font-size: 0.9em;
    }
}

/* Info Modal - Compact Fancy Style */
.info-modal-content {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    padding: 20px;
    width: 85%;
    max-width: 500px;
    max-height: 85vh;
    box-shadow: 2px 2px 3px #000000b4;
    animation: slideIn 0.3s ease;
    overflow-y: auto;
    pointer-events: auto;
    margin: auto;
    position: relative;
    box-sizing: border-box;
}

.info-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-align: center;
    position: relative;
    padding-left: 2em;
}

.info-title::before {
    content: " ";
    width: 1.2rem;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 1.2em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
}

.info-content {
    color: #fff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    font-size: 0.9em;
}

.info-content p {
    margin-bottom: 12px;
    text-align: left;
}

.telegram-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.telegram-link:hover {
    color: #5b86e5;
    border-bottom-color: #5b86e5;
}

.close-info {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.close-info:hover,
.close-info:focus {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.close-dashboard {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.close-dashboard:hover,
.close-dashboard:focus {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Leaderboard Modal - Compact Fancy Style */
.leaderboard-modal-content {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    padding: 20px;
    width: 85%;
    max-width: 600px;
    max-height: 85vh;
    box-shadow: 2px 2px 3px #000000b4;
    animation: slideIn 0.3s ease;
    overflow-y: auto;
    pointer-events: auto;
    margin: auto;
    position: relative;
    box-sizing: border-box;
}

.leaderboard-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    padding-left: 2em;
}

.leaderboard-title::before {
    content: " ";
    width: 1.2rem;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 1.2em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
}

.leaderboard-subtitle {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 12px 15px 12px 45px;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.leaderboard-item::before {
    content: " ";
    width: 1.2rem;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 1.2em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
    transition: background 0.3s linear, width 0.3s linear;
}

.leaderboard-item:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-1px);
}

.leaderboard-item[style*="cursor: pointer"]:hover {
    background: #000;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.leaderboard-item:hover::before {
    width: 0.9375rem;
    background: #fff;
}

.leaderboard-rank {
    font-size: 1.1em;
    font-weight: 700;
    color: #fff;
    min-width: 50px;
    text-align: center;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
}

.leaderboard-planet-info {
    flex: 1;
    margin-left: 15px;
    padding-left: 1.5em;
}

.leaderboard-planet-name {
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.leaderboard-token-symbol {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.leaderboard-marketcap {
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
    margin-left: auto;
    padding-right: 5px;
}

.leaderboard-badge {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 1.2em;
    z-index: 10;
    line-height: 1;
    width: 24px;
    text-align: center;
}

.leaderboard-empty {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
}

.close-leaderboard {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.close-leaderboard:hover,
.close-leaderboard:focus {
    color: #00d4ff;
    background: rgba(0, 212, 255, 0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Responsive Leaderboard */
@media (max-width: 768px) {
    .leaderboard-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .leaderboard-title {
        font-size: 1.5em;
    }
    
    .leaderboard-item {
        padding: 15px;
    }
    
    .leaderboard-rank {
        font-size: 1.2em;
        min-width: 50px;
    }
    
    .leaderboard-planet-name {
        font-size: 1.1em;
    }
    
    .leaderboard-marketcap {
        font-size: 1.2em;
    }
}

/* Dashboard Modal - Compact Fancy Style */
.dashboard-modal-content {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 0;
    padding: 20px;
    width: 85%;
    max-width: 700px;
    max-height: 85vh;
    box-shadow: 2px 2px 3px #000000b4;
    animation: slideIn 0.3s ease;
    overflow-y: auto;
    pointer-events: auto;
    margin: auto;
    position: relative;
    box-sizing: border-box;
}

.dashboard-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    padding-left: 2em;
}

.dashboard-title::before {
    content: " ";
    width: 1.2rem;
    height: 2px;
    background: #fff;
    top: 50%;
    left: 1.2em;
    position: absolute;
    transform: translateY(-50%);
    transform-origin: center;
}

.dashboard-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dashboard-section-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    color: #fff;
    background: rgba(0, 212, 255, 0.1);
    padding: 10px 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    flex: 1;
    word-break: break-all;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: rgba(0, 212, 255, 0.2);
    border: 1px solid rgba(0, 212, 255, 0.4);
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: rgba(0, 212, 255, 0.4);
    border-color: #00d4ff;
    transform: scale(1.05);
}

.wallet-balance {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.stat-card {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.stat-token-name {
    font-size: 1em;
    font-weight: 700;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-align: center;
}

.stat-total,
.stat-last {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 0.9em;
    color: #fff;
    font-weight: 600;
}

.stat-time {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

.stat-tx {
    margin-top: 10px;
    text-align: center;
}

.tx-link,
.tx-link-small {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.75em;
    transition: all 0.3s ease;
    display: inline-block;
}

.tx-link:hover,
.tx-link-small:hover {
    color: #5b86e5;
    text-decoration: underline;
}

.tx-link-small {
    font-size: 0.7em;
}

.distributions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
}

.distribution-item {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    padding: 12px 15px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 10px;
    align-items: center;
    transition: all 0.3s ease;
}

.distribution-item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
}

.dist-token {
    font-weight: 600;
    color: #00d4ff;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.dist-amount {
    font-weight: 600;
    color: #fff;
    font-size: 0.9em;
}

.dist-time {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    text-align: right;
}

.dist-tx-count {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.5);
    grid-column: 1 / -1;
    margin-top: 5px;
}

.loading-stats,
.no-stats {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    padding: 20px;
    font-style: italic;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
    .dashboard-modal-content {
        padding: 15px;
        width: 95%;
    }
    
    .dashboard-title {
        font-size: 1.1em;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .wallet-info {
        flex-direction: column;
    }
    
    .wallet-address {
        font-size: 0.75em;
    }
    
    .distribution-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    
    .dist-time {
        text-align: left;
    }
}

/* Effets de particules en arrière-plan */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(0, 212, 255, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(0, 212, 255, 0.2), transparent),
        radial-gradient(2px 2px at 90% 40%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 33% 60%, rgba(0, 212, 255, 0.2), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(255, 255, 255, 0.2), transparent);
    background-size: 200% 200%;
    background-position: 0% 0%;
    animation: stars 20s ease infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes stars {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Dashboard Widget - Always Visible & Minimalist */
/* Next Distribution Timer */
.next-distribution-timer {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    z-index: 99;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.next-distribution-timer:hover {
    background: rgba(0, 0, 0, 0.75);
    border-color: rgba(0, 212, 255, 0.3);
}

.timer-label {
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 500;
}

.timer-value {
    font-size: 0.85em;
    color: #00d4ff;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Ajuster la position du dashboard widget pour ne pas chevaucher */
.dashboard-widget {
    position: fixed;
    bottom: 90px;
    right: 30px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 180px;
    max-width: 220px;
    z-index: 90;
    pointer-events: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.dashboard-widget:hover {
    background: rgba(0, 0, 0, 0.85);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 25px rgba(0, 212, 255, 0.2);
}

.dashboard-widget.collapsed {
    padding: 12px 16px;
    min-width: auto;
    max-width: none;
}

.dashboard-widget.collapsed .dashboard-widget-content {
    display: none;
}

.dashboard-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    cursor: pointer;
}

.dashboard-widget-title {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.dashboard-widget-toggle {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    line-height: 1;
}

.dashboard-widget-toggle:hover {
    color: #00d4ff;
}

.dashboard-widget-content {
    display: block;
}

.dashboard-widget-balance {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-widget-label {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dashboard-widget-value {
    font-size: 0.85em;
    color: #00d4ff;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.dashboard-widget-stats {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dashboard-widget-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.7em;
}

.widget-stat-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.widget-stat-value {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.9em;
}

/* Responsive Dashboard Widget */
@media (max-width: 768px) {
    .next-distribution-timer {
        bottom: 20px;
        right: 20px;
        padding: 6px 10px;
        min-width: 100px;
    }
    
    .timer-label {
        font-size: 0.55em;
    }
    
    .timer-value {
        font-size: 0.75em;
    }
    
    .dashboard-widget {
        bottom: 80px;
        right: 20px;
        min-width: 160px;
        max-width: 180px;
        padding: 10px 14px;
    }
    
    .dashboard-widget-title {
        font-size: 0.65em;
    }
    
    .dashboard-widget-value {
        font-size: 0.8em;
    }
}

/* Responsive */
@media (max-width: 768px) {
    header {
        top: 10px;
        padding: 15px 20px;
    }
    
    header h1 {
        font-size: 1.5em;
    }
    
    .controls {
        top: 10px;
        right: 10px;
        padding: 15px;
        min-width: 200px;
    }
    
    .planet-info {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

