:root {
    --bg-dark: #050610;
    --bg-panel: rgba(13, 14, 33, 0.85);
    --bg-item: rgba(255, 255, 255, 0.05);
    --bg-item-hover: rgba(255, 255, 255, 0.1);
    --primary-cyan: #00f2ff;
    --primary-purple: #7000ff;
    --text-main: #e0e0ff;
    --text-dim: #94a3b8;
    --accent-yellow: #ffcc00;
    --glass-border: rgba(255, 255, 255, 0.1);
    --hud-glow: 0 0 20px rgba(0, 242, 255, 0.4);
}

/* Custom Scrollbar Universal */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-cyan) transparent;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-cyan), var(--primary-purple));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--primary-cyan);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

/* UI Overlays should allow clicking through to canvas unless on an actual button */
.top-bar, .bottom-info, .install-banner {
    pointer-events: none;
}

.top-bar *, .side-panel *, .bottom-info *, .install-banner * {
    pointer-events: auto;
}

/* Top Bar Styles */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(5, 6, 16, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.top-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--primary-cyan);
}

.user-guide {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-container {
    flex: 1;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin: 0 2rem;
}

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

.nav-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    padding: 5px 12px;
    border-radius: 4px;
}

.nav-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav-btn i {
    font-size: 0.8rem;
    color: var(--primary-purple);
}

.search-box {
    width: 480px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    height: 30px;
}

.search-box i {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0 10px;
    width: 100%;
    outline: none;
    font-size: 0.8rem;
}

.top-tools {
    display: flex;
    gap: 0.5rem;
}

.top-tools button, .top-right button {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: 0.2s;
}

.top-tools button:hover, .top-right button:hover {
    background: var(--bg-item-hover);
    color: #fff;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 2px;
    padding-right: 1rem;
    border-right: 1px solid var(--glass-border);
}

.system-controls {
    display: flex;
    gap: 0.5rem;
}

.system-controls button:nth-child(3) {
    color: var(--primary-cyan);
}

/* Side Panel Styles */
.side-panel {
    position: fixed;
    top: 70px;
    left: 10px;
    bottom: 10px;
    width: 260px;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
}

.side-panel.collapsed {
    transform: translateX(-110%);
}

.nav-label {
    font-size: 0.6rem;
    color: var(--text-dim);
    padding: 10px 15px 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 700;
}

.side-panel::-webkit-scrollbar {
    display: none;
}

.panel-section {
    padding: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.menu-item {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 2px;
    transition: 0.2s;
}

.menu-item i {
    width: 16px;
    text-align: center;
}

.menu-item:hover {
    background: var(--bg-item-hover);
    color: #fff;
}

.menu-item.active {
    background: linear-gradient(to right, rgba(112, 0, 255, 0.3), transparent);
    color: #fff;
    border-left: 2px solid var(--primary-purple);
}

.planet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 15px;
}

.planet-btn {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.planet-btn:hover {
    background: var(--bg-item-hover);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.planet-btn i {
    font-size: 1rem;
    color: var(--primary-cyan);
}

.menu-item i.arrow {
    margin-left: auto;
    font-size: 0.6rem;
    opacity: 0.5;
}

.beta-tag {
    background: rgba(255, 204, 0, 0.2);
    color: var(--accent-yellow);
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

.collapse-btn {
    margin-bottom: 10px;
    font-weight: 500;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    font-size: 0.8rem;
    color: var(--text-dim);
    cursor: pointer;
}

.switch {
    width: 24px;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    margin-left: auto;
    position: relative;
}

.switch::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: 0.3s;
}

.toggle-row.active .switch {
    background: var(--primary-cyan);
}

.toggle-row.active .switch::after {
    left: 13px;
}

.follow-status {
    margin-left: auto;
    font-size: 0.6rem;
    color: var(--primary-cyan);
    font-weight: 700;
}

/* Sub-Panels Styling */
.sub-panel {
    position: fixed;
    top: 70px;
    left: 280px;
    width: 320px;
    background: var(--bg-panel);
    backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    z-index: 90;
    display: none;
    flex-direction: column;
    max-height: calc(100vh - 150px);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.sub-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sub-header h3 {
    font-size: 1rem;
    font-weight: 600;
}

.close-sub, .close-x {
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
}

.sub-search {
    padding: 1rem;
    position: relative;
}

.sub-search i {
    position: absolute;
    left: 1.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.8rem;
}

.sub-search input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 10px 8px 35px;
    color: #fff;
    font-size: 0.8rem;
}

.sub-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.sub-content::-webkit-scrollbar {
    width: 4px;
}

.sub-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.group-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary-purple);
    padding: 1rem 1.5rem 0.5rem;
    letter-spacing: 1px;
}

.sub-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    border-left: 2px solid transparent;
}

.item-text h4 {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.item-text p {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.toggle-switch {
    width: 32px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-left: auto;
    position: relative;
}

.toggle-switch.active {
    background: var(--primary-cyan);
}

.list-item {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.list-item:hover {
    background: var(--bg-item-hover);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.dot.active { background: #00ff00; box-shadow: 0 0 10px #00ff00; }
.dot.blue { background: var(--primary-cyan); }

.year, .dist {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-dim);
}

/* Gravity Sandbox Specifics */
.projectile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 1.5rem;
}

.proj-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.proj-btn.active {
    border-color: var(--primary-cyan);
    background: rgba(0, 242, 255, 0.1);
}

.btn-group {
    display: flex;
    gap: 4px;
    padding: 0 1.5rem;
    margin-top: 10px;
}

.btn-group button {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 6px;
    font-size: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
}

.wide-btn {
    width: calc(100% - 3rem);
    margin: 10px 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

/* Scenario Tour Specifics */
.scenario-card {
    margin: 0 1rem 1rem;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
}

.scenario-card.purple { border-left: 4px solid var(--primary-purple); }
.scenario-card.blue { border-left: 4px solid var(--primary-cyan); }

.card-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.card-body h4 { font-size: 0.9rem; margin-bottom: 4px; }
.card-body p { font-size: 0.7rem; color: var(--text-dim); }
.card-body .desc { margin-top: 8px; line-height: 1.4; }

.slider-group {
    padding: 10px 15px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.slider-val {
    color: var(--accent-yellow);
}

input[type=range] {
    width: 100%;
    height: 3px;
    appearance: none;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--accent-yellow);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
}

#night-slider {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    height: 6px !important;
    border-radius: 10px;
    outline: none;
}

#night-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary-cyan);
    transition: 0.3s;
}

#night-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--primary-cyan);
}

.panel-footer {
    padding: 1rem;
    margin-top: auto;
}

.panel-footer button {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    padding: 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
}

/* Bottom Overlay Info */
.bottom-info {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4rem;
    text-align: center;
    z-index: 50;
    pointer-events: none;
}



.distance-info, .location-info {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 2px;
}

.big-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin-top: 5px;
}

.loc-title {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 2px;
}

/* Install Banner */
.install-banner {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--bg-panel);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.banner-content i {
    color: var(--primary-cyan);
}

