body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #05020a;
    color: #e2e8f0;
    overflow-x: hidden;
    margin: 0;
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

.cyber-font { font-family: 'Orbitron', sans-serif; }
.festive-font { font-family: 'ZCOOL KuaiLe', cursive; }

#bg-canvas {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; 
    background: linear-gradient(to bottom, #000000 0%, #1a0b2e 60%, #2d0a35 100%);
}

.glass-panel {
    background: rgba(10, 5, 20, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: 0 0 30px rgba(236, 72, 153, 0.2);
    border-radius: 1rem;
}

.horseshoe-card {
    background: rgba(30, 5, 40, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168, 85, 247, 0.4);
    border-radius: 2rem 2rem 1rem 1rem; 
    transition: all 0.3s ease;
}

.horseshoe-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.9);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.4);
}

.active-tab {
    background: linear-gradient(135deg, #db2777 0%, #9333ea 100%);
    color: white;
    border: 1px solid #f9a8d4;
    box-shadow: 0 0 20px rgba(219, 39, 119, 0.6);
    border-radius: 1rem;
}

.inactive-tab {
    background: rgba(255, 255, 255, 0.05);
    color: #f9a8d4;
    border: 1px solid rgba(236, 72, 153, 0.2);
    border-radius: 1rem;
}

.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, #f472b6, #a855f7, #22d3ee);
}

#chart-3d-wrapper {
    position: relative;
    width: 100%; height: 400px;
    overflow: hidden;
    border-radius: 2rem;
    background: rgba(0, 0, 0, 0.6); 
    border: 1px solid rgba(236, 72, 153, 0.3);
    z-index: 10; 
    touch-action: none;
}
#chart-3d-canvas { width: 100%; height: 100%; cursor: move; }

.odometer-box {
    display: inline-flex; flex-direction: column; align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #22d3ee;
    padding: 15px 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
    margin: 2rem auto;
    backdrop-filter: blur(4px);
    transition: all 0.5s ease;
}

.odometer-box.golden {
    border-color: #ffd700 !important;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.8) !important;
    background: rgba(20, 10, 0, 0.9);
    animation: pulseGold 2s infinite;
}

@keyframes pulseGold {
    0% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
    50% { box-shadow: 0 0 80px rgba(255, 215, 0, 1); }
    100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.odometer-label {
    color: #f472b6;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 5px;
    transition: color 0.5s;
}

.odometer-value {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(180deg, #fff 0%, #22d3ee 100%); 
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(34, 211, 238, 1);
}

.odometer-unit {
    font-size: 0.8rem; color: #22d3ee; font-weight: bold; margin-top: 5px; transition: color 0.5s;
}

.chat-window {
    width: 350px; height: 500px;
    border-radius: 1.5rem;
    display: none; flex-direction: column; overflow: hidden;
    background: rgba(20, 5, 25, 0.98);
    border: 1px solid rgba(236, 72, 153, 0.5);
    box-shadow: 0 0 60px rgba(236, 72, 153, 0.3);
    z-index: 100;
}
@media (max-width: 640px) { .chat-window { width: 90vw; height: 60vh; right: 5vw; bottom: 80px; } }
.chat-window.open { display: flex; animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

.ai-message { background: rgba(236, 72, 153, 0.1); color: #fbcfe8; border-left: 3px solid #db2777; }
.user-message { background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%); color: white; border-right: 3px solid #c4b5fd; }

.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }