
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #96a7c0;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Cabeçalho */
/*
.header {
    background-color: #96a7c0;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 24px;
    font-weight: 600;
    font-style: inherit;
}*/

.header {
    background-image: url('logo2.png');
    background-color: #2d3748;
    background-size: clamp(110px, 12vw, 150px); /* Mantem o logo proporcional em telas menores */
    background-position: calc(50% + clamp(285px, 16vw, 305px)) center;
    background-repeat: no-repeat; /* Evita repetição da imagem */
    color: #4bb7ec; /* Ajusta a cor do texto para contraste */
    text-shadow: 4px 1px 2px #e4e4e4; /* Adiciona contorno branco na letra */
    text-align: center; /* Centraliza o texto */
    height: 150px; /* Define uma altura fixa para o header */
    font-size: 25px;
    font-weight: 600;
    font-style: inherit;
    text-align: center; /* Centraliza o conteúdo do header */
    padding: 5px; /* Adiciona espaçamento interno */
    position: relative; /* Permite posicionamento relativo dos elementos */
}

.header h1 {
    margin: 24px 0 0;
}

.header h2 {
    margin: -10px 0 0; /* Reduz o espaço acima do texto h2 */
    font-size: 40px; /* Ajusta o tamanho do texto h2 */
}



/* Menu */
#main-menu {
    display: flex;
    justify-content: center;
    background-color: #7488a7;;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    text-shadow: 1px  1px  #4bb7ec;
}


#main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

#main-menu ul li a {
    text-decoration: none;
    color: #e4e4e4;
    padding: 15px 25px;
    font-size: 20px;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: bold; /* Deixa o texto em negrito */
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#main-menu ul li a:hover {
    background-color: #4bb7ec;
    font-size: 22px; /* Aumenta levemente ao passar o mouse */
}

#main-menu ul li a.menu-active {
    background-color: #4bb7ec;
    color: #fff;
    box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.55);
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
}

@media (min-width: 769px) and (max-width: 1366px) {
    #main-menu ul {
        gap: clamp(6px, 1vw, 14px);
        width: 100%;
        justify-content: center;
    }

    #main-menu ul li a {
        padding: 10px clamp(8px, 1.2vw, 16px);
        font-size: clamp(16px, 1.35vw, 20px);
    }

    #main-menu ul li a:hover {
        font-size: clamp(16px, 1.35vw, 20px);
    }

    .bank-logo {
        width: 24px;
        height: 24px;
        margin-right: 6px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    #main-menu ul {
        gap: 2px;
    }

    #main-menu ul li a {
        padding: 8px 5px;
        font-size: 14px;
    }

    #main-menu ul li a:hover {
        font-size: 14px;
    }

    .bank-logo {
        width: 20px;
        height: 20px;
        margin-right: 4px;
    }
}

/* Submenu */
.submenu {
    position: absolute;
    background-color: #7488a7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
    z-index: 1000;
}
.submenu a {
    text-decoration: none;
    color: #e4e4e4;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s;
    display: block;
    font-weight: bold; /* Deixa o texto em negrito */
}

.submenu a[data-subsubmenu],
#site-menu-submenu a {
    border: 1px solid rgba(255, 255, 255, 0.32);
}

.submenu a:hover {
    background-color: #4bb7ec;
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

.submenu a.submenu-item-active,
.subsubmenu a.submenu-item-active {
    background-color: #4bb7ec;
    color: #fff;
    box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.7);
}

.hidden {
    display: none !important;
}

/* Subsubmenu */
.subsubmenu {
    position: absolute;
    background-color: #647895;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 14px 28px rgba(31, 41, 55, 0.22);
    padding: 8px;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 6px;
    min-width: 240px;
    max-width: 320px;
    z-index: 1000;
}

.subsubmenu a {
    text-decoration: none;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.24);
    padding: 10px 12px;
    border-radius: 6px;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    line-height: 1.2;
    white-space: normal;
}

.subsubmenu a:hover {
    background-color: #4bb7ec;
    border-color: rgba(255, 255, 255, 0.65);
    color: white;
    transform: translateX(3px);
}



/* Conteúdo */
.content {
    display: flex;
    flex-direction: column; /* Organiza os elementos em coluna */
    align-items: flex-start; /* Alinha os elementos à esquerda */
    justify-content: flex-start; /* Posiciona os elementos no topo */
    padding: 10px; /* Adiciona espaçamento interno */
    color: #333;
}

.content h2 {
    margin: 0; /* Remove margens padrão */
    padding-bottom: 5px; /* Adiciona espaçamento abaixo do título */
    font-size: 2rem; /* Ajusta o tamanho do título */
}

.content h3 {
    margin: 0; /* Remove margens padrão */
    padding-bottom: px; /* Adiciona espaçamento abaixo do título */
    font-size: 1.5rem; /* Ajusta o tamanho do título */
}

.content p {
    margin: 0; /* Remove margens padrão */
    padding-top: 3px; /* Adiciona espaçamento acima do parágrafo */
    font-size: 1rem; /* Ajusta o tamanho do texto */
}

.content-right {
    display: flex;
    flex-direction: column; /* Organiza os elementos em coluna */
    align-items: flex-end; /* Alinha os elementos à direita */
    color: #333;
    padding: 10px;
   
}

.content-right h2  {
    margin: 0; /* Remove margens padrão */
    padding-bottom: 5px; /* Adiciona espaçamento abaixo do título */
    font-size: 2rem; /* Ajusta o tamanho do título */
}

.content-right  p {
    margin: 0; /* Remove margens padrão */
    padding-top: 3px; /* Adiciona espaçamento acima do parágrafo */
    font-size: 1rem; /* Ajusta o tamanho do texto */
}

.content p, .content a,
.content-left p, .content-left a,
.content-right p, .content-right a, .content-right li {
    color: #e4e4e4; /* Define a cor do texto */
    font-family: 'Roboto', sans-serif; /* Define uma fonte moderna */
    font-size: 1.4rem; /* Ajusta o tamanho da fonte */
    line-height: 1.1; /* Melhora o espaçamento entre linhas */
    text-shadow: 1px  1px  #2d3748;
}

.content-box {
    background: #96a7c0;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
}

.seo-content {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 18px;
    color: #1f2937;
}

.highlight-card,
.value-card,
.format-panel,
.blog-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(45, 55, 72, 0.16);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.12);
}

.seo-hero {
    max-width: 900px;
    margin-bottom: 22px;
    padding: 4px 0 10px;
}

.seo-eyebrow {
    margin: 0 0 8px;
    color: #006b96;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.75);
}

.seo-hero h2,
.seo-blog h2 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.1;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.55);
}

.seo-lead,
.section-copy p {
    color: #fff;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(31, 41, 55, 0.75);
}

.format-panel p,
.format-panel li,
.value-card p,
.step-list li,
.segment-columns p,
.blog-card p {
    color: #334155;
    font-size: 1rem;
    line-height: 1.55;
    text-shadow: none;
}

.seo-lead,
.section-copy p {
    margin: 0 0 12px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid rgba(75, 183, 236, 0.55);
    border-radius: 999px;
    background: #4bb7ec;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 6px 14px rgba(31, 41, 55, 0.12);
    text-shadow: 1px 1px 1px rgba(31, 41, 55, 0.38);
}

.inline-icon {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    padding: 0 2px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.quick-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 28px;
}

.highlight-card {
    padding: 18px;
}

.highlight-card h3,
.value-card h4,
.format-panel h3,
.section-copy h3,
.segment-columns h4,
.blog-card h3 {
    margin: 0 0 10px;
    color: #26384f;
    line-height: 1.25;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.75);
}

.highlight-card h3,
.format-panel h3,
.section-copy h3 {
    font-size: 1.35rem;
}

.value-card h4 {
    font-size: 1.05rem;
}

.section-copy h3 {
    color: #1f2937;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
}

.card-icon,
.heading-icon {
    display: inline-grid;
    place-items: center;
    vertical-align: middle;
    margin-right: 7px;
    color: #2f80a8;
    font-size: 0.95em;
}

.card-icon {
    min-width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(75, 183, 236, 0.16);
}

.heading-icon {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.highlight-card p {
    margin: 0;
    color: #334155;
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: none;
}

.how-to-section,
.value-added-section,
.seo-split-section,
.segment-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 30px;
    align-items: start;
    padding: 28px 0;
    border-top: 1px solid rgba(45, 55, 72, 0.18);
}

.value-added-section {
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

.value-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-card {
    padding: 16px;
}

.value-card p {
    margin: 0;
}

.step-list {
    counter-reset: step;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.step-list li {
    counter-increment: step;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    margin: 0;
    padding: 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(45, 55, 72, 0.14);
}

.step-list li::before {
    content: counter(step);
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #2f80a8;
    color: #fff;
    font-weight: 800;
}

.step-list strong,
.step-list span {
    grid-column: 2;
}

.step-list strong {
    color: #1f2937;
    font-size: 1.05rem;
}

.step-list span {
    margin-top: -6px;
}

.format-panel {
    padding: 20px;
}

.format-panel ul {
    margin: 0;
    padding-left: 20px;
}

.format-panel li {
    margin-bottom: 10px;
}

.segment-section {
    display: block;
}

.segment-section .section-copy {
    max-width: 860px;
}

.segment-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 16px;
}

.segment-columns article {
    padding-left: 16px;
    border-left: 4px solid #2f80a8;
}

.segment-columns h4 {
    font-size: 1.1rem;
}

.segment-columns p {
    margin: 0;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(31, 41, 55, 0.75);
}

.tutorial-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    background: #2f80a8;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    text-shadow: none;
}

.tutorial-link:hover {
    background: #256889;
}

.seo-blog {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 34px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.blog-card {
    padding: 18px;
}

.blog-card h3 {
    font-size: 1.15rem;
}

.blog-card a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    text-shadow: none;
}

.blog-card a:hover {
    text-decoration: underline;
}

/* Rodapé */
.footer {
    background-color: #2d3748;
    color: white;
    text-align: center;
    padding: 10px 0;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    z-index: 2000;
}



/* Modal Padrão (Seleção de Arquivo CNAB) */
.modal-content {
    background: rgb(249, 249, 250);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px; /* Mantém a largura do modal original */
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Adiciona sombra para destaque */
    position: relative;
}

/* Modal de Erros - Ajustado para não afetar outros modais */
.modal-content.large-modal {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 90%;
    width: 90%;
    min-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Aumenta a sombra para diferenciar */
}



.selection-insight {
    border-radius: 8px;
    font-size: 0.92rem;
    margin: 12px 0 0;
    padding: 12px;
    text-align: left;
}

.selection-insight strong,
.selection-insight span {
    display: block;
}

.selection-insight strong {
    margin-bottom: 4px;
}

.selection-insight-ok {
    background: #ecfdf5;
    border: 1px solid #86efac;
    color: #14532d;
}

.selection-insight-warning {
    background: #fffbeb;
    border: 1px solid #facc15;
    color: #713f12;
}

.validation-history-toggle {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    margin: 10px auto 0;
    padding: 8px 12px;
}

.validation-history-toggle:hover {
    background: #f8fafc;
}

.validation-history-panel {
    background: #ffffff;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    margin-top: 10px;
    max-height: 260px;
    overflow-y: auto;
    padding: 10px;
    text-align: left;
}

.validation-history-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.validation-history-header strong {
    color: #1f2937;
}

.validation-history-header button {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 8px;
}

.validation-history-panel ul {
    margin: 0;
    padding: 0;
}

.validation-history-panel li {
    align-items: center;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
    padding: 9px 0;
}

.validation-history-panel li:first-child {
    border-top: 0;
}

.validation-history-panel li strong,
.validation-history-panel li span,
.validation-history-panel li small {
    display: block;
}

.validation-history-panel li strong {
    color: #0f172a;
}

.validation-history-panel li span,
.validation-history-panel li small,
.validation-history-empty {
    color: #64748b;
}

.validation-history-panel li b {
    background: #eef2ff;
    border-radius: 999px;
    color: #3730a3;
    flex: 0 0 auto;
    font-size: 0.8rem;
    padding: 4px 8px;
}

.error-modal-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.error-modal-actions button {
    background: #16a34a;
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    padding: 10px 16px;
}

.error-modal-actions #export-pdf-btn {
    background: #2563eb;
}

.error-modal-actions button:hover {
    filter: brightness(0.94);
}

/* Ajustar a largura da tabela para ocupar toda a tela */
#error-container table {
    width: 100%;
    table-layout: fixed;
    word-wrap: break-word;
}

/* Ajuste das colunas da tabela */
#error-container th, #error-container td {
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

/* Melhorar a visibilidade dos títulos das seções */
#error-container h3 {
    text-align: center;
    font-size: 20px;
    background-color: #3A4B5C;
    color: white;
    padding: 10px;
    margin-top: 20px;
}


.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 24px;
}

/* Ajuste do botão "X" para fechar o modal de erros */
.close-error-btn {
    position: absolute;
    top: 10px; /* Mantém dentro da caixa */
    right: 15px; /* Alinha no canto superior direito */
    font-size: 60px; /* Aumenta o tamanho do "X" */
    color: red; /* Define a cor vermelha */
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    transition: transform 0.2s ease-in-out;
}

/* Efeito ao passar o mouse */
.close-error-btn:hover {
    transform: scale(1.3); /* Aumenta ligeiramente ao passar o mouse */
    color: darkred; /* Muda para um tom mais escuro de vermelho */
}

/* Ajuste para garantir que o modal de erros tenha espaço para o botão "X" */
.modal-content.large-modal {
    position: relative; /* Garante que o "X" fique dentro do modal */
    padding-top: 40px; /* Adiciona espaço no topo para não sobrepor o título */
}

/* Modal de Sucesso - Sobrepondo outros elementos */
#success-modal {
    position: fixed; /* Garante que fique sobreposto */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo escuro para destacar */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000; /* Garante que fique acima de todos os outros modais */
}

/* Modal de Sucesso */
.success-modal-content {
    background: #ffffff;
    color: #1f2937;
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    max-width: 1180px;
    width: calc(100% - 40px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
    animation: fadeIn 0.3s ease-in-out;
    z-index: 3100; /* Sobrepõe ainda mais */
}


/* Botão OK */
.success-modal-content h2 {
    color: #166534;
    font-size: 24px;
    margin: 0 0 4px;
}

.success-modal-content > p {
    color: #166534;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 14px;
}

#success-summary {
    text-align: left;
}

