/* ═══════════════════════════════════════════
   MaybePro VPN — Main Stylesheet
   ═══════════════════════════════════════════ */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --accent: #06b6d4;
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222240;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-bright: #ffffff;
    --border: #2d2d4a;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Gradient Text ─────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Header ────────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 15, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-bright);
    text-decoration: none;
}

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

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav a:hover { color: var(--text-bright); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* ── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover { color: var(--text-bright); }

.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ── Hero ──────────────────────────────────── */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-bright);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-bright);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Features ──────────────────────────────── */
.features, .how-it-works, .cta, .prices-page, .download-page, .faq-page, .cabinet {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-bright);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── Steps ─────────────────────────────────── */
.steps {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 8px;
    color: var(--text-bright);
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── CTA ───────────────────────────────────── */
.cta-card {
    background: linear-gradient(135deg, var(--primary-dark), #312e81);
    border-radius: var(--radius);
    padding: 60px;
    text-align: center;
}

.cta-card h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 12px;
}

.cta-card p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* ── Pricing ───────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.pricing-popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99,102,241,0.1), var(--bg-card));
    transform: scale(1.05);
}

.pricing-popular:hover { transform: scale(1.05) translateY(-4px); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-header h3 {
    font-size: 1.3rem;
    color: var(--text-bright);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-bright);
}

.price-currency {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.pricing-per {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

/* ── Download ──────────────────────────────── */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.download-icon { font-size: 3rem; margin-bottom: 12px; }

.download-card h3 {
    color: var(--text-bright);
    margin-bottom: 4px;
}

.download-app-name {
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 12px;
}

.download-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.setup-guide {
    margin-top: 80px;
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--border);
}

.setup-guide h2 {
    font-size: 1.5rem;
    color: var(--text-bright);
    margin-bottom: 30px;
    text-align: center;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.guide-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.guide-step-num {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.guide-step h4 {
    color: var(--text-bright);
    margin-bottom: 4px;
}

.guide-step p { color: var(--text-muted); }

/* ── News ──────────────────────────────────── */
.news-section { padding: 100px 0; }

.news-channel-card-centered {
    text-align: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.1));
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 40px 32px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.news-channel-card-centered .news-channel-icon { font-size: 3rem; margin-bottom: 12px; }

.news-channel-card-centered h3 {
    color: var(--text-bright);
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.news-channel-card-centered p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.3s;
}

.news-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 600;
    margin-bottom: 10px;
}

.news-card h4 {
    color: var(--text-bright);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.news-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ── FAQ ───────────────────────────────────── */
.faq-list {
    max-width: 800px;
    margin: 60px auto 0;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-card);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-bright);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.faq-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    padding: 0 24px;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-contact {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.faq-contact h3 {
    color: var(--text-bright);
    margin-bottom: 8px;
}

.faq-contact p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ── Cabinet ───────────────────────────────── */
.cabinet { padding-top: 120px; }

.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-avatar-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.user-info h1 {
    font-size: 1.5rem;
    color: var(--text-bright);
}

.user-username { color: var(--text-muted); }

.balance-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
}

.balance-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.balance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-bright);
}

.cabinet-section {
    margin-bottom: 40px;
}

.cabinet-section h2 {
    font-size: 1.3rem;
    color: var(--text-bright);
    margin-bottom: 20px;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.device-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.device-inactive { opacity: 0.6; }

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.device-name {
    font-weight: 600;
    color: var(--text-bright);
}

.device-status {
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.status-inactive {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.device-key {
    background: rgba(0,0,0,0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
}

.key-text {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    word-break: break-all;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}

.btn-copy:hover { background: var(--primary-dark); }

.device-footer { color: var(--text-muted); font-size: 0.85rem; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

.empty-icon { font-size: 3rem; margin-bottom: 16px; }

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    transition: all 0.2s;
    text-decoration: none;
}

.action-card:hover {
    border-color: var(--primary);
    color: var(--text-bright);
    transform: translateY(-2px);
}

.action-icon { font-size: 2rem; }

/* ── Modal ─────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%;
    max-width: 440px;
    padding: 0;
    animation: modalIn 0.2s;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 { color: var(--text-bright); }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body { padding: 24px; }

.topup-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.topup-btn {
    padding: 16px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.topup-btn:hover {
    border-color: var(--primary);
    background: rgba(99,102,241,0.1);
}

.topup-custom {
    display: flex;
    gap: 12px;
}

.topup-custom input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
}

.topup-custom input:focus { border-color: var(--primary); }

.topup-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: rgba(99,102,241,0.1);
    color: var(--text);
    text-align: center;
}

.topup-status.success { background: rgba(34,197,94,0.15); color: var(--success); }
.topup-status.error { background: rgba(239,68,68,0.15); color: var(--error); }

/* ── Footer ────────────────────────────────── */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: auto;
}

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

.footer-desc {
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--text-bright);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 8px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary-light); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav.open { display: flex; }

    .burger { display: flex; }

    .header-actions { display: none; }

    .hero h1 { font-size: 2.2rem; }
    .hero { padding: 120px 0 60px; }

    .hero-stats { gap: 30px; }
    .stat-value { font-size: 1.5rem; }

    .features-grid,
    .pricing-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .pricing-popular { transform: none; }
    .pricing-popular:hover { transform: translateY(-4px); }

    .steps { flex-direction: column; align-items: center; }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cabinet-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .balance-card { width: 100%; }

    .devices-grid { grid-template-columns: 1fr; }

    .section-title { font-size: 1.7rem; }

    .cta-card { padding: 40px 24px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .topup-amounts { grid-template-columns: 1fr; }
    .topup-custom { flex-direction: column; }
}
