/* RESET E DEFINIÇÃO DE FONTE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Isso garante que a fonte Montserrat seja aplicada a tudo */
    font-family: 'Montserrat', sans-serif !important;
}

:root {
    --azul-b3: #1331f2;
    --preto: #000000;
    --branco: #ffffff;
    --cinza-fundo: #f4f7f9;
}

/* UNIFICADO: O CADEADO DO SEU SITE */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Títulos imponentes como os da Contabilizei */
h2 {
    font-weight: 800;
    letter-spacing: -1px;
}

/* Estilo do Menu */
.nav-menu a:hover {
    color: #1331f2 !important;
    /* Azul oficial da BUK */
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* LETREIRO RÁPIDO B3 (AGORA MOVIMENTA) */
.top-bar-b3 {
    background: var(--azul-b3);
    color: var(--branco);
    padding: 12px 0;
    position: relative;
    /* Alterado de fixed para relative */
    width: 100%;
    z-index: 10;
    height: 40px;
}

/* HEADER (AGORA MOVIMENTA) */
.main-header {
    background: #fff;
    border-bottom: 2px solid #000;
    position: relative;
    /* Alterado de fixed para relative */
    width: 100%;
    z-index: 9;
    padding: 20px 0;
    /* Padding confortável para a logo grande */
    transition: 0.3s;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Tamanho imponente para a logo conforme sua preferência */
.main-logo-img {
    height: 130px;
    width: auto;
    display: block;
}

/* AJUSTE DO MENU */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    margin-left: 35px;
    font-size: 1rem;
}

/* ANIMAÇÃO DO LETREIRO */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    /* Começa fora da tela */
    animation: marquee-loop 25s linear infinite;
    /* 25s para uma velocidade legível */
}

@keyframes marquee-loop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* BOTÃO WHATSAPP */
.btn-cta-whatsapp {
    background: #1331f2;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-cta-whatsapp:hover {
    background: #0b21a8;
    transform: scale(1.05);
}

.wa-icon {
    width: 20px;
    /* Ou o tamanho que preferir */
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Ajuste no Menu para alinhar com a logo maior */
.nav-menu a {
    text-decoration: none;
    color: #000000;
    font-weight: 700;
    margin-left: 30px;
    font-size: 0.9rem;
}

.btn-cta-b3 {
    background: #1331f2;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-cta-b3:hover {
    background: #0b21a8;
}

/* HERO SECTION */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1470');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: var(--branco);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.btn-more {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    border: 2px solid var(--branco);
    color: var(--branco);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-more:hover {
    background: var(--azul-b3);
    border-color: var(--azul-b3);
}

/* SERVICES GRID */
.services {
    padding: 80px 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border: 1px solid #eee;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--azul-b3);
}

/* RODAPÉ E LOGOS PARCEIROS */
.footer {
    background: #000000;
    color: #ffffff;
    padding: 60px 0 30px;
}

.partner-title {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 40px;
    color: #888;
}

.logos-grid {
    display: flex;
    justify-content: center;
    /* Centraliza as 3 logos */
    align-items: center;
    gap: 60px;
    /* Espaço maior entre elas já que são apenas três */
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.partner-img {
    height: 55px;
    /* Tamanho levemente maior para compensar a retirada da outra */
    width: auto;
    filter: grayscale(0) brightness(100%);
    /* Mantém o padrão branco profissional */
    opacity: 0.7;
    transition: 0.4s ease;
}

.partner-img:hover {
    filter: none;
    /* Revela as cores originais (Azul do CFC, Vermelho da JUCEMG, Dourado do CREA) */
    opacity: 1;
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
}

/* SEÇÃO SIMULADOR */
.tax-simulator {
    padding: 80px 0;
    background: #f9f9f9;
}

.simulator-header {
    text-align: center;
    margin-bottom: 40px;
}

.simulator-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
}

.simulator-card {
    background: #fff;
    border: 2px solid #000;
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.input-section {
    padding: 40px;
    flex: 1;
    border-right: 1px solid #eee;
}

.results-section {
    padding: 40px;
    flex: 1;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-box {
    margin-bottom: 25px;
}

.input-box label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-box input,
.input-box select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    font-family: 'Montserrat';
    font-weight: 600;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.result-item strong {
    color: #e74c3c;
}

.result-item.highlight strong {
    color: #2ecc71;
}

.economy-box {
    background: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.economy-box h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 5px;
}

.btn-whatsapp-sim {
    background: var(--azul-b3);
    color: #fff !important;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-whatsapp-sim:hover {
    background: #000;
}

@media (max-width: 768px) {
    .simulator-card {
        flex-direction: column;
    }

    .input-section {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
}

/* SEÇÃO SERVIÇOS ESTILO CORPORATIVO */
/* SEÇÃO SERVIÇOS ESTILO CORPORATIVO - CORRIGIDO */
/* SEÇÃO SERVIÇOS ESTILO CORPORATIVO - ATUALIZADO */
/* SEÇÃO SERVIÇOS ESTILO CORPORATIVO - MEGA DESTAQUE */
.services-office {
    padding: 120px 0;
    /* Aumentei o respiro da seção */
    background: #ffffff;
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
    /* Mais espaço antes dos cards */
    max-width: 950px;
    /* Mantém o texto centralizado e elegante */
    margin-left: auto;
    margin-right: auto;
}

.badge {
    background: #1331f2;
    color: #fff;
    padding: 12px 28px;
    /* Aumentei bem a caixa do selo */
    border-radius: 50px;
    font-size: 0.9rem;
    /* Letra maior */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Espaçamento entre letras */
    display: inline-block;
}

.services-header h2 {
    font-size: 3.5rem;
    /* Título bem grande agora */
    font-weight: 800;
    margin: 35px 0 20px;
    line-height: 1.1;
    /* Deixa as linhas do título mais próximas */
    color: #000;
}

/* Se você tiver um <p> dentro do header, ele também vai aumentar */
.services-header p {
    font-size: 1.4rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card-new {
    padding: 60px 40px;
    /* Aumentei o espaço interno (respiro) */
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centraliza o conteúdo horizontalmente */
    justify-content: center;
    /* Centraliza o conteúdo verticalmente */
    text-align: center;
    /* Centraliza o texto */
    min-height: 480px;
    /* Aumentei a altura mínima da caixa */
    border-radius: 15px;
    /* Deixei os cantos mais arredondados e modernos */
}

.service-card-new:hover {
    transform: translateY(-10px);
    /* Faz o card subir 10 pixels */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    /* Adiciona uma sombra para dar profundidade */
    border-color: #007bff;
    /* Opcional: muda a cor da borda ao passar o mouse */
}

/* Ajuste do grid para as caixas maiores não ficarem apertadas */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Aumentei de 300px para 350px */
    gap: 30px;
    margin-top: 50px;
}

/* Isso vai travar o tamanho das logos circulares */
.service-icon {
    width: 120px !important;
    /* Tamanho ideal para aparecer o texto da logo */
    height: 120px !important;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
    transition: transform 0.3s ease;
}

/* Isso vai organizar o card para a logo não vazar */
.service-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centraliza a logo redonda */
    justify-content: flex-start;
    min-height: 250px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-list {
    list-style: none;
    padding-top: 20px;
    border-top: 1px solid #f2f2f2;
    margin-top: auto;
}

.service-list li {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1331f2;
    font-weight: bold;
}

.highlight-border {
    border: 2px solid #000;
}

/* SEÇÃO HISTÓRIA POÉTICA - OTIMIZADA PARA CELULAR E PC */
.history-section {
    padding: 80px 0;
    background: #ffffff;
}

.history-container {
    display: flex;
    flex-wrap: wrap;
    /* Permite empilhar no celular */
    align-items: center;
    gap: 60px;
    background: linear-gradient(145deg, #000 0%, #0a0a0a 100%);
    padding: 60px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    width: 95%;
    margin: 0 auto;
    border: 1px solid #111;
}

.history-text {
    flex: 1;
    min-width: 300px;
    /* Garante que o texto não fique espremido */
}

.history-image {
    flex: 1;
    min-width: 300px;
}

.history-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    filter: grayscale(100%) contrast(1.1);
    border-left: 5px solid #1331f2;
}

.history-badge {
    color: #1331f2;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.history-text h2 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 25px;
}

.poetic-text {
    font-size: 1.15rem;
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 20px;
}

.poetic-text strong {
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    border-bottom: none !important;
}

.history-stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.number-container {
    display: flex;
    align-items: baseline;
    font-size: 4rem;
    font-weight: 900;
    color: #1331f2;
    line-height: 1;
    margin-bottom: 5px;
}

.plus-sign {
    font-size: 2.5rem;
    margin-left: 2px;
    color: #1331f2;
}

.stat-item>span {
    color: #ffffff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    opacity: 0.8;
}

/* AJUSTES PARA CELULAR */
@media (max-width: 768px) {
    .history-section {
        padding: 60px 0;
    }

    .history-container {
        padding: 40px 25px;
        flex-direction: column;
        /* Empilha imagem e texto */
        text-align: center;
        width: 100%;
        border-radius: 0;
        /* No celular, ocupa a largura total para imergir o texto */
    }

    .history-badge {
        font-size: 0.8rem;
        margin-bottom: 15px;
        letter-spacing: 5px;
    }

    .history-text h2 {
        font-size: 2.2rem;
        /* Diminui o título no celular */
        line-height: 1.2;
    }

    .poetic-text {
        font-size: 1.05rem;
        line-height: 1.7;
        text-align: justify;
    }

    .history-stats {
        justify-content: center;
        gap: 30px;
    }

    .stat-item {
        align-items: center;
    }

    .number-container {
        font-size: 3.2rem;
    }

    .history-image img {
        border-left: none;
        border-top: 5px solid #1331f2;
        /* No celular a linha fica no topo da foto */
        margin-top: 30px;
    }
}

/* ESTILO DA ABA LOGIN */
.nav-login {
    text-decoration: none;
    color: var(--preto);
    font-weight: 700;
    margin-left: 30px;
    /* Espaço entre "Sobre" e "Login" */
    font-size: 0.9rem;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
    /* Linha invisível para não "pular" no hover */
    padding-bottom: 5px;
}

/* EFEITO AO PASSAR O MOUSE */
.nav-login:hover {
    color: var(--azul-b3);
    border-bottom: 2px solid var(--azul-b3);
    /* Linha azul aparece suavemente */
}

.destaque-ir {
    background: #ffcc00;
    /* Amarelo vivo (estilo ENEM/Alerta) */
    color: #000;
    /* Letra preta para contraste máximo */
    padding: 2px 10px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5);
    /* Brilho suave */
}

/* Ajuste na barra para não cortar o destaque */
.top-bar-b3 {
    height: 45px;
    /* Aumentei um pouco para o destaque caber bem */
    display: flex;
    align-items: center;
}

.auth-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--cinza-fundo);
}

.auth-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-box input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Montserrat';
}