.validation-summary {
    background: #ffffff;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    color: #1f2937;
    margin-bottom: 14px;
    padding: 14px;
}

.validation-summary h3,
.validation-summary h4 {
    color: #1f2937;
    margin: 0 0 8px;
}

.validation-summary h4 {
    font-size: 13px;
    letter-spacing: 0;
    margin-top: 12px;
}

.validation-summary p {
    color: #334155;
    margin: 6px 0;
}

.validation-summary-title {
    font-weight: 700;
}

.validation-humanized-summary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 3px solid #22c55e;
    border-radius: 6px;
    color: #14532d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.38;
    margin: 0 0 10px;
    padding: 9px 10px;
}

.validation-summary-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 10px 0;
}

.validation-summary-grid div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 9px;
}

.validation-summary-grid span,
.validation-record-list span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
}

.validation-summary-grid strong,
.validation-record-list strong {
    color: #0f172a;
    overflow-wrap: anywhere;
}

.validation-summary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.validation-badge {
    border-radius: 999px;
    font-size: 13px;
    padding: 4px 10px;
}

.validation-badge-error {
    background: #fff7f7;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.validation-badge-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.validation-badge-info {
    background: #f0f7ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.validation-summary-note {
    background: transparent;
    border-left: 3px solid #22c55e;
    border-radius: 4px;
    color: #475569;
    font-size: 13px;
    padding: 6px 10px;
}

.validation-file-map {
    background: #ffffff;
    border: 1px solid #d8e1ec;
    border-radius: 6px;
    margin: 8px 0 10px;
    padding: 8px 10px;
}

.validation-file-map-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 6px;
}

.validation-file-map-header strong {
    color: #0f172a;
    font-size: 13px;
}

.validation-file-map-header span {
    color: #64748b;
    font-size: 0.86rem;
    font-weight: 700;
}

.validation-file-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.validation-file-timeline span {
    background: #f8fafc;
    border: 1px solid #d8e1ec;
    border-radius: 999px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    padding: 6px 10px;
}

.validation-lot-map {
    display: grid;
    gap: 0;
    grid-template-columns: 1fr;
}

.validation-lot-card {
    align-items: center;
    background: transparent;
    border: 0;
    border-top: 1px solid #edf2f7;
    border-radius: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(110px, 0.7fr) minmax(120px, 1fr) minmax(130px, 1fr) minmax(180px, 1.4fr);
    min-width: 0;
    padding: 7px 0;
}

.validation-lot-attention {
    border-top-color: #fde68a;
}

.validation-lot-more {
    align-content: center;
    border-top-color: #edf2f7;
    color: #475569;
    display: grid;
}

