/* --- Global Reset & Root Variables --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* NEW: Light Theme Palette */
    --primary-red: #d32f2f; /* Um vermelho um pouco mais sóbrio */
    --highlight-red: #e53935;
    --light-bg: #ffffff;
    --off-white-bg: #f7f8fa; /* Fundo sutil para seções alternadas */
    --card-bg: #ffffff; 
    --border-color: #e0e0e0; /* Cinza claro para bordas */
    --border-color-strong: #bdbdbd;
    --text-primary: #212121; /* Preto/cinza escuro para texto principal */
    --text-secondary: #616161; /* Cinza para texto secundário */
    --font-primary: 'Poppins', sans-serif;
    --font-accent: 'Roboto Mono', monospace;
    --transition-speed: 0.3s;
    --transition-speed-fast: 0.2s;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-strong: rgba(0, 0, 0, 0.15);
    --green-online: #00c853;
    --orange-maintenance: #ffab00;
    --grey-verificar: #757575;
    --header-height-initial: 80px; 
    --header-height-scrolled: 70px; 
    --section-top-padding: 130px; 
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-primary);
    background-color: var(--light-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* tsParticles Background - Mantido sutil */
#tsparticles-bg {
    position: fixed; width: 100%; height: 100%;
    top: 0; left: 0; z-index: -2; 
}


/* --- Header --- */
#main-header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem 0; position: fixed; width: 100%;
    top: 0; left: 0; z-index: 1000;
    box-shadow: 0 2px 15px var(--shadow-light);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease, padding var(--transition-speed) ease;
}
#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px var(--shadow-medium);
    padding: 0.8rem 0;
}
#main-header .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo {
    display: flex; align-items: center; text-decoration: none;
    color: var(--primary-red); font-weight: 900; font-size: 1.8rem;
    letter-spacing: 1px; font-family: var(--font-accent);
    flex-shrink: 0; 
}
.logo-icon {
    width: 35px; height: auto; margin-right: 0.7rem;
    filter: drop-shadow(0 0 8px rgba(211, 47, 47, 0.5));
    transition: transform var(--transition-speed) ease;
}
.logo:hover .logo-icon { transform: rotate(-15deg) scale(1.1); }

#main-header nav { margin: 0 auto; flex-grow: 0; display: flex; justify-content: center; }
#main-header nav ul { list-style: none; display: flex; padding-left: 0; }
#main-header nav ul li { margin: 0 0.9rem; } 

#main-header nav ul li a {
    text-decoration: none; color: var(--text-primary); font-weight: 500;
    font-size: 0.95rem; position: relative;
    transition: color var(--transition-speed) ease; padding-bottom: 5px;
    white-space: nowrap; 
}
#main-header nav ul li a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: 0;
    left: 50%; transform: translateX(-50%); background-color: var(--primary-red);
    transition: width var(--transition-speed) ease;
}
#main-header nav ul li a:hover, #main-header nav ul li a.active { color: var(--primary-red); }
#main-header nav ul li a:hover::after, #main-header nav ul li a.active::after { width: 70%; }

.btn-discord-nav.header-btn { 
    background-color: transparent; border-color: var(--primary-red); color: var(--primary-red);
    font-size: 0.9rem; padding: 0.6rem 1.2rem;
    flex-shrink: 0; margin-left: 1.5rem; 
}
.btn-discord-nav.header-btn:hover {
    background-color: var(--primary-red); color: var(--light-bg); box-shadow: 0 0 15px var(--shadow-medium);
}

#mobile-menu-toggle {
    display: none; background: none; border: none;
    color: var(--text-primary); font-size: 1.8rem; cursor: pointer;
    padding: 0.5rem; z-index: 1001;
    margin-left: 1rem; 
}

/* --- Buttons --- */
.btn {
    padding: 0.8rem 1.8rem; border-radius: 50px; text-decoration: none; font-weight: 600;
    transition: all var(--transition-speed) ease; display: inline-flex; align-items: center;
    gap: 0.6rem; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary {
    background: linear-gradient(45deg, var(--primary-red), var(--highlight-red)); color: #fff;
    box-shadow: 0 5px 20px var(--shadow-medium);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.03); box-shadow: 0 8px 25px var(--shadow-strong);
    background: linear-gradient(45deg, var(--highlight-red), var(--primary-red));
}
.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-red);
    color: var(--primary-red);
}
.btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--light-bg);
    box-shadow: 0 0 20px var(--shadow-light);
    transform: translateY(-3px);
}
.btn-hero { font-size: 1.1rem; padding: 1rem 2.5rem; }
.btn-cta { font-size: 1.15rem; padding: 1.1rem 2.8rem; }
.animate-pulse { animation: pulse 1.8s infinite ease-in-out; }
@keyframes pulse {
    0% { box-shadow: 0 5px 20px var(--shadow-medium); transform: scale(1); }
    50% { box-shadow: 0 5px 30px var(--shadow-strong); transform: scale(1.03); }
    100% { box-shadow: 0 5px 20px var(--shadow-medium); transform: scale(1); }
}

