:root {
    --bg-color: #141526;
    --card-bg: #1e1f3a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-cyan: #00f2ff;
    --accent-purple: #bd00ff;
    --gauge-bg: #2a2b45;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.highlight {
    color: var(--accent-cyan);
}

.server-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gauge-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 40px;
}

.gauge-bg, .gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid var(--gauge-bg);
}

.gauge-fill {
    border-color: transparent;
    border-top-color: var(--accent-cyan);
    border-right-color: var(--accent-purple);
    transform: rotate(-45deg);
    transition: transform 0.2s ease-out;
    opacity: 0;
}

.gauge-fill.active {
    opacity: 1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gauge-cover {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 260px;
    height: 260px;
    background-color: var(--bg-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.start-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-size: 2rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.start-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.05);
}

.speed-display {
    display: none;
    flex-direction: column;
    align-items: center;
}

.speed-display.visible {
    display: flex;
}

#current-speed {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
}

.unit {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

.status-panel {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 600px;
}

.stat-box {
    text-align: center;
}

.stat-box .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.stat-box .value {
    font-size: 1.5rem;
    font-weight: 600;
}

.unit-small {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

footer {
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.provider-info {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.provider-info .ip {
    color: var(--text-primary);
}
