/* =========================================
   1. VARIÁVEIS E CONFIGURAÇÃO BASE
   ========================================= */
:root { 
    --laranja: #f7931a; 
    --dark: #1a1a1a; 
    --texto: #333; 
    --verde: #27ae60; 
    --bg-light: #fdfdfd; 
}

* { box-sizing: border-box; }

html { 
    scroll-padding-top: 165px; 
    scroll-behavior: smooth; 
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    line-height: 1.8; 
    color: var(--texto); 
    margin: 0; 
    padding: 0; 
    background-color: var(--bg-light); 
}

/* =========================================
   2. ELEMENTOS FIXOS (TICKER E HEADER)
   ========================================= */
#crypto-ticker { 
    background: var(--dark); 
    color: white; 
    height: 45px; 
    line-height: 45px; 
    overflow: hidden; 
    white-space: nowrap; 
    border-bottom: 2px solid var(--laranja); 
    position: fixed; 
    top: 0; 
    width: 100%; 
    z-index: 3000; 
}

.ticker-wrapper { 
    display: inline-block; 
    white-space: nowrap;
    animation: ticker 40s linear infinite; 
}

.coin { 
    display: inline-block; 
    margin-right: 50px; 
    font-weight: bold; 
    font-size: 0.9rem; 
}

@keyframes ticker { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

header.main-header { 
    background-color: #ffffff; 
    height: 80px;
    position: fixed; 
    top: 45px; 
    left: 0;
    width: 100%; 
    z-index: 2000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 0 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    border-bottom: 3px solid var(--laranja);
}

.logo { font-weight: bold; font-size: 1.5rem; color: var(--laranja); text-decoration: none; }
.logo span { color: #2c3e50; }

nav a { 
    margin-left: 15px; 
    text-decoration: none; 
    color: #2c3e50; 
    font-weight: 600; 
    font-size: 0.9rem; 
    transition: 0.3s; 
}

.btn-comprar { 
    background-color: var(--laranja); 
    color: white !important; 
    padding: 10px 20px; 
    border-radius: 5px; 
}

/* =========================================
   3. ESTRUTURA PRINCIPAL (CORRIGE SOBREPOSIÇÃO)
   ========================================= */
main { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 165px 20px 60px 20px; /* Garante que o conteúdo não fique embaixo do header */
}

/* Estilos de Texto e Artigos */
h1 { font-size: 2.5rem; color: #2c3e50; line-height: 1.2; margin-bottom: 25px; }
h2 { border-left: 5px solid var(--laranja); padding-left: 15px; margin-top: 50px; color: #2c3e50; }
.post-meta { color: #888; font-size: 0.9rem; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 15px; }

/* =========================================
   4. COMPONENTES ESPECÍFICOS (BOXES, TABELAS, CTA)
   ========================================= */
.cta-box, .review-box { 
    background: white; 
    border: 2px solid #eee; 
    border-left: 8px solid var(--laranja); 
    padding: 25px; 
    border-radius: 12px; 
    margin: 30px 0; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
}

.table-container, .tax-table-container { 
    width: 100%; 
    overflow-x: auto; 
    margin: 30px 0; 
    border-radius: 10px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
}

table, .tax-table { 
    width: 100%; 
    border-collapse: collapse; 
    background: white; 
}

th, td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background-color: #f8f9fa; color: var(--laranja); font-size: 0.8rem; text-transform: uppercase; }

.btn-cta { 
    display: block; 
    background: var(--verde); 
    color: white !important; 
    text-align: center; 
    padding: 20px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: bold; 
    font-size: 1.2rem; 
    transition: 0.3s; 
}

/* =========================================
   5. BANNER FLUTUANTE E FOOTER
   ========================================= */
.floating-promo { 
    position: fixed; 
    bottom: 20px; 
    right: 20px; 
    width: 300px; 
    background: white; 
    border-left: 5px solid var(--laranja); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.15); 
    border-radius: 8px; 
    padding: 15px; 
    z-index: 4000; 
}

.footer { 
    background: #f4f4f4; 
    padding: 60px 20px; 
    border-top: 1px solid #ddd; 
    margin-top: 60px;
}

.footer-grid { 
    display: flex; 
    flex-wrap: wrap; 
    max-width: 900px; 
    margin: 0 auto; 
    gap: 40px; 
}

.footer-grid > div { flex: 1; min-width: 250px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a { text-decoration: none; color: var(--texto); margin-bottom: 10px; }

/* =========================================
   6. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 600px) {
    header.main-header { flex-direction: column; height: auto; padding: 15px; top: 45px; }
    nav { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
    main { padding-top: 260px; }
    h1 { font-size: 2rem; }
    .floating-promo { width: calc(100% - 40px); left: 20px; }
}

/* Container do Ranking */
.ranking-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* Estilo do Card Individual */
.ranking-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: 0.3s;
    justify-content: space-between;
}

.ranking-card:hover {
    border-color: var(--laranja);
    transform: translateX(5px);
}

/* Número com Destaque */
.rank-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--laranja);
    width: 40px;
}

.rank-info {
    flex-grow: 1;
    margin-left: 15px;
}

.rank-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dark);
}