/* --- Hero Section (Index Page) --- */
#hero {
    min-height: 100vh; display: flex; flex-direction: column; align-items: center;
    justify-content: center; text-align: center; position: relative;
    padding-top: var(--header-height-initial); 
    overflow: hidden;
    background-color: var(--light-bg);
}
.hero-video-background {
    position: absolute; top: 50%; left: 50%; width: 100%; height: 100%;
    object-fit: cover; transform: translate(-50%, -50%); z-index: -2; 
    filter: brightness(0.6) grayscale(0.2); /* Ajustado para fundo claro */
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, rgba(247, 248, 250, 0.8) 70%, var(--off-white-bg) 100%);
    z-index: -1; 
}
.hero-content { position: relative; z-index: 1; animation: fadeInHeroContent 1s ease-out forwards; padding: 2rem 0; }
@keyframes fadeInHeroContent { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.glitch {
    font-size: clamp(2.5rem, 8vw, 5.5rem); font-weight: 900; color: var(--text-primary);
    font-family: var(--font-accent); position: relative; text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 0.5rem;
}
.glitch::before, .glitch::after {
    content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    overflow: hidden; color: var(--text-primary);
}
.glitch::before {
    left: 2px; text-shadow: -2px 0 var(--primary-red);
    animation: glitch-anim-1 3.5s infinite linear alternate-reverse; /* Slower animation */
}
.glitch::after {
    left: -2px; text-shadow: -2px 0 var(--highlight-red), 2px 2px var(--primary-red);
    animation: glitch-anim-2 3s infinite linear alternate-reverse; /* Slower animation */
}
/* Softer Glitch Animation */
@keyframes glitch-anim-1 {0%{clip-path:inset(90% 0 5% 0)}20%{clip-path:inset(50% 0 45% 0)}40%{clip-path:inset(20% 0 70% 0)}60%{clip-path:inset(75% 0 10% 0)}80%{clip-path:inset(40% 0 58% 0)}100%{clip-path:inset(95% 0 2% 0)}}
@keyframes glitch-anim-2 {0%{clip-path:inset(5% 0 92% 0)}20%{clip-path:inset(60% 0 30% 0)}40%{clip-path:inset(85% 0 5% 0)}60%{clip-path:inset(30% 0 65% 0)}80%{clip-path:inset(70% 0 20% 0)}100%{clip-path:inset(10% 0 88% 0)}}

.slogan { font-size: clamp(1.2rem, 4vw, 1.8rem); color: var(--text-secondary); margin-bottom: 1rem; font-weight: 400; }
.highlight { color: var(--primary-red); font-weight: 700; }
.highlight-alt { color: var(--highlight-red); font-weight: 700; }
.description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem); max-width: 700px; margin: 0 auto 2.5rem auto;
    color: var(--text-secondary); font-weight: 300;
}
.hero-buttons { display: flex; justify-content: center; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.scroll-down-indicator {
    position: absolute; bottom: 2.5rem;
    left: 50%; transform: translateX(-50%); color: var(--primary-red);
    font-size: 2rem; animation: bounce 2.2s infinite ease-in-out; z-index: 1;
    opacity: 0.7;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
    50% { transform: translateX(-50%) translateY(-12px); opacity: 1; }
}

/* --- General Section Styling --- */
.section-padding { padding: 5rem 0; } 
.section-common { 
    padding-top: var(--section-top-padding); 
    padding-bottom: 4rem; 
    min-height: 70vh; 
} 

.page-main-title { 
    text-align: center; font-size: clamp(2.2rem, 6vw, 3.8rem);
    color: var(--primary-red); font-family: var(--font-accent);
    margin-bottom: 0.8rem; text-transform: uppercase;
    letter-spacing: 1.5px; 
}
.page-subtitle { 
    text-align: center; color: var(--text-secondary);
    margin-bottom: 4rem;
    font-size: 1.15rem;
    max-width: 700px; margin-left: auto; margin-right: auto;
}

.section-title, .section-title-cta { 
    text-align: center; font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700; margin-bottom: 1rem; color: var(--text-primary);
    text-transform: uppercase; letter-spacing: 1px;
}
.section-subtitle, .section-subtitle-cta { 
    text-align: center; font-size: clamp(1rem, 3vw, 1.2rem); color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 750px; margin-left: auto; margin-right: auto; line-height: 1.8;
}

/* --- Features Section --- */
#features { background-color: var(--light-bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.feature-card {
    background-color: var(--card-bg); padding: 2.5rem 2rem; border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease, border-color var(--transition-speed) ease;
    text-align: center; box-shadow: 0 8px 25px var(--shadow-light);
}
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 35px var(--shadow-medium);
    border-color: var(--primary-red);
}
.feature-icon { font-size: 3rem; color: var(--primary-red); margin-bottom: 1.5rem; display: inline-block; line-height: 1; transition: transform var(--transition-speed) ease; }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-5deg); }
.feature-card h3 { font-size: 1.6rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.8rem; }
.feature-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* --- Testimonials Section --- */
#testimonials { background-color: var(--off-white-bg); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card {
    background-color: var(--card-bg);
    padding: 2rem; border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px var(--shadow-light);
    display: flex; flex-direction: column;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}