.validation-lot-card div {
    align-items: baseline;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.validation-lot-card strong {
    color: #0f172a;
    font-size: 13px;
}

.validation-lot-card span,
.validation-lot-card small,
.validation-lot-card em {
    color: #64748b;
    font-size: 11.5px;
    font-style: normal;
    font-weight: 700;
}

.validation-lot-card p {
    color: #334155;
    font-size: 12.5px;
    font-weight: 800;
    margin: 0;
}

.validation-lot-card em {
    display: block;
    margin-top: 0;
    overflow-wrap: anywhere;
}

.validation-record-list {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.validation-record-list li {
    background: #fcfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 9px;
}

.validation-segment-list {
    color: #334155;
    margin: 8px 0 0 18px;
    padding: 0;
}

.validation-occurrence-list {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
}

.validation-occurrence-list li {
    align-items: center;
    background: #fcfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(120px, 0.9fr) minmax(180px, 1.5fr) auto;
    padding: 8px 10px;
}

.validation-occurrence-list span {
    color: #64748b;
    font-size: 11.5px;
    font-weight: 700;
}

.validation-occurrence-list strong {
    color: #0f172a;
    font-size: 12.5px;
}

.validation-occurrence-list b {
    background: #f8fafc;
    border: 1px solid #d8e1ec;
    border-radius: 999px;
    color: #3730a3;
    font-size: 11.5px;
    min-width: 30px;
    padding: 3px 8px;
    text-align: center;
}

@media (max-width: 640px) {
    .validation-occurrence-list li {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .validation-occurrence-list b {
        justify-self: flex-start;
    }
}

.validation-summary-line {
    line-height: 1.45;
}

.validated-details {
    margin: 14px 0 4px;
    text-align: left;
}

.validated-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin: 14px 0 4px;
}

.validated-details-toggle {
    align-items: center;
    background: #2563eb;
    border: none;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    padding: 10px 16px;
}

.validated-details-toggle:hover {
    background: #1d4ed8;
}

.validated-details-toggle svg {
    flex: 0 0 auto;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 17px;
}

.validated-details-content {
    margin-top: 12px;
}

.validated-details-help {
    color: #475569;
    font-size: 0.95rem;
    margin: 0 0 10px;
}

.financial-summary-kpis {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-bottom: 10px;
}

.financial-summary-kpis div {
    background: #fcfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 8px 9px;
}

.financial-summary-kpis span,
.financial-summary-list span,
.financial-summary-list small {
    color: #64748b;
    display: block;
    font-size: 11.5px;
    font-weight: 700;
}

.financial-summary-kpis strong {
    color: #0f172a;
    display: block;
    font-size: 15px;
    margin-top: 2px;
}

.financial-summary-kpis .is-negative strong {
    color: #b91c1c;
}

.financial-summary-list {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.financial-summary-item {
    background: #ffffff;
}

.financial-summary-item + .financial-summary-item {
    border-top: 1px solid #edf2f7;
}

.financial-summary-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(104px, auto) minmax(145px, 0.8fr) minmax(420px, 1.8fr) minmax(80px, auto);
    list-style: none;
    padding: 7px 9px;
}

.financial-summary-row::-webkit-details-marker {
    display: none;
}

.financial-summary-row:hover {
    background: #f8fafc;
    cursor: pointer;
}

.financial-summary-expand {
    align-items: center;
    background: #2563eb;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 11.5px;
    font-weight: 800;
    gap: 5px;
    justify-self: start;
    justify-content: center;
    line-height: 1;
    min-height: 26px;
    padding: 7px 10px;
    white-space: nowrap;
}

.financial-summary-expand-symbol {
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    display: none;
    font-size: 13px;
    height: 16px;
    justify-content: center;
    line-height: 1;
    width: 16px;
}

.financial-summary-list .financial-summary-expand-label {
    color: #ffffff;
    display: inline;
    font-size: 11.5px;
    font-weight: 800;
}

.financial-summary-section {
    color: #334155;
    font-size: 12.5px;
    font-weight: 800;
}

.financial-summary-values {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.financial-summary-value {
    align-items: center;
    background: #fbfdff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: grid;
    gap: 7px;
    grid-template-columns: auto minmax(130px, 1fr) auto;
    padding: 5px 7px;
}

.financial-summary-value.is-empty {
    opacity: 0.62;
}

.financial-summary-value strong {
    color: #0f172a;
    font-size: 12.5px;
}

.financial-summary-value i {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #475569;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 800;
    justify-self: start;
    line-height: 1;
    padding: 4px 7px;
}

.financial-summary-value b {
    color: #166534;
    font-size: 12.5px;
    text-align: right;
    white-space: nowrap;
}

.financial-summary-row small {
    color: #64748b;
    font-size: 11.5px;
    font-weight: 800;
    text-align: right;
}

.financial-summary-detail-wrap {
    background: #fbfdff;
    border-top: 1px solid #edf2f7;
    max-height: 260px;
    overflow: auto;
}

.financial-summary-detail-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.financial-summary-detail-table th,
.financial-summary-detail-table td {
    border-bottom: 1px solid #edf2f7;
    color: #0f172a;
    font-size: 11px;
    line-height: 1.25;
    padding: 7px 8px;
    text-align: left;
    vertical-align: top;
}

.financial-summary-detail-table th {
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.financial-summary-detail-table td:nth-last-child(-n + 4) {
    color: #166534;
    font-weight: 800;
    white-space: nowrap;
}

.financial-summary-detail-table code {
    color: #0f172a;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 10.5px;
}

.validated-detail-section {
    background: #ffffff;
    border: 1px solid #d8e1ec;
    border-radius: 8px;
    margin: 10px 0;
    overflow: visible;
}

.validated-detail-section summary {
    align-items: center;
    background: #f8fafc;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
    padding: 12px 14px;
}

.validated-detail-section summary::-webkit-details-marker {
    display: none;
}

.validated-detail-section summary::before {
    content: "+";
    align-items: center;
    background: #e0f2fe;
    border-radius: 999px;
    color: #0369a1;
    display: inline-flex;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    margin-right: 10px;
    width: 22px;
}

.validated-detail-section[open] summary::before {
    content: "-";
}

.validated-detail-title {
    min-width: 0;
    overflow-wrap: anywhere;
}

.validated-detail-count {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: auto;
    white-space: nowrap;
}

.validated-detail-help-button {
    align-items: center;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: #0369a1;
    cursor: help;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    margin-left: 8px;
    padding: 0;
    position: relative;
    width: 22px;
}

.validated-detail-help-button:hover,
.validated-detail-help-button:focus {
    background: #bae6fd;
    outline: none;
}

.validated-detail-help-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.25);
}

.validated-detail-help-tooltip {
    background: #0f172a;
    border-radius: 6px;
    bottom: calc(100% + 8px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    left: 50%;
    line-height: 1.35;
    max-width: min(280px, 70vw);
    opacity: 0;
    padding: 9px 10px;
    pointer-events: none;
    position: absolute;
    text-align: left;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    visibility: hidden;
    white-space: normal;
    width: max-content;
    z-index: 20;
}

.validated-detail-help-tooltip::after {
    border: 6px solid transparent;
    border-top-color: #0f172a;
    content: "";
    left: 50%;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
}

.validated-detail-help-button:hover .validated-detail-help-tooltip,
.validated-detail-help-button:focus .validated-detail-help-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    visibility: visible;
}

.validated-detail-table-wrap {
    max-height: 420px;
    overflow: auto;
    scrollbar-gutter: stable;
}

.validated-detail-table {
    border-collapse: collapse;
    font-size: 12px;
    line-height: 1.15;
    min-width: 980px;
    table-layout: auto;
    width: 100%;
}

.validated-file-data-table {
    min-width: 1120px;
}

.validated-technical-details-content .validated-detail-table {
    min-width: 620px;
}

.validated-detail-table th,
.validated-detail-table td {
    border-bottom: 1px solid #e2e8f0;
    color: #1f2937;
    padding: 5px 8px;
    text-align: left;
    vertical-align: middle;
}

.validated-detail-table th {
    background: #edf4fb;
    color: #334155;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.12;
    position: sticky;
    top: 0;
    z-index: 1;
    word-break: normal;
}

.validated-detail-table td:nth-child(1),
.validated-detail-table td:nth-child(2),
.validated-detail-table td:nth-child(4),
.validated-detail-table td:nth-child(5) {
    white-space: nowrap;
}

.validated-detail-table code {
    color: #0f172a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11.5px;
    line-height: 1.18;
    white-space: nowrap;
    word-break: normal;
}

.validated-file-data-table th:first-child,
.validated-file-data-table td:first-child {
    width: 44px;
}

.validated-file-data-table th:not(:first-child),
.validated-file-data-table td:not(:first-child) {
    min-width: 92px;
}

.validated-file-data-table td:nth-child(n+2):nth-child(-n+9) code {
    white-space: nowrap;
}

.validated-file-data-table td code {
    display: inline-block;
    max-width: 190px;
    overflow-wrap: anywhere;
    white-space: normal;
}

.validated-file-data-table td:nth-child(2) code,
.validated-file-data-table td:nth-child(3) code,
.validated-file-data-table td:nth-child(4) code,
.validated-file-data-table td:nth-child(5) code,
.validated-file-data-table td:nth-child(6) code,
.validated-file-data-table td:nth-child(7) code,
.validated-file-data-table td:nth-child(8) code,
.validated-file-data-table td:nth-child(9) code {
    max-width: none;
    white-space: nowrap;
}

.validated-file-data-table th {
    hyphens: auto;
    overflow-wrap: anywhere;
}

.cnab-smart-chip {
    align-items: center;
    background: #eefbf3;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    color: #15803d;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    margin: 2px 0 0;
    padding: 1px 5px;
    vertical-align: middle;
    white-space: nowrap;
}

.cnab-occurrence-chip {
    border-radius: 6px;
    line-height: 1.12;
    max-width: 150px;
    padding: 2px 5px;
    white-space: normal;
}

.validated-detail-table em {
    color: #64748b;
}

.field-type {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    color: #0f172a;
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    text-transform: uppercase;
}

.success-modal-content .validated-details-toggle {
    background: #2563eb;
    margin-top: 0;
}

.success-modal-content .validated-details-toggle:hover {
    background: #1d4ed8;
}

.success-modal-content button {
    background: #16a34a;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    font-weight: bold;
}

/* Efeito hover no botão OK */
.success-modal-content button:hover {
    background: #15803d;
    color: #ffffff;
}

.success-modal-content .validated-detail-help-button {
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: #0369a1;
    font-size: 0.78rem;
    height: 22px;
    margin: 0 0 0 8px;
    padding: 0;
    width: 22px;
}

.success-modal-content .validated-detail-help-button:hover,
.success-modal-content .validated-detail-help-button:focus {
    background: #bae6fd;
    color: #0369a1;
}

/* Animação de Fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Estilizar o título "Erros Encontrados" */
.validation-row-error {
    background: #fee2e2;
}

.validation-row-warning {
    background: #fef3c7;
}

.validation-row-info {
    background: #dbeafe;
}

.validation-row-error td,
.validation-row-warning td,
.validation-row-info td {
    border-bottom-color: rgba(15, 23, 42, 0.12);
}

.validation-executive-summary {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1f2937;
    margin: 18px 0;
    padding: 16px;
}

.validation-executive-header {
    border-left: 4px solid #2563eb;
    padding-left: 12px;
}

.validation-executive-kicker {
    color: #2563eb;
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.validation-executive-header h3 {
    color: #0f172a;
    margin: 4px 0;
}

.validation-executive-header p {
    color: #475569;
    margin: 0;
}

.validation-executive-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 14px;
}

.validation-executive-grid > div {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
}

.validation-executive-grid strong {
    color: #0f172a;
    display: block;
    margin-bottom: 8px;
}

.validation-executive-grid ul {
    margin: 0;
    padding: 0;
}

.validation-executive-grid li {
    align-items: center;
    border-top: 1px solid #eef2f7;
    color: #334155;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    list-style: none;
    padding: 8px 0;
}

.validation-executive-grid li:first-child {
    border-top: 0;
    padding-top: 0;
}

.validation-executive-grid b {
    background: #dbeafe;
    border-radius: 999px;
    color: #1d4ed8;
    min-width: 32px;
    padding: 3px 8px;
    text-align: center;
}

.validation-health-checks {
    margin: 12px 0;
}

.validation-health-checks h4 {
    color: #1f2937;
    font-size: 13px;
    margin: 0 0 7px;
}

.validation-health-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.validation-health-card {
    border: 1px solid #d8e1ec;
    border-radius: 6px;
    padding: 8px 9px;
}

.validation-health-card span {
    color: #64748b;
    display: block;
    font-size: 11.5px;
    margin-bottom: 3px;
}

.validation-health-card strong {
    color: #0f172a;
    display: block;
    font-size: 13px;
    line-height: 1.24;
}

.validation-health-ok {
    background: #fbfefc;
    border-color: #bbf7d0;
}

.validation-health-attention {
    background: #fffdf4;
    border-color: #fde68a;
}

.validation-line-review {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin: 18px 0;
    overflow: hidden;
    text-align: left;
}

.validation-line-review summary {
    align-items: center;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    font-weight: 900;
    justify-content: space-between;
    list-style: none;
    padding: 12px 14px;
}

.validation-line-review summary::-webkit-details-marker {
    display: none;
}

.validation-line-review summary span {
    color: #64748b;
    font-size: 0.85rem;
}

.validation-line-list {
    display: grid;
    gap: 12px;
    padding: 12px;
}

.validation-line-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.validation-line-card-header {
    align-items: center;
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.validation-line-card ul {
    margin: 0;
    padding: 0;
}

.validation-line-card li {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    list-style: none;
    padding: 10px 12px;
}

.validation-line-card p {
    color: #1f2937;
    margin: 4px 0;
}

.validation-line-card small {
    color: #64748b;
    display: block;
}

.copy-error-btn {
    background: #ffffff;
    border: 1px solid #94a3b8;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    margin-left: 8px;
    margin-top: 6px;
    padding: 4px 8px;
}

.copy-error-btn:hover {
    background: #f1f5f9;
}

#error-modal h2 {
    color: red; /* Define a cor vermelha */
    font-size: 24px; /* Aumenta o tamanho da fonte */
    font-weight: bold; /* Deixa em negrito */
    text-align: center; /* Centraliza o texto */
}

/* Adicionar um ❌ antes do texto */
#error-modal h2::before {
    content: "❌ "; /* Adiciona o ícone antes do texto */
    font-size: 28px; /* Deixa o ❌ um pouco maior */
}

.bank-logo {
    width: 34px; /* Ajuste o tamanho conforme necessário */
    height: 34px; /* Mantém a proporção da imagem */
    margin-right: 6px; /* Espaçamento entre a imagem e o texto */
    flex: 0 0 auto;
    vertical-align: middle; /* Alinha a imagem verticalmente com o texto */
}




#convert-to-excel-btn {
    background-color: #4CAF50; /* Cor de fundo verde */
    color: white; /* Cor do texto branco */
    border: none; /* Remove a borda padrão */
    font-weight: bold; 
    padding: 10px 20px; /* Adiciona um pouco de espaço interno */
    border-radius: 5px; /* Bordas arredondadas */
    font-size: 16px; /* Tamanho da fonte */
    cursor: pointer; /* Muda o cursor para indicar que é clicável */
    transition: background-color 0.3s ease; /* Efeito de transição suave */
}

