{% extends "base.html" %}
{% block title %}Roadmap Dev - Viral Social Pro{% endblock %}
{% block nav_roadmapdev %}active{% endblock %}
{% block page_title %}Roadmap Dev{% endblock %}
{% block page_subtitle %}12 Modulos Micro-SaaS | Plano de Execucao Completo{% endblock %}

{% block content %}
<div class="space-y-6 animate-fade-up">
    <!-- Hero Card -->
    <div class="glass-card rounded-2xl p-6 md:p-8 text-center">
        <div class="inline-flex items-center justify-center w-16 h-16 rounded-2xl gradient-brand mb-4">
            <i data-lucide="target" class="w-8 h-8 text-white"></i>
        </div>
        <h1 class="text-2xl md:text-3xl font-extrabold text-white mb-2">ROADMAP DE <span class="text-gradient">DESENVOLVIMENTO 2026</span></h1>
        <p class="text-white/50 text-sm max-w-2xl mx-auto">12 modulos micro-SaaS em arquitetura monolito modular. Plano completo com 603+ funcionalidades, cronograma de 4 ondas e log de desenvolvimento.</p>
        <div class="flex flex-wrap justify-center gap-3 mt-5">
            <div class="glass-light rounded-xl px-4 py-2">
                <p class="text-lg font-bold text-brand-400">12</p>
                <p class="text-[10px] text-white/40">Modulos</p>
            </div>
            <div class="glass-light rounded-xl px-4 py-2">
                <p class="text-lg font-bold text-accent-pink">603+</p>
                <p class="text-[10px] text-white/40">Features</p>
            </div>
            <div class="glass-light rounded-xl px-4 py-2">
                <p class="text-lg font-bold text-accent-cyan">4</p>
                <p class="text-[10px] text-white/40">Ondas</p>
            </div>
            <div class="glass-light rounded-xl px-4 py-2">
                <p class="text-lg font-bold text-accent-green">12</p>
                <p class="text-[10px] text-white/40">Meses</p>
            </div>
        </div>
    </div>

    <!-- Progress Overview Cards -->
    <div class="grid grid-cols-2 md:grid-cols-4 gap-3">
        <!-- Onda 1 -->
        <div class="glass-card rounded-xl p-4 border-l-4 border-brand-400">
            <div class="flex items-center gap-2 mb-2">
                <div class="w-6 h-6 rounded-lg bg-brand-500/20 flex items-center justify-center">
                    <span class="text-xs font-bold text-brand-400">1</span>
                </div>
                <span class="text-xs font-bold text-white/70">ONDA 1</span>
            </div>
            <p class="text-[10px] text-white/40 mb-1">Validacao Rapida</p>
            <div class="flex items-center gap-2">
                <div class="flex-1 h-2 rounded-full bg-white/10">
                    <div class="h-2 rounded-full gradient-brand" style="width: 60%"></div>
                </div>
                <span class="text-xs font-bold text-brand-400">60%</span>
            </div>
            <p class="text-[10px] text-white/30 mt-1">ViralScan, ShopIntel, TrendRadar</p>
        </div>
        <!-- Onda 2 -->
        <div class="glass-card rounded-xl p-4 border-l-4 border-accent-pink">
            <div class="flex items-center gap-2 mb-2">
                <div class="w-6 h-6 rounded-lg bg-pink-500/20 flex items-center justify-center">
                    <span class="text-xs font-bold text-accent-pink">2</span>
                </div>
                <span class="text-xs font-bold text-white/70">ONDA 2</span>
            </div>
            <p class="text-[10px] text-white/40 mb-1">Criacao</p>
            <div class="flex items-center gap-2">
                <div class="flex-1 h-2 rounded-full bg-white/10">
                    <div class="h-2 rounded-full bg-gradient-to-r from-pink-500 to-rose-500" style="width: 23%"></div>
                </div>
                <span class="text-xs font-bold text-accent-pink">23%</span>
            </div>
            <p class="text-[10px] text-white/30 mt-1">ScriptGenius, SpyCompetitor, Academy</p>
        </div>
        <!-- Onda 3 -->
        <div class="glass-card rounded-xl p-4 border-l-4 border-accent-cyan">
            <div class="flex items-center gap-2 mb-2">
                <div class="w-6 h-6 rounded-lg bg-cyan-500/20 flex items-center justify-center">
                    <span class="text-xs font-bold text-accent-cyan">3</span>
                </div>
                <span class="text-xs font-bold text-white/70">ONDA 3</span>
            </div>
            <p class="text-[10px] text-white/40 mb-1">Automacao</p>
            <div class="flex items-center gap-2">
                <div class="flex-1 h-2 rounded-full bg-white/10">
                    <div class="h-2 rounded-full bg-gradient-to-r from-cyan-500 to-blue-500" style="width: 0%"></div>
                </div>
                <span class="text-xs font-bold text-accent-cyan">0%</span>
            </div>
            <p class="text-[10px] text-white/30 mt-1">PostPilot, DarkFactory, EngageBot</p>
        </div>
        <!-- Onda 4 -->
        <div class="glass-card rounded-xl p-4 border-l-4 border-accent-orange">
            <div class="flex items-center gap-2 mb-2">
                <div class="w-6 h-6 rounded-lg bg-orange-500/20 flex items-center justify-center">
                    <span class="text-xs font-bold text-accent-orange">4</span>
                </div>
                <span class="text-xs font-bold text-white/70">ONDA 4</span>
            </div>
            <p class="text-[10px] text-white/40 mb-1">Escala</p>
            <div class="flex items-center gap-2">
                <div class="flex-1 h-2 rounded-full bg-white/10">
                    <div class="h-2 rounded-full bg-gradient-to-r from-orange-500 to-amber-500" style="width: 0%"></div>
                </div>
                <span class="text-xs font-bold text-accent-orange">0%</span>
            </div>
            <p class="text-[10px] text-white/30 mt-1">AutoFlow, CreatorCRM, AgencyHub</p>
        </div>
    </div>

    <!-- Module Status Grid -->
    <div class="glass-card rounded-2xl p-4 md:p-6">
        <div class="flex items-center gap-3 mb-4">
            <div class="w-8 h-8 rounded-lg gradient-brand flex items-center justify-center">
                <i data-lucide="layout-grid" class="w-4 h-4 text-white"></i>
            </div>
            <h2 class="font-bold text-white/90 text-sm">Status dos 12 Modulos</h2>
        </div>
        <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3">
            <!-- Module 1 -->
            <div class="glass-light rounded-xl p-4 hover:bg-brand-500/10 transition cursor-pointer" onclick="document.getElementById('mod-1').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-brand-500/20 flex items-center justify-center">
                            <i data-lucide="search" class="w-3.5 h-3.5 text-brand-400"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">ViralScan</p>
                            <p class="text-[10px] text-white/40">Scanner & Descoberta</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-brand-400 bg-brand-500/10 px-2 py-1 rounded-lg">70%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full gradient-brand" style="width: 70%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 1 | ALTA prioridade</p>
            </div>
            <!-- Module 2 -->
            <div class="glass-light rounded-xl p-4 hover:bg-brand-500/10 transition cursor-pointer" onclick="document.getElementById('mod-2').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-brand-500/20 flex items-center justify-center">
                            <i data-lucide="radar" class="w-3.5 h-3.5 text-brand-400"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">TrendRadar</p>
                            <p class="text-[10px] text-white/40">Tendencias em Tempo Real</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-brand-400 bg-brand-500/10 px-2 py-1 rounded-lg">50%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full gradient-brand" style="width: 50%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 1 | ALTA prioridade</p>
            </div>
            <!-- Module 3 -->
            <div class="glass-light rounded-xl p-4 hover:bg-pink-500/10 transition cursor-pointer" onclick="document.getElementById('mod-3').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-pink-500/20 flex items-center justify-center">
                            <i data-lucide="pen-tool" class="w-3.5 h-3.5 text-accent-pink"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">ScriptGenius</p>
                            <p class="text-[10px] text-white/40">Criacao com IA</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-white/40 bg-white/5 px-2 py-1 rounded-lg">0%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full bg-pink-500/30" style="width: 0%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 2 | ALTA prioridade</p>
            </div>
            <!-- Module 4 -->
            <div class="glass-light rounded-xl p-4 hover:bg-cyan-500/10 transition cursor-pointer" onclick="document.getElementById('mod-4').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-cyan-500/20 flex items-center justify-center">
                            <i data-lucide="film" class="w-3.5 h-3.5 text-accent-cyan"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">DarkFactory</p>
                            <p class="text-[10px] text-white/40">Dark Channels Pipeline</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-white/40 bg-white/5 px-2 py-1 rounded-lg">0%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full bg-cyan-500/30" style="width: 0%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 3 | MEDIA prioridade</p>
            </div>
            <!-- Module 5 -->
            <div class="glass-light rounded-xl p-4 hover:bg-brand-500/10 transition cursor-pointer" onclick="document.getElementById('mod-5').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-brand-500/20 flex items-center justify-center">
                            <i data-lucide="shopping-bag" class="w-3.5 h-3.5 text-brand-400"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">ShopIntel</p>
                            <p class="text-[10px] text-white/40">TikTok Shop Intelligence</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-brand-400 bg-brand-500/10 px-2 py-1 rounded-lg">60%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full gradient-brand" style="width: 60%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 1 | ALTA prioridade</p>
            </div>
            <!-- Module 6 -->
            <div class="glass-light rounded-xl p-4 hover:bg-pink-500/10 transition cursor-pointer" onclick="document.getElementById('mod-6').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-pink-500/20 flex items-center justify-center">
                            <i data-lucide="eye" class="w-3.5 h-3.5 text-accent-pink"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">SpyCompetitor</p>
                            <p class="text-[10px] text-white/40">Espionagem de Concorrentes</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-accent-pink bg-pink-500/10 px-2 py-1 rounded-lg">40%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full bg-gradient-to-r from-pink-500 to-rose-500" style="width: 40%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 2 | MEDIA prioridade</p>
            </div>
            <!-- Module 7 -->
            <div class="glass-light rounded-xl p-4 hover:bg-cyan-500/10 transition cursor-pointer" onclick="document.getElementById('mod-7').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-cyan-500/20 flex items-center justify-center">
                            <i data-lucide="calendar" class="w-3.5 h-3.5 text-accent-cyan"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">PostPilot</p>
                            <p class="text-[10px] text-white/40">Calendario & Publicacao</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-white/40 bg-white/5 px-2 py-1 rounded-lg">0%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full bg-cyan-500/30" style="width: 0%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 3 | MEDIA prioridade</p>
            </div>
            <!-- Module 8 -->
            <div class="glass-light rounded-xl p-4 hover:bg-cyan-500/10 transition cursor-pointer" onclick="document.getElementById('mod-8').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-cyan-500/20 flex items-center justify-center">
                            <i data-lucide="message-circle" class="w-3.5 h-3.5 text-accent-cyan"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">EngageBot</p>
                            <p class="text-[10px] text-white/40">Engajamento & DMs</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-white/40 bg-white/5 px-2 py-1 rounded-lg">0%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full bg-cyan-500/30" style="width: 0%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 3 | BAIXA prioridade</p>
            </div>
            <!-- Module 9 -->
            <div class="glass-light rounded-xl p-4 hover:bg-orange-500/10 transition cursor-pointer" onclick="document.getElementById('mod-9').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-orange-500/20 flex items-center justify-center">
                            <i data-lucide="users" class="w-3.5 h-3.5 text-accent-orange"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">CreatorCRM</p>
                            <p class="text-[10px] text-white/40">Influencers & Parcerias</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-white/40 bg-white/5 px-2 py-1 rounded-lg">0%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full bg-orange-500/30" style="width: 0%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 4 | BAIXA prioridade</p>
            </div>
            <!-- Module 10 -->
            <div class="glass-light rounded-xl p-4 hover:bg-orange-500/10 transition cursor-pointer" onclick="document.getElementById('mod-10').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-orange-500/20 flex items-center justify-center">
                            <i data-lucide="workflow" class="w-3.5 h-3.5 text-accent-orange"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">AutoFlow</p>
                            <p class="text-[10px] text-white/40">Automacao & AI Agents</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-white/40 bg-white/5 px-2 py-1 rounded-lg">0%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full bg-orange-500/30" style="width: 0%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 4 | BAIXA prioridade</p>
            </div>
            <!-- Module 11 -->
            <div class="glass-light rounded-xl p-4 hover:bg-orange-500/10 transition cursor-pointer" onclick="document.getElementById('mod-11').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-orange-500/20 flex items-center justify-center">
                            <i data-lucide="building" class="w-3.5 h-3.5 text-accent-orange"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">AgencyHub</p>
                            <p class="text-[10px] text-white/40">White-Label Agencias</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-white/40 bg-white/5 px-2 py-1 rounded-lg">0%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full bg-orange-500/30" style="width: 0%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 4 | BAIXA prioridade</p>
            </div>
            <!-- Module 12 -->
            <div class="glass-light rounded-xl p-4 hover:bg-pink-500/10 transition cursor-pointer" onclick="document.getElementById('mod-12').scrollIntoView({behavior:'smooth'})">
                <div class="flex items-center justify-between mb-2">
                    <div class="flex items-center gap-2">
                        <div class="w-7 h-7 rounded-lg bg-pink-500/20 flex items-center justify-center">
                            <i data-lucide="graduation-cap" class="w-3.5 h-3.5 text-accent-pink"></i>
                        </div>
                        <div>
                            <p class="text-sm font-bold text-white/90">ViralAcademy</p>
                            <p class="text-[10px] text-white/40">Educacao & Coaching IA</p>
                        </div>
                    </div>
                    <span class="text-xs font-bold text-accent-pink bg-pink-500/10 px-2 py-1 rounded-lg">30%</span>
                </div>
                <div class="h-1.5 rounded-full bg-white/10">
                    <div class="h-1.5 rounded-full bg-gradient-to-r from-pink-500 to-rose-500" style="width: 30%"></div>
                </div>
                <p class="text-[10px] text-white/30 mt-2">Onda 2 | MEDIA prioridade</p>
            </div>
        </div>
    </div>

    <!-- Quick Nav -->
    <div class="glass-card rounded-2xl p-4" x-data="{ open: false }">
        <button @click="open = !open" class="flex items-center justify-between w-full text-left">
            <div class="flex items-center gap-3">
                <div class="w-8 h-8 rounded-lg gradient-ocean flex items-center justify-center">
                    <i data-lucide="list" class="w-4 h-4 text-white"></i>
                </div>
                <span class="font-bold text-white/90 text-sm">Navegacao Rapida - Detalhes dos Modulos</span>
            </div>
            <i data-lucide="chevron-down" class="w-4 h-4 text-white/40 transition-transform" :class="open && 'rotate-180'"></i>
        </button>
        <div x-show="open" x-transition class="mt-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-2">
            <a href="#mod-1" class="glass-light rounded-xl px-4 py-3 hover:bg-brand-500/10 transition flex items-center gap-3">
                <i data-lucide="search" class="w-4 h-4 text-brand-400"></i>
                <span class="text-sm text-white/70">1. ViralScan (70%)</span>
            </a>
            <a href="#mod-2" class="glass-light rounded-xl px-4 py-3 hover:bg-brand-500/10 transition flex items-center gap-3">
                <i data-lucide="radar" class="w-4 h-4 text-brand-400"></i>
                <span class="text-sm text-white/70">2. TrendRadar (50%)</span>
            </a>
            <a href="#mod-3" class="glass-light rounded-xl px-4 py-3 hover:bg-pink-500/10 transition flex items-center gap-3">
                <i data-lucide="pen-tool" class="w-4 h-4 text-accent-pink"></i>
                <span class="text-sm text-white/70">3. ScriptGenius (0%)</span>
            </a>
            <a href="#mod-4" class="glass-light rounded-xl px-4 py-3 hover:bg-cyan-500/10 transition flex items-center gap-3">
                <i data-lucide="film" class="w-4 h-4 text-accent-cyan"></i>
                <span class="text-sm text-white/70">4. DarkFactory (0%)</span>
            </a>
            <a href="#mod-5" class="glass-light rounded-xl px-4 py-3 hover:bg-brand-500/10 transition flex items-center gap-3">
                <i data-lucide="shopping-bag" class="w-4 h-4 text-brand-400"></i>
                <span class="text-sm text-white/70">5. ShopIntel (60%)</span>
            </a>
            <a href="#mod-6" class="glass-light rounded-xl px-4 py-3 hover:bg-pink-500/10 transition flex items-center gap-3">
                <i data-lucide="eye" class="w-4 h-4 text-accent-pink"></i>
                <span class="text-sm text-white/70">6. SpyCompetitor (40%)</span>
            </a>
            <a href="#mod-7" class="glass-light rounded-xl px-4 py-3 hover:bg-cyan-500/10 transition flex items-center gap-3">
                <i data-lucide="calendar" class="w-4 h-4 text-accent-cyan"></i>
                <span class="text-sm text-white/70">7. PostPilot (0%)</span>
            </a>
            <a href="#mod-8" class="glass-light rounded-xl px-4 py-3 hover:bg-cyan-500/10 transition flex items-center gap-3">
                <i data-lucide="message-circle" class="w-4 h-4 text-accent-cyan"></i>
                <span class="text-sm text-white/70">8. EngageBot (0%)</span>
            </a>
            <a href="#mod-9" class="glass-light rounded-xl px-4 py-3 hover:bg-orange-500/10 transition flex items-center gap-3">
                <i data-lucide="users" class="w-4 h-4 text-accent-orange"></i>
                <span class="text-sm text-white/70">9. CreatorCRM (0%)</span>
            </a>
            <a href="#mod-10" class="glass-light rounded-xl px-4 py-3 hover:bg-orange-500/10 transition flex items-center gap-3">
                <i data-lucide="workflow" class="w-4 h-4 text-accent-orange"></i>
                <span class="text-sm text-white/70">10. AutoFlow (0%)</span>
            </a>
            <a href="#mod-11" class="glass-light rounded-xl px-4 py-3 hover:bg-orange-500/10 transition flex items-center gap-3">
                <i data-lucide="building" class="w-4 h-4 text-accent-orange"></i>
                <span class="text-sm text-white/70">11. AgencyHub (0%)</span>
            </a>
            <a href="#mod-12" class="glass-light rounded-xl px-4 py-3 hover:bg-pink-500/10 transition flex items-center gap-3">
                <i data-lucide="graduation-cap" class="w-4 h-4 text-accent-pink"></i>
                <span class="text-sm text-white/70">12. ViralAcademy (30%)</span>
            </a>
        </div>
    </div>

    <!-- Markdown Content (Full Details) -->
    <div class="glass-card rounded-2xl p-4 md:p-8">
        <div class="mega-plano-content">
            {{ html_content|safe }}
        </div>
    </div>

    <!-- Back to top -->
    <div class="text-center pb-8">
        <a href="#" class="inline-flex items-center gap-2 px-6 py-3 rounded-xl gradient-brand text-white font-semibold text-sm hover:opacity-90 transition">
            <i data-lucide="arrow-up" class="w-4 h-4"></i>
            Voltar ao Topo
        </a>
    </div>
