/* VARIÁVEIS DE CORES */
:root {
    --bg: #000000;
    --text-main: #ffffff;
    --text-dim: #aaaaaa;
    --border-light: #ffffff;
    --border-dark: #333333;
    --border-mid: #777777;
}

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

/* =========================================
   NOVO FUNDO DINÂMICO (CYBER-GRID ANIMADO)
========================================= */
body {
    background-color: var(--bg);
    color: var(--text-main);
    overflow-x: hidden; 
    scroll-behavior: smooth;
    font-family: 'VT323', monospace; 
    font-size: 22px;
    
    /* Grelha de Fundo */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: scrollGrid 20s linear infinite;
}

/* Animação da grelha movendo-se na diagonal */
@keyframes scrollGrid {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

h1, h2, h3, h4, .btn, .logo-text, .nav-menu a, .badge, .popular-tag, .admin-name, .btn-social, .route-card span {
    font-family: 'Press Start 2P', cursive;
}

/* EFEITO DE ECRÃ CRT ANIMADO */
.crt::before {
    content: " "; display: block; position: fixed; top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.01), rgba(255, 255, 255, 0.03));
    z-index: 999; 
    background-size: 100% 4px, 6px 100%; 
    pointer-events: none;
    animation: scanlinesAnim 15s linear infinite;
}

/* Animação das linhas a descer pelo ecrã */
@keyframes scanlinesAnim {
    0% { background-position: 0 0; }
    100% { background-position: 0 100vh; }
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 10; }
.reveal { opacity: 0; transform: translateY(20px); transition: all 0.5s steps(5); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* NAVBAR */
.navbar { padding: 1.5rem 0; background: transparent; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(5px); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 15px; }
.pixel-image { image-rendering: pixelated; filter: grayscale(100%) contrast(200%); }
.logo img { height: 40px; }
.logo-text { font-size: 1.2rem; }
.nav-menu a { color: var(--text-dim); text-decoration: none; margin: 0 15px; font-size: 0.8rem; transition: 0.2s; }
.nav-menu a:hover { color: var(--text-main); text-shadow: 2px 2px 0px var(--border-dark); }

/* =========================================
   HERO E CARD ADMIN (CENTRALIZAÇÃO ABSOLUTA)
========================================= */
.hero { padding: 40px 0 80px; text-align: center; width: 100%; }

.hero-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-admin-card {
    background: rgba(0, 0, 0, 0.6); border: 2px dashed var(--border-mid); border-radius: 20px;
    padding: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 15px; margin: 0 auto 40px auto; width: 100%; max-width: 400px;
    backdrop-filter: blur(8px); animation: float 4s ease-in-out infinite; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.avatar-round { width: 110px; height: 110px; border-radius: 50%; border: 4px solid var(--text-main); object-fit: cover; }

.hero-admin-text { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }

.admin-name { font-size: 0.9rem; color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; line-height: 1.5; }

.verified-badge { width: 30px; height: 30px; margin-left: 10px; vertical-align: middle; image-rendering: auto; }

.admin-desc { font-family: 'VT323', monospace; font-size: 1.2rem; color: var(--text-dim); margin-bottom: 15px; line-height: 1.2; }

/* CONTADOR DE VISITANTES */
.admin-stats { background: rgba(0, 0, 0, 0.8); border: 2px solid var(--border-dark); padding: 8px 15px; margin-bottom: 15px; display: flex; gap: 10px; font-family: 'Press Start 2P', cursive; font-size: 0.7rem; box-shadow: inset 0 0 10px rgba(0, 255, 0, 0.1); }
.stat-label { color: var(--text-dim); }
.stat-value { color: #00ff00; text-shadow: 0 0 5px #00ff00; }

.admin-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.admin-clock { font-size: 1.1rem; color: var(--text-dim); }

.btn-micro { background: none; border: none; color: var(--text-dim); font-family: 'Press Start 2P', cursive; font-size: 0.7rem; cursor: pointer; transition: 0.2s; }
.btn-micro:hover { color: #fff; text-shadow: 0 0 5px #fff; }

/* REDES SOCIAIS (BOTÕES LINKTREE) */
.admin-socials { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 20px; border-top: 2px dashed var(--border-dark); padding-top: 20px; }
.btn-social { background: rgba(0, 0, 0, 0.5); border: 2px solid var(--border-mid); color: var(--text-main); padding: 12px; font-size: 0.7rem; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 12px; transition: all 0.2s; }
.btn-social i { font-size: 1.2rem; }
.btn-social:hover { border-color: var(--text-main); background: var(--text-main); color: var(--bg); transform: scale(1.02); }

/* =========================================
   TEXTOS DO HERO E GLITCH (TITULO MENOR)
========================================= */
.badge { display: inline-block; padding: 10px; border: 2px solid var(--text-main); font-size: 0.7rem; margin-bottom: 30px; }

h1 { 
    font-size: clamp(1rem, 4.5vw, 2rem); 
    line-height: 1.5; margin-bottom: 20px; 
    text-transform: uppercase; white-space: nowrap; text-align: center;
}

.subtitle { font-size: 1.8rem; color: var(--text-dim); max-width: 800px; margin: 0 auto 40px; text-align: center; }

/* =========================================
   NOVA ABA DE ROTAS (GRID DASHBOARD)
========================================= */
.system-directory { width: 100%; max-width: 600px; margin: 30px auto 40px auto; }
.directory-title { font-size: 0.9rem; color: #00ff00; text-shadow: 0 0 5px rgba(0,255,0,0.5); margin-bottom: 20px; text-align: left; border-bottom: 2px dashed var(--border-dark); padding-bottom: 10px; }
.routes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.route-card { background: rgba(15, 15, 15, 0.8); border: 2px solid var(--border-mid); padding: 25px 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--text-main); transition: all 0.2s; box-shadow: 4px 4px 0px 0px var(--border-dark); }
.route-card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0px 0px var(--border-mid); border-color: var(--text-main); background: rgba(30, 30, 30, 0.9); }
.route-icon { font-size: 2.5rem; margin-bottom: 15px; color: var(--text-dim); transition: 0.2s; }
.route-card:hover .route-icon { color: var(--text-main); transform: scale(1.1); }
.route-card span { font-size: 0.7rem; text-align: center; line-height: 1.5; }

/* DESTAQUE SUPORTE */
.highlight-route { border-color: #00ff00; }
.highlight-route span, .highlight-route .route-icon { color: #00ff00; }
.highlight-route:hover { box-shadow: 8px 8px 0px 0px rgba(0, 255, 0, 0.3); border-color: #00ff00; background: rgba(0, 255, 0, 0.1); }

/* =========================================
   SEÇÕES, CARDS E PRICING
========================================= */
.section { padding: 80px 0; }
.section-title { font-size: 1.5rem; margin-bottom: 50px; text-align: center; line-height: 1.5; }
.blink { animation: blink-anim 1s step-end infinite; }
@keyframes blink-anim { 50% { opacity: 0; } }
.grid-bots, .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.pixel-card { background: var(--bg); border: 4px solid var(--text-main); padding: 30px; box-shadow: 10px 10px 0px 0px var(--border-dark); transition: transform 0.2s steps(3); text-align: left; }
.pixel-card:hover { transform: translate(-5px, -5px); box-shadow: 15px 15px 0px 0px var(--border-mid); }
.card-header { display: flex; align-items: center; gap: 15px; border-bottom: 2px dashed var(--border-dark); padding-bottom: 15px; margin-bottom: 15px; }
.pixel-icon { font-size: 2rem; }
.card-header h3 { font-size: 1rem; line-height: 1.5; }

.price-card { border: 4px solid var(--border-mid); padding: 40px 30px; text-align: center; display: flex; flex-direction: column; justify-content: space-between; align-items: center; }
.price-card.popular { border-color: var(--text-main); outline: 4px solid var(--border-dark); outline-offset: 4px; }
.popular-tag { background: var(--text-main); color: var(--bg); padding: 10px; font-size: 0.6rem; display: inline-block; margin-bottom: 20px; }
.price { font-size: 1.5rem; margin: 20px 0; text-align: center; width: 100%; }
.feature-list { list-style: none; text-align: left; margin-bottom: 30px; font-size: 1.5rem; width: 100%; }
.feature-list li { margin-bottom: 10px; color: var(--text-dim); }

.btn { padding: 15px 20px; font-size: 0.8rem; text-decoration: none; text-align: center; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; }
.btn-pixel { background: var(--text-main); color: var(--bg); box-shadow: inset -4px -4px 0px 0px var(--border-mid), inset 4px 4px 0px 0px #ffffff; border: 4px solid var(--bg); outline: 2px solid var(--text-main); }
.btn-pixel:active { box-shadow: inset -4px -4px 0px 0px #ffffff, inset 4px 4px 0px 0px var(--border-mid); }
.btn-pixel-outline { background: var(--bg); color: var(--text-main); border: 4px solid var(--text-main); box-shadow: 6px 6px 0px 0px var(--border-dark); }
.btn-pixel-outline:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0px 0px var(--border-dark); }
.btn-full { width: 100%; }

/* =========================================
   GLITCH EFFECT
========================================= */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: transparent; }
.glitch::before { left: 2px; text-shadow: -2px 0 #fff; clip: rect(24px, 550px, 90px, 0); animation: glitch-anim 3s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: -2px 0 #555; clip: rect(85px, 550px, 140px, 0); animation: glitch-anim 2.5s infinite linear alternate-reverse; }
@keyframes glitch-anim { 0% { clip: rect(15px, 9999px, 44px, 0); } 20% { clip: rect(55px, 9999px, 94px, 0); } 40% { clip: rect(10px, 9999px, 50px, 0); } 60% { clip: rect(80px, 9999px, 120px, 0); } 80% { clip: rect(30px, 9999px, 70px, 0); } 100% { clip: rect(5px, 9999px, 80px, 0); } }

/* =========================================
   MODALS E LOADER (CENTRALIZAÇÃO ABSOLUTA)
========================================= */
#loader { position: fixed; inset: 0; background: #000; z-index: 30000; display: flex; justify-content: center; align-items: center; flex-direction: column; transition: opacity 0.5s; }
#typewriter { font-size: 1rem; color: #fff; margin-bottom: 20px; line-height: 1.5; text-align: center; font-family: 'Press Start 2P', cursive; }
.loading-bar { width: 300px; height: 20px; border: 4px solid #fff; padding: 2px; }
.progress { width: 0%; height: 100%; background: #fff; transition: width 0.1s; }

#redirect-modal, #welcome-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 20000; display: flex; justify-content: center; align-items: center; flex-direction: column; font-family: 'Press Start 2P', cursive; color: #fff; backdrop-filter: blur(5px); }
.hidden { display: none !important; }

.pixel-box { background: var(--bg); border: 4px solid var(--text-main); padding: 40px; box-shadow: 10px 10px 0px 0px var(--border-dark); max-width: 550px; width: 90%; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pixel-box h2 { font-size: 1.2rem; margin-bottom: 20px; line-height: 1.5; }
.pixel-box p { font-family: 'VT323', monospace; font-size: 1.6rem; margin-bottom: 15px; line-height: 1.3; }

#start-system { padding: 12px 25px; font-size: 0.75rem; display: inline-block; width: auto; font-family: 'Press Start 2P', cursive;}

/* CAIXA DE REDIRECIONAMENTO */
.modal-content { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 90%; max-width: 400px; font-size: 0.8rem; line-height: 1.6; word-wrap: break-word; }
.modal-content .loading-bar { width: 100%; max-width: 250px; margin-top: 25px; }

.progress-fast { width: 0%; height: 100%; background: #fff; animation: loadFast 1.8s forwards; }
@keyframes loadFast { 0% { width: 0%; } 100% { width: 100%; } }
#particles-canvas { position: fixed; inset: 0; z-index: 0; opacity: 0.3; }

/* CELULARES RESPONSIVO */
@media (max-width: 768px) {
    .hero-admin-card { width: 95%; padding: 20px; }
    .nav-menu { display: none; }
    .pixel-box { padding: 30px 20px; }
}