#btn-auth {
    width: 100%;
    padding: 12px;
    background: var(--azul-b3);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 10px;
}

#toggle-auth {
    margin-top: 20px;
    font-size: 0.85rem;
    cursor: pointer;
}

#toggle-auth span {
    color: var(--azul-b3);
    font-weight: 700;
}

/* DESIGN DA PÁGINA DE LOGIN (PREMIUM) */
.auth-page {
    padding-top: 0 !important;
    /* Remove o padding do menu que configuramos antes */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    /* Fundo preto elegante */
}

.auth-wrapper {
    display: flex;
    width: 90%;
    /* Ocupa 90% da largura da tela */
    max-width: 1200px;
    /* Aumentamos o limite máximo (antes era menor) */
    min-height: 700px;
    /* Aumentamos a altura mínima da caixa */
    background: #fff;
    border-radius: 20px;
    /* Borda mais arredondada e elegante */
    overflow: hidden;
    /* Garante que o azul não saia da borda */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    /* Sombra mais profunda */
    margin: 40px auto;
    /* Centraliza a caixa na tela com espaço no topo/fundo */
}

/* Lado com fundo azul e imagem */
.auth-side-info {
    flex: 1;
    background: linear-gradient(rgba(19, 49, 242, 0.9), rgba(11, 33, 168, 0.9)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab');
    background-size: cover;
    padding: 60px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-logo {
    height: 80px;
    /* Define a altura fixa */
    width: auto;
    /* Deixa a largura se ajustar sozinha para não achatar */
    max-width: 100%;
    /* Garante que não ultrapasse o limite lateral */
    object-fit: contain;
    /* Garante que a imagem caiba no espaço sem distorcer */
    margin-bottom: 30px;
    display: block;
    filter: brightness(0) invert(1);
    /* Mantém branca para o design premium */
}

.auth-side-info h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.auth-side-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

/* Lado do Formulário */
.auth-side-form {
    flex: 1;
    padding: 60px;
    display: flex;
    align-items: center;
}

.auth-form-box {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;

    /* SOLUÇÃO AQUI: */
    height: auto;
    /* Permite que a caixa cresça conforme o conteúdo */
    min-height: 400px;
    /* Altura mínima para não ficar pequena demais no login */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-form-box h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #000;
}

#form-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #333;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-family: 'Montserrat';
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--azul-b3);
    outline: none;
}

