/* ============================================
   VPN Dealer — Cyberpunk Neon Dark Theme
   ============================================ */

:root {
    --primary: #00E59B;
    --primary-dark: #00C785;
    --primary-light: #5EFFC1;
    --primary-rgb: 0, 229, 155;
    --accent: #00B4D8;
    --accent-rgb: 0, 180, 216;
    --accent2: #7B61FF;
    --bg-dark: #060910;
    --bg-card: #0C1018;
    --bg-card-hover: #121822;
    --bg-surface: #0A0E16;
    --text-primary: #EAF0F6;
    --text-secondary: #8B949E;
    --text-muted: #484F58;
    --success: #00E59B;
    --warning: #F0B429;
    --danger: #F85149;
    --border: rgba(var(--primary-rgb), 0.08);
    --border-active: rgba(var(--primary-rgb), 0.25);
    --gradient-primary: linear-gradient(135deg, #00E59B, #00B4D8);
    --gradient-glow: linear-gradient(135deg, rgba(var(--primary-rgb),0.15), rgba(var(--accent-rgb),0.08));
    --gradient-card: linear-gradient(160deg, rgba(var(--primary-rgb),0.04), rgba(var(--accent-rgb),0.02));
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 60px rgba(var(--primary-rgb), 0.1);
    --shadow-glow-strong: 0 0 80px rgba(var(--primary-rgb), 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Particle canvas ===== */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero:hover ~ #particles-canvas,
.hero #particles-canvas { pointer-events: auto; }

/* Ambient glow orbs */
body::before, body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
}
body::before {
    width: 600px; height: 600px;
    top: -200px; left: -100px;
    background: rgba(var(--primary-rgb), 0.06);
    animation: orbFloat1 20s ease-in-out infinite;
}
body::after {
    width: 500px; height: 500px;
    bottom: -200px; right: -100px;
    background: rgba(var(--accent-rgb), 0.05);
    animation: orbFloat2 25s ease-in-out infinite;
}
@keyframes orbFloat1 {
    0%,100% { transform: translate(0,0); }
    33% { transform: translate(100px, 80px); }
    66% { transform: translate(-50px, 120px); }
}
@keyframes orbFloat2 {
    0%,100% { transform: translate(0,0); }
    33% { transform: translate(-80px, -60px); }
    66% { transform: translate(60px, -100px); }
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.25rem; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.container-sm { max-width: 800px; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 14px 0;
    backdrop-filter: blur(24px) saturate(180%);
    background: rgba(6, 9, 16, 0.8);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled { padding: 8px 0; background: rgba(6, 9, 16, 0.95); box-shadow: var(--shadow-md); }
.navbar.navbar-hidden { transform: translateY(-100%); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.logo-icon {
    width: 38px; height: 38px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
    color: var(--text-secondary); font-weight: 500; font-size: 0.9rem;
    transition: var(--transition); position: relative; padding: 4px 0;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -2px; left: 50%; width: 0; height: 2px;
    background: var(--gradient-primary); transition: var(--transition); transform: translateX(-50%);
    border-radius: 1px;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: var(--transition); }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600;
    font-size: 0.95rem; border: none; cursor: pointer; transition: var(--transition);
    text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: 0.5s;
}
.btn:hover::before { left: 100%; }

.btn-primary {
    background: var(--gradient-primary); color: #060910; font-weight: 700;
    box-shadow: 0 4px 24px rgba(var(--primary-rgb), 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.45);
    color: #060910;
}
.btn-outline { background: transparent; border: 1.5px solid var(--border-active); color: var(--primary); }
.btn-outline:hover { background: rgba(var(--primary-rgb), 0.06); border-color: var(--primary); color: var(--text-primary); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: var(--text-primary); }
.btn-success { background: linear-gradient(135deg, #00E59B, #00C785); color: #060910; font-weight: 700; }
.btn-danger { background: linear-gradient(135deg, #F85149, #FF1744); color: white; }

.btn-lg { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ===== Hero ===== */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero .container { width: 100%; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.2); border-radius: 50px;
    font-size: 0.85rem; color: var(--primary); margin-bottom: 28px;
    animation: fadeInUp 0.6s ease-out;
}
.hero-badge .pulse-dot {
    width: 8px; height: 8px; background: var(--success);
    border-radius: 50%; animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.5);
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(var(--primary-rgb),0.5); }
    50% { opacity: 0.6; transform: scale(0.8); box-shadow: 0 0 16px rgba(var(--primary-rgb),0.8); }
}

.hero h1 { margin-bottom: 24px; animation: fadeInUp 0.7s ease-out 0.1s both; }
.hero .typing-text {
    color: var(--primary); border-right: 2px solid var(--primary);
    animation: blink 0.8s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary);
    max-width: 640px; margin: 0 auto 40px; animation: fadeInUp 0.7s ease-out 0.2s both;
    line-height: 1.7;
}

.hero-buttons {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: fadeInUp 0.7s ease-out 0.3s both;
}

.hero-stats {
    display: flex; justify-content: center; gap: 48px; margin-top: 72px;
    animation: fadeInUp 0.7s ease-out 0.5s both;
}
.hero-stat { text-align: center; }
.hero-stat-value {
    font-size: 2.2rem; font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    animation: fadeInUp 0.7s ease-out 0.7s both;
}
.scroll-indicator span {
    display: block; width: 24px; height: 38px; border: 2px solid var(--border-active);
    border-radius: 12px; position: relative;
}
.scroll-indicator span::before {
    content: ''; position: absolute; top: 6px; left: 50%; width: 4px; height: 8px;
    background: var(--primary); border-radius: 2px; transform: translateX(-50%);
    animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* ===== Sections ===== */
section { padding: 100px 0; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-secondary); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

/* ===== Marquee / Ticker ===== */
.marquee {
    overflow: hidden; padding: 20px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.015);
}
.marquee-track {
    display: flex; gap: 48px; animation: marqueeScroll 30s linear infinite;
    white-space: nowrap;
}
.marquee-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
    flex-shrink: 0;
}
.marquee-item span { color: var(--primary); font-size: 1.1rem; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== Features ===== */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.feature-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; transition: var(--transition);
    position: relative; overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 2px; background: var(--gradient-primary); opacity: 0;
    transition: var(--transition);
}
.feature-card::after {
    content: ''; position: absolute; top: -50%; right: -50%;
    width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.04), transparent 70%);
    opacity: 0; transition: var(--transition-slow);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-active); box-shadow: var(--shadow-glow); }
.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after { opacity: 1; }

.feature-icon {
    width: 52px; height: 52px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin-bottom: 18px;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}
.feature-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* ===== Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }

.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 40px 28px; text-align: center;
    transition: var(--transition-slow); position: relative;
    display: flex; flex-direction: column;
}
.pricing-card.popular {
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: var(--shadow-glow-strong);
    background: linear-gradient(160deg, rgba(var(--primary-rgb),0.06), var(--bg-card) 40%);
}
.pricing-card.popular::before {
    content: 'Хит продаж'; position: absolute; top: -1px; left: 50%;
    transform: translateX(-50%); background: var(--gradient-primary);
    color: #060910; padding: 6px 24px; font-size: 0.75rem; font-weight: 700;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    text-transform: uppercase; letter-spacing: 1px;
}
.pricing-card:hover { transform: translateY(-8px); border-color: var(--border-active); box-shadow: var(--shadow-glow); }

.pricing-devices { font-size: 3.2rem; font-weight: 800; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 4px; line-height: 1; }
.pricing-label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.pricing-price { font-size: 2.8rem; font-weight: 800; margin-bottom: 4px; }
.pricing-price span { font-size: 0.95rem; font-weight: 400; color: var(--text-muted); }
.pricing-period { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 28px; }

.pricing-features { list-style: none; margin-bottom: 32px; text-align: left; flex-grow: 1; }
.pricing-features li {
    padding: 8px 0; color: var(--text-secondary); font-size: 0.9rem;
    display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* ===== How it Works ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.steps-grid::before {
    content: ''; position: absolute; top: 36px; left: 12%; right: 12%;
    height: 2px; background: linear-gradient(90deg, transparent, var(--border-active), var(--border-active), transparent);
    z-index: 0;
}
.step-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px 24px; text-align: center;
    position: relative; z-index: 1; transition: var(--transition);
}
.step-card:hover { border-color: var(--border-active); transform: translateY(-4px); }
.step-number {
    width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem; font-weight: 700; color: #060910;
    margin: 0 auto 18px; box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}
