:root {
  --pvm-green: #00703a;
  --pvm-green-light: #00994f;
  --bg-dark: #0d0d0d;
  --bg-card: rgba(0,0,0,0.78);
  
  /* Variável para a altura do header */
  --header-height: 60px; 
}

/* RESET */
* {margin:0; padding:0; box-sizing:border-box; font-family:"Poppins",sans-serif;}
body {background: var(--bg-dark); color:#fff;}

/* HEADER (FIXO NO TOPO) */
.header {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 10px 20px; 
  
  /* PROPRIEDADES DE FIXAÇÃO */
  position: fixed; 
  top: 0;          
  left: 0;         
  width: 100%;     
  z-index: 1000;   

  background: rgba(0,0,0,0.8); 
  height: var(--header-height);
}

.logo {width:120px;}
.logo-container {display:flex; align-items:center;}
.hamburger {font-size:28px; background:none; border:none; color:#fff; cursor:pointer; display:block;}

/* MENU (NAV) */
.nav-menu {position:fixed; top:0; right:-250px; width:250px; height:100%; background:var(--bg-dark); transition:0.3s; padding-top:80px;}
.nav-menu ul {list-style:none;}
.nav-menu ul li {margin:20px 0; text-align:center;}
.nav-menu ul li a {color:#fff; text-decoration:none; font-weight:600; font-size:18px; transition:0.3s;}
.nav-menu ul li a:hover {color:var(--pvm-green-light);}
.nav-menu.active {right:0;}

/* ESTILO PARA O BOTÃO FECHAR (X) */
.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 35px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.close-btn:hover {
  color: var(--pvm-green-light);
  transform: scale(1.1);
}

/* HERO */
.hero {
  position:relative; 
  height:90vh; 
  display:flex; 
  justify-content:center; 
  align-items:center; 
  text-align:center; 
  overflow:hidden;
  
  /* CORREÇÃO DO OVERLAP: Empurra o hero para baixo */
  margin-top: var(--header-height); 
}

.hero-bg {position:absolute; width:100%; height:100%; object-fit:cover; opacity:0.35; top:0; left:0;}
.hero-content {position:relative; z-index:1; animation:fadeIn 1.5s ease;}
.hero-content h1 {font-size:2.2em; margin-bottom:15px; animation:slideUp 1.2s ease;}
.hero-content p {font-size:1.1em; margin-bottom:20px;}
.btn {background:var(--pvm-green); color:#fff; padding:12px 20px; border-radius:8px; text-decoration:none; display:inline-block; transition:0.3s;}
.btn:hover {background:var(--pvm-green-light); transform:scale(1.05);}

/* USER AREA */
#userArea {background:var(--bg-card); padding:20px; border-radius:10px; margin:20px auto; max-width:400px; text-align:center; box-shadow:0 0 20px rgba(0,112,58,0.3);}
.btn-perfil {margin-top:10px;}

/* SEÇÕES GERAIS */
.section {padding:60px 20px; max-width:1000px; margin:0 auto;}

/* ======== NOVO ESTILO PARA CORRIGIR OVERLAP EM PÁGINAS SEM HERO ======== */
.main-page {
  padding-top: var(--header-height); /* Adiciona o espaço necessário para o cabeçalho fixo */
}
/* ========================================================================= */

/* ESTILOS PARA O CONTEÚDO EM DESTAQUE */
.featured-content {
  background: var(--bg-card);
  padding: 25px 30px;
  border-radius: 12px;
  margin-top: 30px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 112, 58, 0.5); 
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.featured-content h3 {color: var(--pvm-green-light); font-size: 1.7em; margin-bottom: 20px;}
.featured-image {max-width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px;}
.featured-content p {font-size: 1.1em; line-height: 1.6; margin-bottom: 25px;}

/* FOOTER */
.footer {text-align:center; padding:15px; background:rgba(0,0,0,0.8);}

/* ANIMATIONS */
@keyframes fadeIn {from{opacity:0;} to{opacity:1;}}
@keyframes slideUp {from{opacity:0; transform:translateY(30px);} to{opacity:1; transform:translateY(0);}}


/* --- FINANÇAS: ESTRUTURA GERAL --- */

.financas-title {
    color: var(--pvm-green-light);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 40px;
    font-size: 1.1em;
}

.content-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section h2 {
    color: var(--pvm-green);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8em;
}

/* --- ESTILOS DOS CARDS GENÉRICOS --- */

.card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 112, 58, 0.2);
    text-align: left;
}

/* --- 1. SNAPSHOT DO MERCADO (DATA WIDGETS) --- */

.market-snapshot {
    display: flex;
    justify-content: space-around; /* Distribui os widgets uniformemente */
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
/* --- 1. SNAPSHOT DO MERCADO (DATA WIDGETS) --- */

.market-snapshot {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    /* Adicionamos o alinhamento para o caso de um card ser maior que o outro */
    align-items: stretch;
}

.data-widget {
    background: #1a1a1a;
    border: 1px solid var(--pvm-green-light);
    flex: 1 1 30%;
    min-width: 250px;
    /* Removemos o text-align: center para deixar o widget mais livre */
    text-align: left; 
    /* Adicionamos uma altura mínima e display flex para forçar a estrutura */
    min-height: 150px; /* Altura mínima para os widgets */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centraliza o conteúdo (Dólar, Euro) verticalmente */
}


.data-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #00ff80;
    margin: 5px 0;
}

.data-change.loading {
    color: #888;
}

.data-change {
    font-size: 0.9em;
}

/* --- 2. ARTIGOS DE NOTÍCIAS (News Feed) --- */

.article-feed {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.article-preview {
    max-width: 450px;
    flex: 1 1 40%;
}

.article-preview h4 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.btn-leiamais {
    color: var(--pvm-green-light);
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* --- 3. ARTIGOS EDUCATIVOS (Grid) --- */

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

.article-item h4 {
    color: var(--pvm-green);
    margin-bottom: 8px;
}

/* --- RESPONSIVIDADE BÁSICA --- */
@media (max-width: 768px) {
    .market-snapshot {
        flex-direction: column;
        align-items: center;
    }

    .data-widget {
        max-width: 90%;
    }
}

/* --- ESTILOS ESPECÍFICOS PARA O WIDGET TRADINGVIEW --- */
.tradingview-widget-container {
    /* Ocupa todo o espaço restante dentro do card */
    flex-grow: 1;
    width: 100%;
}

.tradingview-widget-container__widget {
    /* Garante que o widget em si preencha o contêiner */
    height: 100%;
    width: 100%;
}

/* --- FINANÇAS: ESTILOS GERAIS PARA ARTIGOS --- */

.content-section {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content-section h2 {
    color: var(--pvm-green);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.8em;
}

/* --- 1. NOTÍCIAS EM DESTAQUE (Article Feed) --- */

.article-feed {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.article-preview {
    max-width: 450px;
    flex: 1 1 40%;
    /* Destaque visual */
    background: #0000004d; /* Preto com 30% de transparência */
    border-left: 5px solid var(--pvm-green-light);
    transition: transform 0.3s ease;
}

.article-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 112, 58, 0.4);
}

.article-preview h4 {
    color: #fff;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.article-preview p {
    color: #ccc;
    font-size: 0.95em;
    margin-bottom: 15px;
}

.btn-leiamais {
    color: var(--pvm-green-light);
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* --- 2. ARTIGOS EDUCATIVOS (Article Grid) --- */

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

.article-item {
    /* Estilo de card padrão */
    background: var(--bg-card);
    transition: background 0.3s ease;
}

.article-item:hover {
    background: #252525;
}

.article-item h4 {
    color: var(--pvm-green);
    font-size: 1.2em;
    margin-bottom: 8px;
}

.article-item p {
    color: #b0b0b0;
    font-size: 0.9em;
}

/* --- ESTILOS PARA PERFIL (perfil.html) --- */

.perfil-title {
    color: var(--pvm-green-light);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.perfil-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}

.perfil-dados-card {
    background: #1a1a1a;
    border: 1px solid var(--pvm-green);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.perfil-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Torna a imagem redonda */
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid var(--pvm-green-light);
}

.perfil-dados-card h2 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 5px;
}

.perfil-email {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.perfil-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    color: #ccc;
    text-align: left;
    font-size: 0.9em;
}

.perfil-stats span {
    color: var(--pvm-green-light);
    font-weight: bold;
    float: right; /* Alinha o valor à direita */
}

/* Ações */
.perfil-acoes {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-config {
    background-color: #333;
    color: #fff;
    padding: 15px;
    border: 1px solid #555;
    transition: background-color 0.3s;
}

.btn-config:hover {
    background-color: #555;
}

.btn-logout {
    background: #e74c3c; /* Vermelho para destaque de ação */
    border: none;
    color: white;
    padding: 15px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background: #c0392b;
}

/* --- ESTILOS PARA MODAL DE EDIÇÃO --- */

/* Fundo do Modal */
.modal {
    display: none; /* Oculta o modal por padrão */
    position: fixed;
    z-index: 10; /* Garante que fique acima de tudo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); /* Fundo preto semi-transparente */
    padding-top: 50px;
}

/* Conteúdo do Modal */
.modal-content {
    background-color: #1c1c1c;
    margin: 5% auto; /* Centraliza verticalmente e horizontalmente */
    padding: 30px;
    border: 1px solid var(--pvm-green-light);
    width: 90%;
    max-width: 500px;
    position: relative;
    border-radius: 8px;
}

.modal-content h2 {
    color: var(--pvm-green);
    margin-bottom: 20px;
    text-align: center;
}

/* Botão de fechar */
.close-btn-modal {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 20px;
}

.close-btn-modal:hover,
.close-btn-modal:focus {
    color: var(--pvm-green-light);
    text-decoration: none;
}

/* Estilos de formulário dentro do modal */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    font-weight: bold;
}

.modal-content input[type="text"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #fff;
    border-radius: 4px;
}

.modal-content .btn-config {
    width: 100%;
    margin-top: 15px;
}


/* --- ESTILOS PARA SELEÇÃO DE AVATAR --- */

.avatar-selection-group {
    margin-bottom: 25px;
}

.avatar-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.avatar-option {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 3px solid transparent; /* Borda transparente inicial */
}

.avatar-option:hover {
    opacity: 0.8;
}

/* Estado Selecionado */
.avatar-option.selected {
    opacity: 1;
    border-color: var(--pvm-green-light); /* Destaque o avatar escolhido */
    transform: scale(1.1);
}

/* --- ESTILOS PARA PERFIL (perfil.html) --- */

.perfil-title {
    color: var(--pvm-green-light);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
}
.perfil-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
}
.perfil-dados-card {
    background: #1a1a1a;
    border: 1px solid var(--pvm-green);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}
/* ... (mantenha o restante do CSS do card, foto e stats) ... */
.perfil-acoes {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
/* ... (mantenha o restante do CSS para btn-config e btn-logout) ... */


/* --- ESTILOS PARA O DESAFIO 1% (desafio1porcento.html) --- */

.desafio-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.desafio-title {
    color: var(--pvm-green-light);
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.desafio-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

/* Estilização dos Cards (Progresso e Hábitos) */
.progresso-card, .habitos-card {
    background: #1a1a1a;
    border: 1px solid var(--pvm-green);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

/* ... (Mantenha o resto dos estilos de Barra de Progresso, Lista de Hábitos, e .completed) ... */

/* --- ESTILOS PARA MODAIS (JÁ DEVE EXISTIR, MAS GARANTA O ESTILO BÁSICO) --- */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 100; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--pvm-green);
    width: 80%; 
    max-width: 500px;
    border-radius: 10px;
    position: relative;
}

.close-btn-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}


/* home.css */

/* Novo container para organizar os botões Marcar e Excluir */
.habito-actions {
    display: flex;
    gap: 8px; /* Espaço entre os botões */
    align-items: center;
}

/* Estilo para o botão de exclusão */
.btn-delete-habito {
    background: transparent;
    border: 1px solid #737373; /* Borda sutil */
    color: #f44336; /* Vermelho suave */
    padding: 6px 8px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-delete-habito:hover {
    background-color: #3b3b3b;
    border-color: #f44336;
}

/* Garante que o item completo se encaixe na nova estrutura */
.habito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}



/* ========================================================= */
/* ESTILOS DA PÁGINA VIDEOTECA */
/* ========================================================= */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.video-item {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s;
}

.video-item:hover {
    transform: translateY(-5px);
}

/* Container Responsivo 16:9 (PARA O IFRAME) */
.video-responsive-container {
    position: relative;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
}

.video-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilo do Título e Categoria do Vídeo */
.video-item h3 {
    color: #fff;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
}

.video-item span {
    color: var(--pvm-green);
    font-size: 0.85em;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

/* Estilos dos Botões de Filtro */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
}

.btn-filter {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
}

.btn-filter.active {
    background-color: var(--pvm-green);
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}




/* ========================================================= */
/* ESTILOS DA PÁGINA DESAFIO (INFORMATIVA) */
/* ========================================================= */

.desafio-container {
    display: grid;
    grid-template-columns: 1fr; /* Padrão de uma coluna */
    gap: 25px;
    margin-top: 30px;
}

.informativo-card, .habitos-exemplos-card, .chamada-acao-card {
    background-color: #1a1a1a;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.informativo-card h2, .habitos-exemplos-card h2, .chamada-acao-card h2 {
    color: var(--pvm-green);
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 15px;
}

.habito-list-informativa {
    list-style-type: none; /* Remove bolinhas */
    padding: 0;
}

.habito-list-informativa li {
    background-color: #2b2b2b;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-weight: 500;
}

.btn-principal {
    background-color: var(--pvm-green);
    color: #111;
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.btn-principal:hover {
    background-color: #3e8e41; /* Um verde um pouco mais escuro */
}

/* Layout em duas colunas para telas grandes */
@media (min-width: 900px) {
    .desafio-container {
        grid-template-columns: 2fr 1fr; /* Coluna de info maior que a coluna de exemplos */
    }
    
    /* Faz a Chamada à Ação ocupar a linha inteira, abaixo dos dois cards */
    .chamada-acao-card {
        grid-column: 1 / -1; 
        text-align: center;
    }
}

/* ========================================================= */
/* HOME PAGE - MELHORIA DE DESIGN (CARDS E LAYOUT) */
/* ========================================================= */

/* 1. SEÇÃO DE BOAS-VINDAS DO USUÁRIO */
.user-welcome-section {
    padding: 20px;
    background-color: #1a1a1a;
    border-bottom: 2px solid var(--pvm-green);
    margin-bottom: 30px;
}

.user-info-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; 
}

.user-info-card h2 {
    margin: 0;
    color: #fff;
    font-size: 1.5em;
}

.user-info-card p {
    margin: 0;
    color: #ccc;
    font-size: 0.9em;
}

.btn-perfil {
    background-color: #333;
    color: var(--pvm-green);
    border: 1px solid var(--pvm-green);
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-perfil:hover {
    background-color: var(--pvm-green);
    color: #111;
}

/* 2. GRADE DE MÓDULOS PRINCIPAIS */
.modulos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.modulo-card {
    background-color: #242424;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-top: 5px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.modulo-card:hover {
    transform: translateY(-5px);
    border-color: var(--pvm-green);
}

.modulo-card h3 {
    color: var(--pvm-green);
    font-size: 1.5em;
    margin-top: 0;
}

.btn-modulo {
    background-color: var(--pvm-green);
    color: #111;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.btn-modulo:hover {
    background-color: #00b15a;
}

/* 3. SEÇÃO DE DESTAQUE (Motivação) */
.featured-section {
    padding: 30px 0;
}

.featured-content {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #242424;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.featured-content img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 6px;
    object-fit: cover;
}

.featured-content h3 {
    color: var(--pvm-green);
    font-size: 1.6em;
    margin-top: 0;
}

.btn-secondary {
    background: none;
    color: var(--pvm-green);
    border: 1px solid var(--pvm-green);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-top: 15px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: var(--pvm-green);
    color: #111;
}

/* 4. MEDIA QUERIES (Responsividade do Destaque) */
@media (max-width: 768px) {
    .user-info-card {
        flex-direction: column;
        text-align: center;
    }
    .user-info-card h2, .user-info-card p, .btn-perfil {
        margin-bottom: 10px;
    }
    .featured-content {
        flex-direction: column;
    }
    .featured-content img {
        max-width: 100%;
    }
}

/* 5. FOOTER: LINKS LEGAIS */
.footer .legal-links {
    margin-top: 10px;
}

.footer .legal-link {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

.footer .legal-link:hover {
    color: var(--pvm-green);
}

/* ============================================================
   DESIGN PREMIUM - FINANÇAS & DESAFIO
   ============================================================ */

/* Estilo para os Títulos Principais */
.financas-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: #b0b0b0;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Container de Artigos (Texto Educativo) */
.content-section {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.content-section h2 {
    color: #00ff88;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* Cards de Finanças e Desafio */
.article-grid, .financas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: #00ff88;
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.1);
}

.card h4 {
    color: #00ff88;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.card p {
    color: #cccccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Destaque do Desafio 1% */
.desafio-container {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 2px solid #333;
    padding: 40px;
    border-radius: 25px;
    margin-top: 50px;
    text-align: center;
}

#area-dinamica-desafio .card {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* Botões de Ação */
.btn-modulo, .btn-secondary {
    background: linear-gradient(90deg, #00ff88, #00cc6e);
    color: #000;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: 0.3s;
    cursor: pointer;
}

.btn-modulo:hover {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    filter: brightness(1.1);
}

/* Estilo para Listas no Desafio */
ul.habito-list-informativa {
    list-style: none;
    padding: 0;
    text-align: left;
}

ul.habito-list-informativa li {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

ul.habito-list-informativa li::before {
    content: "✔️";
    margin-right: 10px;
    color: #00ff88;
}

/* Responsividade */
@media (max-width: 600px) {
    .financas-title { font-size: 1.8rem; }
    .content-section { padding: 20px; }
}