.btn-auth-submit {
    width: 100%;
    padding: 15px;
    background: var(--azul-b3);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-auth-submit:hover {
    background: #0b21a8;
    transform: translateY(-2px);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
}

#toggle-action {
    color: var(--azul-b3);
    font-weight: 800;
    cursor: pointer;
}

.back-link {
    display: block;
    margin-top: 20px;
    text-decoration: none;
    color: #888;
    font-size: 0.8rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .auth-side-info {
        display: none;
    }

    /* No celular mostra só o formulário */
    .auth-wrapper {
        max-width: 400px;
        height: auto;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.service-card i {
    font-size: 2rem;
    background: #f0f2ff;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: 0.3s;
}

.service-card:hover i {
    background: var(--azul-b3);
    color: #fff;
}

.category-group {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

.category-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--azul-b3);
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f2ff;
    padding-bottom: 10px;
}

.location-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    margin: 15px 0 10px 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-grid-sub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.sub-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid #eee;
    transition: 0.2s;
    text-align: center;
}

.sub-card:hover {
    background: var(--azul-b3);
    color: #fff;
    border-color: var(--azul-b3);
}

.sub-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #eee;
}

.user-info-bar {
    background: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
    font-size: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
}

.info-item strong {
    color: var(--azul-b3);
    margin-right: 5px;
}

.btn-copy {
    background: #f0f2ff;
    border: 1px solid var(--azul-b3);
    color: var(--azul-b3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    margin-left: 10px;
    font-weight: 700;
}

.btn-copy:hover {
    background: var(--azul-b3);
    color: #fff;
}

@media (max-width: 600px) {
    .service-icon {
        max-width: 60px;
        height: 60px;
    }

    .services-grid {
        gap: 10px;
        /* Diminui o espaço entre os cards no celular */
    }
}

/* BARRA DE PROMOÇÃO TOPO */
.top-promo-bar-v2 {
    background-color: #fff;
    padding: 40px 0;
    /* Bem mais alto para dar destaque */
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Sombra leve para destacar no meio do site */
    position: relative;
    z-index: 10;
}

.promo-grid-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.promo-item-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.promo-icon-circle {
    width: 60px;
    /* Aumentei um pouco para dar mais destaque */
    height: 60px;
    background: #f0f3ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Impede o círculo de achatar no celular */
}

.promo-text-v2 strong {
    display: block;
    font-size: 1.1rem;
    color: #1331f2;
    margin-bottom: 4px;
    font-weight: 800;
}

.promo-text-v2 p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.btn-promo-v2 {
    background: #1331f2;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    white-space: nowrap;
}

.btn-promo-v2:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Ajuste Responsivo */
@media (max-width: 992px) {
    .promo-grid-v2 {
        justify-content: center;
        text-align: center;
    }

    .promo-item-v2 {
        flex-direction: column;
    }

    .btn-promo-v2 {
        width: 100%;
        text-align: center;
        margin-top: 20px;
    }
}

.blog-preview-section {
    padding: 100px 0;
    background-color: #fff;
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 30px;
}

.header-text h2 {
    font-size: 2.2rem;
    color: #000;
    font-weight: 800;
    max-width: 600px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.header-text p {
    font-size: 1.1rem;
    color: #666;
    max-width: 550px;
}

.btn-blog-top {
    padding: 12px 24px;
    border: 2px solid #1331f2;
    color: #1331f2;
    text-decoration: none;
    font-weight: 800;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-blog-top:hover {
    background: #1331f2;
    color: #fff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: 0.3s;
}

.blog-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: #1331f2;
}

.blog-icon-box {
    margin-bottom: 25px;
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #000;
    font-weight: 700;
}

.blog-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: #1331f2;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
}

/* Responsivo */
@media (max-width: 768px) {
    .blog-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-blog-top {
        width: 100%;
        text-align: center;
    }
}

.dashboard-body {
    background: #f4f7f9;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
}

.dash-header {
    background: #000;
    color: #fff;
    padding: 15px 0;
    border-bottom: 4px solid #1a41ff;
}

.user-info-bar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 25px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
    align-items: center;
    flex-wrap: wrap;
}

