:root {
    --primary-color: #a43e1f;
    --secondary-color: #2c2c2c;
    --text-color: #333;
    /* --background-color: #82a928;*/
    --header-bg: rgba(255, 255, 255, 0.95);
    --sidebar-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #345b87;
    --transition-speed: 0.3s;
    --border-color: #e0e0e0;
    --hover-color: rgba(74, 144, 226, 0.1);
    --input-bg: #ffffff;
    /* Altura do header flexível por padrão */
    --header-height: auto;
    /* Offset usado para navegação com hash/âncoras abaixo do header fixo */
    --header-offset: 180px;
}

/* Ajustes responsivos da altura do header (mantidos sem forçar altura) */
@media (max-width: 1920px) {
    .header {
        padding: 0.35rem 0;
    }
    
    .header-inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .logo-container h1 {
        font-size: 1.45rem;
    }

    .news-ticker-container {
        height: 28px;
    }

    .ticker-content {
        font-size: 0.8rem;
    }

    .search-container {
        margin-bottom: .05rem;
    }
}

/* Banner de Desenvolvimento */
.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #f8d7da;
    /* Vermelho pastel */
    color: #000;
    padding: 1rem 2rem;
    z-index: 10000;
    /* Acima de tudo */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dev-banner.visible {
    opacity: 1;
    transform: translateY(0);
}

.dev-banner-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.dev-banner-content p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    padding-right: 2rem;
}

.dev-banner-close {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #721c24;
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
}

.dev-banner-close:hover {
    background: #491217;
    transform: translateY(-50%) scale(1.1);
}

/* Ajuste do body quando banner está visível */
body.banner-visible {
    padding-top: 60px;
}

@media (max-width: 768px) {
    .dev-banner {
        padding: 0.75rem 1rem;
    }

    .dev-banner-content p {
        font-size: 0.85rem;
        padding-right: 2.5rem;
    }

    .dev-banner-close {
        width: 24px;
        height: 24px;
        font-size: 1.1rem;
    }

    body.banner-visible {
        padding-top: 80px;
    }
}

@media (max-width: 480px) {
    .dev-banner-content p {
        font-size: 0.75rem;
    }

    body.banner-visible {
        padding-top: 100px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: background-color var(--transition-speed) ease,
        color var(--transition-speed) ease,
        border-color var(--transition-speed) ease,
        box-shadow var(--transition-speed) ease;
}

html {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

#header-placeholder {
    display: block;
    height: 0.5rem;
    /* Espaço reduzido entre header e main content */
}

body {
    /* background-color: var(--background-color);*/
    /* background-color: #ccc ;*/
    color: var(--text-color);
    min-height: 100vh;
    background-image: linear-gradient(120deg, #cde6ff 0%, #ffeedb 100%);
    position: relative;
    overflow-x: hidden;
    padding-bottom: 60px;
    /* espaço para o rodapé/chat */
}

.header {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px var(--shadow-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: var(--header-height);
}

/* Container interno do header com largura padronizada */
.header-inner {
    max-width: 1320px; /* O segredo do Finsiders */
    width: 95%; /* Margem de segurança para telas menores que 1320px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; /* Evita que o conteúdo cole na borda em celulares */
    padding-right: 15px;
    display: flex;
    flex-direction: column;
}

/* Desativa transições/animações temporariamente para evitar flicker no carregamento */
.header.no-anim,
.header.no-anim * {
    transition: none !important;
    animation: none !important;
}

.header-top {
    width: 100%;
    display: flex;
    justify-content: center; /* Centraliza o logo e nome */
    align-items: center;
    position: relative; /* Para posicionar os controles */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: 50px;
    background-image: url('../assets/logo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.logo svg {
    height: 100%;
    width: 100%;
}

.logo-path {
    fill: currentColor;
    transition: fill var(--transition-speed) ease;
}

.logo-container h1 {
    color: #ffd3a1;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.logo-container a {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    padding-bottom: 0.5rem;
}

.logo-container a:hover {
    opacity: 0.9;
}

.search-container {
    display: flex;
    align-items: center;
    background: #fff9c4;
    border-radius: 20px;
    padding: 0.3rem;
    width: 500px;
    position: relative;
    box-shadow: 0 2px 5px var(--shadow-color);
    margin: 0 auto;
    margin-bottom: 1.52rem;
    /* ainda mais rente ao ticker */
    position: relative;
    /* Ensure absolute positioning works relative to this */
}

/* Search Results Styles */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    margin-top: 5px;
}

.search-result-item {
    border-bottom: 1px solid #eee;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item a {
    display: block;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: background-color 0.2s;
    text-align: left;
}

.search-result-item a:hover {
    background-color: #f8f9fa;
}

.search-result-item h4 {
    margin: 0 0 0.3rem 0;
    color: var(--primary-color);
    font-size: 1rem;
}

.search-result-item p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.search-result-item .category {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 4px;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #666;
}

.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: var(--transition-speed);
    text-decoration: none;
}

.back-button:hover {
    background-color: var(--accent-color);
    transform: translateX(-2px);
}

.bank-solutions .search-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    margin-bottom: 1.52rem;
}

.bank-solutions .search-box {
    display: flex;
    align-items: center;
    background: #fff9c4;
    border-radius: 20px;
    padding: 0.3rem;
    width: 500px;
    position: relative;
    box-shadow: 0 2px 5px var(--shadow-color);
    margin-left: auto;
}

.search-input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.3rem;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-color);
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-color);
}