</div>

<style>
    .mega-plano-content {
        color: rgba(255,255,255,0.75);
        line-height: 1.8;
        font-size: 14px;
    }
    .mega-plano-content h1 {
        font-size: 1.75rem;
        font-weight: 800;
        color: #fff;
        margin: 2.5rem 0 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid rgba(124,58,237,0.2);
        background: linear-gradient(135deg, #a78bfa, #ec4899);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    .mega-plano-content h1:first-child {
        margin-top: 0;
    }
    .mega-plano-content h2 {
        font-size: 1.35rem;
        font-weight: 700;
        color: #c4b5fd;
        margin: 2rem 0 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(124,58,237,0.1);
    }
    .mega-plano-content h3 {
        font-size: 1.1rem;
        font-weight: 700;
        color: #a78bfa;
        margin: 1.5rem 0 0.5rem;
    }
    .mega-plano-content h4 {
        font-size: 1rem;
        font-weight: 600;
        color: #8b5cf6;
        margin: 1rem 0 0.5rem;
    }
    .mega-plano-content p {
        margin: 0.5rem 0;
    }
    .mega-plano-content strong {
        color: #fff;
        font-weight: 700;
    }
    .mega-plano-content em {
        color: #ec4899;
    }
    .mega-plano-content a {
        color: #7c3aed;
        text-decoration: underline;
        text-underline-offset: 2px;
    }
    .mega-plano-content a:hover {
        color: #a78bfa;
    }
    .mega-plano-content ul, .mega-plano-content ol {
        margin: 0.5rem 0;
        padding-left: 1.5rem;
    }
    .mega-plano-content li {
        margin: 0.25rem 0;
    }
    .mega-plano-content ul li {
        list-style: disc;
    }
    .mega-plano-content ol li {
        list-style: decimal;
    }
    .mega-plano-content ul li::marker {
        color: #7c3aed;
    }
    .mega-plano-content ol li::marker {
        color: #7c3aed;
        font-weight: 700;
    }
    .mega-plano-content blockquote {
        border-left: 3px solid #7c3aed;
        padding: 0.75rem 1rem;
        margin: 1rem 0;
        background: rgba(124,58,237,0.08);
        border-radius: 0 12px 12px 0;
        color: rgba(255,255,255,0.6);
        font-style: italic;
    }
    .mega-plano-content code {
        background: rgba(124,58,237,0.15);
        color: #c4b5fd;
        padding: 2px 6px;
        border-radius: 6px;
        font-size: 13px;
        font-family: 'Fira Code', monospace;
    }
    .mega-plano-content pre {
        background: rgba(5,2,8,0.8);
        border: 1px solid rgba(124,58,237,0.15);
        border-radius: 12px;
        padding: 1rem;
        margin: 1rem 0;
        overflow-x: auto;
    }
    .mega-plano-content pre code {
        background: none;
        padding: 0;
        color: #e2e8f0;
    }
    .mega-plano-content table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        margin: 1rem 0;
        font-size: 13px;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(124,58,237,0.15);
    }
    .mega-plano-content thead {
        background: rgba(124,58,237,0.15);
    }
    .mega-plano-content th {
        padding: 10px 14px;
        text-align: left;
        font-weight: 700;
        color: #c4b5fd;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }
    .mega-plano-content td {
        padding: 10px 14px;
        border-top: 1px solid rgba(124,58,237,0.08);
        color: rgba(255,255,255,0.65);
    }
    .mega-plano-content tbody tr:hover {
        background: rgba(124,58,237,0.06);
    }
    .mega-plano-content hr {
        border: none;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(124,58,237,0.3), transparent);
        margin: 2rem 0;
    }
    .mega-plano-content input[type="checkbox"] {
        accent-color: #7c3aed;
        margin-right: 8px;
        width: 16px;
        height: 16px;
        vertical-align: middle;
    }

    @media (max-width: 768px) {
        .mega-plano-content { font-size: 13px; }
        .mega-plano-content h1 { font-size: 1.4rem; }
        .mega-plano-content h2 { font-size: 1.15rem; }
        .mega-plano-content h3 { font-size: 1rem; }
        .mega-plano-content table { font-size: 11px; display: block; overflow-x: auto; }
        .mega-plano-content th, .mega-plano-content td { padding: 6px 8px; }
    }
</style>
{% endblock %}
