/* Estilos para a área de assinantes */
.comparar-investimentos {
    padding: 30px 0;
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.comparar-investimentos h1,h2 {
    margin-bottom: 25px;
    color: #2E6C86;
    font-weight: 700;
    font-size: 1.75rem;
}

/* Estilos para a sidebar de filtros */
.filtros {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(46, 108, 134, 0.08);
    height: fit-content;
}

.filtros h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2E6C86;
    font-weight: 700;
}

.filtros h5 {
    font-weight: 600;
    color: #2E6C86;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    font-size: 1rem;
}

.filtros h6 {
    font-weight: 600;
    color: #2E6C86;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    font-size: 1rem;
}

.filtros .filter-section {
    margin-bottom: 16px;
}

.filtros ul {
    padding-left: 0;
}

.filtros ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    text-decoration: none;
    color: #566573;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.filtros ul li a .badge {
    margin-left: auto;
    text-align: right;
    float: right;
}

.filtros ul li a:hover,
.filtros ul li a.fw-bold {
    color: #2E6C86;
}

.filtros ul li a .badge {
    font-size: 0.7rem;
    padding: 4px 8px;
    background-color: #e9ecef;
    color: #566573;
}

.filtros ul li a:hover .badge,
.filtros ul li a.fw-bold .badge {
    background-color: #C3F53C;
    color: #2E6C86;
}

/* Style for highlighting user's matched distributors in the facet list */
.filtros ul li.user-distributor-match a {
    font-weight: bold;
}

.filtros ul li.user-distributor-match a::after {
    content: ' ★';
    color: #C3F53C;
    font-size: 1em;
    vertical-align: middle;
    margin-left: 6px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Custom Amount Input Styling */
.custom-amount-container {
    margin-top: 10px;
}

.custom-amount-container .input-group {
    border-radius: 6px;
    overflow: hidden;
}

.custom-amount-container .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #2E6C86;
    font-weight: 600;
    font-size: 0.9rem;
}

.custom-amount-container .form-control {
    border: 1px solid #dee2e6;
    font-size: 0.9rem;
    padding: 8px 12px;
}

.custom-amount-container .form-control:focus {
    border-color: #C3F53C !important;
    box-shadow: 0 0 0 0.1rem rgba(195, 245, 60, 0.08) !important;
    outline: none !important;
}

.custom-amount-container .custom-amount-go {
    background-color: #2E6C86;
    border-color: #2E6C86;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 16px;
    transition: all 0.2s ease;
}

.custom-amount-container .custom-amount-go:hover {
    background-color: #1e4a5f;
    border-color: #1e4a5f;
    transform: translateY(-1px);
}

.custom-amount-container .custom-amount-go:active {
    transform: translateY(0);
}

/* Target the list items within any ul.list-unstyled */
ul.list-unstyled li.mb-2 {
    display: flex; /* Makes the list item a flex container */
    align-items: center; /* Vertically aligns the items (radio button, link) */
    list-style: none; /* Removes default list bullet points */
    padding-left: 0; /* Removes default list left padding */
    /* Add some spacing between list items if needed */
    /* margin-bottom: 8px; */
}

/* Target the radio button within the list item */
ul.list-unstyled li.mb-2 input[type="radio"] {
    display: inline-block; /* Ensures it can sit on the same line */
    margin-right: 8px; /* Add space between the radio button and the link text */
    vertical-align: middle;
}

/* Target the anchor tag (link) within the list item */
ul.list-unstyled li.mb-2 a {
    display: flex; /* Makes the anchor tag a flex container */
    justify-content: space-between; /* Pushes content inside the anchor to the edges */
    align-items: center; /* Vertically aligns items inside the anchor */
    flex-grow: 1; /* Allows the anchor to take up available space in the li flex container */
    text-decoration: none; /* Remove underline */
    color: inherit; /* Inherit text color */
    padding: 4px 8px; /* Example padding inside the link */
    margin: 0;
    white-space: nowrap; /* Prevent wrapping within the link */
}

/* Target the pill (assuming it's wrapped in a span) */
ul.list-unstyled li.mb-2 a .result-pill {
    background-color: #eee;
    color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 10px;
    flex-shrink: 0;
} 
.active-filters h5 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.active-filters ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.active-filters li {
    margin-bottom: 5px;
}

.badge {
    background-color: #236881 ;
    color: #ffffff;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    border: 1px solid rgba(195, 245, 60, 0.3);
}