.testimonial-quote-icon { font-size: 2.5rem; color: var(--primary-red); opacity: 0.5; margin-bottom: 1rem; }
.testimonial-text { font-size: 1rem; color: var(--text-secondary); font-style: italic; line-height: 1.8; margin-bottom: 1.5rem; flex-grow: 1; }
.testimonial-author { display: flex; align-items: center; margin-top: auto; }
.testimonial-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover; margin-right: 1rem;
    border: 2px solid var(--primary-red);
}
.testimonial-author h4 { font-size: 1.1rem; color: var(--text-primary); font-weight: 600; margin-bottom: 0.1rem; }
.testimonial-author span { font-size: 0.85rem; color: var(--primary-red); font-weight: 500; }

/* --- FAQ Section --- */
#faq { background-color: var(--light-bg); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background-color: var(--card-bg); margin-bottom: 1rem;
    border-radius: 8px; border: 1px solid var(--border-color);
    overflow: hidden; transition: box-shadow var(--transition-speed) ease;
}
.faq-item:hover { box-shadow: 0 5px 15px var(--shadow-light); }
.faq-question {
    width: 100%; background: transparent; border: none;
    padding: 1.5rem; text-align: left; font-size: 1.15rem;
    font-weight: 600; color: var(--text-primary); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question i { font-size: 1rem; color: var(--primary-red); transition: transform var(--transition-speed-fast) ease; }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height var(--transition-speed) ease-out, padding var(--transition-speed) ease-out;
}
.faq-answer p { padding: 0 1.5rem 1.5rem 1.5rem; color: var(--text-secondary); line-height: 1.8; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.text-link { color: var(--highlight-red); text-decoration: none; font-weight: 600;}
.text-link:hover { text-decoration: underline; }

/* --- CTA Section --- */
#cta {
    background: linear-gradient(rgba(10,10,10,0.85), rgba(10,10,10,0.85)), url('../images/hero-bg.webp') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--text-light); position: relative; text-align: center;
}
.cta-overlay {
    position: absolute; top:0; left:0; width:100%; height:100%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, rgba(10,10,10,0.7) 100%);
    z-index: 0;
}
.cta-content { position: relative; z-index: 1; }
.cta-assurance { font-size: 0.95rem; color: #e0e0e0; margin-top: 1.8rem; }

/* --- Footer --- */
#main-footer {
    background-color: var(--off-white-bg); color: var(--text-secondary); padding: 3.5rem 0 2.5rem 0;
    text-align: center; border-top: 4px solid var(--primary-red);
}
.footer-content { margin-bottom: 2rem; }
.footer-logo {
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    color: var(--primary-red); font-weight: 900; font-size: 1.6rem; letter-spacing: 1px;
    font-family: var(--font-accent); margin-bottom: 0.8rem;
}
.footer-logo .logo-icon{ width: 30px; margin-right: 0.5rem; filter: drop-shadow(0 0 5px rgba(211, 47, 47, 0.4));}
.copyright { font-size: 0.9rem; margin-bottom: 0.3rem; }
.footer-slogan { font-size: 0.85rem; font-style: italic; color: var(--text-secondary); }
.footer-social { display: flex; justify-content: center; align-items: center; gap: 1.2rem; }
.footer-social a { color: var(--text-secondary); font-size: 1.6rem; margin: 0 0.8rem; transition: color var(--transition-speed) ease, transform var(--transition-speed) ease; }
.footer-social a:hover { color: var(--primary-red); transform: scale(1.2); }