.step-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step-card p { color: var(--text-secondary); font-size: 0.88rem; }

/* ===== Comparison / Versus ===== */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.comparison-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; position: relative;
}
.comparison-card.bad { border-color: rgba(248,81,73,0.15); }
.comparison-card.good { border-color: rgba(var(--primary-rgb), 0.2); box-shadow: var(--shadow-glow); }
.comparison-card h3 { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.comparison-list { list-style: none; }
.comparison-list li {
    padding: 10px 0; color: var(--text-secondary); font-size: 0.92rem;
    display: flex; align-items: flex-start; gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.comparison-list li:last-child { border: none; }
.comparison-list li .icon { flex-shrink: 0; font-size: 1rem; }

/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    border: 1px solid var(--border); border-radius: var(--radius);
    margin-bottom: 12px; overflow: hidden; background: var(--bg-card);
    transition: var(--transition);
}
.faq-item:hover { border-color: var(--border-active); }
.faq-question {
    padding: 20px 24px; cursor: pointer; display: flex; align-items: center;
    justify-content: space-between; font-weight: 600; font-size: 1rem;
    transition: var(--transition); user-select: none;
}
.faq-question::after {
    content: '+'; font-size: 1.4rem; color: var(--primary); transition: var(--transition);
    font-weight: 300; flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 20px; }
.faq-answer p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* ===== Trust / Logos ===== */
.trust-row {
    display: flex; align-items: center; justify-content: center; gap: 40px;
    flex-wrap: wrap; padding: 16px 0;
}
.trust-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); font-size: 0.9rem; font-weight: 500;
}
.trust-item .num { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(160deg, rgba(var(--primary-rgb),0.06), rgba(var(--accent-rgb),0.03));
    border: 1px solid var(--border-active);
    border-radius: var(--radius-xl);
    padding: 64px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: -50%; right: -25%;
    width: 400px; height: 400px; border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.05); filter: blur(60px);
}

/* ===== Footer ===== */
.footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 56px 0 24px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-secondary); margin-top: 14px; font-size: 0.88rem; max-width: 300px; line-height: 1.6; }
.footer h4 { margin-bottom: 16px; font-size: 0.95rem; color: var(--text-primary); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 0.88rem; }
.footer-links a:hover { color: var(--primary); }
.footer-legal { color: var(--text-muted); font-size: 0.78rem; margin-top: 16px; line-height: 1.8; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }

/* ===== Cards ===== */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }

/* ===== Forms ===== */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; color: var(--text-secondary); }
.form-control {
    width: 100%; padding: 12px 16px; background: var(--bg-surface);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text-primary); font-size: 0.95rem; font-family: inherit;
    transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238B949E' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ===== Cabinet ===== */
