:root {
    --bg-dark: #0a0a0f;
    --bg-darker: #050507;
    --primary: #6d28d9;
    --primary-glow: rgba(109, 40, 217, 0.5);
    --secondary: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(109, 40, 217, 0.15), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.1), transparent 25%);
    z-index: -1;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: #5b21b6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--card-bg);
    border-color: var(--primary);
}

.btn-primary.large {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    background: linear-gradient(135deg, #a78bfa, #6d28d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Sections */
.section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

/* Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Grade simétrica de 2 cards por linha para seções de 4 itens (Classes e Mecânicas) */
.cards-container.grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 820px) {
    .cards-container.grid-2col {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(109, 40, 217, 0.2);
}

/* Bordas temáticas de classe */
.card.class-scientist {
    border-top: 3px solid #10b981;
}
.card.class-scientist:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
}

.card.class-infiltrator {
    border-top: 3px solid #f59e0b;
}
.card.class-infiltrator:hover {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.card.class-executor {
    border-top: 3px solid #3b82f6;
}
.card.class-executor:hover {
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.25);
}

.card.class-psion {
    border-top: 3px solid #a855f7;
}
.card.class-psion:hover {
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

/* CTA */
.cta-box {
    background: linear-gradient(145deg, var(--bg-darker), rgba(109, 40, 217, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-box h2 {
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    background: var(--bg-darker);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .nav-links { display: none; }
}
/* Adicionando alguns estilos complementares no final do arquivo */

.content-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.content-box p {
    margin-bottom: 1.5rem;
}

.content-box strong {
    color: var(--text-main);
}

.faction-card {
    position: relative;
    overflow: hidden;
}

.faction-card.resistance {
    border-top: 4px solid #ef4444;
}

.faction-card.directory {
    border-top: 4px solid #3b82f6;
}

.faction-card p em {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-style: italic;
}

.admin-footer-link {
    color: var(--text-muted);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.admin-footer-link:hover {
    opacity: 1;
    color: var(--text-main);
}

/* ============================================================
   LIVE WAR SECTION (ETAPA 5 — TELEMETRIA PÚBLICA AO VIVO)
   ============================================================ */
.nav-live-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #6ee7b7 !important;
    font-size: 0.92rem;
}

.nav-live-link:hover {
    background: rgba(16, 185, 129, 0.22);
    color: #a7f3d0 !important;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
    animation: pulseLive 1.8s infinite ease-in-out;
}

@keyframes pulseLive {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.55; }
}

.live-war-section {
    padding-top: 3rem;
}

.lw-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.lw-header h2 {
    margin-bottom: 0.75rem;
}

.lw-subtitle {
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
}

.lw-meta-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.lw-live-badge,
.lw-era-pill,
.lw-agents-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.lw-live-badge {
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.1);
    letter-spacing: 0.4px;
}

.lw-era-pill {
    color: #c4b5fd;
    border-color: rgba(139, 92, 246, 0.35);
    background: rgba(109, 40, 217, 0.15);
}

.lw-updated {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.lw-tug-card {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(10, 10, 18, 0.85));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.lw-tug-labels {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
    gap: 1rem;
}

.lw-side {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.lw-side.neu {
    text-align: center;
}

.lw-side.dir {
    text-align: right;
}

.lw-side-name {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.lw-side-pct {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

.lw-side.ins .lw-side-pct { color: #f87171; }
.lw-side.neu .lw-side-pct { color: #fbbf24; font-size: 1.35rem; }
.lw-side.dir .lw-side-pct { color: #60a5fa; }

.lw-tug-track,
.lw-mini-track {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    overflow: hidden;
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lw-mini-track {
    height: 10px;
    margin: 0.65rem 0 0.45rem;
}

.lw-tug-fill {
    height: 100%;
    transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.lw-tug-fill.ins {
    background: linear-gradient(90deg, #dc2626, #ef4444);
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.45);
}

.lw-tug-fill.neu {
    background: linear-gradient(90deg, #d97706, #fbbf24);
}

.lw-tug-fill.dir {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
}

.lw-tug-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.lw-boss-banner {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.35), rgba(88, 28, 135, 0.35));
    border: 1px solid rgba(248, 113, 113, 0.45);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.lw-boss-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
}

.lw-boss-tag {
    font-size: 0.78rem;
    font-weight: 800;
    color: #fca5a5;
    letter-spacing: 0.8px;
}

.lw-boss-hp-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.lw-boss-hp-fill {
    height: 100%;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    transition: width 0.8s ease;
}

.lw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.lw-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
}

.lw-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.lw-panel-head h3 {
    font-size: 1.25rem;
}

.lw-panel-head span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lw-tabs {
    display: inline-flex;
    gap: 0.35rem;
    background: rgba(0, 0, 0, 0.45);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lw-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lw-tab-btn:hover {
    color: var(--text-main);
}

.lw-tab-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.lw-sectors-list,
.lw-agents-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 6px;
}

.lw-sectors-list::-webkit-scrollbar,
.lw-agents-list::-webkit-scrollbar {
    width: 6px;
}

.lw-sectors-list::-webkit-scrollbar-thumb,
.lw-agents-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.lw-sector-item {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.lw-sector-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
}

.lw-status-chip {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.lw-status-chip.contested {
    background: rgba(251, 191, 36, 0.14);
    color: #fcd34d;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.lw-status-chip.lockdown {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.lw-status-chip.sabotage {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.lw-sector-nums {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.lw-agent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.lw-agent-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.lw-rank-medal {
    font-size: 1.25rem;
    width: 1.8rem;
    text-align: center;
    font-weight: 800;
    color: #c4b5fd;
    flex-shrink: 0;
}

.lw-agent-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lw-agent-name {
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lw-agent-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.lw-level-badge {
    background: rgba(109, 40, 217, 0.22);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #ddd6fe;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    flex-shrink: 0;
}

.lw-empty-agents {
    color: var(--text-muted);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.95rem;
}

.lw-panel-cta {
    margin-top: 1.35rem;
    text-align: center;
}

.lw-join-btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .lw-tug-card { padding: 1.35rem; }
    .lw-side-pct { font-size: 1.35rem; }
    .lw-side.neu .lw-side-pct { font-size: 1.1rem; }
    .lw-grid { grid-template-columns: 1fr; }
}