.rank-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

/* Botão de Visitar */
.btn-rank {
    background: #f8f9fa;
    color: var(--dark);
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.8rem;
    border: 1px solid #ddd;
    transition: 0.3s;
}

.btn-rank:hover {
    background: var(--laranja);
    color: white !important;
    border-color: var(--laranja);
}

/* Destaque para a número 1 */
.featured {
    border-left: 5px solid var(--laranja);
    background: #fffdfa;
}

/* Alerta de Meta Dinâmico */
#meta-alert {
    display: none; /* Escondido por padrão */
    background: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border-bottom: 2px solid var(--laranja);
    font-size: 0.9rem;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.simulador-container {
    background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
    border: 2px solid var(--laranja);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 15px 35px rgba(247, 147, 26, 0.1);
    text-align: center;
}
.input-group {
    margin: 20px 0;
}
.input-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #444;
}
.input-group input {
    width: 80%;
    max-width: 300px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.1rem;
    text-align: center;
}
.resultado-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: none; /* Aparece ao calcular */
}
.valor-destaque {
    color: var(--verde);
    font-size: 1.8rem;
    font-weight: bold;
    display: block;
}
.tax-calc-container {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #dee2e6;
}
.tax-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}
.tax-input-group div {
    display: flex;
    flex-direction: column;
}
.tax-input-group label {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #444;
}
.tax-input-group input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}
.tax-result {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid var(--laranja);
    display: none; /* Aparece ao calcular */
}
.tax-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}
.tax-total-clean {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--verde);
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.tax-calc-container {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    border: 1px solid #dee2e6;
}
.tax-input-group { margin-bottom: 25px; }
.tax-input-group div { margin-bottom: 15px; display: flex; flex-direction: column; }
.tax-input-group label { font-size: 0.9rem; font-weight: bold; margin-bottom: 5px; color: #444; }
.tax-input-group input { padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; width: 100%; box-sizing: border-box; }
.tax-result { background: #fff; padding: 20px; border-radius: 12px; border-left: 5px solid var(--laranja); display: none; margin-top: 20px; }
.tax-row { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 1rem; }
.tax-total-clean { font-size: 1.3rem; font-weight: bold; color: var(--verde); border-top: 1px solid #eee; padding-top: 10px; }

.staking-table-container {
    margin: 30px 0;
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.staking-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.staking-table th, .staking-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.staking-table th {
    background: #f8f9fa;
    color: #333;
    font-size: 0.9rem;
}
.badge-yield {
    background: #e6fcf5;
    color: #0ca678;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
}
.badge-high {
    background: #fff5f5;
    color: #e03131;
}
.checklist-container { background: #fdfdfd; border: 1px solid #eee; padding: 20px; border-radius: 10px; margin: 30px 0; }
.check-item { display: flex; gap: 15px; margin-bottom: 10px; align-items: center; }
.check-num { background: var(--laranja); color: white; width: 25px; height: 25px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

.centered-checklist {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o conteúdo horizontalmente */
    text-align: center;
}

.check-box-wrapper {
    display: inline-block; /* Mantém os itens alinhados à esquerda, mas o bloco no centro */
    text-align: left;
    margin-top: 10px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}