body {
    background-color: #1c2430;
    color: #e8ecf1;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
}

.card {
    background-color: #232b38;
    border-radius: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #8a94a6;
    text-transform: uppercase;
}

.kpi-label {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: #8a94a6;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 26px;
    font-weight: 600;
}

.chat-bubble {
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    margin-bottom: 8px;
    max-width: 88%;
    line-height: 1.4;
}

.chat-bubble.user {
    background-color: rgba(58, 74, 102, 0.2);
    color: #dbe2ea;
    margin-left: auto;
}

.chat-bubble.bot {
    background-color: #2e3846;
    color: #dbe2ea;
}

@keyframes rotate-sphere {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

@keyframes fade-in-out {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

.demo-sphere {
    width: 160px; height: 160px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #3a4658, #1c2430);
    margin: 60px auto 30px;
    position: relative;
    box-shadow: inset -10px -10px 30px rgba(0,0,0,0.5);
}

.demo-dot {
    position: absolute; width: 8px; height: 8px; border-radius: 50%;
    animation: fade-in-out 4s ease-in-out infinite;
}

.demo-caption {
    text-align: center; color: #8a94a6; font-size: 13px;
    animation: fade-in-out 4s ease-in-out infinite;
}

.continue-btn {
    background: #3a6b4a;
    color: white;
    cursor: pointer;
    opacity: 1;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.continue-btn:hover:not(:disabled) {
    background: #4a8a5e;
}

.continue-btn:disabled {
    background: #2e3846;
    color: #5a6478;
    cursor: not-allowed;
    opacity: 0.6;
}

.thin-scroll {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.thin-scroll:hover {
    scrollbar-color: #3a4658 transparent;
}

.thin-scroll::-webkit-scrollbar {
    width: 5px;
}

.thin-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.thin-scroll::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}

.thin-scroll:hover::-webkit-scrollbar-thumb {
    background: #3a4658;
}

.viewer-toggle-btn {
    background: transparent;
    color: #8a94a6;
    border: 1px solid #3a4658;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    cursor: pointer;
}

.viewer-toggle-active {
    background: #3a6b4a;
    color: white;
    border-color: #3a6b4a;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 4px solid #2e3846;
    border-top: 4px solid #238636;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.cluster-card {
    transition: background 0.15s ease;
}

.cluster-card:hover {
    background: #232b38 !important;
}

#scan-3d-graph .js-plotly-plot {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}