/* Importação de fontes (se você não usar Google Fonts, pode remover esta linha) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Variáveis de Cores (para facilitar a manutenção) */
:root {
    --primary-orange: #f26522;
    /* Laranja principal */
    --secondary-orange: #ff8c42;
    /* Laranja mais claro */
    --dark-text: #2c3e50;
    /* Texto escuro */
    --light-text: #6c757d;
    /* Texto cinza claro */
    --background-light: #f8f9fa;
    /* Fundo claro geral */
    --background-section: #ffffff;
    /* Fundo das seções */
    --border-color: #dee2e6;
    /* Cor da borda */
}

/* Reset básico e estilos globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--background-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Estilos do Cabeçalho */
.main-header {
    background-color: var(--background-section);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    justify-content: space-between;
}

.main-header .logo img {
    height: 40px;
    /* Ajuste o tamanho do seu logo */
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
    position: relative;
    /* Para o dropdown */
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--primary-orange);
}

.main-nav .dropdown .arrow-down {
    margin-left: 5px;
    font-size: 0.8em;
}

/* Botões */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: #fff;
}

.btn-primary:hover {
    background-color: #d85b1d;
    /* Tom um pouco mais escuro ao passar o mouse */
}

.btn-secondary {
    background-color: var(--primary-orange);
    /* Usando o mesmo laranja */
    color: #fff;
    padding: 12px 30px;
    /* Um pouco maior para o botão "Saber mais" */
    font-size: 1.1em;
}

.btn-secondary:hover {
    background-color: #d85b1d;
}

/* Seção Hero (primeira tela) */
.hero-section {
    background-color: #fff;
    /* Fundo branco para a seção hero */
    padding: 80px 0;
    /* Espaçamento superior e inferior */
    display: flex;
    align-items: center;
    min-height: 60vh;
    /* Altura mínima para ocupar a tela */
    position: relative;
    overflow: hidden;
    /* Para garantir que elementos que saiam da área fiquem escondidos */
}

.hero-section .container {
    display: flex;
    flex-wrap: wrap;
    /* Para quebra de linha em telas menores */
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    /* Espaço entre o conteúdo e a imagem */
}

.hero-content {
    flex: 1;
    min-width: 300px;
    /* Largura mínima para o conteúdo */
}

.hero-content .tagline {
    color: var(--primary-orange);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 3em;
    /* Título maior */
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content h1 span {
    color: var(--primary-orange);
    /* Palavra-chave em laranja */
}

.hero-content p {
    font-size: 1.1em;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* Opcional, se a imagem for retangular */
}

/* Estilos para o círculo no fundo do hero-section (se você quiser replicar o design abstrato) */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(var(--primary-orange), 0.1);
    /* Laranja transparente */
    border-radius: 50%;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background-color: rgba(var(--secondary-orange), 0.15);
    border-radius: 50%;
    z-index: 0;
}


/* --- ESTILOS PARA OS BOTÕES DE LOGIN/CRIAR CONTA NO HEADER --- */

.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Espaço entre os botões */
}

/* Estilo para o botão Login (secundário no header) */
.btn-secondary.header-login {
    background-color: transparent;
    color: var(--dark-text);
    /* Cor do texto normal do menu */
    padding: 10px 20px;
    /* Ajuste o padding se necessário */
    border: none;
    /* Sem borda, apenas texto */
    font-weight: 600;
}

.btn-secondary.header-login:hover {
    color: var(--primary-orange);
    /* Muda para laranja no hover */
}

/* Ajuste no botão primário para garantir consistência */
.header-auth-buttons .btn-primary {
    padding: 10px 25px;
    /* Mantém o padding do botão original */
}


/* Estilos ATUALIZADOS para a imagem da seção Hero */
.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
    /* Essencial para o posicionamento das formas */
    z-index: 1;
}

.hero-image img {
    max-width: 80%;
    /* Reduz um pouco para dar espaço às formas */
    height: auto;
    border-radius: 20px;
    /* Cantos arredondados na imagem */
    position: relative;
    z-index: 2;
    /* Imagem fica na frente das formas */
}

/* Forma cinza 1 (fundo) */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(15deg);
    /* Centraliza e rotaciona */
    width: 90%;
    height: 90%;
    background-color: #e9ecef;
    /* Cinza bem claro */
    border-radius: 30px;
    z-index: 1;
    /* Fica atrás da imagem */
}

/* Forma cinza 2 (fundo, um pouco diferente) */
.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-55%) rotate(-5deg);
    /* Desloca um pouco e rotaciona */
    width: 85%;
    height: 85%;
    background-color: #f8f9fa;
    /* Cinza quase branco */
    border-radius: 30px;
    z-index: 1;
    /* Também fica atrás da imagem */
}

/* Seção de Estatísticas */
.stats-section {
    padding: 60px 0;
    background-color: #f8f9fa;
    /* <-- Cor "branco gelo" */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    /* Para telas menores */
    gap: 20px;
}

.stat-item {
    flex: 1;
    text-align: center;
    min-width: 200px;
    position: relative;
    padding: 0 15px;
}

/* Divisórias entre os itens */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 1px;
    background-color: #dee2e6;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    background-color: #fff5f0;
    /* Laranja bem clarinho */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-orange);
}

.stat-number {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--primary-orange);
    line-height: 1.2;
}

.stat-description {
    color: var(--light-text);
    font-size: 0.9em;
}

/* Responsividade para as divisórias */
@media (max-width: 992px) {
    .stat-item:not(:last-child)::after {
        display: none;
        /* Esconde as divisórias em telas menores */
    }
}

/* Seção Por que somos únicos? (Fluxograma) */
.flowchart-section {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

/* Título da seção com duas cores */
.flowchart-section h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-text);
    /* Cor escura para a primeira parte */
}

.flowchart-section h2 span {
    color: var(--primary-orange);
    /* Cor laranja para a parte dentro do <span> */
}

.section-description {
    max-width: 650px;
    margin: 0 auto 60px auto;
    color: var(--light-text);
    font-size: 1.1em;
    line-height: 1.7;
}

.flowchart-wrapper {
    position: relative;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
}

/* SVG com as linhas no fundo */
.flowchart-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.flowchart-svg path {
    fill: none;
    stroke: #e9ecef;
    stroke-width: 2.5;
}

/* Grupos de caixas posicionados de forma absoluta */
.flow-group-left,
.flow-group-center,
.flow-group-right {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.flow-group-left {
    left: 0;
    width: 200px;
}

.flow-group-center {
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
}

.flow-group-right {
    right: 0;
    width: 200px;
}

/* Estilo das caixinhas brancas com ícones */
.flow-box {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flow-box svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    stroke: var(--primary-orange);
    fill: none;
    stroke-width: 1.5;
}

/* Caixa central com o logo */
.flow-box-center {
    width: 100px;
    height: 100px;
    background-color: #fff;
    border: 2px solid var(--primary-orange);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(242, 101, 34, 0.2);
}

.flow-box-center img {
    max-width: 100%;
}

/* Ponto laranja que se move */
.pulse-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-orange);
    opacity: 0;
    /* offset-path agora referencia os IDs do SVG */
}

#dot-l1 {
    offset-path: url(#path-left-1);
}

#dot-l2 {
    offset-path: url(#path-left-2);
}

#dot-l3 {
    offset-path: url(#path-left-3);
}

#dot-r1 {
    offset-path: url(#path-right-1);
}

#dot-r2 {
    offset-path: url(#path-right-2);
}

#dot-r3 {
    offset-path: url(#path-right-3);
}

/* Animações */
@keyframes move-pulse-left {
    0% {
        offset-distance: 0%;
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

@keyframes move-pulse-right {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

@keyframes glow-center {

    20%,
    60% {
        /* Dois pulsos, um para a chegada e um para a saída */
        transform: scale(1.1);
        box-shadow: 0 0 25px rgba(242, 101, 34, 0.5);
    }

    0%,
    40%,
    80%,
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(242, 101, 34, 0.2);
    }
}

/* Aplica as animações quando a seção estiver visível */
.flowchart-wrapper.is-visible .pulse-dot {
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.flowchart-wrapper.is-visible #dot-l1,
.flowchart-wrapper.is-visible #dot-l2,
.flowchart-wrapper.is-visible #dot-l3 {
    animation-name: move-pulse-left;
    animation-duration: 3s;
}

.flowchart-wrapper.is-visible #dot-r1,
.flowchart-wrapper.is-visible #dot-r2,
.flowchart-wrapper.is-visible #dot-r3 {
    animation-name: move-pulse-right;
    animation-duration: 3s;
    animation-delay: 1.5s;
    /* Começa quando a outra metade termina */
}

/* Stagger (atraso) para as animações não começarem juntas */
.flowchart-wrapper.is-visible #dot-l2,
.flowchart-wrapper.is-visible #dot-r2 {
    animation-delay: calc(var(--base-delay, 0s) + 0.3s);
}

.flowchart-wrapper.is-visible #dot-l3,
.flowchart-wrapper.is-visible #dot-r3 {
    animation-delay: calc(var(--base-delay, 0s) + 0.6s);
}

/* Animação do logo sincronizada */
.flowchart-wrapper.is-visible .flow-box-center {
    animation: glow-center 3s linear infinite;
    --base-delay: 1.5s;
    /* Variável para sincronizar a animação da direita */
}

/* Seção de Diferenciais */
.features-section {
    padding: 80px 0;
    background-color: #fff5f0;
    /* <-- Cor "laranja gelo" */
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Cria 3 colunas de tamanho igual */
    gap: 40px;
    /* Espaço entre as colunas */
}

.feature-card {
    padding: 0 20px;
    position: relative;
}

/* Linha divisória entre os cards */
.feature-card:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -20px;
    /* Metade do 'gap' */
    top: 50%;
    transform: translateY(-50%);
    height: 150px;
    width: 1px;
    background-color: #e9ecef;
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    background-color: #fff5f0;
    /* Laranja bem claro, mesmo tom dos outros ícones */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-orange);
}

.feature-card h3 {
    font-size: 1.5em;
    font-weight: 600;
    color: #4a4a4a;
    /* Um tom de marrom escuro, como na imagem */
    margin-bottom: 15px;
    line-height: 1.3;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
}

/* Ajustes para telas menores (tablets e celulares) */
@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: 1fr;
        /* As colunas ficam uma sobre a outra */
        gap: 60px;
        /* Aumenta o espaço vertical */
    }

    .feature-card {
        text-align: center;
    }

    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-card:not(:last-child)::after {
        display: none;
        /* Esconde as linhas divisórias */
    }
}

/* Seção de Newsletter (Laranja) */
.newsletter-section {
    background-color: var(--primary-orange);
    padding: 60px 20px;
}

.newsletter-content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    color: #fff;
}

.newsletter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    margin-bottom: 15px;
}

.newsletter-tag svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
    fill: none;
}

.newsletter-text h2 {
    font-size: 1.8em;
    font-weight: 600;
    max-width: 350px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    flex-grow: 1;
    max-width: 500px;
}

.newsletter-form .input-wrapper {
    position: relative;
    flex-grow: 1;
}

.newsletter-form svg {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: #aaa;
}

.newsletter-form input {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: none;
    padding: 0 20px 0 50px;
    font-size: 1em;
}

.newsletter-form button {
    height: 50px;
    padding: 0 30px;
    border: none;
    background-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}



.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 40px;

}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: #1f1f1f;
}

/* Estilos gerais para o corpo da página, se não existirem */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    /* Garante que o conteúdo principal ocupe o espaço restante */
}

.site-footer {
    background-color: #000000;
    /* Cor de fundo #1f1f1f para o footer */
    color: #ffffff;
    /* Cor do texto dentro do footer, para contraste */
    padding: 30px 0;
    /* Espaçamento interno superior e inferior */
    text-align: center;
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    /* Ajuste a largura máxima do seu conteúdo do footer */
    margin: 0 auto;
    /* Centraliza o conteúdo */
    display: flex;
    /* Para alinhar logo e ícones sociais */
    flex-direction: column;
    /* Coloca logo e ícones em colunas por padrão */
    align-items: center;
    /* Centraliza horizontalmente os itens */
    gap: 20px;
    /* Espaço entre os elementos flex */
}