.main-nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.area-cliente-btn {
    background-color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 1.1rem;
    transition: background-color 0.3s;
}

.area-cliente-btn:hover {
    background-color: #357abd;
}

.container {
    display: grid;
    grid-template-columns: 250px 1fr 350px;
    gap: 1rem;
    max-width: 1320px; /* O segredo do Finsiders */
    width: 95%; /* Margem de segurança para telas menores que 1320px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; /* Evita que o conteúdo cole na borda em celulares */
    padding-right: 15px;
    /* Espaço superior agora é dado por #header-placeholder dinamicamente */
    padding-top: 0;
}

/* Novo layout de 1 coluna quando a sidebar esquerda é removida (páginas de bancos) */
.container.no-sidebar-left {
    grid-template-columns: 1fr; /* Removida a coluna da sidebar direita (350px) */
    max-width: 1320px; /* O segredo do Finsiders */
    width: 95%; /* Margem de segurança para telas menores que 1320px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; /* Evita que o conteúdo cole na borda em celulares */
    padding-right: 15px;
}

.sidebar-left {
    background-color: var(--sidebar-bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.bank-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bank-nav a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    margin: 0;
    border-radius: 8px;
    transition: all var(--transition-speed) ease;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
}

.home-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 2px 5px var(--shadow-color);
    transition: background-color 0.3s ease;
}

.home-icon:hover {
    background-color: var(--primary-color);
}

.home-icon i {
    font-size: 1.5rem;
}

.bank-nav .home-icon-container,
.search-container .home-icon-container {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.search-container {
    display: flex;
    align-items: center;
}

.bank-nav a:hover {
    background-color: rgba(255, 140, 0, 0.25);
    transform: translateX(5px);
}

.bank-nav a img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity var(--transition-speed) ease;
}

.bank-nav a:hover img {
    opacity: 1;
}

.bank-nav .outros-bancos {
    background-color: var(--accent-color);
    color: white;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.bank-nav .outros-bancos i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.bank-nav .outros-bancos:hover {
    background-color: var(--primary-color);
    transform: translateX(5px);
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1320px; /* O segredo do Finsiders */
    width: 95%; /* Margem de segurança para telas menores que 1320px */
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px; /* Evita que o conteúdo cole na borda em celulares */
    padding-right: 15px;
    /* menor espaçamento entre seções */
}

/* .main-content quando está dentro de .container (páginas de bancos) - remove limitações duplas */
.container .main-content {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.banner-section {
    display: grid;
    grid-template-columns: minmax(288px, 378px) 1fr; /* Reduzido em 10%: 320px->288px, 420px->378px */
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
}


.financial-calendar-container,
.quick-access-banner {
    padding: 1.5rem;
    border-radius: 12px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.financial-calendar-container {
    max-width: 500px;
    cursor: default;
    transition: all 0.3s ease;
}

.financial-calendar-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--primary-color);
}

.quick-access-banner:hover {
    box-shadow: 0 8px 25px var(--shadow-color);
    border-color: var(--primary-color);
}

.quick-access-banner h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    text-align: center;
}

