/* === XRayVless Main Stylesheet === */
/* Цветовая палитра: Red-Purple Neon */

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

:root {
    --bg: #09050f;
    --card: rgba(20, 10, 35, 0.7);
    --border: rgba(168, 85, 247, 0.15);
    --accent: linear-gradient(135deg, #a855f7 0%, #ef4444 100%);
    --accent-solid: #a855f7;
    --glow: rgba(168, 85, 247, 0.3);
    --text: #f5f3ff;
    --muted: #a78bfa;
    --radius: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(239, 68, 68, 0.06) 0%, transparent 50%);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* === HEADER === */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 16px 0;
    backdrop-filter: blur(16px);
    background: rgba(9, 5, 15, 0.85);
    border-bottom: 1px solid var(--border);
}
.header .container { display: flex; justify-content: space-between; align-items: flex-start; }
.logo { align-self: center; }
.logo { font-weight: 900; font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.logo { align-self: center; }
.logo span { background: var(--accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-btn {
    padding: 10px 24px; border-radius: 12px;
    background: var(--card); border: 1px solid var(--border);
    font-weight: 600; font-size: 0.9rem;
}
.nav-btn:hover { border-color: var(--accent-solid); box-shadow: 0 0 20px rgba(168, 85, 247, 0.2); }

/* === HERO === */
.hero { padding: 140px 0 60px; text-align: center; }
.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.1;
    margin-bottom: 20px; letter-spacing: -1px;
}
.hero h1 em {
    font-style: normal;
    background: var(--accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 25px var(--glow));
}
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 600px; margin: 0 auto 35px; }

.cta {
    display: inline-flex; padding: 18px 45px; border-radius: 16px;
    background: var(--accent); color: #fff;
    font-weight: 800; font-size: 1.1rem;
    box-shadow: 0 10px 35px var(--glow);
    transition: var(--transition);
}
.cta:hover { transform: translateY(-3px); box-shadow: 0 15px 45px rgba(168, 85, 247, 0.45); }

/* === NETWORK ANIMATION === */
.network-viz {
    width: 100%; max-width: 700px; height: 300px;
    margin: 30px auto 70px;
    display: flex; justify-content: center; align-items: center;
}
.network-svg { width: 100%; height: auto; min-height: 420px; display: block; }
.node-phone { fill: #1e1b4b; stroke: #a855f7; stroke-width: 2; filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.4)); }
.node-server-main { fill: #312e81; stroke: #c084fc; stroke-width: 2.5; filter: drop-shadow(0 0 12px rgba(192, 132, 252, 0.4)); }
.node-server-foreign { fill: #1e1b4b; stroke: #818cf8; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.3)); }
.line-connection { stroke: #4c1d95; stroke-width: 2.5; stroke-dasharray: 8 5; opacity: 0.5; }
.signal-dot { filter: drop-shadow(0 0 8px currentColor); }

/* === FEATURES === */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 90px; }
.feature {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 30px;
    backdrop-filter: blur(12px); transition: var(--transition);
    position: relative; overflow: hidden;
}
.feature::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: var(--accent); opacity: 0; transition: var(--transition);
}
.feature:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, 0.3); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); }
.feature:hover::before { opacity: 1; }
.feature-icon { font-size: 2rem; margin-bottom: 15px; }
.feature h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.9rem; }

/* === PRICING === */
.pricing-title { text-align: center; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 12px; }
.pricing-subtitle { text-align: center; color: var(--muted); margin-bottom: 45px; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-bottom: 90px; }

.plan {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px;
    backdrop-filter: blur(12px); transition: var(--transition);
    display: flex; flex-direction: column; position: relative;
}
.plan.popular { border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 0 30px rgba(168, 85, 247, 0.12); }
.plan.popular::after {
    content: 'ХИТ'; position: absolute; top: 14px; right: 14px;
    background: var(--accent); color: #fff;
    font-size: 0.7rem; font-weight: 800; padding: 4px 12px; border-radius: 20px;
}
.plan:hover { transform: translateY(-5px); border-color: rgba(168, 85, 247, 0.35); box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3); }
.plan-name { font-size: 1rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.plan-price {
    font-size: 2.6rem; font-weight: 900; margin-bottom: 4px;
    background: var(--accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.plan-period { color: var(--muted); font-size: 0.85rem; margin-bottom: 22px; }
.plan-features { list-style: none; margin-bottom: 28px; flex-grow: 1; }
.plan-features li { padding: 7px 0; color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--accent-solid); font-weight: 700; }

/* === FORMS & BUTTONS === */
.tg-input {
    width: 100%; padding: 14px; margin-bottom: 14px; border-radius: 12px;
    background: rgba(15, 10, 25, 0.9); border: 1px solid var(--border);
    color: #fff; font-size: 0.95rem; transition: var(--transition);
}
.tg-input:focus { outline: none; border-color: var(--accent-solid); box-shadow: 0 0 15px rgba(168, 85, 247, 0.2); }

.pay-btn {
    width: 100%; padding: 16px; border: none; border-radius: 12px;
    background: var(--accent); color: #fff;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: var(--transition); box-shadow: 0 6px 20px var(--glow);
}
.pay-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(168, 85, 247, 0.4); }
.pay-btn:disabled { background: #44403c; cursor: not-allowed; transform: none; box-shadow: none; }

.plan-status { display: none; margin-top: 14px; padding: 14px; border-radius: 12px; text-align: center; font-size: 0.85rem; backdrop-filter: blur(8px); }
.plan-status.loading { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.25); color: #c4b5fd; }
.plan-status.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.25); color: #fca5a5; }

/* === FOOTER === */
footer {
    border-top: 1px solid var(--border); padding: 45px 0;
    text-align: center; color: var(--muted); font-size: 0.85rem;
    background: rgba(9, 5, 15, 0.5); backdrop-filter: blur(10px);
}
footer a { margin: 0 10px; }
footer a:hover { color: #c084fc; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero { padding: 110px 0 40px; }
    .network-viz { height: 220px; margin: 20px auto 40px; }
    .cta { width: 100%; justify-content: center; padding: 16px 25px; }
    .plan-price { font-size: 2.2rem; }
}

/* Setup button in header */


/* Header buttons container */

/* Setup button in header */

@media (max-width: 768px) {
    .nav-btn {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }




@media (max-width: 768px) {
    .nav-btn {
        padding: 8px 14px !important;
        font-size: 0.8rem !important;
    }


@media (max-width: 768px) {


@media (max-width: 768px) {


.logo {
    align-self: center;
}



@media (max-width: 768px) {



@media (max-width: 768px) {

/* Mobile-only setup button in hero */

@media (max-width: 768px) {
    /* Show mobile button in hero */

/* Mobile setup button in hero */

@media (max-width: 768px) {

/* Mobile setup button in hero */

@media (max-width: 768px) {