#convert-to-excel-btn:hover {
    background-color: #45a049; /* Um tom mais escuro de verde */
}


#validate-btn{
    background-color: #4CAF50; /* Cor de fundo verde */
    color: white; /* Cor do texto branco */
    font-weight: bold; 
    border: none; /* Remove a borda padrão */
    padding: 10px 20px; /* Adiciona um pouco de espaço interno */
    border-radius: 5px; /* Bordas arredondadas */
    font-size: 16px; /* Tamanho da fonte */
    cursor: pointer; /* Muda o cursor para indicar que é clicável */
    transition: background-color 0.3s ease; /* Efeito de transição suave */
}

#validate-btn:hover {
    background-color: #45a049; /* Um tom mais escuro de verde */
}


#save-errors-btn{
    background-color: #4CAF50; /* Cor de fundo verde */
    color: white; /* Cor do texto branco */
    font-weight: bold; 
    border: none; /* Remove a borda padrão */
    padding: 10px 20px; /* Adiciona um pouco de espaço interno */
    border-radius: 5px; /* Bordas arredondadas */
    font-size: 16px; /* Tamanho da fonte */
    cursor: pointer; /* Muda o cursor para indicar que é clicável */
    transition: background-color 0.3s ease; /* Efeito de transição suave */
}

#save-errors-btn:hover{
    background-color: #45a049; /* Um tom mais escuro de verde */
}

.billing-status {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: #123047;
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.billing-status span {
    font-weight: 600;
}

.billing-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: min(42vw, 320px);
    border: 0;
    border-radius: 999px;
    padding: 6px 9px 6px 12px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .18s ease;
}

.billing-account-btn:hover {
    background: rgba(255, 255, 255, .1);
}

.billing-account-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.billing-account-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
    opacity: .8;
}

.billing-account-menu-wrap {
    position: relative;
}

.billing-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 60;
    display: grid;
    min-width: 190px;
    padding: 6px;
    border: 1px solid rgba(148, 163, 184, .35);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
}

.billing-account-menu button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    border: 0;
    border-radius: 6px;
    padding: 10px 11px;
    background: transparent;
    color: #123047;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.billing-account-menu button:hover {
    background: #f0f9ff;
    color: #075985;
}

.billing-account-menu button + button {
    color: #b91c1c;
}

.billing-account-menu button + button:hover {
    background: #fef2f2;
    color: #991b1b;
}

.billing-credit-balance {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-coin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff7d6;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .24);
}

.status-coin-icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-coin-icon .coin-face {
    fill: #facc15;
    stroke: #d97706;
}

.status-coin-icon .coin-ring,
.status-coin-icon .coin-symbol {
    stroke: #92400e;
}

.billing-status button,
.billing-primary-btn,
.billing-secondary-btn {
    border: 0;
    border-radius: 6px;
    padding: 9px 14px;
    font-weight: 700;
    cursor: pointer;
}

.billing-status .billing-login-btn {
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.billing-status .billing-login-btn:hover {
    background: rgba(255, 255, 255, .16);
}

#open-auth-modal {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.billing-status button,
.billing-primary-btn {
    background: #16a34a;
    color: #fff;
}

.billing-secondary-btn {
    background: #e2e8f0;
    color: #123047;
}

.billing-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 0;
    border: 0;
    background: transparent;
    color: #0284c7;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.billing-link-btn:hover {
    color: #075985;
    text-decoration: underline;
}