.social-icons {
    margin-top: 15px;
    /* Espaço entre a logo e os ícones sociais */
    display: flex;
    gap: 20px;
    /* Espaço entre os ícones sociais */
}

.social-icons a {
    color: #ffffff;
    /* Cor dos ícones sociais (branco para contraste) */
    text-decoration: none;
    /* Remove sublinhado dos links */
    display: flex;
    /* Para centralizar o SVG */
    align-items: center;
    justify-content: center;
}

.social-icons svg {
    width: 28px;
    /* Tamanho dos ícones SVG */
    height: 28px;
    fill: currentColor;
    /* Faz com que o SVG use a cor definida em 'color' do link pai */
    transition: fill 0.3s ease;
    /* Transição suave para o hover */
}

.social-icons a:hover svg {
    fill: #cccccc;
    /* Cor dos ícones ao passar o mouse */
}


/* Media query para telas maiores, se você quiser a logo e os ícones lado a lado */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        /* Coloca logo e ícones lado a lado */
        justify-content: space-between;
        /* Espalha a logo e os ícones */
    }

    .social-icons {
        margin-top: 0;
        /* Remove a margem superior em telas maiores */
    }
}

.footer-logo img {
    height: 40px;
    /* Define a altura desejada */
    max-width: 100%;
    /* Garante que a imagem não ultrapasse o container */
    width: auto;
    /* Permite que a largura se ajuste à altura mantendo a proporção */
    display: block;
    /* Ajuda no alinhamento e remove espaços extras */
    margin: 0 auto 20px auto;
    /* Centraliza a logo se o container for maior e adiciona espaço abaixo */
}


/* --- ESTILOS DO RODAPÉ PRINCIPAL (Homepage - index.html) --- */

.site-footer {
    background-color: #000000;
    /* Fundo bem escuro */
    padding: 50px 20px;
    /* Espaçamento interno */
    margin-top: 60px;
    /* Espaço acima do rodapé */
}

.footer-content {
    max-width: 1200px;
    /* Mesma largura do container principal */
    margin: 0 auto;
    /* Centraliza o conteúdo */
    display: flex;
    justify-content: space-between;
    /* Logo na esquerda, ícones na direita */
    align-items: center;
    /* Alinha verticalmente */
    flex-wrap: wrap;
    /* Permite quebrar linha em telas menores */
    gap: 20px;
    /* Espaço caso quebre a linha */
}


.social-icons {
    display: flex;
    gap: 15px;
    /* Espaço entre os ícones */
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #fff;
    /* Fundo branco para os círculos */
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    /* Efeito de zoom suave */
}

.social-icons svg {
    width: 20px;
    height: 20px;
    fill: #1f1f1f;
    /* Cor do ícone (mesma do fundo do rodapé) */
}





/* Responsividade */
@media (max-width: 992px) {
    .newsletter-content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
    }
}


/* DASHBOARD USUÁRIO */

/* --- CORES DE TEXTO PARA O RANKING (DASHBOARD) --- */

