:root {
    --red: #e63946;
    --red-dark: #c1121f;
    --red-glow: rgba(230, 57, 70, 0.3);
    --bg: #0a0a0a;
    --bg2: #111111;
    --bg3: #1a1a1a;
    --border: rgba(255,255,255,0.08);
    --text: #f0f0f0;
    --text2: #888;
    --white: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.accent { color: var(--red); }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: rgba(10,10,10,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-icon { font-size: 1.5rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--red);
    color: white;
}
.btn-primary:hover {
    background: var(--red-dark);
    box-shadow: 0 0 20px var(--red-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-lg { padding: 0.8rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── HERO ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(230,57,70,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 30% 30%, rgba(230,57,70,0.06) 0%, transparent 60%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    background: rgba(230,57,70,0.1);
    border: 1px solid rgba(230,57,70,0.3);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--red);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.hero-sub {
    color: var(--text2);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Rajdhani', sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.stat-label { font-size: 0.75rem; color: var(--text2); }
.stat-div { width: 1px; height: 2rem; background: var(--border); }

/* VPN Card */
.vpn-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 0 60px rgba(230,57,70,0.1);
}

.vpn-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.vpn-status {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34,197,94,0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.vpn-card-server {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.flag { font-size: 2rem; }
.server-name { font-weight: 600; }
.server-proto { font-size: 0.75rem; color: var(--text2); }
.server-ping { margin-left: auto; color: #22c55e; font-size: 0.85rem; font-weight: 600; }

.vpn-card-btn {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: white;
    text-align: center;
    padding: 0.9rem;
    border-radius: 12px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 20px var(--red-glow);
}

/* ── SECTIONS ── */
section { padding: 5rem 0; }

.section-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

/* ── FEATURES ── */
.features { background: var(--bg2); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.8rem;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: rgba(230,57,70,0.4);
    transform: translateY(-2px);
}

.feature-icon { font-size: 2rem; margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text2); font-size: 0.9rem; }

/* ── PRICING ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.pricing-popular {
    border-color: var(--red);
    box-shadow: 0 0 30px var(--red-glow);
}

.pricing-badge {
    position: absolute;
    top: -12px; right: 1.5rem;
    background: var(--red);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-name { color: var(--text2); margin-bottom: 0.5rem; }
.pricing-price { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; }
.pricing-period { color: var(--text2); font-size: 0.85rem; margin-bottom: 1.5rem; }
.pricing-features { list-style: none; margin-bottom: 1.5rem; }
.pricing-features li { padding: 0.4rem 0; font-size: 0.9rem; color: var(--text2); }

/* ── FAQ ── */
.faq { background: var(--bg2); }

.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
}

.faq-q {
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.faq-a { color: var(--text2); font-size: 0.9rem; }

/* ── CTA ── */
.cta {
    text-align: center;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(230,57,70,0.1) 0%, transparent 70%);
}

.cta h2 { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; margin-bottom: 0.8rem; }
.cta p { color: var(--text2); margin-bottom: 2rem; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-desc { color: var(--text2); font-size: 0.85rem; margin-top: 0.8rem; }
.footer h4 { font-size: 0.85rem; font-weight: 600; color: var(--text2); margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.footer a { display: block; color: var(--text2); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.4rem; }
.footer a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; color: var(--text2); font-size: 0.8rem; }

/* ── AUTH ── */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1rem 2rem;
    background: radial-gradient(ellipse 60% 60% at 50% 30%, rgba(230,57,70,0.08) 0%, transparent 70%);
}

.auth-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.auth-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.3rem; text-align: center; }
.auth-sub { color: var(--text2); font-size: 0.85rem; text-align: center; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; color: var(--text2); margin-bottom: 0.4rem; }
.form-group input {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--red); }

.auth-divider {
    text-align: center;
    position: relative;
    margin: 1.5rem 0;
    color: var(--text2);
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.tg-login-wrap { display: flex; justify-content: center; margin-bottom: 1.5rem; }

.auth-switch { text-align: center; font-size: 0.85rem; color: var(--text2); margin-top: 1rem; }
.auth-switch a { color: var(--red); text-decoration: none; }

.alert {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.alert-error { background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.3); color: #ff6b6b; }

/* ── DASHBOARD ── */
.dashboard {
    min-height: 100vh;
    padding-top: 5rem;
}

.dash-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0 1.5rem;
}

.dash-header h1 { font-family: 'Rajdhani', sans-serif; font-size: 1.8rem; font-weight: 700; }
.dash-welcome { color: var(--text2); font-size: 0.9rem; }

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.dash-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.8rem;
}

.dash-card-title { font-weight: 600; margin-bottom: 1.2rem; font-size: 1rem; }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
.status-trial { background: rgba(234,179,8,0.1); border: 1px solid rgba(234,179,8,0.3); color: #eab308; }
.status-active { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.status-expired { background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.3); color: var(--red); }

.sub-info { margin-top: 0.5rem; }
.sub-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.sub-row span:last-child { color: var(--text2); }

.no-sub { color: var(--text2); font-size: 0.9rem; margin-bottom: 1rem; }

.key-hint { color: var(--text2); font-size: 0.85rem; margin-bottom: 0.8rem; }
.key-box {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    overflow: hidden;
}
.key-box code {
    font-size: 0.7rem;
    color: var(--text2);
    word-break: break-all;
    font-family: monospace;
    display: block;
    max-height: 60px;
    overflow: hidden;
}

.devices-info { margin-bottom: 1.2rem; }
.device-count { display: flex; align-items: baseline; gap: 0.5rem; }
.count-num { font-family: 'Rajdhani', sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--red); }
.count-label { color: var(--text2); font-size: 0.9rem; }

.apps-title { font-size: 0.8rem; color: var(--text2); margin-bottom: 0.5rem; }
.app-link { display: block; color: var(--text2); text-decoration: none; font-size: 0.85rem; padding: 0.3rem 0; transition: color 0.2s; }
.app-link:hover { color: var(--red); }

.account-info { font-size: 0.9rem; }
.account-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
.account-row span:last-child { color: var(--text2); }

.dash-instructions { grid-column: 1 / -1; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { display: flex; align-items: flex-start; gap: 0.8rem; }
.step-num {
    min-width: 2rem; height: 2rem;
    background: var(--red);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif; font-weight: 700;
    font-size: 0.9rem;
}
.step-text { font-size: 0.85rem; color: var(--text2); }
.step-text strong { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .nav-links .btn { display: none; }
}

/* fix: hero-bg не должен перекрывать клики */
.hero-bg {
    pointer-events: none;
}

/* hero — центрирование без правой колонки */
.hero .container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-content {
    max-width: 680px;
}

.hero-sub {
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    justify-content: center;
}

.hero-bg {
    pointer-events: none;
}

/* navbar — кнопка Попробовать белым текстом */
.navbar .btn-primary {
    color: #ffffff !important;
}