/* --- Back to Top Button --- */
.back-to-top-btn {
    position: fixed; bottom: 2rem; right: 2rem;
    background-color: var(--primary-red); color: var(--light-bg);
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; text-decoration: none;
    box-shadow: 0 4px 15px var(--shadow-medium);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
    z-index: 999;
}
.back-to-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top-btn:hover { background-color: var(--highlight-red); transform: scale(1.1); }

/* --- API Error & Last Update Info --- */
.api-error-message {
    text-align: center; background-color: rgba(211, 47, 47, 0.05);
    color: var(--primary-red); padding: 2rem; border-radius: 10px;
    border: 1px solid var(--primary-red); margin: 2rem auto;
    max-width: 750px; box-shadow: 0 4px 15px rgba(211, 47, 47, 0.1);
}
.api-error-message p { margin-bottom: 0.5rem; }
.api-error-message p:first-child { font-weight: 600; font-size: 1.1rem; }
.last-update-info { text-align: center; margin-top: 3rem; color: var(--text-secondary); font-size: 0.9rem; opacity: 0.8; }

/* --- Status Page Specific --- */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 1rem; }
.status-card {
    background-color: var(--card-bg); border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-red); padding: 2rem;
    border-radius: 10px; box-shadow: 0 8px 20px var(--shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex; flex-direction: column;
}
.status-card:hover { transform: translateY(-6px); box-shadow: 0 10px 30px var(--shadow-medium); }
.status-card h3 { font-size: 1.7rem; color: var(--text-primary); margin-bottom: 1rem; font-weight: 600; }
.status-card p { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.6rem; line-height: 1.6; }
.status-card p strong { color: var(--text-primary); font-weight: 500; }
.status-tag-container { margin-top: auto; padding-top: 1rem; }
.status-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.4rem 1rem; border-radius: 50px;
    font-size: 0.9rem; font-weight: 600; border: 1px solid transparent;
}
.status-tag i { font-size: 0.9em; }
.status-tag.status-on, .status-tag.status-online { background-color: rgba(0, 200, 83, 0.1); color: var(--green-online); border-color: rgba(0, 200, 83, 0.3); }
.status-tag.status-maintenance { background-color: rgba(255, 171, 0, 0.1); color: var(--orange-maintenance); border-color: rgba(255, 171, 0, 0.3); }
.status-tag.status-off, .status-tag.status-offline { background-color: rgba(211, 47, 47, 0.1); color: var(--primary-red); border-color: rgba(211, 47, 47, 0.3); }
.status-tag.status-verificar { background-color: rgba(158, 158, 158, 0.1); color: var(--grey-verificar); border-color: rgba(158, 158, 158, 0.3); }