.text-bronze    { color: #cd7f32; }
.text-prata     { color: #7f8c8d; }
.text-ouro      { color: #e6ae0c; }
.text-platina   { color: #a5a5a5; }
.text-esmeralda { color: #2ecc71; }
.text-safira    { color: #2980b9; }
.text-rubi      { color: #e74c3c; }
.text-diamante  { color: #3498db; }
.text-mestre    { color: #9b59b6; }
.text-lenda     { color: #f1c40f; text-shadow: 0px 0px 2px rgba(0,0,0,0.2); }

/* --- ESTILOS DA PÁGINA DO DASHBOARD INVESTIDOR --- */

.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
    /* Branco gelo de fundo */
}

/* Barra Lateral */
.dashboard-sidebar {
    flex: 0 0 260px;
    /* Largura fixa */
    background-color: #ffffff;
    padding: 30px;
    box-shadow: 3px 0px 15px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.sidebar-logo img {
    height: 40px;
    margin-bottom: 50px;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    stroke: var(--light-text);
    transition: stroke 0.3s;
}

.sidebar-nav a:hover {
    background-color: #fff5f0;
    /* Laranja bem claro no hover */
    color: var(--primary-orange);
}

.sidebar-nav a:hover svg {
    stroke: var(--primary-orange);
}

.sidebar-nav a.active {
    background-color: var(--primary-orange);
    color: #fff;
}

.sidebar-nav a.active svg {
    stroke: #fff;
}

/* Conteúdo Principal */
.dashboard-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.header-welcome h1 {
    margin: 0 0 5px 0;
    font-size: 2em;
    color: var(--dark-text);
}

.header-welcome p {
    margin: 0;
    color: var(--light-text);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.btn-primary-dash,
.btn-secondary-dash {
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-dash {
    background-color: var(--primary-orange);
    color: #fff;
}

.btn-secondary-dash {
    background-color: #fff;
    color: var(--primary-orange);
    border: 1px solid #e9ecef;
}

.btn-primary-dash:hover {
    background-color: #d85b1d;
}

.btn-secondary-dash:hover {
    border-color: var(--primary-orange);
}


/* Grid de blocos */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.dashboard-card {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.dashboard-card h3 {
    margin-top: 0;
    color: var(--dark-text);
}

.card-large {
    min-height: 350px;
    /* Garante que os cards de baixo sejam maiores */
}

/* Responsividade para o Dashboard */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Estilos Específicos para o Card de Saldo --- */

.balance-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Alinha o texto e o valor verticalmente */
    width: 100%;
}

.balance-label {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-text);
}

.balance-value {
    font-weight: 700;
    font-size: 2em;
    color: #28a745;
    /* Tom de verde vibrante */
    transition: transform 0.3s ease;
    /* Animação suave para o hover */
    cursor: pointer;
}

.balance-value:hover {
    transform: scale(1.05);
    /* Aumenta levemente o tamanho ao passar o mouse */
}

.value-amount {
    letter-spacing: -1px;
    /* Deixa os números um pouco mais juntos */
}

.value-currency {
    font-size: 0.5em;
    /* Metade do tamanho do número */
    font-weight: 500;
    margin-left: 4px;
    vertical-align: middle;
    /* Alinha a unidade com o meio do número */
}

/* --- Estilos Específicos para o Card de Rendimento --- */

.rendimento-card-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.rendimento-label {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-text);
}

.rendimento-value {
    font-weight: 700;
    font-size: 2.2em;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.rendimento-value:hover {
    transform: scale(1.05);
    /* Efeito de hover */
}

/* Classes de Cor Condicional */
.rendimento-positive {
    color: #28a745;
    /* Verde */
}

.rendimento-negative {
    color: #dc3545;
    /* Vermelho */
}

/* --- Estilos para o Card "Meu Portfólio" --- */

.portfolio-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.portfolio-header h3 {
    margin: 0;
}

.portfolio-list {
    margin-top: 15px;
    /* Espaço entre o título e a lista */
}

.portfolio-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    /* Colunas para Ativo, Variação, Cotação */
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    /* Linha sutil entre os itens */
}

.portfolio-item:last-child {
    border-bottom: none;
    /* Remove a borda do último item */
}

.portfolio-asset {
    font-weight: 600;
    color: var(--dark-text);
    /* Cor do ativo, como na imagem */
}

.portfolio-change {
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
    /* Evita quebra de linha em valores percentuais */
}

.portfolio-quote {
    font-weight: 500;
    text-align: right;
    color: var(--light-text);
    white-space: nowrap;
    /* Evita quebra de linha em cotações */
}

/* Cores condicionais para a variação */
.portfolio-change.positive {
    color: #28a745;
    /* Verde para alta */
}

.portfolio-change.negative {
    color: #dc3545;
    /* Vermelho para baixa */
}

/* --- Estilos para o Card "Feed" --- */

.feed-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Espaço entre os itens do feed */
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.feed-item:hover {
    background-color: #f8f9fa;
    /* Cor de fundo suave no hover */
}

.feed-item-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* Deixa a imagem redonda */
    object-fit: cover;
    /* Garante que a imagem preencha o círculo sem distorcer */
    flex-shrink: 0;
}

.feed-item-content {
    display: flex;
    flex-direction: column;
}

.feed-item-author {
    font-size: 0.9em;
    color: var(--light-text);
    margin-bottom: 2px;
}

.feed-item-title {
    font-weight: 600;
    color: var(--dark-text);
    line-height: 1.4;
}

/* --- Estilos para o Card "Meus Fóruns" --- */

.forum-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

.forum-item {
    display: block;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.forum-item:last-child {
    border-bottom: none;
}

.forum-item:hover {
    background-color: #f8f9fa;
}

.forum-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--light-text);
    margin-bottom: 8px;
}

.forum-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.forum-name {
    font-weight: 600;
    color: var(--dark-text);
}

.forum-item-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-text);
    margin: 0 0 10px 0;
}

.forum-item-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
    color: var(--light-text);
}

.forum-hype {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #28a745;
    /* Verde para o Hype */
}

.forum-hype svg {
    width: 16px;
    height: 16px;
    stroke: #28a745;
    stroke-width: 2.5;
    fill: none;
}

/* Estilo para o texto do disclaimer */
.disclaimer-text {
    font-size: 0.85em;
    /* Fonte menor */
    color: var(--light-text);
    /* Cor cinza claro */
    margin-top: 10px;
    /* Espaço acima */
    text-align: left;
    /* Alinha à esquerda */
}

/* --- Estilos para o Card "Classe / Ranking" --- */

.ranking-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Alinha o título no topo e o valor embaixo */
}

.ranking-card-content h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--dark-text);
}

.ranking-data {
    font-weight: 700;
    font-size: 1.2em;
    display: flex;
    align-items: baseline;
    gap: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
    align-self: flex-start;
    /* Alinha à esquerda */
}

.ranking-data:hover {
    transform: scale(1.05);
    /* Efeito de hover */
}

.ranking-class {
    color: #cd7f32;
    /* Cor de bronze */
}

.ranking-separator {
    color: #cccccc;
    /* Cinza claro para a barra */
    font-weight: 400;
}

.ranking-position {
    color: var(--dark-text);
}

/* --- ESTILOS DE NOTIFICAÇÕES (SININHO) --- */

/* Wrapper para posicionamento relativo */
.notification-wrapper {
    display: inline-block;
    position: relative;
}

/* Botão do Sino */
.btn-icon-header {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark-text);
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-header:hover {
    background-color: #f0f2f5;
}

/* Bolinha Vermelha (Badge) */
.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #e74c3c;
    color: white;
    font-size: 0.7em;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Dropdown (Caixa de Lista) */
.notification-dropdown {
    position: absolute;
    top: 120%;
    right: -10px; /* Alinhado à direita do botão */
    width: 320px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    display: none; /* Escondido por padrão */
    z-index: 1000;
    overflow: hidden;
}

.notification-dropdown.visible {
    display: block;
}

/* Cabeçalho do Dropdown */
.notif-header {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
}
.notif-header h4 { margin: 0; font-size: 1em; color: var(--dark-text); }
.btn-text-small { background: none; border: none; color: var(--primary-orange); font-size: 0.8em; cursor: pointer; font-weight: 600; }

/* Lista */
.notif-list {
    max-height: 350px;
    overflow-y: auto;
}

/* Item de Notificação */
.notif-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none; /* Caso seja um link */
    color: inherit;
}
.notif-item:hover { background-color: #f9f9f9; }
.notif-item.unread { background-color: #fff8e1; /* Amarelo bem clarinho para não lidas */ }
.notif-item:last-child { border-bottom: none; }

/* Avatar e Texto da Notificação */
.notif-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.notif-content { flex-grow: 1; font-size: 0.9em; line-height: 1.3; }
.notif-content strong { font-weight: 600; color: #2c3e50; }
.notif-time { display: block; font-size: 0.8em; color: #95a5a6; margin-top: 4px; }

/* Mensagem Vazia */
.empty-notif { text-align: center; padding: 20px; color: #95a5a6; font-size: 0.9em; }

/* Scrollbar Bonita */
.notif-list::-webkit-scrollbar { width: 6px; }
.notif-list::-webkit-scrollbar-thumb { background-color: #ddd; border-radius: 3px; }

/* --- ESTILOS DO DASHBOARD DO ESPECIALISTA --- */

/* Ajusta o grid para 4 colunas na linha superior */
.specialist-grid {
    grid-template-columns: repeat(4, 1fr);
    /* 4 colunas iguais */
}

/* Garante que os cards grandes ocupem o espaço correto */
.specialist-grid .card-large {
    /* Ocupa 2 colunas cada um, para preencher a linha */
    grid-column: span 2;
}


/* Estilo para valores maiores nos cards pequenos */
.summary-value.large-value {
    font-size: 2em;
    /* Ou o tamanho desejado */
    font-weight: 700;
    color: var(--dark-text);
    display: block;
    /* Garante que ocupe a linha */
    margin-top: 5px;
}

/* Estilos para a lista simples de fóruns */
.simple-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.simple-list a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.simple-list a:last-child {
    border-bottom: none;
}

.simple-list a:hover {
    color: var(--primary-orange);
}

/* Estilo para o card de Feed com botão */
.feed-card-specialist {
    position: relative;
    /* Para posicionar o botão */
    padding-bottom: 70px;
    /* Espaço para o botão no rodapé do card */
}

.btn-create-feed {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-orange);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-create-feed:hover {
    background-color: #d85b1d;
}

.btn-create-feed svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
    stroke-width: 3;
}

/* Responsividade para o grid de 4 colunas */
@media (max-width: 1200px) {
    .specialist-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 colunas em telas médias */
    }

    .specialist-grid .card-large {
        grid-column: span 1;
        /* Cards grandes ocupam 1 coluna */
    }

    .specialist-grid .card-large:nth-child(7) {
        grid-column: auto;
        /* Reseta o posicionamento específico */
    }
}

/* --- AJUSTES DE LAYOUT DOS CARDS SUPERIORES DO DASHBOARD --- */

.summary-flex-card {
    display: flex;
    flex-direction: column;
    /* Empilha label e valor verticalmente */
    justify-content: space-between;
    /* Empurra label para cima e valor para baixo */
    min-height: 120px;
    /* Garante uma altura mínima consistente */
    padding: 20px;
    /* Padding interno */
}

/* Estilo geral para os labels dentro desses cards */
.summary-flex-card .summary-label,
.summary-flex-card .balance-label,
.summary-flex-card .rendimento-label {
    display: block;
    color: var(--light-text);
    font-size: 0.9em;
    margin-bottom: 5px;
    /* Remove margem inferior extra se houver */
}

/* Estilo geral para os valores dentro desses cards */
.summary-flex-card .summary-value,
.summary-flex-card .rendimento-value,
.summary-flex-card .balance-value {
    font-size: 2em;
    /* Tamanho padrão do valor */
    font-weight: 700;
    color: var(--dark-text);
    line-height: 1.2;
    /* Ajusta o espaçamento vertical */
    margin-top: auto;
    /* Garante que o valor fique na parte inferior se houver espaço extra */
}

/* Sobrescreve o tamanho para a classe .large-value se necessário */
.summary-flex-card .summary-value.large-value {
    font-size: 2.2em;
    /* Mantém o tamanho maior para Seguidores/Rendimento */
}

/* Ajustes específicos para o Saldo Cbits */
.summary-flex-card .balance-value {
    font-size: 2em;
    /* Tamanho do número */
    color: #28a745;
    /* Cor verde */
}

.summary-flex-card .balance-value .value-currency {
    font-size: 0.5em;
    /* Metade do tamanho do número */
    font-weight: 500;
    margin-left: 4px;
    vertical-align: middle;
}

/* Ajustes específicos para Rentabilidade */
.summary-flex-card .rendimento-value {
    font-size: 2.2em;
    /* As cores positive/negative já são aplicadas pelo JS */
}

/* Remove qualquer conflito com estilos anteriores */
.balance-card-content,
.rendimento-card-content {
    display: contents;
    /* Faz com que esses divs não interfiram no flex do pai */
}


/* --- ESTILOS DO CARD DE DESEMPENHO DO ESPECIALISTA --- */

.performance-card h3 {
    margin-top: 0;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.performance-charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Duas colunas iguais para os gráficos */
    gap: 30px;
    height: calc(100% - 60px);
    /* Tenta ocupar a altura restante do card */
}

.chart-container h4 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1em;
    font-weight: 600;
    color: var(--dark-text);
    text-align: center;
}

.chart-placeholder {
    background-color: #f8f9fa;
    border: 1px dashed #dee2e6;
    border-radius: 8px;
    height: 200px;
    /* Altura fixa para o placeholder */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    /* Para posicionar as barras */
    overflow: hidden;
    /* Para conter as barras */
}

.placeholder-text {
    color: var(--light-text);
    font-size: 0.9em;
    position: absolute;
    top: 10px;
    left: 10px;
}

.placeholder-bars {
    display: flex;
    align-items: flex-end;
    /* Alinha as barras na base */
    justify-content: space-around;
    width: 80%;
    height: 70%;
    /* Altura das barras dentro do placeholder */
    position: absolute;
    bottom: 10px;
}

.placeholder-bars div {
    background-color: var(--primary-orange);
    opacity: 0.6;
    width: 15%;
    /* Largura de cada barra */
    border-radius: 4px 4px 0 0;
    animation: growBars 1.5s ease-out forwards;
    /* Animação simples */
}

/* Animação das barras crescendo */
@keyframes growBars {
    from {
        height: 0%;
    }

    to {
        /* A altura final é definida inline no HTML */
    }
}

/* Responsividade para os gráficos */
@media (max-width: 992px) {
    .performance-charts-container {
        grid-template-columns: 1fr;
        /* Empilha os gráficos em telas menores */
        gap: 25px;
    }

    .chart-placeholder {
        height: 180px;
        /* Altura menor */
    }
}

/* --- MODAL DE BOAS-VINDAS (ESPECIALISTA) --- */

/* O Fundo Escuro */
#specialist-welcome-modal.welcome-overlay-fixed {
    display: none; /* JS vai mudar para flex */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Fundo bem escuro */
    z-index: 10000 !important; /* Acima de tudo */
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Quando estiver ativo (via JS) */
#specialist-welcome-modal.welcome-overlay-fixed.show {
    opacity: 1;
    visibility: visible;
}

/* O Cartão Branco (Conteúdo) */
#specialist-welcome-modal .modal-content {
    position: relative;
    z-index: 10001; /* Acima do fundo escuro */
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    pointer-events: auto !important; /* GARANTE O CLIQUE */
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#specialist-welcome-modal.welcome-overlay-fixed.show .modal-content {
    transform: translateY(0);
}


/* --- ESTILOS DA PÁGINA DE FÓRUNS --- */

.forum-header {
    display: flex;
    justify-content: space-between;
    /* Coloca um item em cada ponta */
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    /* Garante que funcione em telas menores */
    gap: 20px;
    /* Adiciona um espaço caso quebre a linha */
}

.search-bar {
    position: relative;
    max-width: 500px;
}

.search-bar svg {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    stroke: var(--light-text);
    stroke-width: 2.5;
}

.search-bar input {
    width: 100%;
    height: 45px;
    border-radius: 25px;
    /* Deixa a barra bem redonda */
    border: none;
    background-color: #e9ecef;
    padding-left: 50px;
    font-size: 1em;
    font-weight: 500;
}

.search-bar input:focus {
    outline: 2px solid var(--primary-orange);
}

.explore-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.tag-filters a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    background-color: #e9ecef;
    color: var(--dark-text);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-filters a:hover {
    background-color: #d8dee4;
}

.tag-filters a.active {
    background-color: var(--dark-text);
    color: #fff;
}

.community-group {
    margin-bottom: 40px;
}

.community-group h3 {
    margin-bottom: 20px;
    font-size: 1.3em;
}

.community-group h3 a {
    text-decoration: none;
    color: var(--dark-text);
}

.community-group h3 a:hover {
    color: var(--primary-orange);
}

.community-grid {
    display: grid;
    /* Grid responsivo: cria quantas colunas de 300px couberem */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.community-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.card-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
}

.card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* Faz os itens internos ficarem em coluna */
}

.card-name {
    font-weight: 600;
    color: var(--dark-text);
}

.card-stats {
    font-size: 0.85em;
    color: var(--light-text);
}

.btn-follow {
    background-color: #2563eb;
    /* Azul para o botão de seguir */
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-follow:hover {
    background-color: #1d4ed8;
}

.card-body p {
    font-size: 0.9em;
    color: var(--light-text);
    line-height: 1.6;
    margin: 0;
}

.btn-load-more {
    display: block;
    margin: 20px auto 0 auto;
    background-color: #e9ecef;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-load-more:hover {
    background-color: #d8dee4;
}

/* --- BLOQUEIO DE FEATURE (EM BREVE) --- */

.locked-feature {
    position: relative; /* Necessário para posicionar o overlay */
    overflow: hidden;   /* Garante que nada saia das bordas arredondadas */
}

/* O conteúdo que vai ficar no fundo */
.blurred-content {
    filter: blur(1.5px);      /* Levemente borrado (reduzi de 4px para 3px) */
    opacity: 0.9;           /* Opacidade alta conforme solicitado */
    user-select: none;      /* Impede seleção de texto */
    pointer-events: none;   /* Impede cliques */
}

/* O container do aviso */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2; /* Fica por cima de tudo */
}

/* A pílula com o texto "Em breve" */
.coming-soon-badge {
    background-color: var(--primary-blue); /* Ou #2c3e50 */
    color: #000000;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --- ESTILOS DA PÁGINA DE POST DO FÓRUM --- */

.post-page-container {
    display: grid;
    grid-template-columns: minmax(0, 2.5fr) 1fr;
    /* Coluna principal flexível e sidebar com 1/3 */
    gap: 25px;
    align-items: flex-start;
}

/* Coluna Principal da Esquerda */
.post-original {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.post-voting {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #f8f9fa;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 5px;
}

.vote-btn:hover {
    background-color: #e9ecef;
}

.vote-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--light-text);
}

.post-voting span {
    font-weight: 600;
    color: var(--dark-text);
}

.post-body {
    padding: 20px;
    flex-grow: 1;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--light-text);
    margin-bottom: 15px;
}

.post-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.post-forum-name,
.comment-user {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
}

.post-title {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: var(--dark-text);
}

.post-content img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.post-content p {
    color: #343a40;
    line-height: 1.6;
}

.post-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--light-text);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 5px;
}

.action-btn:hover {
    background-color: #f8f9fa;
}

.action-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--light-text);
}

.comment-form-container {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.comment-form-container textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    font-size: 1em;
    margin-bottom: 10px;
}

.comment-form-container button {
    float: right;
}

/* Alinha o botão à direita */

.comments-section {
    margin-top: 20px;
}

.comment {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.comment-voting {
    padding: 0;
    background: none;
}

.comment-body {
    flex-grow: 1;
    border-left: 2px solid #e9ecef;
    padding-left: 15px;
}

/* Barra Lateral da Direita */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    padding: 20px;
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.sidebar-card h4 {
    margin: 0;
    font-size: 1.2em;
}

.sidebar-description {
    font-size: 0.9em;
    color: var(--light-text);
    line-height: 1.6;
}

.sidebar-stats {
    font-size: 0.9em;
    color: var(--light-text);
    margin-top: 15px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.rules-list {
    padding-left: 20px;
}

.rules-list li {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: var(--dark-text);
}

.btn-contact-mod {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: var(--dark-text);
    padding: 10px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.btn-contact-mod:hover {
    background-color: #e9ecef;
}

/* --- AJUSTES E FUNCIONALIDADES DA PÁGINA DE POST --- */

/* PONTO 2: Estilos do botão "Hypar" */
.hype-btn svg {
    stroke: var(--light-text);
    transition: stroke 0.3s ease;
}

.hype-btn:hover svg {
    stroke: #28a745;
    /* Verde no hover */
}

.hype-btn.hyped svg {
    stroke: #28a745;
    /* Verde permanente quando clicado */
    fill: rgba(40, 167, 69, 0.1);
    /* Preenchimento verde claro */
}

/* PONTO 5: Estilos do popup de compartilhar */
.share-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.share-popup.visible {
    opacity: 1;
    pointer-events: auto;
}

.share-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--light-text);
}

.share-link-wrapper {
    display: flex;
    gap: 10px;
}

#share-link-input {
    flex-grow: 1;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
    font-size: 1em;
}

#copy-link-btn {
    background-color: var(--primary-orange);
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
}