.billing-auth-notice {
    display: grid;
    gap: 4px;
    margin: 12px 0 4px;
    padding: 12px 14px;
    border-radius: 8px;
    text-align: left;
    line-height: 1.4;
}

.billing-auth-notice strong {
    color: #123047;
    font-size: 14px;
}

.billing-auth-notice span {
    color: #475569;
    font-size: 13px;
}

.billing-auth-notice.info {
    border: 1px solid #bae6fd;
    background: #f0f9ff;
}

.billing-auth-notice.warning {
    border: 1px solid #fde68a;
    background: #fffbeb;
}

.billing-modal-content {
    max-width: 760px;
    width: min(92vw, 760px);
    max-height: min(86vh, 720px);
    overflow-y: auto;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, .35);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
}

#auth-panel {
    max-width: 560px;
    margin: 0 auto;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 16px;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .10);
}

.billing-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.billing-modal-header h2 {
    margin: 0;
    color: #123047;
    font-size: 26px;
    line-height: 1.2;
}

.inline-coin-icon,
.button-coin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.15em;
    height: 1.15em;
    vertical-align: -0.16em;
}

.inline-coin-icon svg,
.button-coin-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.inline-coin-icon .coin-face,
.button-coin-icon .coin-face {
    fill: #facc15;
    stroke: #d97706;
}

.inline-coin-icon .coin-ring,
.inline-coin-icon .coin-symbol,
.button-coin-icon .coin-ring,
.button-coin-icon .coin-symbol {
    stroke: #92400e;
}

.title-coin {
    width: 1em;
    height: 1em;
}

.soft-link-coin {
    width: 1.05em;
    height: 1.05em;
}

.billing-coin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #fff7d6;
    color: #92400e;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .28), 0 8px 18px rgba(146, 64, 14, .14);
}

.billing-coin-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.billing-coin-icon .coin-face {
    fill: #facc15;
    stroke: #d97706;
}

.billing-coin-icon .coin-ring,
.billing-coin-icon .coin-symbol {
    stroke: #92400e;
}

.close-billing-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.close-billing-btn:hover {
    background: #e2e8f0;
    color: #123047;
}

.billing-message,
.billing-help {
    color: #475569;
}

.billing-message {
    max-width: 620px;
    margin: 0 auto 18px;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

.billing-message-title {
    display: block;
    margin-bottom: 6px;
    color: #123047;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 900;
}

.billing-message-subtitle {
    display: block;
    color: #52637a;
}

.billing-benefit-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.billing-benefit-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    background: #ecfeff;
    color: #075985;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 6px 14px rgba(14, 165, 233, .10);
}

.auth-progress-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.auth-benefit-list {
    max-width: 610px;
    margin-left: auto;
    margin-right: auto;
}

.plans-credit-title {
    color: #123047;
}

.auth-choice-title {
    margin-bottom: 9px;
    color: #123047;
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

.auth-privacy-note {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 12px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #166534;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
}

.billing-message.payment-approved-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.billing-message.payment-approved-message strong {
    color: #16a34a;
    font-size: 24px;
    line-height: 1.2;
}

.billing-message.payment-approved-message span {
    max-width: 560px;
    color: #52637a;
    font-size: 15px;
    line-height: 1.5;
}

.auth-invite-message {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex-wrap: wrap;
    color: #475569;
}

.auth-invite-coin {
    width: 21px;
    height: 21px;
}

.auth-invite-coin svg {
    width: 15px;
    height: 15px;
}

.google-auth-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 230px;
    width: min(100%, 360px);
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    padding: 10px 16px;
    background: #fff;
    color: #123047;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#auth-panel .google-auth-btn {
    margin-left: auto;
    margin-right: auto;
}

.google-auth-btn:hover {
    transform: translateY(-1px);
    border-color: #38bdf8;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .12);
}

.google-auth-btn svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.email-auth-fields {
    display: grid;
    gap: 10px;
    max-width: 420px;
    margin: 0 auto;
}

.email-auth-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.email-auth-actions .billing-primary-btn {
    min-width: 230px;
}

.email-auth-actions .billing-link-btn {
    flex-basis: 100%;
    margin-top: 0;
}

.email-auth-actions .signup-soft-link {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.email-auth-actions .signup-soft-link:hover {
    color: #16a34a;
}

.email-auth-actions .billing-link-btn.hidden,
.email-auth-actions .billing-primary-btn.hidden {
    display: none;
}

.email-auth-actions .signup-primary-btn {
    flex-basis: auto;
    min-width: 270px;
    min-height: 44px;
    border-radius: 8px;
    background: #16a34a;
    color: #ffffff;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(22, 163, 74, .20);
}

.email-auth-actions .signup-primary-btn:hover {
    background: #15803d;
    color: #ffffff;
    text-decoration: none;
}

.billing-login-mode .billing-primary-btn {
    min-height: 44px;
    border-radius: 8px;
    background: #2563eb;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
    font-size: 15px;
}

.billing-login-mode .billing-primary-btn:hover {
    background: #1d4ed8;
}

.billing-login-mode .google-auth-btn {
    border-color: #bfdbfe;
    box-shadow: 0 12px 26px rgba(37, 99, 235, .12);
}

.purchase-history-content {
    max-width: 560px;
    width: min(92vw, 560px);
    max-height: 82vh;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, .35);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .32);
    text-align: left;
}

.close-history-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.close-history-btn:hover {
    background: #e2e8f0;
    color: #123047;
}

.purchase-history-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 26px;
    margin-bottom: 18px;
}

.purchase-history-header h2 {
    margin: 0 0 4px;
    color: #123047;
    font-size: 24px;
    line-height: 1.2;
}

.purchase-history-header p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}

.purchase-history-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}

.history-filter-chip {
    border: 1px solid #d8e2ee;
    border-radius: 999px;
    padding: 7px 11px;
    background: #fff;
    color: #475569;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.history-filter-chip:hover {
    border-color: #38bdf8;
    color: #075985;
}

.history-filter-chip.active {
    border-color: #38bdf8;
    background: #e0f2fe;
    color: #075985;
}

.purchase-history-list {
    display: grid;
    gap: 10px;
}

.history-loading,
.purchase-history-empty {
    padding: 18px;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    background: #f8fafc;
    color: #52637a;
    text-align: center;
}

.purchase-history-empty {
    display: grid;
    gap: 5px;
}

.purchase-history-empty strong {
    color: #123047;
}

.purchase-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    background: #ffffff;
}

.history-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.history-item-main div,
.history-item-meta {
    display: grid;
    gap: 3px;
}

.history-item-main strong,
.history-item-meta strong {
    color: #123047;
}

.history-item-main span:not(.plan-coin-icon) {
    color: #64748b;
    font-size: 12px;
}

.history-item-meta {
    justify-items: end;
    flex: 0 0 auto;
}

.history-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.history-status.paid {
    background: #dcfce7;
    color: #15803d;
}

.history-status.pending {
    background: #fef3c7;
    color: #92400e;
}

.history-status.failed {
    background: #fee2e2;
    color: #b91c1c;
}