/* Correção específica para badges dos investment-cards */
.investment-card .badge {
    color: #fff;
    padding: 0.125rem 0.375rem;
    border-radius: 62.4375rem;
    font-size: 0.5625rem;
    font-weight: 600;
    white-space: nowrap;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.025rem;
    display: inline-block;
    margin-bottom: 0.375rem;
}

.investment-card .badge[data-investment-type="PRÉ-FIXADO"] {
    background-color: #35ADD9;
}

.investment-card .badge[data-investment-type="PÓS-FIXADO"] {
    background-color: #5083C7;
}
.active-filters .badge {
    padding: 6px 12px;
    margin: 0 6px 6px 0;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: #2E6C86 ;
    color: #ffffff;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    border: 1px solid rgba(195, 245, 60, 0.3);
}

.active-filters .badge a {
    text-decoration: none;
    color: #C3F53C;
    margin-left: 8px;
    font-size: 0.875rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(195, 245, 60, 0.1);
    transition: all 0.2s ease;
}

.active-filters .badge a:hover {
    background-color: rgba(195, 245, 60, 0.2);
    transform: scale(1.1);
}


.active-filters .btn-outline-secondary {
    font-size: 0.875rem;
    padding: 6px 12px;
    color: #005970;
    border-color: #005970;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.active-filters .btn-outline-secondary:hover {
    background-color: #005970;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 89, 112, 0.1);
}

/* Correção simples para broker-card-header - cada elemento na sua linha */
.comparar-investimentos .investment-card .broker-card-header {
    display: block !important;
}

.comparar-investimentos .investment-card .broker-card-header .header-top {
    display: block !important;
    margin-bottom: 0.375rem !important;
}

.comparar-investimentos .investment-card .broker-card-header .title {
    display: block !important;
    margin-top: 0.125rem !important;
}

/* Estilos para ícones e textos do footer */
.investment-card .footer-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.investment-card .footer-item .value.text-ff6b00,
.investment-card .footer-item .value.fgc-text {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Estilos para os cards de produtos */
.produtos .new-investment-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 89, 112, 0.06);
    border-radius: 12px;
    background-color: #ffffff;
    margin-bottom: 1.5rem;
}

.produtos .new-investment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(46, 108, 134, 0.1);
}