/* PONTO 6: Estilos do perfil do criador e ajuste de espaçamento */
.sidebar-card .btn-follow {
    margin-bottom: 20px;
    /* Ajusta o espaçamento do botão */
}

.creator-profile {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.creator-title {
    font-size: 0.8em;
    font-weight: 600;
    color: var(--light-text);
    text-transform: uppercase;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-weight: 600;
}

/* --- Estilos para o Botão Seguir/Seguindo --- */

/* Estilo para o estado "Seguindo" (quando a classe .following é adicionada) */
.btn-follow.following {
    background-color: #fff;
    color: #2563eb;
    /* Azul */
    border: 1px solid #e9ecef;
}

/* Efeito bônus: ao passar o mouse sobre "Seguindo", muda o texto para "Deixar de seguir" */
.btn-follow.following:hover {
    background-color: #fee2e2;
    /* Fundo vermelho bem claro */
    color: #dc3545;
    /* Vermelho */
    border-color: #fecaca;
}

.btn-follow.following .follow-text::after {
    content: "Seguindo";
}

.btn-follow.following:hover .follow-text::after {
    content: "Deixar de seguir";
}

/* --- BOTÃO SEGUIR ESPECIALISTA (SIMPLIFICADO) --- */

/* 1. Estado Padrão (Não segue) */
.btn-follow-expert {
    background-color: #2563eb; /* Azul */
    color: #fff;
    border: 1px solid #2563eb;
    padding: 10px 30px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px; /* Largura fixa para não "pular" quando muda o texto */
    text-align: center;
}
.btn-follow-expert:hover {
    background-color: #1d4ed8;
}

/* 2. Estado "Seguindo" (Neutro) */
.btn-follow-expert.following {
    background-color: #fff;
    color: #2563eb;
    border: 1px solid #2563eb;
}

/* 3. Estado "Danger" (Hover quando já segue) */
.btn-follow-expert.danger {
    background-color: #fee2e2 !important;
    color: #dc3545 !important;
    border-color: #dc3545 !important;
}




/* --- FUNCIONALIDADES AVANÇADAS DA PÁGINA DE POST --- */

/* --- ESTILOS DE COMENTÁRIOS E THREADS (CORRIGIDO) --- */

/* Container do Comentário */
.comment {
    display: flex;
    flex-direction: column; /* Importante para aninhar filhos embaixo */
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

/* Corpo do Comentário (Avatar + Texto + Ações) */
.comment-body {
    width: 100%;
}

/* Estilo Visual da Resposta (Recuo) */
.comment-reply {
    margin-top: 15px;
    margin-left: 40px; /* Recuo visual */
    padding-left: 15px;
    border-left: 3px solid #e9ecef; /* Linha lateral */
    border-bottom: none; /* Respostas não têm linha final */
    padding-bottom: 0;
}

/* Container de Respostas (Onde os filhos entram) */
.comment-replies {
    margin-top: 10px;
    width: 100%;
}

/* Conteúdo do Texto */
.comment-content {
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 0.95em;
    color: var(--dark-text);
    word-wrap: break-word;
}

/* Esconde ações até passar o mouse */
.comment .post-actions {
    opacity: 0.6; /* Levemente visível por padrão mobile */
    transition: opacity 0.2s;
}
.comment:hover .post-actions {
    opacity: 1;
}

/* Remove borda do último item para limpeza visual */
.comment:last-child {
    border-bottom: none;
}


/* PONTO 3: Estilos do contador de Hypes */
.hype-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hype-count {
    font-size: 0.9em;
    font-weight: 600;
}

/* PONTO 4: Estilos do Filtro de Comentários */
.comments-container {
    margin-top: 30px;
}

.comment-filter {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.comment-filter select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

/* Links clicáveis nos comentários */
.comment-content a {
    color: var(--primary-orange);
    text-decoration: underline;
}

@keyframes flashHighlight {
    0% { background-color: #fff9c4; border-left: 3px solid #f1c40f; }
    100% { background-color: transparent; border-left: 3px solid transparent; }
}

.highlight-flash {
    animation: flashHighlight 2s ease-out;
}

/* --- AJUSTES FINAIS DA PÁGINA DE POST --- */

/* PONTO 2: Estilos da caixa de resposta de comentário */
.reply-form-container {
    margin-top: 15px;
    padding-left: 35px;
    /* Alinha com o conteúdo do comentário pai */
}

.reply-form-container .ql-toolbar {
    font-size: 0.8em;
}

/* Editor menor */
.reply-form-container .ql-container {
    min-height: 80px;
    font-size: 0.9em;
}

.reply-form-container .reply-actions {
    text-align: right;
    margin-top: 10px;
}

.reply-actions button {
    padding: 6px 12px;
    font-size: 0.9em;
}

/* PONTO 3: Estilos do filtro de ordenação */
.custom-select-wrapper {
    position: relative;
    display: inline-block;
    width: 150px;
}

.custom-select-wrapper::after {
    /* Cria a seta personalizada */
    content: '▼';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8em;
}

.comment-filter select {
    appearance: none;
    /* Remove o estilo padrão */
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    padding: 8px 30px 8px 10px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    cursor: pointer;
}

/* --- AJUSTES FINAIS DA SIDEBAR DO POST --- */

/* PONTO 1: Estilo do botão "Denunciar" */
.btn-report {
    width: 100%;
    background-color: transparent;
    border: 1px solid #dc3545;
    /* Vermelho */
    color: #dc3545;
    padding: 10px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    /* Espaço entre os botões */
    transition: all 0.3s ease;
}

.btn-report:hover {
    background-color: #dc3545;
    color: #fff;
}

/* PONTO 2: Estilos da Tag "Premium" e "Free" */
.sidebar-forum-info {
    display: flex;
    flex-direction: column;
    /* ESSA É A LINHA CHAVE: força os itens a ficarem em coluna */
    align-items: flex-start;
    /* Alinha os itens à esquerda */
}

.forum-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    width: fit-content;
    /* Faz a tag ter a largura do texto */
    margin-top: 4px;
}

.forum-tag.premium {
    background-color: #f26522;
    /* Laranja da marca */
    color: #fff;
}

.forum-tag.free {
    background-color: #e9ecef;
    color: var(--dark-text);
}

/* Remove a margem padrão do título para um alinhamento perfeito */
.sidebar-forum-info h4 {
    margin: 0;
}

/* --- ESTILOS DA PÁGINA DE CRIAÇÃO DE FÓRUM --- */

.create-forum-container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-text);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.avatar-upload-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

#avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    /* ESSA É A PROPRIEDADE MÁGICA */
    border: 2px solid #e9ecef;
}

#forum-avatar-input {
    display: none;
    /* Esconde o input de arquivo padrão */
}

#rules-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-add-rule {
    background: none;
    border: none;
    color: var(--primary-orange);
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.btn-add-rule:disabled {
    color: var(--light-text);
    cursor: not-allowed;
}

.form-actions {
    margin-top: 30px;
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    text-align: right;
}

/* --- ESTILOS DA PÁGINA DE TRANSAÇÕES --- */

.transaction-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.summary-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    flex-grow: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.summary-label {
    display: block;
    color: var(--light-text);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--dark-text);
}

.summary-value.positive {
    color: #28a745;
}

.history-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.transaction-list-header,
.transaction-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1.5fr 1.5fr;
    gap: 15px;
    align-items: center;
    padding: 15px 10px;
}

.transaction-list-header {
    font-weight: 600;
    color: var(--light-text);
    border-bottom: 2px solid #f0f0f0;
    font-size: 0.9em;
}

.transaction-item {
    border-bottom: 1px solid #f0f0f0;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-value.positive {
    color: #28a745;
    font-weight: 600;
}

.transaction-value.negative {
    color: #dc3545;
    font-weight: 600;
}

.transaction-asset {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.asset-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Pop-up de Compra de Cbits */
.cbits-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cbits-popup.visible {
    opacity: 1;
    pointer-events: auto;
}

.cbits-popup-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.calculator {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.calc-group label {
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

.calc-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1.2em;
}

.btn-mercado-pago {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* --- AJUSTE DE AVATARES NA PÁGINA DE POST --- */

/* Avatar principal do fórum na sidebar */
.post-sidebar .card-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    /* Garante o corte automático sem distorção */
    border: 1px solid #f0f0f0;
    /* Borda sutil opcional */
}

/* Avatares menores (criador do fórum, comentários, etc.) */
.post-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    /* Garante o corte automático sem distorção */
}

/* --- ESTILOS DA PÁGINA DE RANKINGS --- */

.rank-summary-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 20px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.rank-badge {
    grid-row: 1 / 3;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rank-badge.bronze {
    background-color: #cd7f32;
}

.rank-badge svg {
    width: 50px;
    height: 50px;
    fill: #fff;
}

.rank-user-info {
    display: flex;
    flex-direction: column;
}

.rank-label {
    color: var(--light-text);
    font-size: 1em;
}

.rank-points {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--dark-text);
}

.rank-class-name {
    font-weight: 600;
    color: var(--dark-text);
}

.rank-progress {
    grid-column: 2 / 4;
}

.progress-bar-container {
    width: 100%;
    background-color: #e9ecef;
    border-radius: 10px;
    height: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--primary-orange);
    border-radius: 10px;
}

.progress-text {
    font-size: 0.8em;
    color: var(--light-text);
    margin-top: 5px;
    display: block;
}

.btn-show-rules {
    grid-row: 1 / 2;
    grid-column: 3 / 4;
    align-self: start;
    background: none;
    border: none;
    color: var(--primary-orange);
    font-weight: 600;
    cursor: pointer;
}

.leaderboard-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
}

.leaderboard-card h2 {
    margin-top: 0;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 15px 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.leaderboard-table th {
    color: var(--light-text);
    font-size: 0.9em;
}

.leaderboard-table .current-user {
    background-color: #fff5f0;
    font-weight: 700;
}

.leaderboard-table .current-user td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.leaderboard-table .current-user td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Paginação do Ranking */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 1px solid var(--border-color);
}
.pagination-controls button {
    padding: 5px 15px;
    font-size: 0.9em;
}
.pagination-controls span {
    font-weight: 600;
    color: var(--light-text);
}

/* Estilos do Pop-up (Modal) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    text-align: center;
}

.modal-content h3,
.modal-content h4 {
    color: var(--dark-text);
}

.modal-content p,
.modal-content li {
    color: var(--light-text);
    line-height: 1.6;
}

.modal-content ul,
.modal-content ol {
    text-align: left;
    margin: 20px auto;
    max-width: 400px;
}

.modal-content button {
    margin-top: 20px;
}

/* --- AJUSTES FINAIS DA PÁGINA DE RANKINGS --- */

/* PONTO 2: Garante que o conteúdo do pop-up tenha rolagem se for muito grande */
.modal-content {
    max-height: 90vh;
    /* Altura máxima de 90% da tela */
    overflow-y: auto;
    /* Adiciona a barra de rolagem vertical AUTOMATICAMENTE */
}

/* PONTO 1: Estilos da nova tabela de classes */
.class-table {
    margin: 20px 0;
    text-align: left;
}

.class-table-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.class-table-row:last-child {
    border-bottom: none;
}

.class-badge-cell {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.class-badge-cell svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.class-name-cell {
    font-weight: 500;
    color: var(--dark-text);
}

/* Cores das classes (exemplo) */
.badge-bronze {
    background-color: #cd7f32;
}

.badge-prata {
    background-color: #c0c0c0;
}

.badge-ouro {
    background-color: #ffd700;
}

/* Novas cores para os emblemas das classes */
.badge-platina {
    background-color: #e5e4e2;
}

.badge-esmeralda {
    background-color: #50c878;
}

.badge-safira {
    background-color: #0f52ba;
}

.badge-rubi {
    background-color: #e0115f;
}

.badge-diamante {
    background-color: #b9f2ff;
}

.badge-mestre {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
}

.badge-lenda {
    background: linear-gradient(45deg, #FFD700, #DAA520, #FFD700);
}

/* Ajuste para emblemas com fundo escuro */
.badge-safira svg,
.badge-mestre svg {
    fill: #fff;
}

/* Ajuste para emblemas com fundo claro */
.badge-diamante svg,
.badge-lenda svg {
    fill: #333;
}


/* PONTO 3: Gradiente da barra de progresso */
.progress-bar-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #ffc9a9 0%, var(--primary-orange) 100%);
}

/* --- AJUSTES DA PÁGINA DE RANKINGS (TABELAS PARALELAS) --- */

.leaderboards-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Duas colunas iguais */
    gap: 30px;
    /* Espaço entre as tabelas */
    margin-top: 30px;
    /* Espaço abaixo do card de resumo */
}