.quick-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    flex-grow: 1;
    align-content: start;
}

.quick-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.quick-tool-card:hover {
    transform: scale(1.05);
    background: #cde6ff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quick-tool-card i {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.quick-tool-card span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.news-item h3 {
    margin: 0;
    padding: 0;
    border: none;
}

.news-item h3 a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.news-item h3 a:hover {
    color: var(--accent-color);
}

.news-meta {
    font-size: 0.85rem;
    color: #666;
    margin: 0.5rem 0;
}

.news-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0.5rem 0 0 0;
}

.last-update {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    text-align: right;
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.news-banner p {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1.2rem;
    width: 100%;
}

#home h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 2.2rem;
}

.welcome-text {
    text-align: center;
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.news-ticker {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 5px;
}

.sidebar-right {
    background-color: var(--sidebar-bg);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--shadow-color);
    height: auto;
    min-height: 100%;
    position: sticky;
    top: 1rem;
    align-self: stretch;
    margin-top: 0;
    max-height: none;
    overflow: visible;
}

.sidebar-content {
    text-align: center;
    color: var(--text-color);
}

.sidebar-content h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.sidebar-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.sidebar-content:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* Estilos para o Renomeador DDA */
.renomeador-dda {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.upload-area {
    border: 2px dashed #007bff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--accent-color);
    background-color: rgba(74, 144, 226, 0.05);
}

.upload-area i {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.upload-area p {
    margin: 0.3rem 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.upload-area small {
    display: block;
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

#dda-upload-btn {
    margin-top: 20px;
    padding: 10px 30px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#dda-upload-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#dda-upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #2c7be5;
}

.file-list {
    margin: 0.5rem 0;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.4rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.file-item:last-child {
    border-bottom: none;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    color: #666;
}

.file-name {
    font-size: 0.9rem;
    color: var(--text-color);
}

.file-status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
}

.status-error {
    background-color: #f8d7da;
    color: #721c24;
}

.actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-process {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    flex: 1;
}

.btn-process:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-clear {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-clear:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.progress-container {
    margin-top: 1rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.message-area {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@media (max-width: 1920px) {
    .container {
        /* Mantém o layout de 3 colunas para páginas que ainda o usam */
        grid-template-columns: 250px 1fr 350px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .container.no-sidebar-left {
        grid-template-columns: 1fr; /* Removida a coluna da sidebar direita */
        padding-left: 15px;
        padding-right: 15px;
    }

    .sidebar-right {
        display: block;
        /* Mantendo visível */
    }

    .banner-section {
        grid-template-columns: minmax(288px, 378px) 1fr; /* Reduzido em 10%: 320px->288px, 420px->378px */
    }
}

@media (max-width: 1200px) {
    .ads-container {
        max-width: 250px;
    }
}

@media (max-width: 992px) {
    .sidebar-right {
        display: none;
        /* Esconder sidebar em telas menores */
    }

    .container,
    .container.no-sidebar-left {
        /* Em telas menores, ambos os layouts se tornam de 1 coluna */
        grid-template-columns: 1fr;
    }

    .ads-container {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
    }

    .banner-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: auto;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .header-inner {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .header-controls {
        position: static; /* Em mobile, volta ao fluxo normal */
        right: auto;
    }

    .container {
        grid-template-columns: 1fr;
        padding-left: 15px;
        padding-right: 15px;
        min-width: 320px;
    }

    .sidebar-left {
        display: none;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .header-controls {
        width: 100%;
        justify-content: center;
    }

    .banner-section {
        margin-top: 1rem;
    }

    .logo-container h1 {
        font-size: 1.5rem;
    }

    .news-banner h3 {
        font-size: 1.4rem;
    }

    .news-banner p {
        font-size: 1.1rem;
    }

    #home h2 {
        font-size: 1.8rem;
    }

    .welcome-text {
        font-size: 1.1rem;
    }

    .main-nav a,
    .area-cliente-btn,
    .bank-nav a,
    .tab-button,
    .tab-pane p {
        font-size: 1rem;
    }

    .tab-pane h2 {
        font-size: 1.5rem;
    }

    .logo {
        height: 60px;
    }

    .tabs-header {
        flex-wrap: wrap;
    }

    .tab-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Estilos para a nova aba de Bancos */
#bancos>p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 0 auto 2rem;
}

.bank-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}

.bank-card:hover {
    transform: translateY(-2px);
    background-color: white;
}

.bank-card img {
    width: 144px;
    height: 144px;
    object-fit: contain;
}

.centered-btn {
    display: block;
    margin: 2rem auto 0 auto;
    /* Centraliza o botão "Não encontrou seu banco?" */
    width: fit-content;
}

.tabs-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--primary-color);
    background-color: var(--header-bg);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.tab-button {
    padding: 0.8rem 1.2rem;
    border: none;
    background: none;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border-radius: 4px;
}

.tab-button:hover {
    background-color: rgba(255, 140, 0, 0.25);
    color: var(--primary-color);
    border-radius: 10px 10px 0 0;
}

.tab-button.active {
    background-color: rgba(255, 140, 0, 1);
    color: white;
    border-radius: 10px 10px 0 0;
}

.tabs-content {
    padding: 1rem 2rem;
    /* reduz espaçamento interno no topo */
}

.tab-pane {
    display: none;
    /* Garante que rolagem por hash (#home, #blog, etc.) respeite o header fixo */
    scroll-margin-top: var(--header-offset);
}

.blog-container {
    width: 100%;
    height: calc(100vh - 250px);
    margin-top: 1rem;
    border-radius: 10px;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    transform: scale(1);
    transform-origin: 0 0;
}

@media (max-width: 768px) {
    .blog-container {
        height: calc(100vh - 200px);
    }

    .blog-container iframe {
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .blog-container iframe {
        transform: scale(0.8);
    }
}

.tab-pane.active {
    display: block;
}

.tab-pane>h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 2.2rem;
    /* Padronizando com o tamanho da Home */
    text-align: center;
}

.tab-pane p {
    line-height: 1.6;
    color: var(--text-color);
    font-size: 1.1rem;
}

.news-ticker-container {
    width: 100%;
    background-color: transparent;
    z-index: 100;
    margin-top: 0;
    overflow: hidden;
    padding: 0.1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 32px;
    /* mais compacto */
    display: flex;
    align-items: center;
}

.ticker-wrapper {
    overflow: hidden;
    padding: 0.2rem 0;
    width: 100%;
    flex: 1;
}

.ticker-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
    padding: 0.2rem 1rem;
    color: white;
    font-size: 0.85rem;
    line-height: 1.2;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.ticker-label {
    color: #ffd3a1;
    font-weight: 700;
    padding-right: 0.8rem;
    border-right: 2px solid rgba(255, 211, 161, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 0.85rem;
}

.ticker-items {
    display: flex;
    gap: 2rem;
}

.ticker-item {
    color: white;
    font-size: 0.9rem;
    position: relative;
    padding-right: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.ticker-item::after {
    content: '•';
    position: absolute;
    right: 1rem;
    color: var(--primary-color);
}

.ticker-item:last-child::after {
    display: none;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;

    /* Estilização da barra de rolagem para navegadores WebKit */
    &::-webkit-scrollbar {
        width: 8px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    &::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: rgba(204, 9, 47, 0.05);
}

.search-result-item a {
    text-decoration: none;
    color: var(--text-color);
}

.search-result-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.search-result-item p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.search-result-item .category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.no-results {
    padding: 2rem;
    text-align: center;
    color: #666;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-item {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.news-item a:hover {
    color: var(--primary-color);
}

.ticker-item a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
    opacity: 0.9;
}

.ticker-item a:hover {
    opacity: 1;
    text-decoration: underline;
}

.news-item small {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

.news-item a {
    display: block;
    padding: 0.5rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.news-item a:hover {
    background-color: rgba(204, 9, 47, 0.05);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    transition: color 0.3s;
}

.theme-toggle:hover {
    color: var(--accent-color);
}

.theme-toggle i {
    font-size: 0.9rem;
}

.theme-toggle span {
    font-size: 0.9rem;
}

.social-feed-container {
    background-color: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.social-feed-container h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

#feedwind-widget {
    margin-top: 1rem;
    height: 300px;
    overflow-y: auto;

    /* Estilização da barra de rolagem para navegadores WebKit */
    &::-webkit-scrollbar {
        width: 8px;
    }

    &::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    &::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}

#feedwind-widget iframe {
    border: none;
    width: 100%;
    height: 100%;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    right: 15px; /* Alinha com o padding do header-inner */
}

.font-size-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.font-size-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: color 0.3s;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.font-size-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.font-size-btn i {
    font-size: 0.9rem;
}

.font-size-indicator {
    color: white;
    font-size: 0.8rem;
    min-width: 45px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-weight: 500;
}

.bank-solutions {
    padding: 1rem 2rem 2rem 2rem;
    max-width: 100%; /* Garante que use toda a largura disponível do container */
    width: 100%;
}

/* Classe para esconder visualmente elementos mantendo acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estilos para o container de anúncios */
.ads-container {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.adsbygoogle {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.solution-card[onclick] {
    cursor: pointer;
}

.bank-solutions h2 {
    color: var(--primary-color);
    margin-bottom: .5rem;
    font-size: 2rem;
    text-align: center;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.solution-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-color);
    border-color: var(--primary-color);
}

.solution-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.solution-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Estilos específicos para a aba Quem Somos */
#quem-somos .contact-section {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto;
}

#quem-somos .about-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

#quem-somos .about-trajectory,
#quem-somos .about-purpose {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

#quem-somos .donation-section {
    text-align: center;
    flex-basis: 100%;
}

/* Estilos para a seção de contato */
.contact-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-section h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem;
    font-size: 1.3rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 0.5rem;
}

.contact-section h3:first-child {
    margin-top: 0;
}

.contact-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-section a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.solution-card ul {
    list-style: none;
    padding-left: 1rem;
    margin: 0.5rem 0;
}

.solution-card ul li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    position: relative;
}

.solution-card ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
}

.contact-info {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.contact-info p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-color);
    border-color: var(--primary-color);
}

.contact-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--text-color);
    font-size: 1rem;
}

.contact-card a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.contact-card a:hover {
    color: var(--primary-color);
}





.news-banner .news-item h3,
.news-banner .news-item h4 {
    margin: 0 0 10px 0;
    font-size: 1em;
    line-height: 1.4;
    font-weight: 500;
    color: #333;
}

.news-item h3 a,
.news-item h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-item h3 a:hover,
.news-item h4 a:hover {
    color: #0056b3;
}

.news-meta,
.news-date {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
}

.news-source {
    font-weight: 500;
    color: #0056b3;
}

.news-date {
    color: #666;
}

.news-excerpt {
    color: #555;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9em;
}

/* Estilos dos itens de notícia - consolidados */
.news-banner .news-item {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.news-banner .news-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px var(--shadow-color);
    max-width: 500px;
    width: 90%;
    z-index: 1001;
    isolation: isolate;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
}

.close-modal:hover {
    color: var(--accent-color);
}

.modal-body {
    margin-bottom: 1.5rem;
}

.bank-request-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-color);
    border-color: transparent;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--primary-color);
}