.billing-panel input,
.billing-panel textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font: inherit;
}

.billing-divider {
    margin: 14px 0 4px;
    text-align: center;
    color: #64748b;
}

.credit-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.credit-plan-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e2ee;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    color: #123047;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.credit-plan-card:hover {
    transform: translateY(-2px);
    border-color: #38bdf8;
    box-shadow: 0 14px 28px rgba(15, 23, 42, .12);
}

.credit-plan-card strong {
    font-size: 22px;
    letter-spacing: 0;
}

.credit-plan-card small {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.plan-coin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #fff7d6;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, .24);
}

.plan-coin-icon svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.plan-coin-icon .coin-face {
    fill: #facc15;
    stroke: #d97706;
}

.plan-coin-icon .coin-ring,
.plan-coin-icon .coin-symbol {
    stroke: #92400e;
}

.plan-credits {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 12px;
    font-weight: 700;
}

.pix-area {
    margin-top: 20px;
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.pix-area p {
    margin: 0 0 14px;
    color: #123047;
    font-weight: 700;
}

.pix-payment-box {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.pix-area img {
    display: block;
    width: 210px;
    height: 210px;
    object-fit: contain;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.pix-copy-box {
    text-align: left;
}

.pix-copy-box label {
    display: block;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.pix-copy-box textarea {
    min-height: 104px;
    resize: vertical;
}

.no-credit-result {
    text-align: center;
    padding: 10px 8px 6px;
}

.no-credit-result h3 {
    max-width: 680px;
    margin: 4px auto 8px;
    color: #123047;
    font-size: 23px;
    line-height: 1.25;
}

.no-credit-result p {
    max-width: 760px;
    margin: 0 auto 18px;
    color: #52637a;
    line-height: 1.55;
}

.no-credit-result .no-credit-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    font-size: 13px;
    font-weight: 700;
}

.no-credit-modal .large-modal {
    max-width: min(920px, 92vw);
    min-width: 0;
    width: min(920px, 92vw);
    max-height: 86vh;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, .28);
    box-shadow: 0 24px 70px rgba(15, 23, 42, .35);
}

.no-credit-modal .large-modal h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 6px 0 12px;
    color: #123047;
    font-size: 26px;
    line-height: 1.2;
}

.no-credit-title-coin {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
}

.no-credit-title-coin svg {
    width: 22px;
    height: 22px;
}

.no-credit-modal #error-container {
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.no-credit-plan-grid {
    max-width: 760px;
    margin: 8px auto 0;
}

.no-credit-modal .close-error-btn {
    color: #64748b !important;
}

.no-credit-modal .close-error-btn:hover {
    color: #123047 !important;
}

@media (max-width: 640px) {
    .credit-plan-grid {
        grid-template-columns: 1fr;
    }

    .billing-status {
        font-size: 14px;
    }

    .billing-account-btn {
        max-width: 72vw;
    }

    .billing-modal-content {
        width: calc(100vw - 24px);
        max-height: 82vh;
        padding: 20px 16px;
    }

    .billing-modal-header {
        align-items: flex-start;
        gap: 10px;
    }

    .billing-modal-header h2 {
        font-size: 21px;
        text-align: left;
    }

    .billing-coin-icon {
        width: 34px;
        height: 34px;
        flex: 0 0 auto;
    }

    .billing-message {
        text-align: left;
        font-size: 14px;
    }

    .billing-message-title {
        font-size: 17px;
    }

    .billing-benefit-list {
        justify-content: flex-start;
        gap: 7px;
    }

    .billing-benefit-chip {
        font-size: 11px;
        min-height: 26px;
        padding: 5px 9px;
    }

    .billing-message.payment-approved-message {
        align-items: flex-start;
    }

    .billing-message.payment-approved-message strong {
        font-size: 21px;
    }

    .auth-invite-message {
        justify-content: flex-start;
    }

    .google-auth-btn {
        width: 100%;
    }

    .email-auth-actions {
        align-items: stretch;
    }

    .email-auth-actions .billing-secondary-btn,
    .email-auth-actions .billing-primary-btn,
    .email-auth-actions .billing-link-btn {
        width: 100%;
    }

    .purchase-history-content {
        width: calc(100vw - 24px);
        padding: 20px 14px;
    }

    .purchase-history-header h2 {
        font-size: 21px;
    }

    .purchase-history-item {
        align-items: flex-start;
    }

    .credit-plan-card {
        min-height: 88px;
    }

    .pix-payment-box {
        grid-template-columns: 1fr;
    }

    .pix-area img {
        width: min(210px, 74vw);
        height: min(210px, 74vw);
    }

    .no-credit-modal .large-modal {
        width: calc(100vw - 24px);
        max-height: 84vh;
        padding: 20px 14px;
    }

    .no-credit-modal .large-modal h2 {
        align-items: flex-start;
        text-align: left;
        font-size: 21px;
    }

    .no-credit-result h3 {
        font-size: 20px;
    }

    .no-credit-result p {
        text-align: left;
        font-size: 14px;
    }
}


        @keyframes slideInFromLeft {
            from {
                opacity: 0;
                transform: translateX(-100%); /* Começa fora da tela à esquerda */
            }
            to {
                opacity: 1;
                transform: translateX(0); /* Termina na posição original */
            }
        }

        @keyframes slideInFromRight {
            from {
                opacity: 0;
                transform: translateX(100%); /* Começa fora da tela à direita */
            }
            to {
                opacity: 1;
                transform: translateX(0); /* Termina na posição original */
            }
        }

        .text-slide-in {
            animation: slideInFromLeft 1.5s ease-in-out; /* Animação de 1.5s */
        }

        .text-slide-in-delay {
            animation: slideInFromLeft 1.5s ease-in-out 1s; /* Animação com atraso de 1s */
        }

        .text-slide-in-right {
            animation: slideInFromRight 1.5s ease-in-out; /* Animação de 1.5s */
        }

        .text-slide-in-right-delay {
            animation: slideInFromRight 1.5s ease-in-out 1s; /* Animação com atraso de 1s */
        }
  
        .estrela {
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s;
}
.estrela.ativa {
  color: gold;
}

.close-satisfacao {
  position: absolute;
  top: 2px;
  right: 10px;
  font-size: 35px; /* Tamanho maior */
  font-weight: bold;
  color: #333;
  padding: 5px;
  z-index: 10;
}
.close-satisfacao:hover {
  color: red; /* Feedback visual no hover */
  cursor: pointer;
}

#enviar-comentario,
#nao-responder-btn {
  width: 100%; /* Mesma largura */
  max-width: 250px;
  padding: 10px 20px;
  margin: 5px auto;
  display: block;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  border: none;
}

#enviar-comentario {
  background-color: #4CAF50;
  color: white;
}

#enviar-comentario:hover {
  background-color: #45a049;
}

#nao-responder-btn {
  background-color: #ccc;
  color: #333;
}

#nao-responder-btn:hover {
  background-color: #bbb;
}


.nao-responder-btn:hover {
  background-color: #bbb;
}



/* ----- MENU RESPONSIVO ------*/