/* Garante que o card ocupe a altura necessária */
.leaderboard-card {
    display: flex;
    flex-direction: column;
}

.leaderboard-table {
    flex-grow: 1;
    /* Faz a tabela ocupar o espaço vertical */
}

/* Estilos da Paginação */
.pagination-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.pagination-controls button {
    background-color: #e9ecef;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination-controls button:hover:not(:disabled) {
    background-color: #dee2e6;
}

.pagination-controls button:disabled {
    background-color: #f8f9fa;
    color: #adb5bd;
    cursor: not-allowed;
}

#page-info {
    font-size: 0.9em;
    color: var(--light-text);
    font-weight: 500;
}

/* Link no nome do especialista */
.specialist-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
}

.specialist-link:hover {
    color: var(--primary-orange);
}


/* Responsividade para as tabelas */
@media (max-width: 992px) {
    .leaderboards-container {
        grid-template-columns: 1fr;
        /* Empilha as tabelas em telas menores */
    }

    .post-page-container {
        grid-template-columns: 1fr;
        /* Empilha coluna principal e sidebar */
    }

    .post-sidebar {
        order: -1;
        /* Coloca a sidebar acima do post em telas menores */
        margin-bottom: 20px;
    }
}



/* --- ESTILOS DA PÁGINA DE PERFIL --- */

.profile-container {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    /* Coluna da esquerda menor que a da direita */
    gap: 30px;
    align-items: flex-start;
}

.profile-identity-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 100px 30px 30px 30px;
    /* Garante o espaço no topo */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    text-align: center;
    position: relative;
}


.profile-avatar {
    width: 100%;
    /* A imagem preenche 100% do container agora */
    height: 100%;
    /* A imagem preenche 100% do container agora */
    border-radius: 50%;
    /* Mantém o formato circular */
    object-fit: cover;
    /* Garante que a imagem preencha o círculo sem distorcer, cortando as bordas */
    display: block;

}

.profile-name {
    font-size: 1.8em;
    margin: 0;
    color: var(--dark-text);

    /* Força a quebra de linha normal */
    white-space: normal !important;

    /* Remove qualquer corte ou ellipsis */
    overflow: visible !important;
    text-overflow: clip !important;

    /* Permite quebrar palavras */
    word-break: break-word;
    overflow-wrap: break-word;

    line-height: 1.3;

    /* Garante que o nome possa ocupar a largura necessária */
    max-width: none;
    /* Remove a limitação de largura */
    flex-grow: 1;
    /* Permite que ele cresça dentro do container flex */
    text-align: center;
    /* Mantém o nome centralizado */
}

/* Garante que o container flex permita a quebra */
.profile-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    flex-wrap: wrap;
    /* Permite que o botão vá para baixo se o nome for muito grande */
}

.profile-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-weight: 600;
}

.profile-rank .rank-badge {
    width: 32px;
    height: 32px;
}

.profile-rank .rank-badge svg {
    width: 18px;
    height: 18px;
}

.profile-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 8px 15px;
    border-radius: 20px;
    background-color: #f8f9fa;
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.profile-social-link:hover {
    background-color: #e9ecef;
}

.profile-social-link svg {
    width: 16px;
    height: 16px;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.profile-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.profile-card p {
    color: var(--light-text);
    line-height: 1.7;
}

.asset-list,
.followed-forums-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.asset-item,
.followed-forum-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: background-color 0.3s;
}

.asset-item:hover,
.followed-forum-item:hover {
    background-color: #e9ecef;
}

.asset-item img,
.followed-forum-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* --- ESTILOS DA PÁGINA DE PERFIL (EDITÁVEL) --- */

.editable-container {
    position: relative;
    cursor: pointer;
}

.edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Garante que o overlay seja circular */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 11;
    /* Sempre acima da imagem dentro do container */
}

.editable-container:hover .edit-overlay {
    opacity: 1;
}

.edit-overlay svg {
    width: 30px;
    height: 30px;
}

#profile-avatar-input {
    display: none;
}

.profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.profile-card-header h3 {
    margin: 0;
    padding: 0;
    border: none;
}

.btn-edit-small {
    background: none;
    border: none;
    font-weight: 600;
    color: var(--primary-orange);
    cursor: pointer;
}

#bio-editor-container button {
    float: right;
    margin-top: 10px;
}

#social-links-modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.profile-social-links-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.profile-social-links-container a {
    color: var(--light-text);
}

.profile-social-links-container a:hover {
    color: var(--primary-orange);
}

.profile-social-links-container svg {
    width: 24px;
    height: 24px;
}

/* --- AJUSTES FINAIS DA PÁGINA DE PERFIL --- */

/* Estilos para o nome editável */
.profile-name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    /* Centraliza o container */
}

.profile-name {
    font-size: 1.8em;
    margin: 0;
    color: var(--dark-text);
    /* Permite que o texto se ajuste se for muito longo */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    /* Limita a largura para evitar que o nome empurre o botão */
}

.profile-name-edit {
    font-size: 1.8em;
    font-weight: 700;
    /* Igual ao H2 */
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px 10px;
    width: 200px;
    /* Largura fixa para o input */
    text-align: center;
    color: var(--dark-text);
}

.name-edit-btn svg {
    width: 18px;
    /* Ícone menor para o botão de edição */
    height: 18px;
    color: var(--light-text);
}

.name-edit-btn:hover svg {
    color: var(--primary-orange);
}

/* Ajuste do hover da foto (Ponto 2) */
.profile-avatar-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: -75px auto 20px auto;
    /* Mantém a margem no container para puxá-lo para cima */
    position: relative;
    overflow: hidden;
    /* Mantém o corte circular do container */
    cursor: pointer;
    /* Garante que o cursor de "mão" apareça */
    z-index: 10;
    /* Garante que o container fique acima de outros elementos do card */
    border: 4px solid #fff;
    /* Borda branca igual à da foto */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Sombra igual à da foto */
}

/* O edit-overlay só aparece DENTRO do avatar-container quando o mouse está sobre ele */
.profile-avatar-container:hover .edit-overlay {
    opacity: 1;
}

/* Ajuste para o círculo do overlay */
.profile-avatar-container .edit-overlay {
    border-radius: 50%;
}

/* --- ESTILOS DO PERFIL DE ESPECIALISTA --- */

.profile-tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: 5px;
    text-transform: uppercase;
    margin-top: 10px;
}

.profile-tag.especialista {
    background-color: #0d6efd;
    /* Azul para destacar especialista */
    color: #fff;
}

.profile-performance {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.performance-label {
    display: block;
    font-size: 0.9em;
    color: var(--light-text);
}

.performance-value {
    font-size: 1.6em;
    font-weight: 700;
}

.performance-value.positive {
    color: #28a745;
}

.performance-value.negative {
    color: #dc3545;
}

.profile-follow-section {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-follow-section .btn-follow {
    padding: 10px 30px;
    /* Botão um pouco maior */
    width: 80%;
    /* Ocupa boa parte da largura */
}

.follower-count {
    font-size: 0.9em;
    color: var(--light-text);
    font-weight: 500;
}

/* --- ESTILOS MODAL CARTEIRA COMPLETA --- */
.table-responsive {
    overflow-x: auto;
    max-height: 60vh;
    overflow-y: auto;
}
#full-portfolio-modal .leaderboard-table th,
#full-portfolio-modal .leaderboard-table td {
    text-align: right; /* Alinha números à direita */
    padding: 10px;
    font-size: 0.9em;
}
#full-portfolio-modal .leaderboard-table th:first-child,
#full-portfolio-modal .leaderboard-table td:first-child {
    text-align: left; /* Alinha nome do ativo à esquerda */
}

/* --- ESTILOS DA PÁGINA DO SIMULADOR --- */

.simulator-controls {
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 50px;
    /* <<-- Aumentado para 40px */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.search-add-asset {
    position: relative;
    margin-bottom: 15px;
}

#asset-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
}

.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item img {
    width: 24px;
    height: 24px;
}

.suggested-assets {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9em;
}

.suggested-assets span {
    color: var(--light-text);
}

.suggestion-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.suggestion-chip:hover {
    background-color: #dee2e6;
}

.suggestion-chip img {
    width: 16px;
    height: 16px;
}

.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    /* ADICIONE ESTA LINHA PARA FORÇAR O ESPAÇO ACIMA */
    margin-top: 40px;
}

.portfolio-summary .summary-card {
    padding: 25px;
    /* Mais padding */
}

.portfolio-summary .summary-value {
    font-size: 1.8em;
    /* Fonte maior */
}

.summary-value.neutral {
    color: var(--dark-text);
}

.summary-value.positive {
    color: #28a745;
}

.summary-value.negative {
    color: #0d6efd;
}

/* Azul para negativo */


.portfolio-block {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.portfolio-block h2 {
    margin-top: 0;
}

.portfolio-table-header,
.portfolio-item {
    display: grid;
    /* Colunas: Ativo, Qtd, Preço Médio, Rentab, Cotação, Posição, Ações */
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.2fr 0.5fr;
    gap: 15px;
    align-items: center;
    padding: 12px 10px;
    font-size: 0.9em;
}

.portfolio-table-header {
    font-weight: 600;
    color: var(--light-text);
    border-bottom: 2px solid #f0f0f0;
}

.portfolio-items-list {
    min-height: 100px;
    /* Evita que fique vazio demais */
}

.portfolio-item {
    border-bottom: 1px solid #f0f0f0;
}

.portfolio-item:last-child {
    border-bottom: none;
}

.empty-portfolio-msg {
    color: var(--light-text);
    text-align: center;
    padding: 20px;
}

.portfolio-asset-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.portfolio-asset-name img {
    width: 24px;
    height: 24px;
}

.portfolio-profit.positive {
    color: #28a745;
    font-weight: 600;
}

.portfolio-profit.negative {
    color: #0d6efd;
    font-weight: 600;
}

/* Azul */
.portfolio-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #dc3545;
    padding: 5px;
}

.portfolio-actions button svg {
    width: 18px;
    height: 18px;
}

.market-movers-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
}

/* Adiciona a cor verde específica para o Saldo Cbits */
#cbits-balance {
    color: #28a745;
    /* Mesmo verde usado no dashboard */
}

/* --- Estilos para o Card "Principais Criptomoedas" --- */


.market-movers-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.market-list {
    display: flex;
    flex-direction: column;
}

/* Ajusta o grid para 4 colunas */
.market-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    /* Colunas: Ativo, Variação, Preço, Ação */
    gap: 15px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.market-item:last-child {
    border-bottom: none;
}

.market-header {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9em;
    padding-bottom: 10px;
}

/* PONTO 1: Centraliza os títulos das colunas */
.market-header span {
    text-align: left;
    /* Padrão para o Ativo */
}

.market-header span.text-right {
    text-align: right;
    /* Variação e Preço */
}

.market-header span.text-center {
    text-align: center;
    /* Ação */
}

.market-asset-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.market-asset-name img {
    width: 24px;
    height: 24px;
}

.market-change,
.market-price {
    font-weight: 500;
    text-align: right;
}

.market-price {
    color: var(--dark-text);
}

.market-change.positive {
    color: #28a745;
}

.market-change.negative {
    color: #dc3545;
}

/* PONTO 2: Estilos do botão "Comprar" */
.market-action {
    text-align: center;
    /* Centraliza o botão na coluna */
}

.btn-buy-asset {
    background-color: #e9ecef;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.85em;
}

.btn-buy-asset:hover {
    background-color: #dee2e6;
}

/* --- ESTILOS DO POP-UP DE COMPRA DE ATIVO --- */

.buy-asset-modal {
    max-width: 450px;
    /* Um pouco maior que o de cbits */
    text-align: left;
    /* Alinha o texto à esquerda por padrão */
}

.buy-asset-modal h3 {
    text-align: center;
    /* Centraliza apenas o título */
    margin-bottom: 25px;
}