.install-btn {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.close-banner {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.2rem;
    cursor: pointer;
}

/* 3D Label Styling */
.planet-label, .star-label {
    color: #fff;
    font-family: 'Outfit', sans-serif;
    padding: 4px 10px;
    background: rgba(13, 14, 33, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    white-space: nowrap;
    transition: 0.3s;
    font-weight: 500;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.star-label {
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 9px !important;
}

.planet-label span, .star-label span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 8px;
}
.planet-label span.blue, .star-label span.blue, .planet-label span:not([class]), .star-label span:not([class]) { background: var(--primary-cyan); box-shadow: 0 0 10px var(--primary-cyan); }
.planet-label span.purple, .star-label span.purple { background: var(--primary-purple); box-shadow: 0 0 10px var(--primary-purple); }
.planet-label span.white, .star-label span.white { background: #fff; box-shadow: 0 0 10px #fff; }
.planet-label span.yellow, .star-label span.yellow { background: #ffcc00; box-shadow: 0 0 10px #ffcc00; }
.planet-label span.cyan, .star-label span.cyan { background: #00ffcc; box-shadow: 0 0 10px #00ffcc; }

.star-label span:not([class]) {
    background: #fff;
    width: 3px;
    height: 3px;
    opacity: 0.5;
}

.planet-label:hover {
    background: rgba(112, 0, 255, 0.4);
    border-color: var(--primary-cyan);
    transform: scale(1.1) !important;
}

#telemetry-hud {
    background: rgba(13, 14, 33, 0.7);
    backdrop-filter: blur(25px);
    box-shadow: var(--hud-glow);
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.slider-group input[type=range] {
    cursor: pointer;
}

.slider-group input[type=range]:active {
    cursor: grabbing;
}

/* Modals & Special Panels */
.modal {
    backdrop-filter: blur(25px);
    background: rgba(5, 6, 16, 0.8) !important;
    border: 1px solid rgba(0, 242, 255, 0.2) !important;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.glass-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
    cursor: pointer;
    width: 100%;
}

.glass-select option, .glass-select optgroup {
    background: #0d0e21;
    color: white;
}

.glass-select optgroup {
    font-weight: bold;
    color: var(--primary-cyan);
}

#telemetry-hud {
    background: rgba(5, 6, 20, 0.85);
    backdrop-filter: blur(50px);
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    border: 1px solid rgba(0, 242, 255, 0.4);
    border-radius: 20px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    padding: 25px;
    display: none;
    flex-direction: column;
    z-index: 5000;
}

.ui-hidden .top-bar, 
.ui-hidden .side-panel, 
.ui-hidden .bottom-info, 
.ui-hidden #planet-info-card, 
.ui-hidden .sub-panel, 
.ui-hidden #telemetry-hud, 
.ui-hidden #search-results,
.ui-hidden .planet-label,
.ui-hidden .star-label {
    display: none !important;
}

.sub-panel {
    z-index: 2000; /* Ensure it is above the sidebar but below modals */
}

.list-item {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.2s ease;
}

.list-item span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
    background: var(--primary-cyan);
    box-shadow: 0 0 8px var(--primary-cyan);
}

.list-item span.purple { background: var(--primary-purple); box-shadow: 0 0 8px var(--primary-purple); }
.list-item span.white { background: #fff; box-shadow: 0 0 8px #fff; }

.list-item:hover {
    background: rgba(0, 242, 255, 0.1);
    padding-left: 22px;
}

kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-family: monospace;
    margin: 0 2px;
    color: var(--primary-cyan);
}

.guide-section ul {
    list-style: none;
}

.guide-section li {
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.wide-btn i {
    margin-right: 8px;
}

/* UI Layout Additions for VelonSpace Replica */
.top-center { display: flex; align-items: center; gap: 20px; justify-content: center; }
.search-box { display: flex; align-items: center; background: rgba(255,255,255,0.05); padding: 8px 15px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); width: 480px; }
.search-box input { background: transparent; border: none; color: white; outline: none; margin-left: 10px; width: 100%; }
.nav-tabs { display: flex; gap: 15px; }
.tab-btn { background: transparent; border: none; color: var(--text-dim); cursor: pointer; font-size: 0.9rem; font-weight: 600; transition: 0.3s; display: flex; align-items: center; gap: 6px; }
.tab-btn.active, .tab-btn:hover { color: white; }

.social-icons { display: flex; gap: 15px; margin-right: 20px; font-size: 1.2rem; color: var(--text-dim); cursor: pointer; }
.social-icons i:hover { color: white; }

.sidebar { width: 300px; height: calc(100vh - 70px); position: fixed; top: 70px; left: 0; background: #050610; padding: 20px 0; display: flex; flex-direction: column; overflow-y: auto; border-right: 1px solid rgba(255,255,255,0.05); z-index: 1000;}
.menu-list { padding: 0 15px; }
.menu-item { padding: 10px 15px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 5px; transition: 0.3s; }
.menu-item i { width: 25px; }
.menu-item .arrow { margin-left: auto; font-size: 0.7rem; }
.menu-item.active, .menu-item:hover { background: rgba(255,255,255,0.05); color: white; }

.section-title { font-size: 0.7rem; color: var(--text-dim); font-weight: 700; margin: 20px 15px 10px; letter-spacing: 1px; }

.solar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 15px; }
.grid-btn { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 12px 0; color: white; cursor: pointer; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.grid-btn:hover, .grid-btn.active { background: rgba(255,255,255,0.1); border-color: var(--primary-cyan); }

.view-toggles { padding: 15px; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); margin-top: 20px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 0.85rem; color: var(--text-dim); cursor: pointer; transition: 0.3s; }
.toggle-row.active { color: white; }
.toggle-row i { width: 20px; }

.time-control { padding: 20px 15px; }
.time-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
#time-slider { width: 100%; cursor: pointer; }

.sub-panel { position: fixed; top: 70px; left: 300px; width: 320px; height: calc(100vh - 70px); background: #080915; border-right: 1px solid rgba(255,255,255,0.05); flex-direction: column; display: none; z-index: 900; }
.sub-search { padding: 15px; }
.glass-input { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 10px 15px; color: white; outline: none; }

.info-card { position: fixed; bottom: 30px; right: 30px; width: 360px; padding: 25px; border-radius: 0; background: rgba(5,6,16,0.8); border: 1px solid var(--primary-cyan); box-shadow: inset 0 0 20px rgba(0,242,255,0.1); z-index: 1000; backdrop-filter: blur(15px); }
.info-card h2 { color: var(--primary-cyan); margin-bottom: 10px; font-size: 1.5rem; letter-spacing: 2px; text-transform: uppercase; }
.info-card .desc { font-size: 0.85rem; color: var(--text-dim); line-height: 1.5; margin-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.stat-item { display: flex; flex-direction: column; }
.stat-item label { font-size: 0.6rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.stat-item span { font-size: 0.85rem; color: white; font-weight: 600; }
.close-card { position: absolute; top: 15px; right: 15px; background: transparent; border: none; color: white; cursor: pointer; font-size: 1.2rem; }
.close-card:hover { color: var(--primary-cyan); }
#info-media { width: 100%; height: 200px; background: rgba(255,255,255,0.05); margin-bottom: 20px; overflow: hidden; display: none; border: 1px solid rgba(0,242,255,0.2); }
#info-media img { width: 100%; height: 100%; object-fit: cover; }

/* Header Fixes */
.icon-btn-text { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: white; border-radius: 20px; padding: 6px 12px; font-size: 0.8rem; font-family: 'Outfit', sans-serif; cursor: pointer; transition: 0.3s; margin-left: 15px; }
.icon-btn-text:hover { background: rgba(255,255,255,0.1); }
.top-right { display: flex; align-items: center; }
.nav-icons { display: flex; gap: 10px; }
.search-suggestions { position: absolute; top: 100%; left: 0; width: 100%; margin-top: 10px; border-radius: 12px; overflow: hidden; z-index: 2000; display: none; max-height: 300px; overflow-y: auto; }

/* Inmersive Aesthetic Overhaul */
/* Original Planet Label Styles */
.planet-label {
    position: absolute;
    color: var(--text-main);
    font-size: 0.8rem;
    pointer-events: auto;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 6px;
}
.planet-label span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    background: var(--primary-cyan);
    box-shadow: 0 0 6px var(--primary-cyan);
}
.planet-label span.yellow { background: var(--accent-yellow); box-shadow: 0 0 6px var(--accent-yellow); }
.planet-label span.white { background: #fff; box-shadow: 0 0 6px #fff; }
.planet-label span.purple { background: var(--primary-purple); box-shadow: 0 0 6px var(--primary-purple); }

/* Inmersive Aesthetic Overhaul (Stars & Missions) */
.star-label {
    position: absolute;
    color: #ffcc66;
    font-size: 0.65rem;
    font-weight: 500;
    pointer-events: auto;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.star-label:hover { opacity: 1; }
.star-label .crosshair {
    width: 8px;
    height: 8px;
    border: 1px solid #ffcc66;
    border-radius: 50%;
    position: relative;
    display: inline-block;
}
.star-label .crosshair::after {
    content: ''; position: absolute; top: 50%; left: 50%; width: 2px; height: 2px; background: #ffcc66; transform: translate(-50%, -50%); border-radius: 50%;
}

/* --- Quiz Custom Styles --- */
.level-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.level-btn:hover {
    transform: translateX(10px);
    background: rgba(255,255,255,0.1) !important;
}
.level-btn[data-level="beginner"]:hover { border-color: var(--primary-cyan); }
.level-btn[data-level="intermediate"]:hover { border-color: var(--accent-yellow); }
.level-btn[data-level="advanced"]:hover { border-color: #ff5500; }

.option-btn {
    transition: all 0.2s ease;
}
.option-btn:hover {
    background: rgba(255,255,255,0.15) !important;
    transform: scale(1.02);
    border-color: rgba(255,255,255,0.5) !important;
}

#quiz-container {
    animation: quizAppear 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes quizAppear {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
