
        :root {
            --primary: #ff9b05;
            --primary-hover: #ffa826;
            --accent: #04ced9;
            --bg: #0b0e14;
            --card-bg: rgba(22, 27, 34, 0.75);
            --border-color: #30363d;
            --text-main: #f0f6fc;
            --text-muted: #8b949e;
        }

        body {
            margin: 0;
            padding: 0;
            font-family: 'Inter', 'Roboto', sans-serif;
            background-color: var(--bg);
            color: var(--text-main);
            min-height: 100vh;
            overflow-x: hidden;
        }

        .main-content {
            display: flex;
            flex-direction: column;
            animation: fadeIn 0.4s ease;
        }

        /* HERO СЕКЦИЯ */
        .hero {
            min-height: 100vh;
            width: 100%;
            background: radial-gradient(circle at 50% 30%, rgba(255, 155, 5, 0.12) 0%, transparent 60%),
                        linear-gradient(180deg, rgba(11, 14, 20, 0.6) 0%, rgba(11, 14, 20, 0.98) 100%), 
                        url('/speed_test.jpg');
            background-repeat: no-repeat;
            background-position: center center;
            background-size: cover;
            
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 100px 20px 60px 20px;
            box-sizing: border-box;
            position: relative;
        }

        /* Статус сервера */
        .server-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(48, 54, 61, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            color: #adbac7;
            margin-bottom: 20px;
        }

        .status-dot {
            width: 8px;
            height: 8px;
            background-color: #3fb950;
            border-radius: 50%;
            box-shadow: 0 0 8px #3fb950;
        }

        h1 {
            font-family: 'Inter', sans-serif;
            font-size: clamp(2.8rem, 8vw, 4.5rem);
            text-transform: uppercase;
            margin: 0 0 10px 0;
            letter-spacing: 4px;
            color: #fff;
            line-height: 1.1;
        }

        h1 span { 
            color: var(--primary);
            background: linear-gradient(135deg, #ff9b05 0%, #ffc061 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .tagline {
            font-size: 1.15rem;
            color: var(--text-muted);
            margin-bottom: 35px;
            max-width: 620px;
            line-height: 1.6;
        }

        /* Кнопки */
        .btn-container {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            justify-content: center;
            margin-bottom: 40px;
        }

        .btn {
            padding: 16px 32px;
            font-family: 'Inter', sans-serif;
            font-size: 1.1rem;
            text-transform: uppercase;
            text-decoration: none;
            border-radius: 10px;
            transition: background 0.2s ease, transform 0.15s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
            border: none;
            letter-spacing: 0.5px;
        }

        .btn-download {
            background: var(--primary);
            color: #0d1117;
            font-weight: 700;
            box-shadow: 0 4px 20px rgba(255, 155, 5, 0.25);
        }

        .btn-download:hover {
            transform: translateY(-2px);
            background: var(--primary-hover);
        }

        .btn-tg { 
            background: rgba(36, 161, 222, 0.15); 
            color: #24A1DE; 
            border: 1px solid rgba(36, 161, 222, 0.4);
            font-weight: 700;
        }

        .btn-tg:hover { 
            background: #24A1DE; 
            color: #fff;
            transform: translateY(-2px); 
        }

        /* Быстрые метрики */
        .hero-stats {
            display: flex;
            gap: 40px;
            margin-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
            padding-top: 25px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .stat-value {
            font-family: 'Inter', sans-serif;
            font-size: 1.6rem;
            font-weight: 700;
            color: var(--text-main);
        }

        .stat-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* СЕКЦИЯ ПРЕИМУЩЕСТВ */
        .features {
            padding: 90px 20px;
            background: #0d1117;
            position: relative;
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-title h2 {
            font-family: 'Inter', sans-serif;
            font-size: 2.2rem;
            text-transform: uppercase;
            margin: 0 0 10px 0;
            letter-spacing: 2px;
        }

        .section-title p {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin: 0;
        }

        .features-grid {
            max-width: 1100px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }

        .f-card {
            background: var(--card-bg);
            padding: 35px 30px;
            border-radius: 14px;
            border: 1px solid var(--border-color);
            transition: border-color 0.2s ease, transform 0.2s ease;
            transform: translateZ(0);
        }

        .f-card:hover { 
            border-color: var(--primary); 
            transform: translateY(-4px); 
            background: rgba(22, 27, 34, 0.95);
        }

        .f-icon {
            width: 48px;
            height: 48px;
            background: rgba(255, 155, 5, 0.1);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            margin-bottom: 20px;
        }

        .f-card h3 { 
            color: var(--text-main); 
            margin: 0 0 12px 0; 
            font-family: 'Inter', sans-serif; 
            font-size: 1.3rem; 
            letter-spacing: 0.5px;
        }

        .f-card p { 
            font-size: 0.92rem; 
            color: var(--text-muted); 
            line-height: 1.6; 
            margin: 0; 
        }

        /* ФУТЕР */
        footer {
            padding: 40px 20px;
            text-align: center;
            border-top: 1px solid var(--border-color);
            font-size: 0.85rem;
            color: var(--text-muted);
            background: var(--bg);
        }

        /* МОДАЛЬНОЕ ОКНО (БЕЗ ЛАГОВ) */
        .auth-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.92);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            transform: translateZ(0);
            will-change: opacity;
        }

        .auth-card {
            background: #161b22;
            padding: 40px 30px 30px 30px;
            border-radius: 15px;
            border: 1px solid #30363d;
            width: 100%;
            max-width: 360px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
            text-align: center;
            position: relative;
            box-sizing: border-box;
            transform: translateZ(0);
        }

        .auth-close {
            position: absolute;
            top: 12px;
            right: 15px;
            font-size: 28px;
            color: #8b949e;
            cursor: pointer;
            line-height: 1;
            transition: color 0.15s ease;
            user-select: none;
        }

        .auth-close:hover { color: #f85149; }
        .auth-card h2 { color: #e6edf3; margin: 0 0 5px 0; font-size: 22px; font-family: 'Inter', sans-serif; }
        .auth-card p { color: #8b949e; font-size: 13px; margin-bottom: 20px; }

        .auth-input-group { margin-bottom: 15px; text-align: left; }
        .auth-input-group label { display: block; color: #adbac7; font-size: 12px; margin-bottom: 5px; margin-left: 2px; }
        
        .auth-input {
            width: 100%;
            padding: 12px;
            background: #0d1117;
            border: 1px solid #30363d;
            border-radius: 8px;
            color: #e6edf3;
            box-sizing: border-box;
            outline: none;
            font-size: 14px;
            font-family: inherit;
            transition: border-color 0.1s ease;
        }
        .auth-input:focus { border-color: var(--primary); }

        .auth-btn {
            width: 100%;
            padding: 12px;
            background: var(--primary);
            color: #000;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            font-family: 'Inter', sans-serif;
            font-size: 1rem;
            cursor: pointer;
            margin-top: 10px;
            transition: background 0.15s ease;
        }
        .auth-btn:hover { background: var(--primary-hover); }
        
        .auth-error {
            background: rgba(248, 81, 73, 0.1);
            color: #f85149;
            border: 1px solid rgba(248, 81, 73, 0.4);
            padding: 10px;
            border-radius: 6px;
            font-size: 13px;
            margin-bottom: 15px;
            display: none;
        }

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    

/* CSP-safe modal state */
.auth-overlay.is-open{display:flex !important}
.auth-error.is-visible{display:block !important}


/* Password reveal control */
.password-field {
    position: relative;
    width: 100%;
}

.password-field .auth-input,
.password-field .core-input,
.password-field .form-control {
    padding-right: 48px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8b949e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
}

.password-toggle:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.06);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.password-eye {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-eye-closed { display: none; }
.password-toggle.is-visible .password-eye-open { display: none; }
.password-toggle.is-visible .password-eye-closed { display: block; }

.auth-privacy {
    margin: 12px 2px 0;
    color: #6e7681;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.auth-privacy a,
.footer-privacy-link {
    color: var(--primary);
    text-decoration: none;
}

.auth-privacy a:hover,
.footer-privacy-link:hover {
    text-decoration: underline;
    color: #ffffff;
}

.footer-separator {
    margin: 0 7px;
    color: #30363d;
}

.footer-privacy-link {
    white-space: nowrap;
}

/* Hide browser-native password reveal/clear controls so only the project's custom eye is shown. */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}