.asset-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.asset-info img {
    width: 32px;
    height: 32px;
}

#buy-asset-name {
    font-weight: 600;
    flex-grow: 1;
    /* Empurra o preço para a direita */
}

#buy-asset-price {
    font-weight: 600;
}

#buy-quantity-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1.1em;
    margin-top: 5px;
}

.cost-summary {
    margin: 20px 0;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
}

#buy-total-cost-cbits {
    font-weight: 700;
    color: var(--primary-orange);
}

/* --- AJUSTES DO SIMULADOR (COMPRAR/VENDER NA TABELA) --- */

/* Ajusta a coluna de Ações para caber dois botões */
.portfolio-table-header,
.portfolio-item {
    /* Colunas: Ativo, Qtd, Preço Médio, Rentab, Cotação, Posição, Ações */
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.2fr 1fr;
    /* Aumenta a coluna Ações */
}

.portfolio-actions {
    display: flex;
    gap: 8px;
    /* Espaço entre os botões Comprar/Vender */
    justify-content: center;
}

.portfolio-actions button {
    padding: 5px 10px;
    font-size: 0.8em;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-weight: 600;
}

.btn-buy-more-table {
    background-color: #d1e7dd;
    /* Verde claro (Fundo) */
    color: #0f5132 !important;
    /* <<-- VERDE ESCURO (Texto) - Adicionado !important */
    padding: 5px 10px;
    font-size: 0.8em;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Adicionada transição de cor */
}

.btn-buy-more-table:hover {
    background-color: #badbcc;
    /* Verde um pouco mais escuro no hover */
    color: #0c4128 !important;
    /* Verde ainda mais escuro no hover */
}

/* Garanta que a regra do botão Vender esteja correta também */
.btn-sell-table {
    background-color: #f8d7da;
    /* Vermelho claro */
    color: #842029;
    /* Vermelho escuro */
}

.btn-sell-table:hover {
    background-color: #f5c2c7;
    color: #6a1a21;
}

/* Ajustes específicos para o pop-up de venda */
.sell-asset-modal #sell-total-received-cbits {
    color: #28a745;
    /* Verde para valor recebido */
}

#sell-owned-quantity {
    font-weight: bold;
}

/* --- ESTILO PARA INPUTS DE QUANTIDADE NOS POP-UPS --- */

/* Aplica a todos os inputs de quantidade nos pop-ups de compra/venda */
#buy-quantity-input,
#buy-more-quantity-input,
#sell-quantity-input {
    width: 100%;
    padding: 12px;
    /* Espaçamento interno */
    border: 1px solid #dee2e6;
    /* Borda padrão */
    border-radius: 8px;
    /* Cantos arredondados */
    font-size: 1.1em;
    /* Tamanho da fonte */
    margin-top: 5px;
    /* Espaço acima */
    box-sizing: border-box;
    /* Garante que padding não aumente a largura total */
}

/* Opcional: Estilo ao focar no campo */
#buy-quantity-input:focus,
#buy-more-quantity-input:focus,
#sell-quantity-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    /* Muda a cor da borda ao focar */
}

/* --- ESTILOS DA PÁGINA DE CRIAÇÃO DE FEED --- */

.create-feed-container {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

#feed-editor {
    min-height: 250px;
    /* Altura um pouco maior para o conteúdo */
    margin-bottom: 10px;
    /* Espaço antes do disclaimer */
}

/* O container principal da lista de posts */
.feed-post-list {
    max-width: 700px;
    /* Largura de feed de notícias (como Twitter/Facebook) */
    margin: 0 auto;
    /* Centraliza a coluna do feed */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* O card de um único post */
.feed-post-card {
    background-color: var(--background-section);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Garante que a imagem não vaze */
}

/* Informações do Autor (Avatar, Nome, Tempo) */
.feed-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
}

.feed-card-meta img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-card-author-info {
    display: flex;
    flex-direction: column;
}

.feed-card-author-name {
    font-weight: 600;
    color: var(--dark-text);
    text-decoration: none;
}

.feed-card-author-name:hover {
    text-decoration: underline;
}

.feed-card-time {
    font-size: 0.85em;
    color: var(--light-text);
}

/* Conteúdo do Post */
.feed-card-body {
    padding: 0 20px 15px 20px;
}

.feed-card-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 15px;
}

.feed-card-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.feed-card-content {
    /* O ql-editor é a classe do Quill para exibir conteúdo */
    font-size: 1em;
    line-height: 1.7;
    color: var(--dark-text);
}

.feed-card-content p {
    margin-bottom: 1em;
}

/* Ações (Hype, Comentário) */
.feed-card-actions {
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
}

/* Reutiliza o estilo .action-btn da post.html */
.feed-card-actions .action-btn {
    font-size: 0.9em;
}

/* Área de Comentários (Simples) */
.feed-comment-area {
    background-color: var(--background-light);
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.feed-comment-input-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.feed-comment-input {
    flex-grow: 1;
    height: 40px;
    padding: 0 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    font-family: 'Poppins', sans-serif;
}

.feed-comment-submit {
    padding: 0 20px;
    border-radius: 20px;
    border: none;
    background-color: var(--primary-orange);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.feed-comment-submit:hover {
    background-color: #d85b1d;
}

/* Lista de Comentários Simples */
.feed-comment-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-comment-item {
    display: flex;
    gap: 10px;
    font-size: 0.9em;
}

.feed-comment-item img {
    /* Avatar do comentarista */
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.feed-comment-content {
    background-color: var(--background-section);
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 12px;
    width: 100%;
}

.feed-comment-content strong {
    color: var(--dark-text);
}

.feed-comment-content p {
    margin: 5px 0 0 0;
    color: var(--dark-text);
    line-height: 1.5;
}

/* Estilo para o link "Leia mais..." */
.feed-card-content .read-more-link {
    display: inline-block;
    /* Garante que ele fique na linha */
    margin-top: 10px;
    /* Um pequeno espaçamento do texto */
    color: var(--primary-orange);
    /* Usa sua cor primária */
    text-decoration: none;
    /* Remove o sublinhado padrão */
    font-weight: 600;
    /* Deixa mais negrito */
    transition: color 0.2s ease;
    /* Transição suave na cor */
}

.feed-card-content .read-more-link:hover {
    color: var(--primary-dark);
    /* Escurece um pouco no hover */
    text-decoration: underline;
    /* Adiciona um sublinhado elegante no hover */
}

/*
================================================================
--- 4.11 PÁGINA: FEED POST (feed_post.html) ---
================================================================
*/
.feed-post-container {
    max-width: 750px;
    /* Um pouco mais largo para o post principal */
    margin: 0 auto;
}

/* Remove a borda e sombra do card principal na página do post */
#feed-post-main {
    border: none;
    box-shadow: none;
    padding: 0;
}

/* Garante que o conteúdo do post não tenha padding/borda */
#feed-post-main .ql-editor {
    padding: 0;
    border: none;
}

/* Ajusta o espaçamento do formulário de comentário principal */
#feed-post-page .feed-comment-area {
    margin-top: 20px;
    background-color: var(--background-section);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.who-i-follow-modal {
    max-width: 500px;
    text-align: left;
}
.who-i-follow-modal h3 {
    text-align: center;
    margin-bottom: 10px;
}
.who-i-follow-modal p {
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}
.expert-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 40vh; /* Limita a altura e torna rolável */
    overflow-y: auto;
}
.expert-list-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.expert-list-item:hover {
    background-color: var(--background-light);
}
.expert-list-item img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}
.expert-list-item span {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 1.1em;
}

/* --- ESTILOS DA PÁGINA DE CONFIGURAÇÕES --- */

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Espaço entre as seções */
}

.settings-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.settings-card h2 {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

/* Reutiliza o estilo de form-group */
.settings-card .form-group label {
    font-weight: 500;
    /* Labels um pouco mais leves */
}

.settings-card input[type="text"],
.settings-card input[type="email"],
.settings-card input[type="password"],
.settings-card select {
    width: 100%;
    max-width: 400px;
    /* Limita a largura dos inputs */
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
}

.settings-card select {
    appearance: none;
    /* Estilo customizado para select */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    cursor: pointer;
}

.settings-card button[type="submit"],
.settings-card #change-account-type-btn {
    margin-top: 15px;
}

.settings-card .disclaimer-text {
    margin-top: 8px;
    font-size: 0.8em;
}

/* Estilos para checkboxes */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin-bottom: 0;
    /* Remove margem padrão da label */
    font-weight: normal;
    color: var(--dark-text);
}


/* --- AJUSTES DA PÁGINA DE CONFIGURAÇÕES (Pagamentos) --- */

.payment-actions {
    margin-top: 20px;
    /* Adiciona espaço acima do botão */
}

/* Estilos da Zona de Perigo */
.danger-zone {
    border: 2px solid #f8d7da;
    /* Borda vermelha */
    background-color: #fff6f6;
    /* Fundo vermelho bem claro */
}

.danger-zone h2 {
    color: #842029;
    /* Título vermelho escuro */
    border-bottom-color: #f5c2c7;
}

.danger-zone p {
    color: #6a1a21;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* --- ESTILOS DA PÁGINA DE CRIAÇÃO DE CONTA (SIGNUP) --- */

.signup-page {
    background-color: var(--background-light);
    /* Fundo cinza claro */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 40px 20px;
}

.signup-container {
    background-color: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    /* Largura máxima */
    width: 100%;
    text-align: center;
}

.signup-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.signup-container h1 {
    margin-bottom: 10px;
}

.signup-container p {
    color: var(--light-text);
    margin-bottom: 30px;
}

#signup-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#signup-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

#signup-form input[type="email"],
#signup-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    /* Padding padrão */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
}

.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    /* CALCULA O TOP: Metade da altura do botão fica no centro do espaço do input */
    /* Assumindo que o input tem ~46px de altura + padding */
    top: calc(50% + 10px);
    /* Ajuste este valor se necessário */
    right: 15px;
    transform: translateY(-50%);
    /* Centraliza verticalmente no ponto calculado */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
    padding: 5px;
    line-height: 1;
}

.toggle-password svg {
    display: block;
    width: 20px;
    height: 20px;
}

.error-message {
    color: #dc3545;
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
    /* Garante que ocupe espaço */
    min-height: 1.2em;
    /* Evita que o layout pule */
}

.btn-signup {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    margin-top: 10px;
}

.divider {
    margin: 25px 0;
    text-align: center;
    color: var(--light-text);
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: #dee2e6;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background-color: #fff;
    padding: 0 10px;
}

.btn-google {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    font-weight: 500;
    background-color: #fff;
    color: #444;
    border: 1px solid #dadce0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-google:hover {
    background-color: #f8f9fa;
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

.account-type-group {
    margin-top: 25px;
}

.radio-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.radio-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.comparison-section {
    margin-top: 40px;
    border-top: 1px solid #f0f0f0;
    padding-top: 30px;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
    margin-top: 20px;
}

.comparison-column h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.comparison-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-column li {
    margin-bottom: 10px;
    color: var(--dark-text);
}

.premium-note {
    font-size: 0.9em;
    color: var(--light-text);
    margin-top: 15px;
}

.login-link {
    margin-top: 30px;
    font-size: 0.9em;
}

.login-link a {
    color: var(--primary-orange);
    font-weight: 600;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

/* Garante rolagem horizontal para tabelas largas no Simulador */

/* Aplica aos DOIS containers */
.portfolio-block,
.market-movers-card {
    overflow-x: auto !important;
    /* FORÇA a rolagem */
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Força largura mínima para as LINHAS INTERNAS das tabelas */

/* Para a tabela do Portfólio (7 colunas) */
.portfolio-table-header,
.portfolio-item {
    min-width: 750px !important;
    display: grid !important;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.2fr 1fr !important;
}

/* Para a tabela Market List (4 colunas) */
.market-header,
.market-item {
    min-width: 550px !important;
    /* FORÇA a largura mínima */
    display: grid !important;
    /* FORÇA o grid */
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    /* FORÇA as colunas */
}



/* --- ESTILOS DA PÁGINA DE LOGIN --- */

/* Ajustes no container principal (reutiliza .signup-container) */
.login-container {
    max-width: 450px;
    /* Container um pouco menor */
    padding: 40px;
    /* Padding interno */
}

/* Formulário de Login */


/* Estilo PADRÃO para inputs de texto, email e senha no login */
#login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

#login-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
}

#login-form input[type="text"],
#login-form input[type="email"],
#login-form input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    /* Padding padrão */
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    /* Garante consistência de tamanho */
}

#login-form input[type="text"]:focus,
#login-form input[type="email"]:focus,
#login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-orange);
}