/* Menu para dispositivos móveis */
@media (max-width: 768px) {
    #main-menu ul {
        flex-direction: column;
        gap: 10px;
    }

    #main-menu ul li a {
        padding: 10px;
        font-size: 18px;
    }

    .submenu, .subsubmenu {
        position: static;
        box-shadow: none;
        padding: 5px;
    }

    .submenu a, .subsubmenu a {
        padding: 5px;
    }
}

/* Conteúdo para dispositivos móveis */
@media (max-width: 768px) {
    .content {
        padding: 10px;
    }

    .seo-content,
    .seo-blog {
        width: min(100% - 20px, 1180px);
        margin-top: 16px;
    }

    .quick-highlights,
    .value-added-section,
    .value-grid,
    .how-to-section,
    .seo-split-section,
    .segment-columns,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .how-to-section,
    .value-added-section,
    .seo-split-section,
    .segment-section {
        gap: 18px;
        padding: 22px 0;
    }

    .highlight-card,
    .value-card,
    .format-panel,
    .blog-card {
        padding: 16px;
    }

    .trust-row span {
        width: 100%;
        justify-content: center;
    }

    .content-box {
        padding: 20px;
        max-width: 100%;
    }

    .content-box h1 {
        font-size: 24px;
    }

    .content-box ul {
        padding-left: 15px;
        font-size: 14px;
    }

    .content-box ul li {
        margin-bottom: 8px;
    }
}


/* Modal para dispositivos móveis */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90%;
        padding: 15px;
    }

    .modal-content.large-modal {
        max-width: 95%;
        min-width: auto;
    }

    .close-error-btn {
        font-size: 40px;
        right: 10px;
    }
}

/* Rodapé para dispositivos móveis */
@media (max-width: 768px) {
    .footer {
        padding: 5px 0;
        font-size: 14px;
    }
}

/* Botões para dispositivos móveis */
@media (max-width: 768px) {
    #validate-btn, #convert-to-excel-btn, #save-errors-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}


/* Header para dispositivos móveis */
@media (max-width: 768px) {
    .header {
        height: 120px;
        padding: 5px 0;
        font-size: 17px;
        background-size: 95px;
        background-position: calc(50% + clamp(130px, 32vw, 200px)) center;
    }

    .header h1 {
        margin-top: 24px;
        transform: translateX(-45px);
    }

    .header h2 {
        margin-top: -6px;
        font-size: 30px;
        transform: translateX(-45px);
    }
}

@media (max-width: 480px) {
    .header {
        height: 100px;
        font-size: 12px;
        background-size: 85px;
        background-position: calc(50% + 170px) center;
    }

    .header h1 {
        margin-top: 22px;
        transform: translateX(-35px);
    }

    .header h2 {
        font-size: 22px;
        transform: translateX(-35px);
    }
}

/* Submenu e Subsubmenu para dispositivos móveis */
@media (max-width: 768px) {
    .submenu, .subsubmenu {
        position: static;
        box-shadow: none;
        padding: 5px;
    }

    .submenu a, .subsubmenu a {
        padding: 5px;
    }
}


/* Modal de sucesso para dispositivos móveis */
@media (max-width: 1100px) {
    .success-modal-content {
        max-width: 980px;
        width: calc(100% - 28px);
    }

    .validation-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .success-modal-content {
        padding: 20px;
        max-width: none;
        width: calc(100% - 20px);
    }

    .success-modal-content button {
        padding: 8px 16px;
        font-size: 14px;
    }

    .validation-summary-grid {
        grid-template-columns: 1fr;
    }

    .validation-lot-map {
        grid-template-columns: 1fr;
    }

    .validation-lot-card {
        align-items: flex-start;
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .cnab-smart-chip {
        margin-left: 0;
    }

    .validated-detail-table {
        font-size: 11.5px;
        min-width: 900px;
    }

    .validated-file-data-table {
        min-width: 980px;
    }

    .validated-detail-table th,
    .validated-detail-table td {
        padding: 5px 7px;
    }

    .validated-detail-table th,
    .validated-detail-table code {
        font-size: 11px;
    }

    .financial-summary-row {
        align-items: flex-start;
        grid-template-columns: 1fr;
    }

    .financial-summary-expand,
    .financial-summary-section,
    .financial-summary-values,
    .financial-summary-row small {
        grid-column: 1;
        text-align: left;
    }

    .financial-summary-value {
        grid-template-columns: auto 1fr;
    }

    .financial-summary-value b {
        grid-column: 2;
        text-align: left;
    }

    .financial-summary-detail-table th,
    .financial-summary-detail-table td {
        font-size: 10.5px;
        padding: 6px 7px;
    }
}


/* Modal de erros para dispositivos móveis */
@media (max-width: 768px) {
    .modal-content.large-modal {
        max-width: 95%;
        min-width: auto;
    }

    #error-container table {
        font-size: 14px;
    }

    #error-container th, #error-container td {
        padding: 8px;
    }
}


/* Botão "Converter para Excel" para dispositivos móveis */
@media (max-width: 768px) {
    #convert-to-excel-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Botão "Validar" para dispositivos móveis */
@media (max-width: 768px) {
    #validate-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Botão "Salvar em CSV" para dispositivos móveis */
@media (max-width: 768px) {
    #save-errors-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Botão "Enviar" para dispositivos móveis */
@media (max-width: 768px) {
    #send-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Botões "Fechar" para dispositivos móveis */
@media (max-width: 768px) {
    .close-btn,
    .close-success-btn,
    .close-error-btn,
    #cnab-explanation-modal .close-btn {
        font-size: 20px; /* Define o tamanho da fonte para todos os botões "Fechar" */
    }

    .close-error-btn {
        font-size: 40px; /* Exceção para o botão de erro */
    }
}

/* ===== Social Share ===== */
.social-share {
  margin: 40px 0;
  text-align: center;
}

.social-share p {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #fff;
  text-shadow: 1px 1px #2d3748;
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon,
.social-share-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: #e4e4e4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.social-icon svg,
.social-share-btn svg {
  width: 22px;
  height: 22px;
  fill: #2d3748;
}

.social-share-btn {
  padding: 0 14px;
  gap: 8px;
  width: auto;
}

.social-share-btn span {
  color: #2d3748;
  font-weight: 700;
  font-size: 0.95rem;
}

.social-icon:hover,
.social-share-btn:hover {
  transform: scale(1.08);
  background-color: #4bb7ec;
}

.social-icon.facebook { background-color: #1877f2; }
.social-icon.facebook svg { fill: #fff; }

.social-icon.linkedin { background-color: #0077b5; }
.social-icon.linkedin svg { fill: #fff; }

.social-icon.whatsapp { background-color: #25d366; }
.social-icon.whatsapp svg { fill: #fff; }

/* ===== Responsivo ===== */
@media (max-width: 768px) {
  .social-row {
    gap: 10px;
  }
  .social-icon,
  .social-share-btn {
    width: 40px;
    height: 40px;
  }
  .social-icon svg,
  .social-share-btn svg {
    width: 20px;
    height: 20px;
  }
  .social-share-btn {
    padding: 0 10px;
  }
  .social-share-btn span {
    font-size: 0.85rem;
  }
}

@media (max-width: 420px) {
  .social-row {
    gap: 8px;
  }
  .social-share-btn span {
    display: none; /* deixa só o ícone em telas bem pequenas */
  }
}