.produtos .new-investment-card-header {
    background-color: #ffffff;
    border-bottom: none;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.produtos .new-investment-card-header .badge-pre-fixado {
    background-color: #E5F5FF;
    color: #2E6C86;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.produtos .new-investment-card-header .trophy-icon {
    color: #FFD700;
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.produtos .new-investment-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2E6C86;
    margin-bottom: 0.5rem;
}

.produtos .new-investment-card-body {
    padding: 0 1rem 1rem;
}

.produtos .new-investment-card-subtitle {
    font-size: 1rem;
    font-weight: 500;
    color: #566573;
    margin-bottom: 1.5rem;
}

.produtos .valor-resgate {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2E6C86;
    margin-bottom: 0.5rem;
}

.produtos .ganho-total {
    color: #198754;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.produtos .ganho-mensal {
    font-size: 0.875rem;
    color: #6C757D;
    margin-bottom: 1rem;
}

.produtos .info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.produtos .rating-section {
    margin: 1rem 0;
}

.produtos .rating-label {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
}

.produtos .rating-bar {
    height: 4px;
    background-color: #E9ECEF;
    border-radius: 2px;
    overflow: hidden;
}

.produtos .rating-bar .fill {
    height: 100%;
    border-radius: 2px;
}

.produtos .rating-bar .fill.excelente {
    background-color: #C3F53C;
    width: 100%;
}

.produtos .rating-bar .fill.otimo {
    background-color: #2E6C86;
    width: 80%;
}

.produtos .btn-investir {
    background-color: #C3F53C;
    border-color: #C3F53C;
    color: #fff;
    font-weight: 600;    
    width: 90%;
    transition: all 0.3s ease;
    position: relative;
    left:5%
}

.produtos .btn-investir:hover {
    background-color: #B3E52C;
    border-color: #B3E52C;
    transform: translateY(-2px);
    margin-bottom: 1rem;
/* Remove stray closing brace that was causing syntax error */
}

.produtos small.text-muted {
    display: block;
    font-size: 0.75rem;
    color: #6c757d !important;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.produtos .fw-bold {
    font-size: 0.9rem;
    font-weight: 600 !important;
    color: #2E6C86;
}

.produtos .text-success {
    color: #a0d533 !important;
    font-weight: 700 !important;
}

.produtos .new-investment-card-body .row {
    margin-bottom: 0.75rem !important;
}

.produtos .new-investment-card-body > .mb-3 {
    margin-bottom: 0.75rem !important;
}

.produtos .new-investment-card-body > .mb-auto {
    margin-bottom: 0.75rem !important;
}

.produtos .new-investment-card-footer {
    background-color: #ffffff;
    border-top: 1px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.produtos .new-investment-card-footer .btn {
    font-size: 0.9rem;
    font-weight: 500;
    background-color: #2E6C86;
    border-color: #2E6C86;
    color: #fff;
}

.produtos .new-investment-card-footer .btn:hover {
    background-color: #C3F53C;
    border-color: #C3F53C;
    color: #2E6C86;
}

/* Estilos para o seletor de ordenação */
.produtos .form-group {
    margin-bottom: 0;
}

.produtos label[for="orderBy"] {
    font-size: 0.9rem;
    color: #566573;
}

.form-select-sm {
    font-size: 0.875rem;
    /*padding: 0.3rem 0.6rem;*/
    border-color: #ced4da;
}

.mobile-filter-footer {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Float button contextual - quando chega no final do filtro */
.mobile-filter-footer.contextual {
    position: relative;
    bottom: auto;
    background-color: #fff;
    padding: 15px 0;
    margin-top: 20px;
    border-top: 1px solid #e9ecef;
}



.btn-apply-filters {
    background: linear-gradient(135deg, #C3F53C 0%, #B3E52C 100%);
    color: #2E6C86;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 20px;
    width: 100%;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center !important;
    display: block;
    letter-spacing: 0.5px;
}



.btn-apply-filters:hover {
    background: linear-gradient(135deg, #B3E52C 0%, #A3D51C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsividade */
@media (max-width: 768px) {
    .filter-section ul li {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 0;
      }
    
      .filter-section ul li a {
        flex-grow: 1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
        color: #566573;
      }
      
    
      .filter-section ul li a .badge {
        margin-left: auto;
        background-color: #e9ecef; /* Cor de fundo ajustada */
        color: #566573; /* Cor do texto ajustada */ 
        font-weight: bold;
        border-radius: 12px;
        padding: 4px 8px;
        min-width: 30px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 24px;
      }
    
      .filter-section ul li a:hover,
      .filter-section ul li a.fw-bold {
        color: #2E6C86;
      }
    

    /* Estilos para versão mobile dos filtros */
    .mobile-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background-color: #2E6C86;
        color: #fff;
        border: none;
        border-radius: 4px;
        padding: 6px 12px;
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-left: 10px;
    }
    
    .mobile-filter-toggle:hover {
        background-color: #C3F53C;
        color: #2E6C86;
    }
    
    .mobile-filter-toggle i {
        margin-right: 5px;
    }
    
    /* Pagination Styles - Meelion Brand - Override Bootstrap */
.pagination-wrapper {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
}

/* Override Bootstrap pagination with higher specificity */
.pagination,
ul.pagination {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    border-radius: 0 !important;
}

.pagination .page-item,
ul.pagination .page-item {
    margin: 0 2px !important;
    border: none !important;
}

.pagination .page-link,
ul.pagination .page-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #2E6C86 !important;
    background-color: #ffffff !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1 !important;
}

.pagination .page-link:hover,
ul.pagination .page-link:hover,
.pagination .page-link:focus,
ul.pagination .page-link:focus {
    color: #2E6C86 !important;
    background-color: #f8f9fa !important;
    border-color: #C3F53C !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(195, 245, 60, 0.2) !important;
    z-index: 2 !important;
}

.pagination .page-item.active .page-link,
ul.pagination .page-item.active .page-link,
.pagination .page-link.active,
ul.pagination .page-link.active {
    color: #2E6C86 !important;
    background-color: #C3F53C !important;
    border-color: #C3F53C !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(195, 245, 60, 0.3) !important;
    z-index: 3 !important;
}

.pagination .page-item.disabled .page-link,
ul.pagination .page-item.disabled .page-link,
.pagination .page-link.disabled,
ul.pagination .page-link.disabled {
    color: #adb5bd !important;
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.pagination .page-item.disabled .page-link:hover,
ul.pagination .page-item.disabled .page-link:hover,
.pagination .page-link.disabled:hover,
ul.pagination .page-link.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
    color: #adb5bd !important;
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
}

/* Remove Bootstrap default styles */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 8px !important;
}

.pagination-info {
    margin-top: 1rem !important;
    font-family: 'Montserrat', sans-serif !important;
}

.pagination-info .text-muted {
    color: #566573 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

    /* Responsive pagination - Override Bootstrap on mobile */
    @media (max-width: 576px) {
        .pagination .page-link,
        ul.pagination .page-link {
            min-width: 35px !important;
            height: 35px !important;
            padding: 6px 10px !important;
            font-size: 0.8rem !important;
        }
        
        .pagination .page-item,
        ul.pagination .page-item {
            margin: 0 1px !important;
        }
        
        .pagination-info .text-muted {
            font-size: 0.8rem !important;
        }
    }

    .mobile-filter-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        display: none;
        overflow-y: auto;
    }
    
    .mobile-filter-overlay.active {
        display: block;
    }
    
    .mobile-filter-content {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: #fff;
        z-index: 1051;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        transition: transform 0.3s ease;
        transform: translateX(100%);
    }
    
    .mobile-filter-content.slide-in {
        transform: translateX(0);
    }
    
    .mobile-filter-overlay.active .mobile-filter-content {
        right: 0;
    }
    
    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .mobile-filter-header h2 {
        margin-bottom: 0;
    }
    
    .mobile-filter-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #2E6C86;
        cursor: pointer;
    }
    
    .mobile-filter-footer {
        position: sticky;
        bottom: 0;
        background-color: #fff;
        padding: 15px 0;
        margin-top: 20px;
        border-top: 1px solid #e9ecef;
    }
    
    
    
    
        
    
    
    .checkbox-filters {
        margin-bottom: 15px;
    }
    
    .mobile-filter-content .filter-section {
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }
    
    /* Cor do texto no mobile filter - mesma do desktop */
    .mobile-filter-content .filter-section h5,
    .mobile-filter-content .filter-section h6 {
        color: #566573 !important;
    }
    
    .mobile-filter-content .filter-section ul li a {
        color: #566573 !important;
    }
    
    .mobile-filter-content .filter-section ul li a:hover {
        color: #2E6C86 !important;
    }
    
    /* Garantir que todos os textos no mobile filter tenham cor legível */
    .mobile-filter-content * {
        color: #566573 !important;
    }
    
    .mobile-filter-content h2,
    .mobile-filter-content h3,
    .mobile-filter-content h4,
    .mobile-filter-content h5,
    .mobile-filter-content h6 {
        color: #566573 !important;
    }
    
    .mobile-filter-content p,
    .mobile-filter-content span,
    .mobile-filter-content div {
        color: #566573 !important;
    }
    
    .mobile-filter-content .filter-section:last-child {
        border-bottom: none;
    }
    
    /* Estilos para radio buttons e checkboxes */
    .filtros .radio-filter,
    .filtros .checkbox-filter {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .filtros .radio-filter input[type="radio"],
    .filtros .checkbox-filter input[type="checkbox"] {
        margin-right: 10px;
    }
    
    .filtros .radio-filter label,
    .filtros .checkbox-filter label {
        margin-bottom: 0;
        color: #566573;
        font-size: 0.9rem;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .filtros .radio-filter label .badge,
    .filtros .checkbox-filter label .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        background-color: #e9ecef;
        color: #566573;
        margin-left: auto;
        text-align: right;
    }
    
    /* Esconder a sidebar de filtros no mobile e mostrar apenas na overlay */
    .col-md-3.filtros {
        display: none;
    }
    
    /* Ajustar a coluna de produtos para ocupar toda a largura */
    .col-md-9.produtos {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* Ajustes para mobile - ícones e textos do footer */
    .investment-card .footer-icon {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .investment-card .footer-item .value.text-ff6b00,
    .investment-card .footer-item .value.fgc-text {
        font-size: 0.6875rem;
        font-weight: 500;
    }
}

/* Estilo para o link 'Simular Valor' */
.simulate-value-link {
    color: #2E6C86 ;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.simulate-value-link:hover {
    color: #2E6C86 ;
    text-decoration: underline;
}

/* Regra adicional para garantir que o título fique abaixo da pill */
.comparar-investimentos .investment-card .broker-card-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.375rem !important;
}

.comparar-investimentos .investment-card .broker-card-header .badge {
    order: 1 !important;
    align-self: flex-start !important;
}

.comparar-investimentos .investment-card .broker-card-header .title {
    order: 2 !important;
    width: 100% !important;
    margin-top: 0 !important;
}

/* ===========================================================
   BOTÃO DE DETALHES - SOLUÇÃO HOVER + MOBILE
   ===========================================================
   Desktop: Botão outline discreto que aparece apenas no hover
   Mobile: Botão sempre visível, mas menor e mais discreto
----------------------------------------------------------- */

/* Desktop - Botão outline no hover */
@media (min-width: 769px) {
    .comparar-investimentos .investment-card .details-button-container {
        position: absolute;
        bottom: 4.5rem; /* Centralizar verticalmente no espaço branco */
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 10;
    }

    .comparar-investimentos .investment-card:hover .details-button-container {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    /* Ocultar apenas a seção de Rentabilidade/Segurança no hover */
    .comparar-investimentos .investment-card:hover .investment-card-progress-section {
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Restaurar comportamento original dos ícones FGC/IR */
    .comparar-investimentos .investment-card .footer {
        opacity: 1 !important;
        transition: none !important;
    }

    .comparar-investimentos .investment-card .btn-details {
        background-color: rgba(255, 255, 255, 0.95);
        color: #2E6C86;
        border: 1px solid #2E6C86;
        padding: 0.5rem 1.25rem;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 50px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.375rem;
        transition: all 0.3s ease;
        backdrop-filter: blur(8px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        white-space: nowrap;
    }

    .comparar-investimentos .investment-card .btn-details:hover {
        background-color: rgba(46, 108, 134, 0.1);
        color: #2E6C86;
        border-color: #2E6C86;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(46, 108, 134, 0.15);
    }

    .comparar-investimentos .investment-card .btn-details .material-icons {
        font-size: 0.875rem;
        transition: transform 0.3s ease;
    }

    .comparar-investimentos .investment-card .btn-details:hover .material-icons {
        transform: translateX(3px);
    }
}

/* Mobile - Botão sempre visível, mas discreto */
@media (max-width: 768px) {
    .comparar-investimentos .investment-card .details-button-container {
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }

    .comparar-investimentos .investment-card .btn-details {
        background-color: rgba(255, 255, 255, 0.9);
        color: #2E6C86;
        border: 1px solid #2E6C86;
        padding: 0.625rem 1.25rem; /* Aumentado para padrão mobile */
        font-size: 0.8125rem; /* Aumentado para melhor legibilidade */
        font-weight: 600; /* Mais bold para mobile */
        border-radius: 50px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 0.375rem; /* Aumentado para melhor espaçamento */
        transition: all 0.2s ease;
        opacity: 0.95; /* Mais visível */
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        min-height: 44px; /* Padrão de acessibilidade mobile */
    }

    .comparar-investimentos .investment-card .btn-details:hover,
    .comparar-investimentos .investment-card .btn-details:active {
        background-color: rgba(46, 108, 134, 0.1);
        color: #2E6C86;
        opacity: 1;
        transform: translateY(-1px);
        box-shadow: 0 3px 8px rgba(46, 108, 134, 0.15);
    }

    .comparar-investimentos .investment-card .btn-details .material-icons {
        font-size: 0.875rem; /* Aumentado para mobile */
    }
}

/* Garantir que o card tenha position relative para o posicionamento absoluto do botão */
.comparar-investimentos .investment-card {
    position: relative;
}

/* Preservar todas as microinterações existentes */
.comparar-investimentos .investment-card [data-modal] {
    cursor: pointer;
}

.comparar-investimentos .investment-card .simulate-value-link {
    cursor: pointer;
}

.comparar-investimentos .investment-card .title-text a {
    cursor: pointer;
}

/* ===========================================================
   FILTROS MODERNOS E CLEAN
   ===========================================================
   Estilos modernos para filtros, botões e inputs
   seguindo boas práticas de UI e evitando conflitos Bootstrap
----------------------------------------------------------- */

/* Botão Limpar Filtros */
.comparar-investimentos .btn-outline-secondary {
    background: transparent;
    color: #007eb0;
    border: 1px solid #007eb0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: none;
}

.comparar-investimentos .btn-outline-secondary:hover {
    background: rgba(0, 126, 176, 0.1);
    color: #007eb0;
    border-color: #007eb0;
    transform: none;
    box-shadow: none;
    text-decoration: none;
}

/* Campo de Valor Personalizado */
.comparar-investimentos .filter-section[data-filter-type="custom_amount"] {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
}

.comparar-investimentos .filter-section[data-filter-type="custom_amount"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #C3F53C;
}

.comparar-investimentos .filter-section[data-filter-type="custom_amount"] h6 {
    color: #2E6C86;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

/* Input Group Moderno */
.comparar-investimentos .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.comparar-investimentos .input-group:focus-within {
    border-color: #C3F53C;
    box-shadow: 0 0 0 3px rgba(195, 245, 60, 0.1);
    transform: translateY(-1px);
}

.comparar-investimentos .input-group-text {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    color: #6c757d;
    font-weight: 600;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.comparar-investimentos .form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    background: #ffffff;
    color: #495057;
    transition: all 0.3s ease;
}

.comparar-investimentos .form-control:focus {
    box-shadow: none;
    background: #ffffff;
    color: #495057;
}

.comparar-investimentos .form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

/* Botão Ir Moderno */
.comparar-investimentos .btn-outline-secondary[type="button"] {
    background: linear-gradient(135deg, #C3F53C 0%, #B3E52C 100%);
    color: #2E6C86;
    border: none;
    border-radius: 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: none;
}

.comparar-investimentos .btn-outline-secondary[type="button"]:hover {
    background: linear-gradient(135deg, #B3E52C 0%, #A3D51C 100%);
    color: #2E6C86;
    transform: none;
    box-shadow: none;
}

/* Texto de ajuda */
.comparar-investimentos .text-muted {
    color: #6c757d !important;
    font-size: 0.75rem;
    margin-top: 0.375rem;
    font-style: italic;
}

/* Seções de Filtros */
.comparar-investimentos .filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.comparar-investimentos .filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #C3F53C;
}

.comparar-investimentos .filter-section h5 {
    color: #2E6C86;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
}

/* Lista de Filtros */
.comparar-investimentos .filter-section .list-unstyled {
    margin: 0;
    padding: 0;
}

.comparar-investimentos .filter-section .list-unstyled li {
    margin-bottom: 0.375rem;
    padding: 0.375rem 0.5rem;
    border-radius: 5px;
    transition: all 0.2s ease;
    background: transparent;
}

.comparar-investimentos .filter-section .list-unstyled li:hover {
    background: rgba(46, 108, 134, 0.05);
    transform: translateX(2px);
}

.comparar-investimentos .filter-section .list-unstyled li.selected {
    background-color: rgba(195, 245, 60, 0.15);
    border-radius: 6px;
    border-left: 3px solid #C3F53C;
    transform: translateX(2px);
}

.comparar-investimentos .filter-section .list-unstyled li.selected:hover {
    background-color: rgba(195, 245, 60, 0.2);
}

.comparar-investimentos .filter-section .list-unstyled li:last-child {
    margin-bottom: 0;
}

/* Checkboxes Modernos */
.comparar-investimentos .filter-section input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    accent-color: #C3F53C;
}

.comparar-investimentos .filter-section input[type="checkbox"]:checked {
    border-color: #C3F53C;
    background-color: #C3F53C;
}

/* Links de Filtros */
.comparar-investimentos .filter-section .list-unstyled a {
    color: #495057;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.comparar-investimentos .filter-section .list-unstyled a:hover {
    color: #2E6C86;
    text-decoration: none;
}

/* Badges de Contagem */
.comparar-investimentos .filter-section .badge {
    background: linear-gradient(135deg, #C3F53C 0%, #B3E52C 100%);
    color: #2E6C86;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Botão Ver Mais */
.comparar-investimentos .show-more-btn {
    background: none;
    border: none;
    color: #2E6C86;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.comparar-investimentos .show-more-btn:hover {
    color: #1e4a5f;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Filtros Ativos */
.comparar-investimentos .active-filters {
    margin-bottom: 1rem;
}

.comparar-investimentos .active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #C3F53C 0%, #B3E52C 100%);
    color: #2E6C86;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin: 0.25rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(195, 245, 60, 0.2);
}

.comparar-investimentos .active-filter-tag:hover {
    background: linear-gradient(135deg, #B3E52C 0%, #A3D51C 100%);
    color: #2E6C86;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(195, 245, 60, 0.3);
}

.comparar-investimentos .active-filter-tag .remove-filter {
    background: rgba(46, 108, 134, 0.2);
    border: none;
    color: #2E6C86;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comparar-investimentos .active-filter-tag .remove-filter:hover {
    background: rgba(46, 108, 134, 0.3);
    transform: scale(1.1);
}

/* Botão Filtrar Mobile */
.comparar-investimentos .btn-apply-filters {
    background: linear-gradient(135deg, #C3F53C 0%, #B3E52C 100%);
    color: #2E6C86;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(195, 245, 60, 0.2);
    width: 100%;
    margin-top: 1rem;
    text-align: left;
}

.comparar-investimentos .btn-apply-filters:hover {
    background: linear-gradient(135deg, #B3E52C 0%, #A3D51C 100%);
    color: #2E6C86;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(195, 245, 60, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .comparar-investimentos .filter-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .comparar-investimentos .filter-section h5,
    .comparar-investimentos .filter-section h6 {
        font-size: 0.95rem;
    }
    
    .comparar-investimentos .input-group-text,
    .comparar-investimentos .form-control,
    .comparar-investimentos .btn-outline-secondary[type="button"] {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .comparar-investimentos .filter-section .list-unstyled li {
        padding: 0.375rem 0.5rem;
    }
    
    .comparar-investimentos .filter-section .list-unstyled a {
        font-size: 0.8125rem;
    }
}

/* ===========================================================
   TÍTULO DE RESULTADOS E ORDENAÇÃO MODERNOS
   ===========================================================
   Estilos para título discreto e ordenação aesthetic
----------------------------------------------------------- */

/* Título de Resultados Discreto */
.comparar-investimentos .results-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.comparar-investimentos .results-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.comparar-investimentos .results-title {
    color: #2E6C86;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.2px;
    flex: 1;
}

/* Container de Ordenação */
.comparar-investimentos .sorting-container {
    margin-bottom: 2rem;
}

.comparar-investimentos .sorting-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* Select de Ordenação Moderno - SOBRESCREVER BOOTSTRAP */
.comparar-investimentos .sorting-select-wrapper {
    position: relative;
    min-width: 200px;
    flex-shrink: 0;
}

.comparar-investimentos .sorting-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    background-image: none !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 8px !important;
    padding: 0.625rem 2.5rem 0.625rem 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: #495057 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
    min-width: 200px !important;
    background-repeat: no-repeat !important;
    background-position: right .75rem center !important;
    background-size: 16px 12px !important;
}

.comparar-investimentos .sorting-select:focus {
    outline: none !important;
    border-color: #C3F53C !important;
    box-shadow: 0 0 0 3px rgba(195, 245, 60, 0.1) !important;
    transform: translateY(-1px) !important;
    background-image: none !important;
}

.comparar-investimentos .sorting-select:hover {
    border-color: #adb5bd !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
    background-image: none !important;
}

/* Removida seta customizada - usando seta padrão do Bootstrap */

/* Opções do select */
.comparar-investimentos .sorting-select option {
    background: #ffffff !important;
    color: #495057 !important;
    padding: 0.5rem !important;
    font-size: 0.875rem !important;
}

.comparar-investimentos .sorting-select option:checked {
    background: linear-gradient(135deg, #C3F53C 0%, #B3E52C 100%) !important;
    color: #2E6C86 !important;
    font-weight: 600 !important;
}

.comparar-investimentos .sorting-select option:hover {
    background: #2E6C86 !important;
    color: #ffffff !important;
}

/* Opções do select com especificidade máxima */
.comparar-investimentos .sorting-select option {
    background: #ffffff !important;
    color: #495057 !important;
    padding: 0.5rem !important;
    font-size: 0.875rem !important;
}

.comparar-investimentos .sorting-select option:checked {
    background: linear-gradient(135deg, #C3F53C 0%, #B3E52C 100%) !important;
    color: #2E6C86 !important;
    font-weight: 600 !important;
}

.comparar-investimentos .sorting-select option:hover {
    background: #2E6C86 !important;
    color: #ffffff !important;
}

/* Botão Filtrar Mobile */
.comparar-investimentos .mobile-filter-container {
    margin-bottom: 1rem;
    text-align: center;
}

.comparar-investimentos .mobile-filter-toggle {
    background: linear-gradient(135deg, #C3F53C 0%, #B3E52C 100%);
    color: #2E6C86;
    border: none;
    border-radius: 8px;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(195, 245, 60, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.comparar-investimentos .mobile-filter-toggle:hover {
    background: linear-gradient(135deg, #B3E52C 0%, #A3D51C 100%);
    color: #2E6C86;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(195, 245, 60, 0.3);
}

.comparar-investimentos .mobile-filter-toggle i {
    font-size: 0.875rem;
}

/* Remover dropshadow do card branco */
.comparar-investimentos .filtros {
    box-shadow: none !important;
    background: transparent !important;
}

/* Responsividade para Ordenação */
@media (max-width: 768px) {
    .comparar-investimentos .results-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .comparar-investimentos .sorting-select-wrapper {
        min-width: auto;
    }
    
    .comparar-investimentos .sorting-select {
        min-width: auto;
        width: 100%;
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .comparar-investimentos .results-title {
        font-size: 1.125rem;
        text-align: center;
    }
    
    .comparar-investimentos .results-header {
        margin-bottom: 1.25rem;
        padding-bottom: 0.5rem;
    }
    
    .comparar-investimentos .sorting-container {
        margin-bottom: 1.5rem;
    }
    
    /* Botão filtrar no mobile */
    .comparar-investimentos .mobile-filter-footer {
        position: sticky;
        bottom: 0;
        background-color: #fff;
        padding: 15px 0;
        margin-top: 20px;
        border-top: 1px solid #e9ecef;
        text-align: center;
        display: block;
    }
    
    .comparar-investimentos .mobile-filter-footer .btn-apply-filters {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }
    

    
    /* Usar seta padrão do Bootstrap no mobile também */
    .comparar-investimentos .sorting-select {
        padding-right: 1rem !important;
    }
}

@media (max-width: 576px) {
    .comparar-investimentos .results-title {
        font-size: 1rem;
    }
    
    .comparar-investimentos .sorting-select {
        font-size: 0.8125rem;
        padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    }
    
    .comparar-investimentos .mobile-filter-toggle {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }
}

/* Ajustes específicos mobile para botões IR e OK */
@media (max-width: 768px) {
    /* Permitir quebra de linha do grupo para o botão ocupar 100% */
    .comparar-investimentos .input-group { flex-wrap: wrap; }

    /* Botões dentro dos inputs do mobile */
    #customAmountGoMobile,
    #netYieldMinGoMobile {
        background-color: #C0F239; /* mesma cor do botão Filtrar, conforme pedido */
        border-color: #C0F239;
        color: #2E6C86;
        font-weight: 700;
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
        line-height: 1.2;
        min-height: 44px; /* acessibilidade touch */
        border-radius: 8px;
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        margin-top: 8px; /* separação do campo acima */
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }

    #customAmountGoMobile:hover,
    #netYieldMinGoMobile:hover {
        background-color: #B6E635; /* leve escurecimento para hover */
        border-color: #B6E635;
        color: #2E6C86;
    }
}

/* ========================================
   BANNER DE LOGIN - COMPARAR INVESTIMENTOS
   ======================================== */

/* Garantir que o banner ocupe toda a largura sem quebrar o grid */
.row.row-cols-1.row-cols-md-3.g-4.mb-4 > .banner-full-width {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    /* Força quebra de linha no grid */
    flex-basis: 100% !important;
}

@media (min-width: 768px) {
    .row.row-cols-1.row-cols-md-3.g-4.mb-4 > .banner-full-width {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        flex-basis: 100% !important;
    }
}

.login-benefits-banner-compare {
    padding: 20px 0;
    margin: 20px 0;
    width: 100%;
}

.login-benefits-wrapper-compare {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-benefits-link-compare {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
}

.login-benefits-link-compare:hover {
    opacity: 0.9;
}

.login-benefits-link-compare:focus {
    outline: none;
    box-shadow: none;
}

.login-benefits-image-compare {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
    object-fit: contain;
    border: none;
    outline: none;
    box-shadow: none;
}

/* Desktop: mostrar banner-desktop2.png (970x150px) */
@media (min-width: 769px) {
    .login-benefits-desktop-compare {
        display: block;
        width: 970px;
        height: 150px;
        object-fit: contain;
        margin: 0 auto;
    }
    
    .login-benefits-mobile-compare {
        display: none;
    }
}

/* Mobile: mostrar banner-mobile.png */
@media (max-width: 768px) {
    .login-benefits-banner-compare {
        padding: 16px 0;
        margin: 16px 0;
    }
    
    .login-benefits-wrapper-compare {
        max-width: 100%;
        padding: 0;
    }
    
    .login-benefits-desktop-compare {
        display: none;
    }
    
    .login-benefits-mobile-compare {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
        aspect-ratio: 375 / 250; /* Mantém a proporção 1.5:1 */
    }
}

