:root {
    --bg-dark: #0a0b1e;
    --bg-panel: #141526;
    --neon-cyan: #00f3ff;
    --neon-purple: #bc13fe;
    --neon-pink: #ff00ff;
    --text-white: #ffffff;
    --text-gray: #8a8b9c;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Rajdhani', sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

#bgCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.app-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.top-bar {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.server-selector {
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

.gauge-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
}

.gauge-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1);
}

.gauge-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    bottom: -5px;
    left: -5px;
    right: -5px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--neon-cyan);
    border-right-color: var(--neon-purple);
    animation: spin 3s linear infinite;
}

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

.gauge-center {
    text-align: center;
    z-index: 1;
}

.speed-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: var(--text-white);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.speed-label {
    font-size: 1.2rem;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    margin-top: 10px;
}

.status-indicator {
    position: absolute;
    bottom: 60px;
    font-size: 1.2rem;
    color: var(--neon-pink);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.big-start-btn {
    width: 120px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 243, 255, 0.05);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    z-index: 10;
    position: relative;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.big-start-btn:hover {
    background: rgba(0, 243, 255, 0.15);
    box-shadow: 0 0 30px var(--neon-cyan), inset 0 0 10px var(--neon-cyan);
    transform: translateY(-2px) scale(1.05);
    letter-spacing: 2px;
}

.big-start-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

.live-results {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.live-stat {
    text-align: center;
    color: var(--text-gray);
    width: 140px;
}

.live-stat i {
    font-size: 1.5rem;
    color: var(--neon-purple);
    margin-bottom: 10px;
}

.stat-info .label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-info .val {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text-white);
    display: block;
    width: 100%;
    text-align: center;
    height: 40px;
    line-height: 40px;
}

.stat-info .unit {
    font-size: 0.9rem;
    display: block;
    color: var(--neon-cyan);
    margin-top: -5px;
}

.bottom-bar {
    background-color: var(--bg-panel);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon { font-size: 2rem; color: var(--text-gray); }
.info-label { font-size: 0.7rem; color: var(--text-gray); letter-spacing: 1px; margin-bottom: 2px; }
.info-value { font-size: 1.1rem; color: var(--neon-cyan); font-weight: 500; }
.info-sub { font-size: 0.9rem; color: var(--text-white); }
.test-id { text-align: right; }

@media (max-width: 600px) {
    .live-results { gap: 20px; }
    .bottom-bar { flex-direction: column; gap: 20px; text-align: center; }
    .test-id { text-align: center; }
    .gauge-wrapper { width: 280px; height: 280px; }
}
