:root {
    --gold: #dfb23a;
    --dark-blue: #0a0e14;
    --card-bg: #161b22;
    --text-main: #c9d1d9;
    --pirata: #f85149;
    --marinha: #58a6ff;
    --revolucionario: #d29922;
    --accent: #238636;
}

body {
    background-color: var(--dark-blue);
    color: var(--text-main);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

h1, .brand { font-family: 'Bangers', cursive; letter-spacing: 2px; }

.container { max-width: 1000px; margin: 0 auto; padding: 20px; }

/* HEADER */
.main-header {
    background: rgba(13, 17, 23, 0.95);
    border-bottom: 2px solid var(--gold);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.brand { font-size: 2rem; color: var(--gold); }
.nav-menu { display: flex; align-items: center; gap: 20px; }
.nav-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--gold); }

.user-pill {
    background: #21262d;
    padding: 5px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #30363d;
}
.user-pill img { width: 24px; height: 24px; border-radius: 50%; }

/* CARDS & LAYOUT */
.card {
    background: var(--card-bg);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, #161b22 0%, #0a0e14 100%);
}

.main-logo { width: 120px; margin-bottom: 20px; }

/* STATS */
.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.stat-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-box i { font-size: 2rem; margin-bottom: 10px; }
.icon-beli { color: #f1c40f; }
.icon-bounty { color: #e74c3c; }
.icon-style { color: #3498db; }
.stat-box .value { font-size: 1.4rem; font-weight: bold; color: white; }

/* RANKING TABLE */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
}
.ranking-table th { text-align: left; padding: 15px; border-bottom: 2px solid #30363d; }
.ranking-table td { padding: 15px; border-bottom: 1px solid #30363d; }
.top-three { background: rgba(223, 178, 58, 0.05); }
.value-cell { font-family: 'Bangers'; letter-spacing: 1px; color: var(--gold); font-size: 1.1rem; }

.ranking-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ranking-filters a {
    padding: 8px 16px;
    background: #21262d;
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid #30363d;
}
.ranking-filters a.active { background: var(--gold); color: black; border-color: var(--gold); }

/* FACTIONS */
.faction-mini {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: bold;
}
.faction-mini.pirata { background: var(--pirata); color: white; }
.faction-mini.marinha { background: var(--marinha); color: white; }

/* ANIMATIONS */
.animate-pop { animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.animate-fade { animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }