/* =========================================
   1. VARIÁVEIS E CONFIGURAÇÕES GERAIS
   ========================================= */
:root {
    --bg-dark: #0f1115;
    --bg-card: #161920;
    --bg-header: rgba(15, 17, 21, 0.95);
    
    --gold-primary: #c4a065;
    --gold-light: #e6c589;
    --gold-dark: #8f7241;
    
    --text-main: #e0e0e0;
    --text-muted: #848a96;
    
    --border: #2a2e38;
    --success: #4caf50;
    --danger: #f44336;
}

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

/* Evita flash branco por trás do body durante o fade de transição de página */
html {
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    background-image: radial-gradient(circle at 50% 0%, #1b1e26 0%, #0f1115 60%);
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-dark) var(--bg-dark);
}

/* Scrollbar customizada (Chrome/Edge/Safari) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 10px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-primary); }

h1, h2, h3, .logo-text, .btn {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.text-gold { color: var(--gold-primary) !important; }
.text-center { text-align: center !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =========================================
   2. HEADER E NAVEGAÇÃO
   ========================================= */
header {
    position: fixed;
    top: 0; width: 100%; height: 80px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    height: 100%; padding: 0 20px;
}

.nav-brand { display: flex; align-items: center; height: 100%; }

.nav-logo-img {
    height: 60px; width: auto; display: block;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.nav-brand:hover .nav-logo-img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px rgba(196, 160, 101, 0.6));
}

.nav-links ul { display: flex; gap: 30px; }

.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-muted); position: relative;
}

.nav-links a:hover, .nav-links a.active { color: #fff; }

.nav-links a::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--gold-primary); transition: 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.discord-link { color: #7289da !important; }

/* Menu Hambúrguer (Mobile) */
.menu-toggle { display: none; cursor: pointer; }
.bar {
    display: block; width: 25px; height: 3px; margin: 5px auto;
    background-color: var(--text-main); transition: 0.3s;
}

/* =========================================
   3. BOTÕES
   ========================================= */
.btn-group { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

.btn {
    padding: 15px 40px; border-radius: 4px; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #111; border-color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(196, 160, 101, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(196, 160, 101, 0.4);
    filter: brightness(1.1);
}

.btn-register {
    background: var(--bg-card); border: 1px solid var(--gold-primary); color: var(--gold-primary); box-shadow: 0 5px 15px rgba(0,0,0,0.6); transition: 0.3s;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(196, 160, 101, 0.4);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent; color: var(--gold-primary); border-color: var(--gold-primary);
}

.btn-outline:hover {
    background: rgba(196, 160, 101, 0.1); color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(196, 160, 101, 0.4);
    filter: brightness(1.1);
}

.btn-small {
    padding: 10px 30px; font-size: 0.8rem; border: 1px solid var(--border);
    color: var(--text-muted); background: transparent;
}
.btn-small:hover { border-color: var(--gold-primary); color: var(--gold-primary); transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(196, 160, 101, 0.4);
    filter: brightness(1.1);}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    /* 1. Largura total, mas altura controlada */
    width: 100%;
    
    /* Altura BASE: tenta pegar 100% da tela */
    height: 90vh; 
    
    /* TRAVA MÍNIMA: Garante que em notebooks pequenos caiba tudo (650px) */
    min-height: 650px; 
    
    /* TRAVA MÁXIMA: O PULO DO GATO. 
       Impede que em monitores gigantes a imagem dê aquele zoom absurdo.
       Ele para de crescer em 1080px (Full HD). */
    max-height: 1080px; 
    
    /* Centralização do Conteúdo (Logo + Botões) */
    display: flex; 
    align-items: center; 
    justify-content: center;
    text-align: center; 
    position: relative; 
    
    /* Espaçamento interno para garantir respiro */
    padding-top: 80px; 
    padding-bottom: 40px;
    
    background-color: #000;
    background-image: url('../../img/bg-hero.png');
    
    /* 2. AJUSTE DA IMAGEM DE FUNDO */
    background-size: cover; 
    
    /* IMPORTANTE: Foca no CENTRO SUPERIOR da imagem.
       Assim, se cortar, corta o chão/pés, mas nunca as cabeças/logo. */
    background-position: center top; 
    
    background-attachment: fixed; /* Parallax no PC */
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.0) 60%, rgba(15,17,21,0.8) 100%);
    z-index: 1;
}

.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 0 20px; }
.logo-container { margin-bottom: 30px; }
.main-logo { max-width: 100%; height: auto; max-height: 300px; filter: drop-shadow(0 0 20px rgba(0,0,0,0.8)); }

/* =========================================
   MASCOTE DA SEÇÃO DE INFO (CORRIGIDO)
   ========================================= */

/* 1. Garante que a seção de info seja a referência */
#informacoes {
    position: relative !important; 
}

/* 2. O Gatinho Ajustado (Forçando Direita e Tamanho Pequeno) */
.info-mascot {
    position: absolute !important;
    
    /* MUDE ESTA LINHA: De 0 para 30px (ou mais) */
    bottom: 50px !important; /* Quanto maior o número, mais ele sobe */

    left: auto !important;
    right: 20% !important;
    
    /* TAMANHO TRAVADO (PEQUENO) */
    width: 180px !important; /* Tamanho fixo para garantir que fique pequeno */
    height: auto !important;
    
    z-index: 5;
    pointer-events: auto;
    filter: drop-shadow(-5px 0 10px rgba(0,0,0,0.5));
    transition: transform 0.3s ease, filter 0.3s ease;
}
.info-mascot:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px rgba(196, 160, 101, 0.6));
}

/* ESCONDER NO CELULAR E TABLET */
@media (max-width: 1100px) {
    .info-mascot {
        display: none !important;
    }
}

/* =========================================
   5. STATUS BAR
   ========================================= */
.status-bar {
    background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    padding: 25px 0; margin-top: -60px; position: relative; z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.status-grid {
    max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px; text-align: center; padding: 0 20px;
}

.status-item h3 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 1px; font-family: 'Cinzel'; }
.status-item span { font-size: 1.6rem; font-weight: 700; color: #fff; font-family: 'Cinzel', serif; }

.status-online {
    color: var(--success) !important; text-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.status-online i { font-size: 0.8rem; }

/* =========================================
   6. NEWS SECTION
   ========================================= */
.section { padding: 100px 20px; max-width: 1200px; margin: 0 auto; }
.section-header { 
    display: flex; justify-content: space-between; align-items: flex-end; 
    margin-bottom: 50px; border-bottom: 1px solid var(--border); padding-bottom: 20px;
}

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); gap: 30px; justify-content: center; }

.news-carousel-nav { display: none; }
.carousel-arrow {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    color: var(--gold-primary);
    width: 42px; height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}
.carousel-arrow:hover { background: var(--gold-primary); color: #000; border-color: var(--gold-primary); }

.news-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
    overflow: hidden; transition: 0.3s; display: flex; flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px); border-color: var(--gold-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.news-image {
    aspect-ratio: 1 / 1; height: auto; background: #1f2229; display: flex; align-items: center; justify-content: center;
    color: #333; font-size: 3rem; border-bottom: 1px solid var(--border);
}

.news-content { padding: 25px; flex-grow: 1; }
.news-date { font-size: 0.8rem; color: var(--gold-primary); margin-bottom: 10px; display: block; font-weight: 700; }
.news-title { font-size: 1.2rem; margin-bottom: 10px; color: #fff; }
.news-desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   AJUSTE ESPECÍFICO: NOTÍCIA INTERNA
   ========================================= */

.news-article-single {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0,0,0,0.6);
    animation: fadeIn 0.5s ease;
}

/* Cabeçalho da Notícia */
.article-header {
    padding: 40px 60px 20px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent);
    text-align: center;
}

.news-title-single {
    font-size: 2.5rem;
    color: #fff;
    margin-top: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    line-height: 1.2;
}

/* Banner de Destaque */
.article-banner {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.article-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

/* Corpo do Texto (Aonde a mágica acontece) */
.article-body {
    padding: 40px 60px;
    color: #ccc;
    font-size: 1.1rem;
    line-height: 1.8;
    font-family: 'Roboto', sans-serif;
}

/* Estilização para conteúdos vindos do Banco (HTML do Admin) */
.article-body h2, .article-body h3 {
    color: var(--gold-primary);
    margin: 30px 0 15px;
    font-family: 'Cinzel', serif;
}

.article-body p { margin-bottom: 20px; }

.article-body strong { color: var(--gold-light); }

.article-body a { color: var(--gold-light); text-decoration: underline; }
.article-body a:hover { color: var(--gold-primary); }

.article-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article-body ul li {
    list-style: none;
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.article-body ul li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--gold-primary);
}

/* Rodapé e Botão Voltar */
.article-footer {
    padding: 30px 60px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.2);
}

.btn-back-news {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 25px;
    cursor: pointer;
    font-family: 'Cinzel';
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-back-news:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateX(-5px);
}

/* Responsividade */
@media (max-width: 768px) {
    .article-header, .article-body, .article-footer {
        padding: 30px 20px;
    }
    .news-title-single { font-size: 1.8rem; }
}

/* =========================================
   7. OUTRAS SEÇÕES
   ========================================= */
.section-container { padding: 100px 0; border-bottom: 1px solid var(--border); }
.bg-alt { background-color: #121419; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 60px; color: #fff; }

.card-wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.info-card {
    background: var(--bg-card); border: 1px solid var(--border); padding: 40px 20px;
    text-align: center; border-radius: 8px; transition: 0.3s;
}
.info-card:hover { border-color: var(--gold-primary); transform: translateY(-5px); }

.icon-large { font-size: 3.5rem; color: var(--gold-dark); margin-bottom: 25px; }
.info-card h3 { margin-bottom: 15px; color: #fff; }
.info-card p { color: var(--text-muted); line-height: 1.6; }

.center-btn { text-align: center; margin-top: 50px; }

/* Tabs de Ranking na Home */
.home-rank-panel { display: none; }
.home-rank-panel.active { display: block; animation: fadeIn 0.4s ease; }

/* Tabelas (Rankings) */
.ranking-preview table {
    width: 100%; border-collapse: collapse; background: var(--bg-card);
    border-radius: 8px; overflow: hidden;
}
.ranking-preview th, .ranking-preview td {
    padding: 18px; text-align: center; border-bottom: 1px solid var(--border);
}
.ranking-preview th {
    background-color: rgba(0,0,0,0.2); color: var(--gold-primary);
    font-family: 'Cinzel'; font-weight: 700;
}

.rates-list-horizontal { display: flex; justify-content: center; gap: 40px; font-size: 1.2rem; flex-wrap: wrap; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); width: 100%; }

/* =========================================
   8. FOOTER
   ========================================= */
footer { background: #08090b; border-top: 1px solid var(--border); margin-top: 0; }
.footer-content {
    display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 40px; align-items: center; padding: 60px 20px;
}
.footer-content .logo {
    width: 120px;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.footer-content .logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 5px rgba(196, 160, 101, 0.6));
}

.footer-brand {
    text-align: left;
}
.footer-brand .logo {
    margin-bottom: 15px;
}
.footer-brand-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 320px;
}
.social-icons a { color: var(--text-muted); font-size: 1.4rem; margin: 0 15px; transition: 0.3s; }
.social-icons a:hover { color: var(--gold-primary); transform: scale(1.1); }
.copyright {
    text-align: center; color: #555; font-size: 0.85rem; padding: 20px 0;
    border-top: 1px solid #1a1a1a; background: #050607;
}

/* =========================================
   9. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .status-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .status-bar { margin-top: 0; }
    .hero-section {
        height: auto;
        padding: 120px 0 80px 0;
        background-image: url('../../img/bg-hero-mobile.png');
        background-attachment: scroll;
    }
    .hero-overlay {
        background: linear-gradient(180deg, rgba(15,17,21,0.75) 0%, rgba(15,17,21,0.55) 40%, rgba(15,17,21,0.85) 100%);
    }
}

@media (max-width: 768px) {
    /* --- MENU HAMBURGUER (SEU CÓDIGO ORIGINAL) --- */
    .nav-links {
        display: flex; position: absolute; top: 80px; left: 0; width: 100%;
        background: var(--bg-card); flex-direction: column; padding: 0 30px;
        border-bottom: 2px solid var(--gold-primary); box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    }

    .nav-links.active {
        max-height: 600px; opacity: 1; padding: 30px; pointer-events: auto;
    }
    .nav-links ul { flex-direction: column; align-items: center; gap: 20px; }
    .menu-toggle { display: block; }

    /* --- LAYOUT GERAL (SEU CÓDIGO ORIGINAL) --- */
    .section-header { flex-direction: column; align-items: flex-start; gap: 15px; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .rates-list-horizontal { flex-direction: column; gap: 10px; }

    .footer-brand { text-align: center; }
    .footer-brand .logo { margin: 0 auto 15px; display: block; }
    .footer-brand-desc { margin-left: auto; margin-right: auto; }

    .home-rank-tabs .tab-btn {
        flex: 1 1 calc(50% - 8px);
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    /* Carrossel de notícias na home */
    #noticias .news-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        justify-content: flex-start;
        gap: 20px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    #noticias .news-grid::-webkit-scrollbar { display: none; }
    #noticias .news-grid .news-card {
        flex: 0 0 82%;
        scroll-snap-align: center;
    }
    .news-carousel-nav {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }

    .nav-logo-img { height: 50px; }

    .download-grid { grid-template-columns: 1fr; }
    .page-download { align-items: flex-start; }    

    .gameplay-grid { grid-template-columns: 1fr; gap: 10px; }
    .enchant-wrapper { flex-direction: column; text-align: center; }
    .enchant-details { margin-top: 20px; }    

    .tab-btn { padding: 10px 15px; font-size: 0.8rem; flex-grow: 1; justify-content: center; }
    .ranking-tabs .tab-btn { flex: 1 1 calc(50% - 8px); }
    .panel-card { grid-template-columns: 1fr; min-height: auto; }
    .panel-sidebar { display: none; }
    .panel-content { padding: 40px 20px; }    
    
    /* --- A CORREÇÃO DO BOTÃO PAINEL --- */
    /* Antes estava 'display: none', agora forçamos aparecer alinhado */
    .nav-right { 
        display: flex !important; 
        align-items: center;
        gap: 15px; /* Isso garante o espaço entre a bandeira e o botão */
    } 

    .page-news,
    .page-tutorial,
    .page-info,
    .page-rankings,
    .page-store,
    .page-download {
        padding-top: 110px !important;
    }    

    /* 1. Centralização da Página */
    .page-panel {
        display: flex !important;       /* Mantém Flex para centralizar */
        flex-direction: column;
        justify-content: center !important; /* Centraliza Verticalmente */
        align-items: center !important;     /* Centraliza Horizontalmente */
        padding-top: 100px !important;  /* Espaço para o Menu não cobrir o topo */
        padding-bottom: 20px;
        min-height: 100vh;              /* Garante que o fundo cubra tudo */
    }

    /* 2. Wrapper: Controla a Largura do Cartão */
    .panel-wrapper {
        width: 90% !important;      /* Ocupa 90% da tela (deixa margem dos lados) */
        max-width: 380px !important; /* TRAVA o tamanho máximo (resolve o "grande demais") */
        margin: 0 auto;             /* Garante o centro */
        padding: 0;                 /* Remove padding extra do wrapper */
    }

    /* 3. O Cartão: Remove altura fixa e Grid */
    .panel-card {
        display: flex !important;       /* Muda de Grid para Flex */
        flex-direction: column;         /* Empilha o conteúdo */
        min-height: auto !important;    /* O PULO DO GATO: Remove os 500px fixos do PC */
        height: auto !important;        /* Ajusta a altura ao conteúdo real */
        width: 100%;
        border-top: 2px solid var(--gold-primary); /* Mantém o detalhe bonito */
    }

    /* 4. Esconde a Barra Lateral (Desnecessária no mobile) */
    .panel-sidebar {
        display: none !important;
    }

    /* 5. Ajuste do Conteúdo Interno (Paddings menores) */
    .panel-content {
        padding: 25px 20px !important; /* Menos espaço interno */
    }

    /* 6. Ajuste de Fontes para não parecer "Deformado" */
    .login-header h2 {
        font-size: 1.4rem !important; /* Título menor */
        margin-bottom: 5px;
    }
    .login-header p {
        font-size: 0.8rem !important; /* Subtítulo menor */
        margin-bottom: 20px;
    }

    /* Inputs mais compactos */
    .input-field {
        padding: 10px !important;
        font-size: 0.9rem !important;
    }

    /* Botão proporcional */
    .btn-block {
        padding: 12px !important;
        font-size: 0.9rem !important;
        margin-top: 10px;
    }    
    
}

/* =========================================
   10. PÁGINA DE CADASTRO (Register)
   ========================================= */

.page-cadastro {
    min-height: 100vh; /* Usa min-height no lugar de height */
    padding: 100px 20px 50px; /* Dá espaço para rolar a tela sem colar nas bordas */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../img/bg-hero.png'); 
    background-size: cover;
    background-position: center;
    position: relative;
    overflow-y: auto; /* Permite rolar a página para baixo se o monitor for pequeno */
    z-index: 1;
}

.page-cadastro::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 17, 21, 0.85); z-index: -1;
}

.register-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 500px;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    position: relative;
    animation: fadeIn 0.5s ease;
}

.register-card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.form-title {
    text-align: center; margin-bottom: 30px;
    font-size: 2rem; color: #fff; text-shadow: 0 0 10px rgba(196,160,101,0.3);
}

.input-group { margin-bottom: 20px; }
.input-group label { display: block; color: var(--text-muted); margin-bottom: 8px; font-size: 0.85rem; letter-spacing: 1px; }

.input-field {
    width: 100%;
    padding: 12px;
    background: #0b0d10;
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    transition: 0.3s;
}

.input-field:focus {
    border-color: var(--gold-primary);
    outline: none;
    box-shadow: 0 0 10px rgba(196, 160, 101, 0.1);
}

.login-row {
    display: grid; grid-template-columns: 2fr 1fr; gap: 15px;
}

select.input-field {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23c4a065%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat; background-position: right 10px top 50%; background-size: 10px auto;
}

.security-box {
    background: rgba(196, 160, 101, 0.1);
    border-left: 3px solid var(--gold-primary);
    padding: 15px; margin-bottom: 25px;
    font-size: 0.8rem; color: #ddd; line-height: 1.5;
}

.final-login-preview {
    text-align: center; margin-top: 10px; font-size: 0.9rem;
    color: var(--gold-primary); font-weight: bold; opacity: 0; transition: 0.3s;
}

.btn-submit { width: 100%; margin-top: 10px; font-size: 1rem; }

.back-link {
    display: block; text-align: center; margin-top: 20px;
    color: var(--text-muted); font-size: 0.8rem;
}
.back-link:hover { color: #fff; }

#finalAccountName {
    color: var(--gold-primary);
    font-weight: bold;
    letter-spacing: 1px;
}

/* =========================================
   CHECKBOX PERSONALIZADO (REGRAS)
   ========================================= */
.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

/* Esconde o checkbox original do navegador (mas mantém o tamanho real:
   height/width 0 faz o navegador tratar o campo como "não focável" e
   ignorar silenciosamente a validação "required" do formulário) */
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 22px;
    width: 22px;
    margin: 0;
}

/* A nova caixa desenhada com CSS */
.custom-checkbox .checkmark {
    position: relative;
    height: 22px;
    width: 22px;
    background-color: #0b0d10;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efeito Hover na caixinha */
.custom-checkbox:hover input ~ .checkmark {
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(196, 160, 101, 0.2);
}

/* Quando marcado (Checked) */
.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--gold-primary);
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(196, 160, 101, 0.4);
}

/* O ícone de V (Check) usando FontAwesome */
.custom-checkbox .checkmark::after {
    content: '\f00c'; /* Código do ícone de check do FontAwesome */
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
    color: #000;
    font-size: 13px;
    display: none; /* Escondido por padrão */
}

/* Mostra o ícone quando marcado */
.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
    animation: zoomIn 0.2s ease-out forwards;
}

/* O texto do lado */
.custom-checkbox .checkbox-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.3s;
}

.custom-checkbox .checkbox-text a {
    color: var(--gold-primary);
    font-weight: bold;
}

.custom-checkbox .checkbox-text a:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes zoomIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Ajuste para o reCAPTCHA não quebrar o layout mobile */
@media (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* =========================================
   11. PÁGINA DE DOWNLOADS
   ========================================= */

.page-download {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../img/bg-hero.png'); /* Mesmo fundo */
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 50px 20px; /* Padding para telas menores não cortarem */
    z-index: 1;
}

/* Máscara escura */
.page-download::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 17, 21, 0.9); z-index: -1;
}

.download-container {
    width: 100%;
    max-width: 900px;
    z-index: 10;
}

.mb-40 { margin-bottom: 40px; }

/* Grid dos Cartões */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dois lados iguais */
    gap: 30px;
}

/* Estilo do Cartão */
.download-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.download-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Destaque para o Patch (Borda dourada fixa) */
.card-highlight {
    border-color: var(--gold-dark);
    background: linear-gradient(180deg, var(--bg-card) 0%, rgba(196, 160, 101, 0.05) 100%);
}

.dl-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--gold-primary);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 5px 10px;
    border-bottom-left-radius: 8px;
}

.dl-icon {
    font-size: 3.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.dl-title {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 5px;
}

.dl-subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 25px;
    font-style: italic;
}

.dl-specs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(0,0,0,0.2);
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Botões de Mirror (Mirrors) */
.mirror-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-mirror {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.85rem;
}

/* Responsividade da Página de Downloads (Mobile) */
@media (max-width: 768px) {
    .download-grid {
        grid-template-columns: 1fr; /* Força os cartões a ficarem em 1 coluna só */
    }
}

/* =========================================
   12. PÁGINA DE TUTORIAL (COMO JOGAR)
   ========================================= */

.page-tutorial {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 80px 20px; /* Mais espaço vertical pois a página é longa */
    background-image: url('../../img/bg-hero.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Fundo fixo ao rolar */
    position: relative;
    z-index: 1;
}

.page-tutorial::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 17, 21, 0.92); z-index: -1; /* Um pouco mais escuro para leitura */
}

.tutorial-container {
    width: 100%;
    max-width: 800px;
    z-index: 10;
}

/* Vídeo Responsivo (Mantém proporção 16:9) */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Ratio */
    height: 0;
    background: #000;
    margin-bottom: 50px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Lista de Passos */
.steps-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: 0.3s;
}

.step-card:hover {
    border-color: var(--gold-primary);
    transform: translateX(5px);
}

/* Número Gigante (01, 02...) */
.step-number {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05); /* Quase transparente */
    line-height: 1;
    min-width: 60px;
    text-align: center;
    /* Destaque sutil */
    -webkit-text-stroke: 1px var(--gold-dark); 
}

.step-content { flex-grow: 1; }

.step-content h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.btn-step {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.75rem;
    margin-top: 5px;
}

/* Responsividade Tutorial */
@media (max-width: 600px) {
    .step-card {
        flex-direction: column; /* Número em cima, texto embaixo */
        align-items: center;
        text-align: center;
        gap: 10px;
    }
    
    .step-content h3 {
        justify-content: center;
    }
}

/* =========================================
   13. PÁGINA DE NOTÍCIAS (NEWS BOARD)
   ========================================= */

.page-news {
    min-height: 100vh;
    background-image: url('../../img/bg-hero.png'); 
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 80px 20px;
    z-index: 1;
}

/* Máscara de fundo para leitura */
.page-news::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 17, 21, 0.94); z-index: -1;
}

.news-main-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Layout: Sidebar (30%) + Conteúdo (70%) */
.news-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

/* --- SIDEBAR --- */
.news-sidebar {
    position: sticky;
    top: 100px; /* Fica fixo ao rolar */
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1rem;
    color: var(--gold-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Busca */
.search-box {
    display: flex;
    background: #0b0d10;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px;
}
.search-box input {
    background: transparent; border: none; color: #fff; width: 100%; padding: 8px; outline: none;
}
.search-box button {
    background: transparent; border: none; color: var(--gold-primary); padding: 0 10px; cursor: pointer;
}

/* Categorias */
.category-list li {
    margin-bottom: 12px;
}
.category-list a {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-muted); font-size: 0.9rem; transition: 0.3s;
}
.category-list a:hover, .category-list a.active {
    color: #fff; transform: translateX(5px);
}
.category-list i { width: 20px; text-align: center; }

/* Discord Widget */
.discord-widget { text-align: center; border-color: #7289da; background: rgba(114, 137, 218, 0.1); }
.discord-widget i { font-size: 2rem; color: #7289da; margin-bottom: 10px; }
.btn-discord { border-color: #7289da; color: #7289da; margin-top: 10px; width: 100%; display: block; }
.btn-discord:hover { background: #7289da; color: #fff; }


/* --- NEWS FEED --- */
.news-feed {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-grid-inner {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas para notícias menores */
    gap: 30px;
}

.big-card {
    border-color: var(--gold-dark);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}
.big-card .news-image {
    flex: 0 0 300px;
    aspect-ratio: 1 / 1;
    height: auto;
}
.big-card .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 15px; font-size: 0.8rem;
}

.news-tag {
    padding: 3px 8px; border-radius: 4px; font-weight: bold; color: #000;
}
.tag-event { background: var(--gold-primary); }
.tag-update { background: #2196f3; }
.tag-maint { background: #f44336; color: #fff; }

.read-more {
    display: inline-block; margin-top: 15px; color: var(--gold-primary); font-weight: bold; font-size: 0.85rem;
}
.read-more:hover { text-decoration: underline; gap: 5px; }

/* Paginação */
.pagination {
    display: flex; justify-content: center; gap: 10px; margin-top: 20px;
}
.pagination a {
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 4px;
}
.pagination a:hover, .pagination a.active {
    background: var(--gold-primary); color: #000; border-color: var(--gold-primary);
}


/* --- DECORAÇÃO (RENDERS) --- */
.render-decoration {
    position: fixed;
    z-index: 1; /* Atrás do conteúdo principal (z-index 10) mas na frente do fundo */
    pointer-events: none; /* Não atrapalha cliques */
    opacity: 0.8;
    transition: 0.5s;
}

.render-decoration img {
    max-height: 80vh; /* Altura máxima */
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
}

.render-decoration.left {
    bottom: 0;
    left: -50px;
    transform: scaleX(-1); /* Espelha a imagem se necessário para olhar pro centro */
}

.render-decoration.right {
    bottom: -50px;
    right: -50px;
}

.mobile-back-link { display: none; border-bottom: 1px solid var(--border); }

/* Responsividade Notícias */
@media (max-width: 900px) {
    .news-layout { grid-template-columns: 1fr; } /* Coluna única no celular */
    .news-sidebar { position: static; margin-bottom: 40px; }
    .news-grid-inner { grid-template-columns: 1fr; }

    .big-card { flex-direction: column; }
    .big-card .news-image { flex: none; width: 100%; }

    /* Notícia única no mobile: some com a sidebar e usa o botão de voltar no topo */
    .news-layout.is-single .news-sidebar { display: none; }
    .mobile-back-link { display: block; }

    /* Esconde os renders no celular para não poluir */
    .render-decoration { display: none; }
}

/* =========================================
   14. PÁGINA DE INFORMAÇÕES (SERVER INFO)
   ========================================= */

.page-info {
    min-height: 100vh;
    padding: 80px 20px;
    background-image: url('../../img/bg-hero.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.page-info::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 17, 21, 0.95); z-index: -1;
}

.info-main-container {
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
}

.info-section {
    margin-bottom: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

/* Detalhe Dourado Esquerdo */
.info-section::before {
    content: ''; position: absolute; left: 0; top: 20px; bottom: 20px;
    width: 3px; background: var(--gold-primary);
}

.info-subtitle {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
}

/* GRID DE RATES */
.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.rate-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    padding: 15px;
    text-align: center;
    border-radius: 4px;
    transition: 0.3s;
}
.rate-box:hover { border-color: var(--gold-primary); transform: translateY(-3px); }
.rate-box span { display: block; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 5px; }
.rate-box strong { display: block; font-size: 1.5rem; color: var(--gold-primary); font-family: 'Cinzel'; }

/* LISTA DE GAMEPLAY */
.gameplay-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}

.specs-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #333;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex; justify-content: space-between;
}
.specs-list li strong { color: #fff; }

/* TOP ITENS */
.top-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.item-tier-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 20px;
    transition: 0.3s;
}
.item-tier-card:hover { border-color: var(--gold-primary); }
.item-tier-card h4 {
    font-family: 'Cinzel', serif;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}
.tier-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}
.tier-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    background: #000;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    color: #fff;
}
.tier-badge small {
    color: var(--text-muted);
    font-size: 0.65rem;
    text-transform: uppercase;
}
.tier-badge.tier-top { border-color: var(--gold-primary); color: var(--gold-primary); }
.tier-badge.tier-top small { color: var(--gold-primary); opacity: 0.7; }
.tier-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 5px; }

/* ENCHANT SYSTEM */
.enchant-wrapper {
    display: flex; align-items: center; justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.enchant-item { text-align: center; }
.enchant-item small { display: block; color: var(--text-muted); font-size: 0.7rem; margin-bottom: 5px; }
.enchant-item span { 
    font-size: 2rem; font-family: 'Cinzel'; font-weight: bold;
    display: block; padding: 10px 20px; background: #000; border-radius: 4px; border: 1px solid var(--border);
}
.enchant-item .safe { color: #4caf50; border-color: #4caf50; }
.enchant-item .max { color: var(--gold-primary); border-color: var(--gold-primary); }

.enchant-details p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 5px; }

/* TABELA DE BOSSES */
.table-responsive { overflow-x: auto; }
.boss-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.boss-table th { text-align: left; color: var(--gold-primary); padding: 15px; border-bottom: 2px solid var(--border); }
.boss-table td { padding: 15px; border-bottom: 1px solid var(--border); color: #ccc; }
.boss-name { font-weight: bold; color: #fff; }

.status-alive { color: #4caf50; font-weight: bold; text-shadow: 0 0 5px rgba(76,175,80,0.5); }
.status-dead { color: #ff5252; font-weight: bold; text-shadow: 0 0 8px rgba(255,82,82,0.8); }


/* =========================================
   15. PÁGINA DE RANKINGS
   ========================================= */

.page-rankings {
    min-height: 100vh;
    padding: 80px 20px;
    background-image: url('../../img/bg-hero.png'); 
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.page-rankings::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 17, 21, 0.95); z-index: -1;
}

.ranking-container {
    max-width: 1000px;
    margin: 0 auto;
    z-index: 10;
}

/* --- ABAS (TABS) --- */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 12px 25px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-weight: bold;
    font-size: 0.9rem;
    transition: 0.3s;
    border-radius: 4px;
    display: flex; align-items: center; gap: 8px;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #000;
    border-color: var(--gold-primary);
    box-shadow: 0 0 15px rgba(196, 160, 101, 0.3);
}

.ranking-tabs-sub { margin-bottom: 30px; }
.ranking-tabs-sub .tab-btn { padding: 9px 18px; font-size: 0.8rem; }
.ranking-tabs-sub .tab-btn:not(.active) { background: rgba(0,0,0,0.25); }

/* --- TABELAS --- */
.ranking-panel {
    animation: fadeIn 0.4s ease;
}

.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden; /* Garante bordas arredondadas */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow-x: auto; /* Rolagem horizontal no mobile */
}

.l2-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Força largura mínima para não espremer no mobile */
}

.l2-table th {
    background: #0b0d10;
    color: var(--gold-primary);
    padding: 18px;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--border);
    font-family: 'Cinzel', serif;
}

.l2-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-main);
    font-size: 0.9rem;
}

.l2-table tr:last-child td { border-bottom: none; }

/* Efeito Hover na Linha */
.l2-table tbody tr:hover {
    background: rgba(196, 160, 101, 0.05);
}

/* --- DESTAQUES --- */
.text-right { text-align: right; }
.char-name { font-weight: bold; color: #fff; text-align: center; }
.highlight-val { font-weight: bold; font-family: 'Cinzel'; font-size: 1rem; }
.text-danger { color: #f44336; }

/* MEDALHAS (Top 3) */
.rank-1 { background: linear-gradient(90deg, rgba(255, 215, 0, 0.1) 0%, transparent 100%); }
.rank-2 { background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%); }
.rank-3 { background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, transparent 100%); }

.medal-gold { color: #FFD700; filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); }
.medal-silver { color: #C0C0C0; filter: drop-shadow(0 0 5px rgba(192, 192, 192, 0.5)); }
.medal-bronze { color: #CD7F32; filter: drop-shadow(0 0 5px rgba(205, 127, 50, 0.5)); }

/* --- CASTLE SIEGE (Cards alternados) --- */
.siege-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.siege-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: 0.3s;
}

.siege-card:hover { border-color: var(--gold-primary); }

/* Alterna o lado da imagem a cada castelo */
.siege-card:nth-child(even) { flex-direction: row-reverse; }

.siege-image {
    flex: 0 0 300px;
    aspect-ratio: 1 / 1;
    background-color: #0b0d10;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.siege-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.siege-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.siege-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    margin-bottom: 15px;
}

.siege-info-grid .info-row { font-size: 0.88rem; color: var(--text-muted); }
.siege-info-grid .info-row strong { display: block; color: var(--gold-primary); font-size: 0.75rem; text-transform: uppercase; margin-bottom: 3px; }
.siege-info-grid .info-row span { color: var(--text-main); }

.siege-nextwar {
    border-top: 1px solid var(--border);
    padding-top: 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
}
.siege-nextwar strong { color: var(--gold-primary); }

/* Responsividade Siege */
@media (max-width: 768px) {
    .siege-card, .siege-card:nth-child(even) { flex-direction: column; }
    .siege-image { flex: none; width: 100%; }
    .siege-info-grid { grid-template-columns: 1fr; }
}


/* =========================================
   16. PÁGINA DE LOJA / DOAÇÕES (STORE)
   ========================================= */

/* --- AJUSTES NA INDEX (VITRINE) --- */
.store-bg-overlay {
    background: linear-gradient(rgba(15, 17, 21, 0.9), rgba(15, 17, 21, 0.95)), url('../../img/bg-hero.png');
    background-size: cover;
    background-attachment: fixed;
    border-top: 1px solid var(--gold-dark);
    border-bottom: 1px solid var(--gold-dark);
}

.store-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.store-card-mini {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    transition: 0.3s;
    position: relative;
}

.store-card-mini:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
}

/* Destaque do meio na Home */
.store-card-mini.featured-mini {
    transform: scale(1.1);
    border-color: var(--gold-dark);
    background: radial-gradient(circle at center, rgba(196, 160, 101, 0.1) 0%, var(--bg-card) 100%);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    z-index: 5;
}
.store-card-mini.featured-mini:hover { transform: scale(1.15); }

.best-value-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--gold-primary); color: #000; font-weight: bold; font-size: 0.7rem;
    padding: 4px 10px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.mini-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 15px; }
.mini-price { display: block; font-size: 1.2rem; font-weight: bold; margin-top: 15px; color: #fff; }


/* --- PÁGINA DA LOJA (PAGE-STORE) --- */
.page-store {
    min-height: 100vh;
    padding: 80px 20px;
    background-image: url('../../img/bg-hero.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.page-store::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 12, 15, 0.96); z-index: -1; /* Fundo bem escuro para destacar o ouro */
}

.store-container { max-width: 1000px; margin: 0 auto; z-index: 10; }

/* PACOTE FULL (BIG BUNDLE) */
.bundle-section { margin-bottom: 60px; }

.bundle-card {
    background: linear-gradient(135deg, #1a1d24 0%, #0f1115 100%);
    border: 2px solid var(--gold-dark);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(196, 160, 101, 0.15);
}

/* Efeito de brilho animado no fundo */
.bundle-glow {
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(196, 160, 101, 0.1) 0%, transparent 60%);
    animation: rotateGlow 10s linear infinite;
    pointer-events: none;
}
@keyframes rotateGlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.bundle-content {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center;
}

.bundle-tag {
    display: inline-block; background: var(--gold-primary); color: #000;
    font-weight: 800; padding: 5px 15px; border-radius: 50px; font-size: 0.8rem; margin-bottom: 15px;
}

.bundle-title { font-size: 2.5rem; margin-bottom: 10px; color: #fff; }
.bundle-desc { color: var(--text-muted); margin-bottom: 25px; line-height: 1.5; }

.bundle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bundle-list li { color: #ddd; font-size: 0.95rem; }
.bundle-list li i { margin-right: 10px; }

.bundle-action { text-align: center; border-left: 1px solid rgba(255,255,255,0.1); padding-left: 40px; }
.old-price { text-decoration: line-through; color: var(--text-muted); font-size: 1.2rem; margin-bottom: 5px; }
.final-price { font-family: 'Cinzel'; font-size: 2.5rem; color: var(--gold-primary); font-weight: bold; margin-bottom: 20px; }

.btn-large { padding: 15px 30px; font-size: 1.1rem; width: 100%; }

/* Animação do botão "Comprar" */
.wobble-effect:hover { animation: pulse 1s infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 160, 101, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(196, 160, 101, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(196, 160, 101, 0); }
}

/* GRADE DE ITENS */
.divider-gold { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-dark), transparent); margin: 40px 0; }
.category-title { font-size: 1.5rem; color: #fff; margin-bottom: 30px; text-align: center; }

.items-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px;
}

.item-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; padding: 25px; text-align: center;
    transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between;
}

.item-card:hover { border-color: var(--text-muted); transform: translateY(-3px); }
.item-card.highlight-border:hover { border-color: var(--gold-primary); box-shadow: 0 5px 20px rgba(196, 160, 101, 0.2); }

.item-icon { font-size: 2rem; color: #555; margin-bottom: 15px; }
.item-details h4 { color: #fff; font-size: 1rem; margin-bottom: 5px; }
.item-details p { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 15px; min-height: 40px; }

.item-price { font-size: 1.3rem; font-weight: bold; color: #fff; margin-bottom: 15px; font-family: 'Cinzel'; }

.btn-buy { width: 100%; padding: 10px; font-size: 0.85rem; }

/* PAGAMENTO */
.payment-methods {
    margin-top: 50px; text-align: center; padding: 20px;
    background: rgba(0,0,0,0.3); border-radius: 8px;
}
.payment-methods span { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 0.8rem; }
.payment-methods i { font-size: 2rem; margin: 0 10px; color: #fff; opacity: 0.7; }

/* RESPONSIVO LOJA */
@media (max-width: 900px) {
    .store-preview-grid { grid-template-columns: 1fr; max-width: 400px; margin: 40px auto 0; }
    .store-card-mini.featured-mini { transform: scale(1); margin: 20px 0; }
    .text-center-mobile { text-align: center; flex-direction: column; align-items: center; gap: 20px; }
    
    .bundle-content { grid-template-columns: 1fr; text-align: center; }
    .bundle-action { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-left: 0; padding-top: 30px; }
    .bundle-list { text-align: left; }
}

/* =========================================
   17. PAINEL DE USUÁRIO (UCP)
   ========================================= */

.page-panel {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../../img/bg-hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Overlay escuro para focar no painel */
.panel-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(15,17,21,0.8) 0%, #000 100%);
    z-index: 1;
}

.panel-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

/* O Cartão Principal */
.panel-card {
    display: grid;
    grid-template-columns: 280px 1fr; /* Menu Esquerdo Fixo + Conteúdo Flexível */
    background: rgba(22, 25, 32, 0.95);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,0,0,0.8);
    min-height: 500px;
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--gold-primary); /* Detalhe premium no topo */
}

/* --- SIDEBAR (ESQUERDA) --- */
.panel-sidebar {
    background: linear-gradient(180deg, #121419 0%, #0b0d10 100%);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    text-align: center;
    margin-bottom: 40px;
}
.sidebar-logo img {
    max-width: 120px;
    filter: drop-shadow(0 0 10px rgba(196, 160, 101, 0.3));
}

.panel-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.panel-nav a {
    padding: 12px 15px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
    display: flex; align-items: center; gap: 12px;
}

.panel-nav a:hover, .panel-nav a.active {
    background: rgba(196, 160, 101, 0.1);
    color: var(--gold-primary);
    border-left: 3px solid var(--gold-primary);
}

.panel-nav a i { width: 20px; text-align: center; }

.server-status-mini {
    margin-top: auto; /* Empurra para o final */
    background: #000;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid var(--border);
}
.server-status-mini small { display: block; color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; }

/* --- CONTEÚDO (DIREITA) --- */
.panel-content {
    padding: 40px 60px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lang-selector {
    position: absolute; top: 20px; right: 20px;
    display: flex; gap: 10px;
}
.lang-selector img { cursor: pointer; transition: 0.3s; }
.lang-selector img:hover { opacity: 1 !important; transform: scale(1.1); }

.login-header { margin-bottom: 30px; text-align: center; }
.login-header h2 { font-size: 1.8rem; color: #fff; margin-bottom: 5px; }
.login-header p { color: var(--text-muted); font-size: 0.9rem; }

/* Formulário Personalizado */
.panel-form .input-group { margin-bottom: 20px; }
.panel-form label { font-size: 0.75rem; font-weight: bold; color: var(--gold-primary); }

.forgot-link {
    display: block; text-align: right; font-size: 0.8rem; color: var(--text-muted); margin-top: 5px;
}
.forgot-link:hover { color: #fff; text-decoration: underline; }

/* Fake ReCAPTCHA */
.recaptcha-placeholder {
    background: #f9f9f9;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 15px;
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    max-width: 300px; /* Tamanho padrão do captcha */
    margin: 0 auto 25px auto;
}
.captcha-check { display: flex; align-items: center; gap: 10px; }
.captcha-check label { color: #000; font-weight: normal; margin: 0; }
.recaptcha-placeholder img { height: 30px; opacity: 0.7; }

.btn-block { width: 100%; padding: 15px; font-size: 1rem; }
.btn-glow { box-shadow: 0 0 20px rgba(196, 160, 101, 0.4); }
.btn-glow:hover { box-shadow: 0 0 30px rgba(196, 160, 101, 0.6); }

/* =========================================
   18. ESTILOS EXTRAS (RECUPERAR SENHA)
   ========================================= */

/* Ícone circular no topo do formulário */
.icon-large-circle {
    width: 80px;
    height: 80px;
    background: rgba(196, 160, 101, 0.1);
    border: 1px solid var(--gold-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(196, 160, 101, 0.2);
}

/* Caixa de aviso sutil */
.alert-box {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--text-muted);
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.85rem;
    color: #ccc;
    line-height: 1.5;
}

.alert-box i {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-top: 2px;
}

/* Link de voltar simples */
.back-link-simple {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: 0.3s;
}
.back-link-simple:hover {
    color: var(--gold-primary);
    text-decoration: none;
}

/* =========================================
   19. TRANSIÇÕES DE PÁGINA & AJUSTES FINAIS
   ========================================= */

/* Estado inicial da página */
body {
    /* Removido o transform para não quebrar o Header Fixo */
    animation: fadeInPage 0.5s ease-out forwards;
}

@keyframes fadeInPage {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

body.fade-out {
    animation: fadeOutPage 0.4s ease-in forwards;
    pointer-events: none;
}

@keyframes fadeOutPage {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* --- CORREÇÃO DE BOTÕES (CENTRALIZAR) --- */
.btn {
    /* Isso garante que o ícone e o texto fiquem no meio */
    justify-content: center; 
}

/* --- SELETOR DE IDIOMA --- */
.lang-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 5px 10px;
    border-radius: 4px;
    margin-right: 15px; /* Espaço para o botão Painel */
    position: relative;
    transition: 0.3s;
}
.lang-box:hover {
    border-color: var(--gold-primary);
}

/* Dropdown de idioma 100% customizado (não usa <select> nativo, então não
   depende da renderização do navegador/SO pra estilizar a lista aberta) */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}
.lang-arrow { font-size: 0.65rem; color: var(--gold-primary); transition: transform 0.2s; }
.lang-box.open .lang-arrow { transform: rotate(180deg); }

.lang-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    list-style: none;
    overflow: hidden;
    z-index: 200;
}
.lang-box.open .lang-menu { display: block; }

.lang-menu li {
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.lang-menu li:hover { background: rgba(196,160,101,0.1); color: var(--gold-primary); }
.lang-menu li.active { background: rgba(196,160,101,0.15); color: var(--gold-primary); }

#lang-selector option {
    background: var(--bg-card); /* Fundo escuro nas opções */
    color: #fff;
}


/* =========================================
   20. AJUSTE DE ESPAÇAMENTO (HEADER FIXO)
   ========================================= */

/* Aplica o espaçamento em todas as páginas internas */
.page-news,
.page-tutorial,
.page-info,
.page-rankings,
.page-store,
.page-download {
    /* 80px (Altura do Menu) 
       + 
       50px (Espaço de respiro) 
       = 130px Total 
    */
    padding-top: 130px !important; 
    padding-bottom: 50px; /* Garante espaço no rodapé também */
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   21. PÁGINA DE REGRAS
   ========================================= */

.page-rules {
    min-height: 100vh;
    padding: 80px 20px;
    background-image: url('../../img/bg-hero.png');
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    z-index: 1;
}

.page-rules::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 17, 21, 0.95); z-index: -1;
}

.rules-main-container {
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
}

.rules-section {
    margin-bottom: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 8px;
    position: relative;
}

.rules-section .rule {
    margin-bottom: 14px;
}

/* Detalhe Dourado Esquerdo */
.rules-section::before {
    content: ''; position: absolute; left: 0; top: 20px; bottom: 20px;
    width: 3px; background: var(--gold-primary);
}

.rules-subtitle {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    display: flex; align-items: center; gap: 10px;
}

/* =========================================
   SISTEMA DE ALERTAS E MODAIS (UCP / SITE)
   ========================================= */

/* Fundo Escuro (Overlay) com desfoque */
#backblack {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9998;
    animation: fadeIn 0.3s ease;
}

#alerta {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    z-index: 99999 !important; /* Bem alto para ficar acima de tudo */
    
    /* Cores com fallback seguro caso as variáveis falhem */
    background: var(--bg-card, #1e1e1e) !important; 
    border: 1px solid var(--border, #333) !important;
    border-top: 3px solid var(--gold-primary, #c4a065) !important; 
    
    border-radius: 8px;
    padding: 30px 40px;
    color: #fff !important;
    font-size: 1.05rem;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0,0,0,0.9) !important;
    min-width: 320px;
    max-width: 90%;
    
    /* Centralização forçada */
    top: 50% !important;
    left: 50% !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
}

/* Animação suave ao abrir o alerta */
@keyframes popIn {
    0% { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Container do Botão OK */
#alerta .ok {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

/* O Botão OK (Padrão para Erros) */
#alerta .ok > div {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 10px 35px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

#alerta .ok > div:hover {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.4);
}

/* O Botão OK (Para Sucesso) */
#alerta .ok.sucesso > div {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

#alerta .ok.sucesso > div:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 15px rgba(196, 160, 101, 0.4);
}

/* =========================================
   MENSAGENS EM LINHA (RMSGs)
   ========================================= */
.rmsg {
    display: block;
    width: 100%;
    margin: 0 auto 20px auto;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
    background: rgba(76, 175, 80, 0.1);
    border-left: 3px solid var(--success);
    color: #fff;
}

/* Erro */
.rmsg.error {
    background: rgba(244, 67, 54, 0.1) !important;
    border-left-color: var(--danger) !important;
}

/* Aviso */
.rmsg.warn {
    background: rgba(255, 193, 7, 0.1) !important;
    border-left-color: #ffc107 !important;
    color: #fff !important;
}

/* Botão Submit travado em Sucesso */
.btn.sucesso, input.default.sucesso {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.4) !important;
    pointer-events: none;
}