* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body {
    background: linear-gradient(135deg, #0a1929 0%, #1a3a5f 50%, #0a4b7a 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background: linear-gradient(135deg, #e0f2fe 0%, #b8e1ff 50%, #a0d0ff 100%);
    color: #1e293b;
}

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes glow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

body::before {
    content: '';
    position: fixed;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.glow-effect {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: glow 4s ease-in-out infinite;
}

/* Cabecalho (idem home.html) */
header {
    position: relative;
    z-index: 10;
    background: rgba(10, 25, 41, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: background 0.3s ease;
}
body.light-mode header {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-n {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
    position: relative; overflow: hidden;
}
.logo-n::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    20%, 100% { transform: translateX(100%) rotate(45deg); }
}
.logo-n span { color: white; font-size: 28px; font-weight: 800; position: relative; z-index: 1; }
body.light-mode .logo-n { background: linear-gradient(135deg, #2563eb, #38bdf8); box-shadow: 0 0 20px rgba(37, 99, 235, 0.3); }
.logo-text { display: flex; flex-direction: column; }
.logo-text .nodo {
    font-size: 24px; font-weight: 800;
    background: linear-gradient(135deg, #00ffff, #4d9fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; letter-spacing: 1px; line-height: 1;
}
body.light-mode .logo-text .nodo {
    background: linear-gradient(135deg, #2563eb, #0891b2);
     -webkit-text-fill-color: transparent;
}
.logo-text .tagline { font-size: 9px; color: #4d9fff; letter-spacing: 2px; }
body.light-mode .logo-text .tagline { color: #2563eb; }

nav { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; }
nav a {
    color: #b0e0ff; text-decoration: none; font-weight: 500; font-size: 15px;
    transition: 0.3s; position: relative; padding: 5px 0;
}
body.light-mode nav a { color: #1e293b; }
nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #00ffff, #0066ff);
    transition: width 0.3s ease;
}
nav a:hover { color: #00ffff; }
body.light-mode nav a:hover { color: #2563eb; }
nav a:hover::after { width: 100%; }
nav a.active { color: #00ffff; }
body.light-mode nav a.active { color: #2563eb; }

.theme-toggle {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 6px 10px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.1); transition: 0.3s;
}
.theme-toggle:hover { background: rgba(255, 255, 255, 0.2); }
.theme-icon { display: flex; align-items: center; color: #b0e0ff; }
.theme-text { font-size: 12px; font-weight: 500; color: #b0e0ff; }
body.light-mode .theme-toggle { background: rgba(37, 99, 235, 0.1); }
body.light-mode .theme-text { color: #1e293b; }

.btn-header {
    background: linear-gradient(135deg, #0066ff, #00ccff);
    color: white; border: none; padding: 10px 30px; border-radius: 8px;
    font-weight: 600; font-size: 16px; cursor: pointer; transition: 0.3s;
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.3);
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-header:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 102, 255, 0.5); }

/* Conteudo principal */
main { flex: 1; padding: 30px 20px; position: relative; z-index: 5; }
.manual-container { max-width: 800px; margin: 0 auto; }

.hero-produtor, .hero-prestador {
    text-align: center; margin-bottom: 50px;
}
.hero-ilustracao { margin-bottom: 20px; }
.hero-ilustracao svg { filter: drop-shadow(0 0 10px rgba(0,255,255,0.3)); }
.hero-produtor h1, .hero-prestador h1 {
    font-size: 32px; margin-bottom: 10px; color: #00ffff;
}
body.light-mode .hero-produtor h1, body.light-mode .hero-prestador h1 { color: #2563eb; }
.hero-subtitle { color: #b0e0ff; font-size: 16px; margin-bottom: 25px; }
body.light-mode .hero-subtitle { color: #334155; }

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00cc66, #00994d);
    color: white; padding: 14px 35px; border-radius: 10px;
    text-decoration: none; font-weight: 600; font-size: 18px;
    box-shadow: 0 0 20px rgba(0, 204, 102, 0.3); transition: 0.3s;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 204, 102, 0.5); }

.passos { display: flex; flex-direction: column; gap: 30px; margin-bottom: 50px; }
.passo {
    display: flex; gap: 20px;
    background: rgba(10, 25, 41, 0.5); backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 255, 255, 0.2); border-radius: 15px;
    padding: 20px; align-items: center;
}
body.light-mode .passo {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(37, 99, 235, 0.2);
}
.passo-numero {
    min-width: 50px; height: 50px;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; color: white;
    flex-shrink: 0;
}
.passo-ilustracao { flex-shrink: 0; display: flex; align-items: center; }
.passo-ilustracao svg { filter: drop-shadow(0 0 8px rgba(0,255,255,0.2)); }
.passo-conteudo h3 { color: #00ffff; margin-bottom: 8px; font-size: 20px; }
body.light-mode .passo-conteudo h3 { color: #2563eb; }
.passo-conteudo p { color: #b0e0ff; font-size: 15px; line-height: 1.5; }
body.light-mode .passo-conteudo p { color: #334155; }

.cta-final { text-align: center; }

footer {
    position: relative; z-index: 10;
    background: rgba(10, 25, 41, 0.9); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 255, 255, 0.2); padding: 20px;
    text-align: center; margin-top: auto;
}
body.light-mode footer { background: rgba(255, 255, 255, 0.9); border-top: 1px solid rgba(37, 99, 235, 0.2); }
.footer-container {
    max-width: 1200px; margin: 0 auto; color: #b0e0ff;
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
body.light-mode .footer-container { color: #334155; }
.footer-links a { color: #b0e0ff; text-decoration: none; margin-left: 20px; }
body.light-mode .footer-links a { color: #334155; }
.footer-links a:hover { color: #00ffff; }
body.light-mode .footer-links a:hover { color: #2563eb; }

@media (max-width: 600px) {
    .hero-produtor h1, .hero-prestador h1 { font-size: 26px; }
    .passo { flex-wrap: wrap; }
    .passo-ilustracao { display: none; }
    .passo-numero { margin-bottom: 10px; }
}