.success-message {
    display: none;
    color: darkorange;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.bank-request-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.bank-request-btn i {
    font-size: 1rem;
    color: var(--accent-color);
}

.bank-request-btn:hover {
    background-color: var(--hover-color);
    color: var(--accent-color);
}

/* Estilos para o container de doação */
.donation-container {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.donation-container p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.qr-code {
    width: 80%;
    max-width: 200px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 5px;
}

h2.hero__bradesco {
    background-image: linear-gradient(90deg, #C6002B 0%, #B2006E 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.6rem;
}

h2.hero__itau {
    background-image: linear-gradient(90deg, #FF6200 0%, #FF8902 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.6rem;
}

h2.hero__caixa {
    background-image: linear-gradient(90deg, #006CB5 0%, #0086D0 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.6rem;
}

h2.hero__safra {
    background-image: linear-gradient(90deg, #00003C 0%, #1a1a5c 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.6rem;
}

h2.hero__bv {
    background-image: linear-gradient(90deg, #223AD2 0%, #006CB5 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.6rem;
}

h2.hero__sicredi {
    background-image: linear-gradient(90deg, #006E30 0%, #39B54A 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.6rem;
}

h2.hero__sicoob {
    background-image: linear-gradient(90deg, #223B40 0%, #75C04E 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.6rem;
}

h2.hero__banco-brasil {
    background-image: linear-gradient(-90deg, #465EFF 0%, #FCFC30 100%);
    color: white;
    border-radius: 10px;
    font-size: 1.6rem;
}

/* Estilos da aba Sobre */
.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.about-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.about-intro {
    background-color: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin: 0;
}

.about-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-trajectory,
.about-purpose {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.about-trajectory h3,
.about-purpose h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.about-trajectory ul,
.about-purpose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.about-trajectory li,
.about-purpose li {
    margin-bottom: 1rem;
    color: var(--text-color);
    line-height: 1.4;
}

.about-purpose p {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .about-container {
        padding: 1rem;
    }

    .about-sections {
        grid-template-columns: 1fr;
    }

    .about-intro,
    .about-trajectory,
    .about-purpose,
    .contact-section {
        padding: 1.5rem;
    }
}

.utilidades-container {
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 10px;
    margin: 1.5rem auto;
    box-shadow: 0 2px 5px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.renomeador-dda {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.renomeador-dda h3 {
    text-align: center;
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.renomeador-dda button {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    margin-bottom: 0.2rem;
    margin-top: 0.2rem;
    display: block;
}

.renomeador-dda button:hover {
    background-color: var(--accent-color);
}

#dda-message {
    display: block;
    text-align: center;
    height: auto;
    width: 100%;
    position: relative;
    overflow: visible;
}

/* Estilos para as ferramentas */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.tool-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.tool-card p {
    color: var(--text-color);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.btn-tool {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-tool:hover {
    background-color: #8c3619;
    transform: translateY(-1px);
}

/* Removidos overrides de header fixo e padding do body para evitar CLS */

.chat-header span {
    font-weight: 500;
    font-size: 1rem;
}

/* Botão de alternar chat */
.toggle-chat-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.toggle-chat-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Conteúdo do chat */
.chat-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Removido o botão flutuante do chat */

/* Estado inicial do chat */
.chat-container:not(.expanded) .chat-content {
    display: none;
}

.chat-container.expanded .chat-header .fa-minus::before {
    content: "\f068";
}

/* Ajustes para o iframe do chat */
#chtl-inline-bot {
    border: none;
    background: white;
    flex-grow: 1;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Ajustes para telas menores */
@media (max-width: 768px) {
    .chat-container {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
        padding: 0.5rem;
    }

    #chtl-inline-bot {
        min-height: 300px !important;
    }
}

/* (removido bloco duplicado de body) */

/* Estilo para o rodapé */
footer {
    position: relative;
    z-index: 1;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos responsivos para o Chatling */
/* Adicione os estilos responsivos diretamente no HTML */

/* About Page Styles */
.about-container {
    display: flex;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Espaçamento lateral */
    gap: 1rem;
    /* Espaço entre sidebars e conteúdo principal */
}

.about-sections {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.about-trajectory,
.about-purpose,
.donation-section {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow-color);
    flex: 1;
    min-width: 280px;
}

.about-trajectory h3,
.about-purpose h3,
.donation-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.about-trajectory ul,
.about-purpose ul {
    list-style-type: none;
    padding-left: 1rem;
}

.about-trajectory li,
.about-purpose li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.about-trajectory li:before,
.about-purpose li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.purpose-donation-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
    min-width: 280px;
}

.donation-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donation-section p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.donation-section .qr-code {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.donation-section .qr-code:hover {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .about-sections {
        flex-direction: column;
    }

    .about-trajectory,
    .purpose-donation-container {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .about-trajectory,
    .about-purpose,
    .donation-section {
        padding: 1rem;
    }

    .donation-section .qr-code {
        max-width: 180px;
    }
}

/* Widgets */
.widget {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
}

.widget:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.widget h3 {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    color: white;
    padding: 0.6rem 0.8rem;
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.widget-content {
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Ícones de Criptomoedas */
.crypto-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

.index-name {
    display: flex;
    align-items: center;
}

/* Índices Financeiros */
.index-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.index-item:last-child {
    border-bottom: none;
}

.index-name {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.8rem;
}

.index-value {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.85rem;
}

/* Rolagem suave */
html {
    scroll-behavior: smooth;
}

/* Indicador de carregamento */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: 0 0;
    transition: transform 0.3s ease-in-out;
    z-index: 9999;
    pointer-events: none;
}

/* Adicionar esta classe via JavaScript durante o carregamento */
.page-loading .page-transition {
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        transform: scaleX(0);
        opacity: 0.5;
    }

    50% {
        transform: scaleX(0.5);
        opacity: 1;
    }

    100% {
        transform: scaleX(1);
        opacity: 0.5;
    }
}

/* Melhorias de performance */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .page-transition,
    .page-loading .page-transition {
        display: none;
    }
}

/* Estilos para as ferramentas carregadas dinamicamente */
.tool-content {
    display: none;
    margin-top: 20px;
    width: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.tool-iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 500px;
    background: transparent;
}

/* Estilo para os botões de ferramentas ativos */

/* Ajustes para dispositivos móveis */
@media (max-width: 768px) {
    .tool-content {
        margin-top: 15px;
        border-radius: 0;
    }

    .tool-iframe {
        min-height: 400px;
    }
}

/* Efeito de loading para o iframe */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tool-content.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.widget-footer {
    background-color: rgba(0, 0, 0, 0.03);
    padding: 0.5rem 1rem;
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid var(--border-color);
}

/* Controles do widget de Criptomoedas */
.crypto-controls {
    display: flex;
    justify-content: flex-start;
    /* alinhado à esquerda */
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.crypto-controls label {
    font-size: 0.85rem;
    color: #666;
}

.crypto-controls select {
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Estilos responsivos para os widgets */
@media (max-width: 1200px) {
    .widget {
        margin-bottom: 1rem;
    }

    .widget h3 {
        font-size: 0.95rem;
        padding: 0.7rem 0.8rem;
    }

    .widget-content {
        padding: 0.8rem;
    }

    .index-name,
    .index-value {
        font-size: 0.85rem;
    }
}

/* Notificação do Chatbot */
.chatbot-notification {
    position: fixed;
    bottom: 100px;
    /* Posição acima do ícone do chat (padrão ~80-90px) */
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-width: 280px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    visibility: hidden;
    pointer-events: auto;
}

.chatbot-notification.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.chatbot-notification-content {
    position: relative;
}

.chatbot-notification-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.chatbot-notification-close:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.chatbot-notification-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chatbot-notification-arrow {
    position: absolute;
    bottom: -10px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--primary-color);
}