/* --- Downloads Page Specific --- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2.5rem; margin-top: 1rem; }
.download-card {
    background-color: var(--card-bg); border-radius: 12px;
    border: 1px solid var(--border-color); box-shadow: 0 10px 25px var(--shadow-light);
    display: flex; flex-direction: column; overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.download-card:hover { transform: translateY(-8px); box-shadow: 0 15px 35px var(--shadow-medium); }
.download-card-header {
    padding: 1.5rem; display: flex; align-items: center; gap: 1rem;
    border-bottom: 1px solid var(--border-color); background-color: var(--off-white-bg);
}
.game-icon-img {
    width: 60px; height: 60px; border-radius: 8px; object-fit: cover;
    border: 2px solid var(--border-color); padding: 3px; background-color: var(--light-bg);
}
.game-name { font-size: 1.5rem; font-weight: 600; color: var(--text-primary); line-height: 1.3; }
.download-card-body { padding: 1.5rem; flex-grow: 1; }
.game-info { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 0.6rem; }
.game-info strong { color: var(--text-primary); font-weight: 500; }
.download-card-footer {
    padding: 1.2rem 1.5rem; border-top: 1px solid var(--border-color);
    display: flex; justify-content: space-between; align-items: center;
    background-color: var(--off-white-bg);
}
.status-indicator-download { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.9rem; }
.status-indicator-download .status-dot { width: 12px; height: 12px; border-radius: 50%; animation: pulse-dot 1.8s infinite ease-in-out; }
.status-indicator-download .status-text { line-height: 1; }
.status-indicator-download.status-on .status-dot, .status-indicator-download.status-online .status-dot { background-color: var(--green-online); box-shadow: 0 0 8px var(--green-online); }
.status-indicator-download.status-on .status-text, .status-indicator-download.status-online .status-text { color: var(--green-online); }
.status-indicator-download.status-maintenance .status-dot { background-color: var(--orange-maintenance); box-shadow: 0 0 8px var(--orange-maintenance); }
.status-indicator-download.status-maintenance .status-text { color: var(--orange-maintenance); }
.status-indicator-download.status-off .status-dot, .status-indicator-download.status-offline .status-dot { background-color: var(--primary-red); box-shadow: 0 0 8px var(--primary-red); }
.status-indicator-download.status-off .status-text, .status-indicator-download.status-offline .status-text { color: var(--primary-red); }
.status-indicator-download.status-verificar .status-dot { background-color: var(--grey-verificar); box-shadow: 0 0 8px var(--grey-verificar); }
.status-indicator-download.status-verificar .status-text { color: var(--grey-verificar); }

@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.btn-download { padding: 0.7rem 1.5rem; font-size: 0.95rem; }
.btn-download.active {
    background: linear-gradient(45deg, var(--primary-red), var(--highlight-red)); color: #fff;
    box-shadow: 0 4px 15px var(--shadow-light);
}
.btn-download.active:hover {
    background: linear-gradient(45deg, var(--highlight-red), var(--primary-red));
    box-shadow: 0 6px 20px var(--shadow-medium); transform: translateY(-2px);
}
.btn-download.maintenance, .btn-download.offline {
    background-color: #f5f5f5; color: var(--text-secondary);
    border: 1px solid var(--border-color); 
    cursor: not-allowed; opacity: 0.7;
}
.btn-download.maintenance i, .btn-download.offline i { margin-right: 0.3rem; }
.btn-download.maintenance i { color: var(--orange-maintenance); }
.btn-download.offline i { color: var(--primary-red); }

/* --- Products Page (Pricing) --- */
.pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem; align-items: stretch; justify-content: center;
    max-width: 900px; margin: 2rem auto 0;
}
.pricing-card {
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 15px;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 15px 40px var(--shadow-medium); }
.pricing-header { padding: 2.5rem 2rem; text-align: center; border-bottom: 1px solid var(--border-color); }
.pricing-icon { font-size: 3.5rem; color: var(--primary-red); margin-bottom: 1rem; }
.pricing-title { font-size: 2rem; font-family: var(--font-accent); color: var(--text-primary); margin-bottom: 0.5rem; }
.pricing-description { font-size: 1rem; color: var(--text-secondary); max-width: 300px; margin: 0 auto; }
.pricing-body { padding: 2rem; flex-grow: 1; display: flex; flex-direction: column; }
.pricing-features { list-style: none; padding: 0; margin-bottom: 2rem; text-align: left; }
.pricing-features li {
    display: flex; align-items: center; gap: 0.8rem;
    margin-bottom: 1rem; font-size: 0.95rem; color: var(--text-secondary);
}
.pricing-features li i { color: var(--green-online); font-size: 1.2em; }
.pricing-features li strong { color: var(--text-primary); }
.price-tags { margin-top: auto; display: flex; flex-direction: column; gap: 1rem; }
.price-tag {
    background: var(--off-white-bg); border: 1px solid var(--border-color);
    border-radius: 8px; padding: 0.8rem 1.2rem;
    display: flex; justify-content: space-between; align-items: center;
    transition: background-color 0.3s ease;
}
.price-tag:hover { background: rgba(211, 47, 47, 0.05); }
.price-tag .duration { font-weight: 500; color: var(--text-primary); }
.price-tag .price {
    font-weight: 700; font-family: var(--font-accent);
    font-size: 1.3rem; color: var(--primary-red);
}
.price-tag.best-value { border-color: var(--primary-red); position: relative; background: #fff; }
.price-tag.best-value::after {
    content: 'MAIS POPULAR'; position: absolute; top: -12px; right: 15px;
    background: var(--primary-red); color: #fff;
    font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 5px;
}
.pricing-footer { padding: 2rem; border-top: 1px solid var(--border-color); text-align: center; background-color: var(--off-white-bg); }


/* --- Reseller Page Specific Styles --- */
.reseller-hero.section-common { 
    text-align: center;
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), 
                url('../images/hero-bg.webp') no-repeat center center/cover;
    min-height: 50vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}
