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

body {
    min-height: 100vh;
    background: radial-gradient(circle at 20% 30%, #0a0f1e, #03050a);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(0, 180, 219, 0.08) 0%, transparent 70%);
    animation: rotateBg 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(15, 25, 45, 0.55);
    backdrop-filter: blur(16px);
    border-radius: 3rem;
    border: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 255, 255, 0.1) inset;
    padding: 2rem;
    text-align: center;
}

.brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.logo {
    font-size: 2.8rem;
    filter: drop-shadow(0 0 8px cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { text-shadow: 0 0 0 cyan; }
    50% { text-shadow: 0 0 12px cyan; }
    100% { text-shadow: 0 0 0 cyan; }
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #88ddff, #00ccff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.gauges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.gauge-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

canvas {
    display: block;
    width: 150px;
    height: 150px;
}

.gauge-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: #bbd4ff;
}

.glow-button {
    position: relative;
    background: linear-gradient(135deg, #0066cc, #0099ff);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    border-radius: 3rem;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    width: 80%;
    max-width: 280px;
    margin: 0 auto 1rem auto;
    display: block;
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.5);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.glow-button:hover .btn-glow {
    left: 100%;
}

.glow-button:hover {
    transform: scale(1.02);
    box-shadow: 0 0 22px rgba(0, 160, 255, 0.8);
}

.glow-button:active {
    transform: scale(0.97);
}

.glow-button:disabled {
    opacity: 0.6;
    transform: scale(1);
    cursor: not-allowed;
}

.status-message {
    text-align: center;
    font-size: 0.85rem;
    background: rgba(0,0,0,0.4);
    padding: 0.6rem 1rem;
    border-radius: 2rem;
    display: inline-block;
    width: auto;
    margin: 0.5rem auto;
    color: #aad0ff;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,255,255,0.2);
}

/* Кнопка для IP */
.ip-box {
    margin: 1.5rem auto 0.5rem;
}

.ip-button {
    display: inline-block;
    background: linear-gradient(135deg, #004488, #0077cc);
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    border-radius: 3rem;
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.3);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    letter-spacing: 0.3px;
}

.ip-text {
    display: inline-block;
}

#clientIp {
    color: #00ffff;
    background: rgba(0, 255, 255, 0.15);
    padding: 0 8px;
    border-radius: 6px;
    margin-left: 4px;
}

.ip-country {
    display: block;
    margin-top: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #d0eaff;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* стиль для изображения флага */
.flag-img {
    height: 1.2em;
    vertical-align: middle;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(0, 200, 255, 0.6);
    margin-right: 6px;
}

footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.7rem;
    color: #5b738b;
    border-top: 1px solid rgba(100,200,255,0.2);
    padding-top: 1.2rem;
}

@media (max-width: 700px) {
    .container {
        padding: 1.2rem;
    }
    h1 {
        font-size: 2.2rem;
    }
    .logo {
        font-size: 2rem;
    }
    .glow-button {
        width: 100%;
    }
    .gauges {
        gap: 1rem;
    }
    canvas {
        width: 120px;
        height: 120px;
    }
    .ip-button {
        font-size: 1rem;
        padding: 0.6rem 1.5rem;
    }
    .ip-country {
        font-size: 1rem;
    }
}