/* Grupo do campo de senha (necessário para posicionar o ícone) */
#login-form .password-group {
    position: relative;
}

/* Adiciona espaço DENTRO do input de senha para o ícone */
#login-password {
    padding-right: 50px;
    /* Espaço para o ícone não sobrepor o texto */
}

/* Botão de mostrar/ocultar senha */
.toggle-password {
    position: absolute;
    /* Posição vertical ajustada (experimente valores próximos se necessário) */
    top: 55px;
    right: 15px;
    transform: translateY(-50%);
    /* Centraliza verticalmente */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--light-text);
    padding: 5px;
    line-height: 1;
    /* Remove espaço extra */
}

.toggle-password svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* Container para "Mantenha-me conectado" e "Esqueci senha" */
.login-options {
    /* Remove Flexbox para empilhar os itens */
    margin: 15px 0 25px 0;
    /* Aumenta margem inferior */
    font-size: 0.9em;
}

/* Checkbox "Mantenha-me conectado" */
.checkbox-remember {
    display: flex;
    /* Alinha checkbox e texto */
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--light-text);
    margin-bottom: 10px;
    /* Espaço ABAIXO do checkbox */
}

.checkbox-remember input {
    margin: 0;
    /* Remove margem padrão do checkbox */
}

/* Link "Esqueci minha senha" */
.forgot-password {
    display: block;
    /* Ocupa a linha abaixo */
    text-align: left;
    /* Alinha à esquerda */
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Botão principal de Entrar (reutiliza .btn-signup) */
#login-form .btn-signup {
    width: 100%;
    padding: 14px;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Divisor "OU" (reutiliza estilo de signup) */
.login-container .divider {
    margin: 25px 0;
}

/* Botão Entrar com Google (reutiliza estilo de signup) */
.login-container .btn-google {
    width: 100%;
}

/* Link inferior para criar conta (reutiliza estilo de signup) */
.login-container .login-link {
    margin-top: 30px;
    font-size: 0.9em;
}

/* --- ESTILOS DO POP-UP ESQUECI MINHA SENHA --- */

/* Reutiliza o estilo do pop-up modal genérico */
.forgot-password-modal {
    max-width: 400px;
    text-align: left;
}

.forgot-password-modal h3 {
    text-align: center;
    margin-bottom: 20px;
}

.forgot-password-modal p {
    color: var(--light-text);
    margin-bottom: 20px;
    text-align: center;
}

.forgot-password-modal input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

.forgot-password-modal .form-group {
    margin-bottom: 20px;
    /* Espaço antes dos botões */
}

/* --- ESTILOS DO BOTÃO E POP-UP PREMIUM --- */

/* --- ESTILOS DO BOTÃO E POP-UP PREMIUM --- */

/* Botão que abre o modal (se usado em algum lugar fora da sidebar) */
.btn-premium {
    background: linear-gradient(45deg, #ffd700, #ffb700);
    color: #4a3f00;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Container do Modal */
.premium-modal-content {
    max-width: 500px;
    text-align: center;
    border-radius: 16px; /* Arredondei um pouco mais para ficar moderno */
    padding: 30px;
}

.premium-modal-content h3 {
    color: #f39c12; /* Laranja/Dourado mais forte */
    font-size: 1.8em;
    margin-bottom: 15px;
}

/* Lista de Benefícios */
.premium-benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
    background: #fff9e6; /* Fundo amarelo bem clarinho pra destacar */
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ffeebb;
}

.premium-benefits li {
    margin-bottom: 12px;
    color: #444;
    padding-left: 25px;
    position: relative;
    font-size: 0.95em;
}

.premium-benefits li::before {
    content: '💎'; /* Mudei para diamante para combinar com o tema */
    position: absolute;
    left: 0;
    font-size: 0.9em;
}

/* BOTÃO DE AÇÃO (ASSINAR) - O DOURADO DEGRADE */
.btn-subscribe {
    width: 80%; /* Aumentei um pouco para chamar mais atenção */
    margin: 20px auto 0 auto;
    display: block; /* Garante que o margin auto centralize */
    
    /* O Estilo Dourado Rico */
    background: linear-gradient(90deg, #f1c40f 0%, #f39c12 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px; /* Botão arredondado (Pill shape) */
    font-weight: 800;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    
    /* Efeitos de Profundidade */
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4); /* Glow laranja/dourado */
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    transform: translateY(-3px); /* Sobe um pouquinho */
    background: linear-gradient(90deg, #f39c12 0%, #d35400 100%); /* Fica mais intenso no hover */
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
}

.btn-subscribe:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 10px rgba(243, 156, 18, 0.4);
}

/* --- ESTILOS RESPONSIVOS GERAIS --- */

/* Telas Médias (Tablets e alguns celulares grandes na horizontal) - max-width: 992px */
@media (max-width: 992px) {

    /* Ajustes gerais de espaçamento */
    main {
        padding: 15px;
    }

    .dashboard-content {
        padding: 20px;
    }

    /* Homepage: Colunas começam a empilhar */
    .hero-section .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }

    .stats-section .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* Duas colunas */
    .flowchart-wrapper {
        max-width: 90%;
        height: auto;
    }

    /* Simplifica fluxograma */

    /* Dashboard: Prepara para esconder sidebar, ajusta grids */
    .dashboard-container {
        flex-direction: column;
    }

    /* Força coluna */
    .dashboard-sidebar {
        width: 100%;
        /* Ocupa a largura toda (será escondido depois com JS) */
        height: auto;
        position: fixed;
        /* Prepara para o menu lateral */
        left: -100%;
        /* Escondido fora da tela por padrão */
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .dashboard-sidebar.visible {
        left: 0;
        /* Mostra o menu */
    }

    .dashboard-content {
        width: 100%;
    }

    /* Ocupa a largura toda */
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 2 colunas */
    .specialist-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .specialist-grid .card-large {
        grid-column: span 1;
    }

    /* Perfil */
    .profile-container {
        grid-template-columns: 1fr;
    }

    /* Empilha colunas */
    .profile-avatar {
        margin-top: 20px;
        width: 120px;
        height: 120px;
    }

    .profile-identity-card {
        padding-top: 80px;
    }

    /* Post */
    .post-page-container {
        grid-template-columns: 1fr;
    }

    /* Empilha colunas */
    .post-sidebar {
        order: -1;
        margin-bottom: 20px;
    }

    /* Sidebar sobe */

    /* Rankings */
    .leaderboards-container {
        grid-template-columns: 1fr;
    }

    /* Empilha tabelas */

    /* Formulários (Signup/Login) */
    .signup-container,
    .login-container {
        padding: 30px 20px;
    }

    .comparison-table {
        grid-template-columns: 1fr;
    }
}


/* --- ESTILOS DO BOTÃO HAMBÚRGUER --- */

.menu-toggle-btn {
    display: none;
    /* Escondido por padrão em telas grandes */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    /* Fica acima da sidebar */
}

.menu-toggle-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 992px) {
    .menu-toggle-btn {
        display: block;
        /* Mostra o botão em telas menores */
    }
}

/* --- AJUSTES DO CABEÇALHO RESPONSIVO DO DASHBOARD --- */

.mobile-header-logo {
    display: none;
    /* Escondido por padrão em telas grandes */
    height: 35px;
    /* Altura do logo no header mobile */
}

.mobile-header-logo img {
    height: 100%;
    width: auto;
}

/* Ajusta o header principal para alinhar os itens */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    /* Permite quebra em telas muito pequenas */
}

/* Em telas menores, mostra o logo e ajusta espaçamentos */
@media (max-width: 992px) {
    .dashboard-header {
        gap: 15px;
        /* Espaço entre os elementos */
    }

    .mobile-header-logo {
        display: block;
        /* Mostra o logo */
        /* Garante que ele fique entre o hambúrguer e o texto/botões */
        order: 0;
        /* Ordem padrão (geralmente após o hambúrguer) */
    }

    .menu-toggle-btn {
        order: -1;
        /* Coloca o hambúrguer primeiro */
    }

    .header-welcome {
        flex-grow: 1;
        /* Permite que o texto ocupe espaço */
        text-align: left;
        /* Alinha o texto à esquerda */
        order: 1;
        /* Depois do logo */
    }

    .header-actions {
        /* Mantém na direita ou ajusta conforme necessário */
        order: 2;
    }
}


.mobile-header-logo {
    display: none;
    /* Escondido por padrão em telas grandes */
    height: 35px;
    /* Altura do logo no header mobile */
    /* Garante alinhamento vertical se necessário */
    display: flex;
    align-items: center;
}

.mobile-header-logo img {
    height: 100%;
    width: auto;
}

/* ================================================================ */
/* --- ESTILOS RESPONSIVOS PARA TELAS PEQUENAS (max-width: 768px) --- */
/* ================================================================ */
@media (max-width: 768px) {

    /* --- HOMEPAGE (index.html) --- */
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }

    /* Esconde a seção do fluxograma em telas pequenas */
    .flowchart-section {
        display: none;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .main-nav ul li {
        margin-left: 0;
    }

    .header-auth-buttons {
        margin-top: 15px;
        justify-content: center;
    }

    /* (Ajustes de .hero-section já estão em 992px, mas podem precisar de refinamento aqui se necessário) */
    .hero-content h1 {
        font-size: 2.2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .features-grid {
        grid-template-columns: 1fr;
        /* Uma coluna */
        gap: 60px;
    }

    .feature-card {
        text-align: center;
    }

    .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .feature-card:not(:last-child)::after {
        display: none;
    }

    .newsletter-card {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    /* --- DASHBOARD (Geral) --- */
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: space-around;
    }

    /* Ajustes do header mobile */
    .header-welcome {
        /* display: none; */
        /* Descomente se quiser esconder o texto */
        text-align: center;
        /* Ou centraliza */
        width: 100%;
        /* Ocupa a linha toda */
        order: 1;
        /* Garante que fique abaixo do logo/hambúrguer */
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        /* Centraliza botões */
        order: 2;
    }


    .dashboard-grid,
    .specialist-grid {
        grid-template-columns: 1fr;
        /* Uma coluna */
    }

    .specialist-grid .card-large {
        grid-column: span 1;
        /* Garante que ocupem 1 coluna */
    }

    /* --- SIMULADOR (simulator.html) --- */


    /* --- Garante rolagem horizontal para TABELAS LARGAS no Simulador --- */

    /* Container da Tabela do Portfólio */
    .portfolio-block {
        overflow-x: auto;
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 20px 10px;
    }

    /* Linhas da Tabela do Portfólio */
    .portfolio-table-header,
    .portfolio-item {
        min-width: 750px;
        display: grid;
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.2fr 1fr;
    }

    /* Container da Tabela Market List */
    .market-movers-card {
        overflow-x: auto;
        /* Habilita a rolagem horizontal */
        display: block;
        /* Garante comportamento de bloco */
        width: 100%;
        /* Ocupa a largura disponível */
        box-sizing: border-box;
        /* Inclui padding/border na largura */
        padding: 20px 10px;
        /* Ajuste do padding lateral */
    }

    /* Linhas da Tabela Market List */
    .market-header,
    .market-item {
        min-width: 550px;
        /* Largura mínima para ativar rolagem */
        display: grid;
        /* Força o layout de grid */
        grid-template-columns: 2fr 1fr 1fr 1fr;
        /* Garante as 4 colunas */
        box-sizing: border-box;
        /* Inclui padding/border na largura da linha */
        width: 100%;
        /* Faz a linha tentar ocupar a min-width */
    }

    /* Garante alinhamento dos títulos das colunas do market list */
    .market-header span {
        text-align: left;
    }

    .market-header span.text-right {
        text-align: right;
    }

    .market-header span.text-center {
        text-align: center;
    }

    /* Garante alinhamento dos dados das colunas do market list */
    .market-item .market-change,
    .market-item .market-price {
        text-align: right;
    }

    .market-item .market-action {
        text-align: center;
    }

    /* --- PÁGINA DE POST (post.html) --- */
    /* (Ajustes de empilhamento já estão em 992px, aqui podemos refinar espaçamentos se necessário) */

    /* --- PÁGINA DE RANKINGS (rankings.html) --- */
    .rank-summary-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .rank-badge {
        grid-row: auto;
        margin: 0 auto 15px auto;
    }

    .btn-show-rules {
        grid-column: auto;
        grid-row: auto;
        margin-top: 10px;
    }

    .rank-progress {
        grid-column: auto;
    }

    /* (Empilhamento das tabelas já está em 992px) */

    /* --- PÁGINAS DE FORMULÁRIO (signup.html, login.html) --- */
    .comparison-table {
        grid-template-columns: 1fr;
    }

    .signup-container,
    .login-container {
        padding: 30px 20px;
    }

    /* --- AJUSTES GERAIS --- */
    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.5em;
    }

    /* Adicione outros ajustes finos de fonte/espaçamento conforme necessário */

}