.reseller-title-custom { 
    font-size: clamp(2.5rem, 7vw, 4rem); color: var(--primary-red);
    font-family: var(--font-accent); text-transform: uppercase;
    margin-bottom: 0.5rem; text-shadow: 0 0 15px rgba(211, 47, 47, 0.2);
}
.reseller-subtitle-custom { 
    font-size: clamp(1.2rem, 4vw, 1.8rem); color: var(--text-primary);
    font-weight: 600; margin-bottom: 2rem; max-width: 700px;
    margin-left: auto; margin-right: auto;
}
.reseller-content-section { /* Uses .section-padding */ }
.requirements-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem; margin-top: 3rem; max-width: 800px;
    margin-left: auto; margin-right: auto;
}
.requirement-card {
    background-color: var(--card-bg); padding: 2rem 1.5rem;
    border-radius: 10px; border: 1px solid var(--border-color);
    text-align: center; box-shadow: 0 8px 25px var(--shadow-light);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}
.requirement-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px var(--shadow-medium); }
.requirement-card .feature-icon { font-size: 2.8rem; color: var(--primary-red); margin-bottom: 1.2rem; }
.requirement-card h3 { font-size: 1.4rem; color: var(--text-primary); margin-bottom: 0.8rem; font-weight: 600; }
.requirement-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }
.contact-cta { text-align: center; margin-top: 3.5rem; }
.contact-cta p {
    font-size: 1.15rem; color: var(--text-secondary);
    margin-bottom: 1.8rem; max-width: 600px;
    margin-left: auto; margin-right: auto;
}

/* --- Content Pages (Config / Tutorial) --- */
.content-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px; padding: 2.5rem 3rem; margin-bottom: 4rem;
    box-shadow: 0 12px 40px var(--shadow-light);
    transition: box-shadow var(--transition-speed) ease, transform var(--transition-speed) ease;
}
.content-card:hover { box-shadow: 0 15px 45px var(--shadow-medium); transform: translateY(-2px); }

.content-card-title {
    font-size: clamp(1.8rem, 5vw, 2.4rem); color: var(--primary-red);
    font-family: var(--font-accent); font-weight: 700; margin-bottom: 2rem; 
    padding-bottom: 1rem; border-bottom: 2px solid var(--primary-red);
    display: flex; align-items: center; gap: 0.8rem; letter-spacing: 0.5px;
}
.content-card-title .icon-red { font-size: 1em; opacity: 0.9; }

.topic-group { padding-top: 2.5rem; margin-top: 2.5rem; border-top: 1px solid var(--border-color); }
.content-card > .topic-group:first-of-type { margin-top: 0; padding-top: 0.5rem; border-top: none; }

.content-card-subtitle {
    font-size: clamp(1.4rem, 3.8vw, 1.8rem); color: var(--primary-red);
    font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    margin-top: 0; margin-bottom: 1.8rem; padding-bottom: 0; border-bottom: none;
}
.topic-group > .content-card-subtitle:first-child { margin-top: 0; }

.content-card p, .content-card ul, .content-card ol { 
    color: var(--text-secondary); line-height: 1.9;
    margin-bottom: 1.8rem; font-size: 1rem;
}
.content-card ul, .content-card ol { padding-left: 25px; }
.content-card li { margin-bottom: 1rem; }

.content-card strong { color: var(--text-primary); font-weight: 600; }
.content-card kbd { 
    background-color: var(--off-white-bg);
    border: 1px solid var(--border-color-strong);
    color: var(--primary-red); padding: 0.25em 0.6em; border-radius: 5px; 
    font-family: var(--font-accent); font-size: 0.95em; 
    box-shadow: 1px 1px 3px var(--shadow-light);
    margin: 0 0.1em; 
}

.info-list, .tutorial-step-list, .troubleshooting-list { list-style: none; padding-left: 0.5rem; }
.info-list li, .tutorial-step-list li, .troubleshooting-list li { padding-left: 1.8rem; position: relative; }
.info-list li::before, .troubleshooting-list li::before {
    content: "\f138"; font-family: "Font Awesome 5 Free"; font-weight: 900;
    color: var(--primary-red); position: absolute; left: 0;
    top: 5px; font-size: 1.1em; 
}
.tutorial-step-list li { counter-increment: step-counter; }
.tutorial-step-list li::before {
    content: counter(step-counter); background-color: var(--primary-red);
    color: var(--light-bg); border-radius: 50%; width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-accent); font-weight: 700; font-size: 1rem; 
    position: absolute; left: -8px; top: -2px; line-height: 30px; 
    box-shadow: 0 2px 5px var(--shadow-light);
}
.tutorial-step-list li span { display: inline-block; margin-left: 35px; }