.info-item strong {
    color: #1a41ff;
}

.btn-copy {
    background: #f0f2ff;
    border: 1px solid #1a41ff;
    color: #1a41ff;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: bold;
}

.btn-logout-dash {
    background: #ff4d4d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: center;
    transition: 0.3s;
    text-decoration: none;
    color: #333;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #1a41ff;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

/* AJUSTES FINAIS DE LARGURA E MOBILE */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .flex-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 20px 10px !important;
        gap: 15px !important;
    }

    .main-logo-img {
        height: 60px !important;
        width: auto !important;
        margin: 0 auto !important;
    }

    .nav-menu {
        flex-direction: column !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 10px !important;
        display: flex !important;
    }

    .nav-menu a {
        margin: 0 !important;
        /* Mata o erro de corte lateral */
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        font-size: 1.1rem !important;
        padding: 8px 0;
    }

    .btn-cta-whatsapp {
        margin: 10px auto !important;
        width: 220px !important;
        justify-content: center !important;
    }

    .top-bar-b3,
    .marquee-container {
        width: 100% !important;
        overflow: hidden !important;
    }

    /* Ajuste para os cards de serviço não vazarem no celular */
    .services-grid-new,
    .grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .service-card-new,
    .card {
        width: 100% !important;
    }
}

/* CONTAINER PRINCIPAL DO TICKER (ESTILO B3 ATUALIZADO) */
.ticker-b3-container {
    background: #000000;
    color: #ffffff;
    height: 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #222;
    font-size: 0.75rem;
    font-weight: 700;
    width: 100%;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
}

.ticker-content {
    display: flex;
    white-space: nowrap;
    /* A mágica acontece aqui: animação linear e contínua */
    animation: ticker-animation 30s linear infinite;
}

.ticker-item {
    display: flex;
    align-items: center;
    padding: 0 50px;
    flex-shrink: 0;
    /* IMPEDE QUE O ITEM ENCOLHA, FORÇANDO O ROLAMENTO */
}

.ticker-label {
    color: #888;
    margin-right: 8px;
}

.ticker-value {
    color: #fff;
    margin-right: 8px;
}

/* CORES DOS INDICADORES */
.ticker-change.up {
    color: #00ff88;
}

.ticker-change.down {
    color: #ff3333;
}

.ticker-change.neutro {
    color: #1331f2;
}

/* ANIMAÇÃO DE MOVIMENTO INFINITO CORRIGIDA */
@keyframes ticker-animation {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Puxa metade do conteúdo duplicado */
}

/* PAUSAR AO PASSAR O MOUSE */
.ticker-b3-container:hover .ticker-content {
    animation-play-state: paused;
}

/* AJUSTE PARA CELULAR */
@media (max-width: 768px) {
    .ticker-b3-container {
        height: 35px;
    }

    .ticker-item {
        padding: 0 25px;
    }
}

.dashboard-economico {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.dash-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border-bottom: 4px solid #1331f2;
    /* Azul oficial da BUK */
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.dash-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #666;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dash-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: #000;
}

.dash-source {
    display: block;
    font-size: 0.65rem;
    color: #aaa;
    margin-top: 10px;
}

/* Ajuste para celular */
@media (max-width: 600px) {
    .dashboard-economico {
        grid-template-columns: 1fr 1fr;
        /* 2 por linha no celular */
        gap: 10px;
    }
}

.dashboard-economico {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 50px 0;
    padding: 10px;
}

.dash-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #eee;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.dash-item:hover {
    transform: translateY(-5px);
    border-color: #1331f2;
}

.dash-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.dash-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: #000;
}

.dash-status {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 10px;
}

/* Cores de tendência */
.dash-status.up {
    color: #00b894;
}

/* Verde */
.dash-status.down {
    color: #d63031;
}

/* Vermelho */
.dash-status.neutro {
    color: #1331f2;
}