/* Fim do @media (max-width: 768px) */


/* --- ESTILOS DO DISCLAIMER E POP-UP DE TERMOS (Signup) --- */

.terms-disclaimer {
    font-size: 0.85em;
    color: var(--light-text);
    margin: 20px 0;
}

.terms-disclaimer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 500;
}

.terms-disclaimer a:hover {
    text-decoration: underline;
}

/* Ajustes no Pop-up de Termos */
.terms-modal-content {
    max-width: 700px;
    /* Pop-up um pouco mais largo */
    text-align: left;
    /* Alinha texto à esquerda */
    max-height: 80vh;
    /* Altura máxima */
    display: flex;
    /* Permite que o container de texto role */
    flex-direction: column;
}

.terms-modal-content h2 {
    text-align: center;
    /* Centraliza só o título */
    margin-bottom: 20px;
}

.terms-text-container {
    overflow-y: auto;
    /* Adiciona rolagem se o texto for grande */
    padding-right: 15px;
    /* Espaço para a barra de rolagem */
    margin-bottom: 20px;
}

.terms-text-container p,
.terms-text-container li {
    color: var(--dark-text);
    line-height: 1.6;
    margin-bottom: 10px;
}

.terms-text-container strong {
    font-weight: 600;
}

.terms-modal-content .modal-actions {
    margin-top: auto;
    /* Empurra o botão para baixo */
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

/* --- ESTILOS DO FEEDBACK VISUAL (TOAST) --- */

.toast-container {
    position: fixed;
    /* Fica fixo na tela */
    bottom: 20px;
    /* Posição a partir de baixo */
    right: 20px;
    /* Posição a partir da direita */
    z-index: 1050;
    /* Garante que fique acima de outros elementos */
    display: flex;
    flex-direction: column;
    /* Mensagens empilhadas verticalmente */
    align-items: flex-end;
    /* Alinha mensagens à direita */
}

.toast-message {
    background-color: #333;
    /* Fundo escuro */
    color: #fff;
    /* Texto branco */
    padding: 12px 20px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0;
    /* Começa invisível */
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    transform: translateX(100%);
    /* Começa fora da tela (à direita) */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.toast-message.show {
    opacity: 1;
    /* Torna visível */
    transform: translateX(0);
    /* Move para a posição final */
}

/* (Opcional) Estilos para tipos diferentes de mensagem */
.toast-message.success {
    background-color: #28a745;
    /* Verde para sucesso */
}

.toast-message.error {
    background-color: #dc3545;
    /* Vermelho para erro */
}

.toast-message.info {
    background-color: #17a2b8;
    /* Azul para informação */
}

/* --- CORREÇÃO: Remove sublinhado azul dos cards de fórum --- */

/* Alvo: O link (<a>) que envolve o card.
  Isso remove o sublinhado e diz ao texto para herdar a cor padrão.
*/
a.community-card-link {
    text-decoration: none;
    /* Remove o sublinhado */
    color: inherit;
    /* Faz o texto herdar a cor do elemento pai (geralmente preta) */
}

/* Restaura a cor do TÍTULO do card.
  (Seu CSS deve ter uma cor definida para .card-name, mas o link <a> é mais específico.
   Vamos garantir que a cor escura vença.)
*/
a.community-card-link .card-name {
    color: var(--dark-text);
    /* Ou qualquer que seja sua variável para texto escuro/títulos */
}

/* Restaura a cor da DESCRIÇÃO do card.
  (Seu CSS deve ter uma cor para .card-body p, mas o link <a> vence.)
*/
a.community-card-link .card-body p {
    color: var(--light-text);
    /* Ou sua variável para texto claro/parágrafo */
}

/* --- CORREÇÕES DE ESTILO (Simulador / Transações) --- */

/* Req. 2: Garante que o saldo de Cbits fique verde */
/* (Assumindo que 'positive' é sua classe de cor verde, como na imagem image_7b7985.png) */
.summary-card #cbit-balance-display {
    color: var(--positive-color, #28a745);
    /* <-- Ajuste a variável/cor se 'positive' não for verde */
}

/* Req. 3: Alinha o saldo de Cbits no simulador à esquerda */
/* (Isso mira o .summary-card que está dentro do .portfolio-summary 
   e que contém o #cbit-balance-display) */
.portfolio-summary .summary-card:has(#cbit-balance-display) {
    align-items: flex-start;
    /* Alinha o conteúdo (label + valor) à esquerda */
    text-align: left;
}

.portfolio-summary .summary-card:has(#cbit-balance-display) .summary-value {
    justify-content: flex-start;
    /* Alinha o texto do span à esquerda se ele for flex */
}

/* --- CORREÇÃO DE ALINHAMENTO (TRANSACTIONS.HTML) --- */
.transaction-summary .summary-card.button-card {
    justify-content: center;
    align-items: center;
    padding: 10px;
    /* Ajuste o padding se necessário */
}

/* --- Ajustes para o layout dos cards de resumo (transactions.html) --- */

/* Garante que o container summary-card organize seus itens */
.transaction-summary .summary-card {
    display: flex;
    flex-direction: column;
    /* Organiza label e valor na vertical */
    align-items: flex-start;
    /* Alinha label e valor à esquerda */
    justify-content: center;
    /* Centraliza o conteúdo verticalmente dentro do card */
    padding: 20px;
    /* Padding padrão para os cards */
    /* Outros estilos como background-color, border-radius, box-shadow... */
}

/* Ajusta o card do botão para centralizar seu conteúdo */
.transaction-summary .summary-card.button-card {
    display: flex;
    /* Garante que é um flex container */
    align-items: center;
    /* Centraliza o botão verticalmente */
    justify-content: center;
    /* Centraliza o botão horizontalmente */
    padding: 0px 20px;
    /* Remove padding vertical extra para o botão se ajustar */
}

/* Ajusta o botão dentro do card para ocupar o espaço necessário */
.transaction-summary .summary-card.button-card #buy-cbits-btn {
    width: 100%;
    /* Faz o botão ocupar a largura total disponível no card */
    padding: 15px 10px;
    /* Ajusta o padding do botão */
    max-width: 200px;
    /* Limita a largura máxima do botão, se desejar */
}

/* Garante que o container dos cards .transaction-summary distribua bem os itens */
.transaction-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* 3 colunas flexíveis */
    gap: 20px;
    /* Espaço entre os cards */
    margin-bottom: 30px;
    align-items: stretch;
    /* Garante que os cards tenham a mesma altura */
}

/* Estilo para a cor verde do saldo (se ainda não estiver lá) */
.summary-value.positive {
    color: var(--positive-color, #28a745);
    /* Exemplo de cor verde */
}

/* --- CORREÇÃO (Transactions.html): Alinhamento dos 3 Cards --- */

/* 1. Define o container principal como flex */
.transaction-summary {
    display: flex;
    flex-wrap: wrap;
    /* Permite quebrar linha em telas menores */
    gap: 20px;
    /* Espaço entre os cards */
    margin-bottom: 30px;
    align-items: stretch;
    /* Garante que todos os cards tenham a mesma altura */
}

/* 2. Define que cada card (incluindo o do botão) deve crescer igualmente */
.transaction-summary .summary-card {
    flex: 1;
    /* Faz os cards ocuparem o espaço disponível igualmente */
    min-width: 250px;
    /* Largura mínima antes de quebrar de linha */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centraliza o conteúdo verticalmente */

    /* PADRÃO: Alinha texto (label/valor) à esquerda */
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    /* ... (seu estilo de background/border-radius existente) ... */
}

/* 3. Centraliza APENAS o conteúdo do card do botão */
.transaction-summary .summary-card.button-card {
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    /* Ajusta o padding para o botão */
}

/* --- CORREÇÃO (Simulator.html): Alinha card de Saldo Cbits à esquerda --- */

/* Força TODOS os cards dentro do .portfolio-summary (Rentabilidade,
   Valor Total E Saldo Cbits) a alinharem seu conteúdo à esquerda.
*/
.portfolio-summary .summary-card {
    align-items: flex-start;
    /* Alinha o conteúdo (label e valor) à esquerda */
    text-align: left;
}

/* Garante que o texto do .summary-value (o número) também se alinhe à esquerda */
.portfolio-summary .summary-card .summary-value {
    justify-content: flex-start;
}


/* --- ESTILOS RESUMIDOS DO DASHBOARD --- */

/* --- ESTILO RESUMIDO PORTFÓLIO (DASHBOARD_USER) --- */

/* O container (que já existe, .portfolio-list) */
#dash-portfolio-summary-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
}

/* O novo item (que o JS vai criar) */
.dash-portfolio-summary-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 colunas: Ticker, Variação */
    align-items: center;

    /* Estilo de fonte e espaçamento (Ajustado) */
    padding: 15px 5px;
    /* Mais espaço vertical */
    border-bottom: 1px solid #f0f0f0;
    font-size: 1em;
    /* Tamanho da fonte maior */
}

.dash-portfolio-summary-item:last-child {
    border-bottom: none;
}

/* Ticker (ex: BTC) */
.dash-portfolio-summary-item .asset-name {
    font-weight: 700;
    /* BOLD */
    color: var(--dark-text);
}

/* Variação (ex: +2.70%) */
.dash-portfolio-summary-item .asset-change {
    font-weight: 600;
    /* BOLD */
    text-align: right;
    white-space: nowrap;
}

.dash-portfolio-summary-item .asset-change.positive {
    color: var(--positive-color, #28a745);
}

.dash-portfolio-summary-item .asset-change.negative {
    color: var(--negative-color, #dc3545);
}

.dash-portfolio-summary-item .asset-change.neutral {
    color: var(--light-text);
}

/* --- ESTILO RESUMIDO DOS FÓRUNS (DASHBOARD_USER) --- */
/* (Baseado na imagem de referência image_39ae1e.png) */

/* O container (que já existe, .forum-list) */
#dash-forum-summary-list {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Espaço entre os itens */
}

/* O novo item (que o JS vai criar) */
.dash-forum-summary-item {
    display: flex;
    flex-direction: column;
    /* Empilha a meta (topo) e o título (embaixo) */
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dash-forum-summary-item:hover {
    background-color: #f8f9fa;
}

/* Meta (Icone, Nome, Tempo) */
.dash-forum-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--light-text);
    margin-bottom: 8px;
}

.dash-forum-meta img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.dash-forum-meta .forum-name {
    font-weight: 600;
    color: var(--dark-text);
}

/* Título do Post (Análise semanal...) */
.dash-forum-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-orange);
    /* <-- CORREÇÃO: Alinhado com o tema */
    line-height: 1.4;
    transition: color 0.2s ease;
    /* Adiciona transição suave */
}

/* Opcional: Adiciona um leve escurecimento no hover do título */
.dash-forum-summary-item:hover .dash-forum-title {
    color: #d85b1d;
    /* Tom mais escuro do laranja */
}

/* --- CORREÇÃO (FEED.HTML): Estilo do Título do Post --- */

.feed-card-title a {
    color: var(--primary-orange); /* Usa sua cor primária */
    text-decoration: none; /* Remove o sublinhado padrão */
    transition: color 0.2s ease;
}

.feed-card-title a:hover {
    color: #d85b1d; /* Um tom mais escuro do seu laranja */
    text-decoration: underline; /* Adiciona sublinhado no hover */
}