.alert {
    padding: 1.5rem 2rem; margin-top: 2.5rem; margin-bottom: 2.5rem; 
    border-radius: 10px; border-left-width: 6px; border-left-style: solid;
    display: flex; align-items: flex-start; gap: 1.2rem; 
    box-shadow: 0 4px 15px var(--shadow-light);
}
.alert i { font-size: 1.8rem; margin-top: 0.1em; }
.alert-info { background-color: #e3f2fd; border-left-color: #3498db; color: #0d47a1; }
.alert-info i { color: #3498db; }
.alert-warning { background-color: #fff8e1; border-left-color: #f39c12; color: #e65100; }
.alert-warning i { color: #f39c12; }
.alert-danger { background-color: #ffebee; border-left-color: var(--primary-red); color: #b71c1c; }
.alert-danger i { color: var(--primary-red); }
.alert-success { background-color: #e8f5e9; border-left-color: var(--green-online); color: #1b5e20; }
.alert-success i { color: var(--green-online); }


.video-placeholder, .code-block-wrapper, .config-table { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.video-placeholder iframe {
    max-width: 100%; border-radius: 10px;
    border: 3px solid var(--primary-red); 
    box-shadow: 0 5px 15px var(--shadow-medium);
}
.video-links-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 1.5rem; margin-top: 1.5rem;
}


.code-block-wrapper {
    background-color: #263238; /* Dark blue-grey for code */
    border: 1px solid var(--border-color); border-radius: 10px;
    padding: 2rem; overflow-x: auto;
    font-family: var(--font-accent); font-size: 0.95rem; 
    color: #eeffff;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}
.code-block-wrapper code { white-space: pre; color: #c3e88d; line-height: 1.6; }
.code-block-wrapper .comment { color: #546e7a; font-style: italic; }


.config-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    font-size: 1rem; box-shadow: 0 8px 25px var(--shadow-light);
    border-radius: 10px; overflow: hidden; 
    border: 1px solid var(--border-color);
}
.config-table th, .config-table td {
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 1.5rem; text-align: left; vertical-align: top;
}
.config-table td { border-right: 1px solid var(--border-color); }
.config-table th:last-child, .config-table td:last-child { border-right: none; }
.config-table tr:last-child td { border-bottom: none; }
.config-table thead th {
    background-color: var(--primary-red); color: var(--light-bg);
    font-weight: 700; font-family: var(--font-accent);
    text-transform: uppercase; letter-spacing: 0.8px;
    border-bottom: 2px solid var(--primary-red);
}
.config-table tbody tr:nth-child(even) { background-color: var(--off-white-bg); }
.config-table tbody tr:hover { background-color: rgba(211, 47, 47, 0.05); }

.config-table td:nth-child(1) { 
    font-family: var(--font-accent); color: var(--highlight-red);
    font-weight: 600; white-space: nowrap; width: 25%; 
}
.config-table td:nth-child(2) { 
    font-family: var(--font-accent); color: #0d47a1; width: 20%; 
}
.config-table td:nth-child(3) { color: var(--text-secondary); line-height: 1.8; }
.config-note {
    font-size: 0.95rem; color: var(--text-secondary);
    font-style: italic; margin-top: 2rem; padding: 1.2rem 1.5rem; 
    background-color: #fff8e1; 
    border-left: 4px solid var(--orange-maintenance); 
    border-radius: 0 8px 8px 0;
}

.content-card-subtitle + p,
.content-card-subtitle + ul,
.content-card-subtitle + ol,
.content-card-subtitle + .alert,
.content-card-subtitle + .config-table,
.content-card-subtitle + .code-block-wrapper,
.content-card-subtitle + .video-placeholder {
    margin-top: 1rem;
}


.language-section .language-title {
    font-size: clamp(2rem, 5.5vw, 2.8rem); color: var(--text-primary);
    margin-bottom: 3rem; padding-bottom: 1.2rem; 
    border-bottom: 3px solid var(--primary-red); 
    display: flex; align-items: center; gap: 1rem; 
}
.troubleshooting-category { 
    padding-top: 3rem; margin-top: 3rem;  
    border-top: 1px solid var(--border-color);
}
.troubleshooting-category:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.troubleshooting-category h4 {
    font-size: 1.6rem; color: var(--primary-red);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 1.8rem; display: flex; align-items: center;
    gap: 0.7rem; padding-bottom: 0.8rem;
    border-bottom: 1px dashed var(--border-color);
}
.troubleshooting-category h4 i { font-size: 1em; }

.cta-link-button {
    display: inline-flex; align-items: center; gap: 0.7rem; 
    background-color: var(--primary-red); color: var(--light-bg) !important;
    padding: 0.9rem 2rem; border-radius: 8px; text-decoration: none;
    font-weight: 700; font-size: 1rem; border: 2px solid var(--primary-red);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 12px var(--shadow-light);
}
.cta-link-button:hover {
    background-color: var(--highlight-red); border-color: var(--highlight-red);
    transform: translateY(-3px) scale(1.03); 
    box-shadow: 0 6px 18px var(--shadow-medium);
}
.cta-link-button i { font-size: 1.2em; }

.cta-link-inline {
    color: var(--highlight-red); text-decoration: none; font-weight: 600;
    border-bottom: 2px dotted var(--highlight-red); 
    transition: color var(--transition-speed) ease, border-bottom-color var(--transition-speed) ease;
    padding-bottom: 2px; 
}
.cta-link-inline:hover { color: var(--primary-red); border-bottom-color: var(--primary-red); }
.cta-link-inline i { margin-right: 0.4rem; }


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) { 
    #main-header nav { margin-right: 0; justify-content: flex-end; flex-grow: 0; }
     #main-header nav ul {
        position: absolute; top: 100%; left: 0; width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column; padding: 1rem 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        max-height: calc(100vh - var(--header-height-initial)); 
        overflow-y: auto; display: none; 
        border-top: 1px solid var(--border-color);
    }
    #main-header nav ul.mobile-active { display: flex; }
    #main-header nav ul li { margin: 0.8rem 0; text-align: center; }
    #mobile-menu-toggle { display: block; }
    .btn-discord-nav.header-btn { display: none; }
    .content-card { padding: 2rem 1.5rem; margin-bottom: 3rem; }
    .topic-group { padding-top: 2rem; margin-top: 2rem; }
    .config-table { font-size: 0.9rem; }
    .config-table th, .config-table td { padding: 0.8rem 1rem; }
    .content-card-subtitle { font-size: clamp(1.3rem, 3.5vw, 1.6rem); }
    .troubleshooting-category h4 { font-size: 1.4rem; }
}

@media (max-width: 768px) {
    html { font-size: 15px; }
    .features-grid, .testimonials-grid, .status-grid, .download-grid, .requirements-grid, .pricing-grid { grid-template-columns: 1fr; }
    .section-padding { padding: 3.5rem 0; }
    .section-subtitle, .section-subtitle-cta, .page-subtitle { margin-bottom: 2.5rem; }
    .back-to-top-btn { width: 45px; height: 45px; font-size: 1.3rem; bottom:1.5rem; right:1.5rem;}
    .topic-group { padding-top: 1.8rem; margin-top: 1.8rem; }
    .content-card-title { font-size: clamp(1.5rem, 4.5vw, 2rem); margin-bottom: 1.5rem;}
    .content-card-subtitle { font-size: clamp(1.2rem, 3.8vw, 1.5rem); margin-bottom: 1.2rem; }
    .content-card p, .content-card ul, .content-card ol { font-size: 0.95rem; margin-bottom: 1.2rem; }
    .alert { padding: 1rem 1.2rem; gap: 0.8rem; }
    .alert i { font-size: 1.5rem; }
    .troubleshooting-category h4 { font-size: 1.3rem; margin-bottom: 1.2rem; }
    .config-table th, .config-table td { padding: 0.7rem 0.9rem; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
    .logo { font-size: 1.5rem; }
    .logo-icon { width: 30px; }
    .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; }
    .btn-hero, .btn-cta { padding: 0.9rem 2rem; font-size: 1rem; }
    .glitch { font-size: clamp(2rem, 10vw, 3.5rem); }
    .page-main-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
    #main-header nav ul li { margin: 0.6rem 0; } 
    .content-card { padding: 1.5rem 1rem; margin-bottom: 2.5rem; }
    .content-card-title { font-size: clamp(1.4rem, 5vw, 1.8rem); margin-bottom: 1.5rem; padding-bottom: 0.8rem; }
    .content-card-subtitle { font-size: clamp(1.1rem, 4vw, 1.4rem); margin-bottom: 1.2rem; }
    .topic-group { padding-top: 1.5rem; margin-top: 1.5rem; border-top-width: 1px; }
    .content-card p, .content-card ul, .content-card ol { margin-bottom: 1.2rem; font-size: 0.9rem;}
    .config-table { font-size: 0.8rem; }
    .config-table th, .config-table td { padding: 0.6rem 0.7rem; }
    .code-block-wrapper { padding: 1rem; font-size: 0.85rem; }
    .alert { flex-direction: column; align-items: flex-start; text-align: left; }
    .alert i { margin-bottom: 0.5rem; }
    .troubleshooting-category h4 { font-size: 1.2rem; margin-bottom: 1rem; }
}