.cabinet-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding-top: 100px; min-height: 100vh; }
.cabinet-sidebar { position: sticky; top: 100px; height: fit-content; }
.cabinet-sidebar .card { padding: 24px; }
.user-info { text-align: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.user-avatar {
    width: 72px; height: 72px; border-radius: 50%; background: var(--gradient-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 12px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.25);
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cabinet-nav { list-style: none; }
.cabinet-nav li { margin-bottom: 2px; }
.cabinet-nav a {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border-radius: var(--radius-sm); color: var(--text-secondary);
    font-size: 0.92rem; transition: var(--transition);
}
.cabinet-nav a:hover, .cabinet-nav a.active { background: rgba(var(--primary-rgb), 0.06); color: var(--primary); }
.cabinet-content { padding-bottom: 40px; }

/* ===== Subscription ===== */
.subscription-card {
    background: var(--gradient-card); border: 1px solid var(--border-active);
    border-radius: var(--radius-lg); padding: 32px; margin-bottom: 24px;
}
.subscription-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 50px; font-size: 0.82rem; font-weight: 600; }
.status-active { background: rgba(var(--primary-rgb), 0.12); color: var(--success); }
.status-expired { background: rgba(248,81,73,0.12); color: var(--danger); }
.status-pending { background: rgba(240,180,41,0.12); color: var(--warning); }

.vpn-key-box {
    background: var(--bg-dark); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 16px; margin-top: 16px;
    position: relative; word-break: break-all;
    font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: var(--accent);
}
.copy-btn {
    position: absolute; top: 8px; right: 8px;
    background: rgba(var(--primary-rgb), 0.12); border: none;
    color: var(--primary); padding: 6px 12px; border-radius: 6px;
    cursor: pointer; font-size: 0.78rem; transition: var(--transition);
}
.copy-btn:hover { background: rgba(var(--primary-rgb), 0.25); }

/* ===== QR Payment ===== */
.qr-payment-section { text-align: center; }
.qr-code-container { background: white; padding: 20px; border-radius: var(--radius); display: inline-block; margin: 20px 0; }
.qr-code-container img, .qr-code-container canvas { display: block; }
.payment-info-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; margin-top: 16px; }
.payment-info-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.payment-info-row:last-child { border-bottom: none; }

/* ===== Admin ===== */
.admin-layout { padding-top: 100px; padding-bottom: 40px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 14px; }
.admin-stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.admin-stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }
.admin-stat-card .stat-label { color: var(--text-muted); font-size: 0.82rem; }

.admin-tabs { display: flex; gap: 4px; background: var(--bg-surface); border-radius: var(--radius-sm); padding: 4px; margin-bottom: 24px; overflow-x: auto; }
.admin-tab { padding: 10px 20px; border-radius: 8px; font-size: 0.88rem; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: var(--transition); border: none; background: none; white-space: nowrap; }
.admin-tab.active { background: var(--primary); color: #060910; font-weight: 600; }
.admin-tab:hover:not(.active) { color: var(--text-primary); background: rgba(var(--primary-rgb), 0.04); }
.admin-section { display: none; }
.admin-section.active { display: block; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.data-table th { color: var(--text-muted); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table tr:hover td { background: rgba(var(--primary-rgb), 0.02); }

/* ===== Toasts ===== */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 20px; min-width: 280px; box-shadow: var(--shadow-md); animation: slideInRight 0.3s ease-out; display: flex; align-items: center; gap: 10px; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.warning { border-left: 3px solid var(--warning); }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== Modal ===== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; max-width: 540px; width: 90%; max-height: 90vh; overflow-y: auto; transform: scale(0.9) translateY(20px); transition: var(--transition); }
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; padding: 4px; line-height: 1; }

/* ===== Animations ===== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.15s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.2s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.25s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.3s; }

.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Telegram Login ===== */
.tg-login-section { text-align: center; padding: 60px 20px; }
.tg-login-card { max-width: 420px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px 36px; }
.tg-icon { width: 72px; height: 72px; background: linear-gradient(135deg, #0088CC, #29B6F6); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 24px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .cabinet-layout { grid-template-columns: 1fr; }
    .cabinet-sidebar { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .steps-grid::before { display: none; }
    .comparison-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(6, 9, 16, 0.98); backdrop-filter: blur(24px);
        flex-direction: column; padding: 20px; gap: 12px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .mobile-toggle { display: flex; }
    .hero { padding: 130px 0 80px; min-height: auto; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .features-grid, .pricing-grid, .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    section { padding: 70px 0; }
    .scroll-indicator { display: none; }
    .admin-tabs { -webkit-overflow-scrolling: touch; }
    .data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 1.8rem; }
    .pricing-price { font-size: 2.2rem; }
    .modal { padding: 24px 20px; }
    .card { padding: 20px; }
    .cta-section { padding: 40px 20px; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; } .flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; } .justify-between { justify-content: space-between; }
.w-100 { width: 100%; } .overflow-hidden { overflow: hidden; }
