/* style-index.css */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Definição de variáveis CSS para temas claro e escuro */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-color: #2c3e50;
    --text-color: #333;
    --light-bg: #f3f4f6;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --header-bg: #2563eb;
    --card-bg: #ffffff;
    --footer-bg: #2563eb;
    --footer-text: #ffffff;
    --dropdown-bg: #ffffff;
    --dropdown-text: #333;
    --overlay-bg: rgba(0, 0, 0, 0.5);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --hover-light: #ddd;
    --input-border: #ddd;
    --card-border: #e0e0e0;
}

.dark-mode {
    --primary-color: #60a5fa;
    --secondary-color: #2563eb;
    --dark-color: #e2e8f0;
    --text-color: #e2e8f0;
    --light-bg: #1f2937;
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --header-bg: #1e3a8a;
    --card-bg: #374151;
    --footer-bg: #1e3a8a;
    --footer-text: #e2e8f0;
    --dropdown-bg: #374151;
    --dropdown-text: #e2e8f0;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --shadow-color: rgba(255, 255, 255, 0.1);
    --hover-light: #94a3b8;
    --input-border: #4b5563;
    --card-border: #4b5563;
}

/* Ajuste para garantir que o footer fique na parte inferior */
html, body {
    height: 100%;
    margin: 0;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

/* Header Styles */
header {
    background: var(--header-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.filter-message a#advanced-search-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
}

.filter-message a#advanced-search-link:hover {
    color: #0056b3;
}

nav {
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: space-between; /* Logo à esquerda, nav-links à direita */
    padding: 0.8rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.category-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px; /* Ajuste conforme o design */
}

.category-search-input {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--card-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.category-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
    outline: none;
}

.category-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
}

.category-suggestions.active {
    display: block;
}

.category-suggestions div {
    padding: 10px 15px;
    font-size: 0.95rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.category-suggestions div:hover {
    background-color: var(--hover-light);
    color: var(--primary-color);
}

.dark-mode .category-suggestions {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.dark-mode .category-suggestions div:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .category-search-wrapper {
        max-width: 100%;
    }

    .category-search-input {
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .category-suggestions {
        max-height: 150px;
    }

    .category-suggestions div {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .category-search-input {
        font-size: 0.85rem;
        padding: 7px 10px;
    }

    .category-suggestions {
        max-height: 120px;
    }

    .category-suggestions div {
        font-size: 0.85rem;
        padding: 7px 10px;
    }
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Impede compressão excessiva */
    max-width: 150px; /* Limita a largura do contêiner da logo */
    margin: 0; /* Remove margens indesejadas */
    padding: 0; /* Remove padding extra */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem; /* Espaço entre botões */
    flex-shrink: 0; /* Evita compressão */
    flex-wrap: nowrap; /* Impede quebra de linha */
}

/* Ajuste dos Botões (Tema, GPS, Login, Perfil) */
.theme-toggle-btn,
.gps-btn,
.desktop-login-btn,
.mobile-login-btn,
.user-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}
/* Estilo do botão de notificações (sino) */
.notification-btn {
    background: none;
    border: none;
    color: var(--footer-text);
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
    padding: 0.5rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    color: var(--primary-color); /* #2563eb no claro, #60a5fa no escuro */
    transform: scale(1.1);
}

.notification-btn i {
    font-size: 1.2rem;
}

/* Estilo do contador de notificações não lidas */
.notification-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex; /* Sempre flex para garantir visibilidade */
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsividade */
@media (max-width: 768px) {
    .notification-btn {
        font-size: 1rem;
        padding: 0.4rem;
    }

    .notification-btn i {
        font-size: 1rem;
    }

    .notification-count {
        width: 14px;
        height: 14px;
        font-size: 0.6rem;
        top: -2px;
        right: -2px;
        display: flex; /* Força visibilidade */
    }
}

@media (max-width: 480px) {
    .notification-btn {
        font-size: 0.9rem;
        padding: 0.3rem;
    }

    .notification-btn i {
        font-size: 0.9rem;
    }

    .notification-count {
        width: 12px;
        height: 12px;
        font-size: 0.55rem;
        top: -3px;
        right: -3px;
        display: flex; /* Força visibilidade */
    }
}

@media (max-width: 180px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0.5rem;
    }

    .notification-btn {
        font-size: 0.8rem;
        padding: 0.2rem;
    }

    .notification-btn i {
        font-size: 0.8rem;
    }

    .notification-count {
        width: 10px;
        height: 10px;
        font-size: 0.5rem;
        top: -2px;
        right: -2px;
        display: flex; /* Força visibilidade */
    }

    .logo {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
}


.notification-icon .fa-whatsapp {
    color: #25D366;
}


/* Popup de Nova Notificação */
.new-notification-popup {
    position: fixed;
    bottom: 20px; /* Distância do fundo da tela */
    right: 20px; /* Distância da direita da tela */
    z-index: 1001; /* Acima de outros elementos */
    opacity: 0; /* Inicia invisível para animação */
    visibility: hidden; /* Escondido até ser ativado */
    cursor: pointer; /* Indica que é clicável */
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform: translateY(20px); /* Inicia ligeiramente abaixo */
}

.new-notification-popup:hover {
    transform: scale(1.02); /* Leve aumento ao passar o mouse */
    opacity: 0.95; /* Pequena mudança de opacidade */
}

.new-notification-popup.active {
    opacity: 1; /* Torna visível */
    visibility: visible; /* Mostra o popup */
    transform: translateY(0); /* Move para a posição final */
    transform: scale(0.98); /* Efeito de "pressionado" ao clicar */
}

.popup-content {
    background: var(--card-bg); /* Usa o fundo do cartão, adaptado ao tema */
    border-radius: 12px; /* Bordas arredondadas */
    border: 1px solid var(--card-border); /* Borda sutil adaptada ao tema */
    box-shadow: 0 8px 20px var(--shadow-color); /* Sombra adaptada ao tema */
    padding: 15px 20px; /* Espaçamento interno */
    display: flex;
    align-items: center;
    gap: 15px; /* Espaço entre ícone e mensagem */
    max-width: 350px; /* Largura máxima */
    min-width: 250px; /* Largura mínima */
    color: var(--text-color); /* Cor do texto adaptada ao tema */
}

.popup-icon {
    font-size: 24px; /* Tamanho do ícone */
    animation: ring 1.5s ease-in-out infinite; /* Animação de "sino tocando" */
}

.popup-icon i {
    color: var(--primary-color); /* Cor do ícone usa a cor primária do tema */
}

/* Animação do sino */
@keyframes ring {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-15deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-10deg); }
    50% { transform: rotate(5deg); }
    60% { transform: rotate(-5deg); }
    70% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

.popup-message {
    flex: 1; /* Ocupa o espaço restante */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-message p {
    margin: 0;
    font-size: 1rem; /* Tamanho da fonte */
    font-weight: 500; /* Peso da fonte */
    line-height: 1.4; /* Altura da linha */
}

.popup-close-btn {
    background: var(--input-border); /* Fundo adaptado ao tema */
    border: none;
    border-radius: 50%; /* Botão circular */
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease; /* Transições suaves */
}

.popup-close-btn i {
    color: var(--text-color); /* Cor do ícone de fechar adaptada ao tema */
    font-size: 14px; /* Tamanho do ícone */
}

.popup-close-btn:hover {
    background: #ff4444; /* Vermelho ao passar o mouse (fixo para destaque) */
    transform: rotate(90deg); /* Rotação ao hover */
}

.popup-close-btn:hover i {
    color: #fff; /* Ícone branco ao passar o mouse */
}

/* Responsividade */
@media (max-width: 768px) {
    .new-notification-popup {
        bottom: 10px;
        right: 10px;
        max-width: 90%; /* Adapta à tela pequena */
    }

    .popup-content {
        padding: 10px 15px;
        max-width: 300px;
    }

    .popup-icon {
        font-size: 20px;
    }

    .popup-message p {
        font-size: 0.9rem;
    }

    .popup-close-btn {
        width: 20px;
        height: 20px;
    }

    .popup-close-btn i {
        font-size: 12px;
    }
}

/* Estilo do Modal de Notificações */
.notification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 40, 0.85); /* Fundo escuro com transparência */
    z-index: 1002;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-modal.active {
    display: flex;
    opacity: 1;
}

.notification-modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 10px 30px var(--shadow-color);
    overflow: hidden;
    position: relative;
    animation: slideIn 0.4s ease-out;
}

.notification-modal-header {
    background: linear-gradient(135deg, #2563eb, #4cc9f0); /* Gradiente consistente com o tema */
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--footer-text);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-modal-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notification-modal-close {
    background: none;
    border: none;
    color: var(--footer-text);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 0.5rem;
}

.notification-modal-close:hover {
    color: #ff4444;
    transform: scale(1.1);
}

.notification-modal-body {
    padding: 1rem;
    max-height: 60vh;
    overflow-y: auto; /* Rolagem suave */
    scrollbar-width: thin; /* Para Firefox */
    scrollbar-color: var(--primary-color) var(--card-bg);
}

.notification-modal-body::-webkit-scrollbar {
    width: 8px;
}

.notification-modal-body::-webkit-scrollbar-track {
    background: var(--card-bg);
}

.notification-modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s ease;
}

.notification-item.nao-lida {
    background: rgba(37, 99, 235, 0.1); /* Fundo leve para não lidas */
    font-weight: 500;
}

.notification-item.lida {
    opacity: 0.8;
}

.notification-item:hover {
    background: var(--hover-light);
}

.notification-icon {
    flex: 0 0 40px;
    text-align: center;
}

.notification-icon i {
    font-size: 1.2rem;
    color: #ff4444; /* Cor do coração */
}

.notification-content {
    flex: 1;
    margin-left: 1rem;
}

.notification-message {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-time {
    display: block;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-top: 0.3rem;
}

.notification-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-color);
}

.notification-empty i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.notification-empty p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .notification-modal-content {
        width: 90%;
        max-width: 400px;
    }

    .notification-modal-header {
        padding: 1rem;
    }

    .notification-modal-header h2 {
        font-size: 1.4rem;
    }

    .notification-item {
        padding: 0.8rem;
    }

    .notification-icon {
        flex: 0 0 30px;
    }

    .notification-icon i {
        font-size: 1rem;
    }

    .notification-message {
        font-size: 0.95rem;
    }

    .notification-time {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .notification-modal-content {
        width: 95%;
        max-width: 320px;
    }

    .notification-modal-header h2 {
        font-size: 1.2rem;
    }

    .notification-modal-close {
        font-size: 1rem;
    }

    .notification-item {
        padding: 0.6rem;
    }

    .notification-icon {
        flex: 0 0 25px;
    }

    .notification-message {
        font-size: 0.9rem;
    }

    .notification-time {
        font-size: 0.75rem;
    }

    .notification-empty i {
        font-size: 1.5rem;
    }

    .notification-empty p {
        font-size: 1rem;
    }
}

.nav-links a {
    color: var(--footer-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--hover-light);
}

/* Estilo comum compartilhado */
.desktop-login-btn, .mobile-login-btn {
    color: var(--footer-text) !important;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* Estilo do botão de login para desktop */
.desktop-login-btn {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    display: inline-block; /* Visível por padrão no desktop */
}

.desktop-login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
}

.dark-mode .desktop-login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark-mode .desktop-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.3);
}

/* Estilo do botão de login para mobile */
.mobile-login-btn {
    display: none; /* Escondido por padrão no desktop */
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-login-btn i {
    font-size: 1rem;
    color: var(--footer-text);
}

.mobile-login-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2);
}

.dark-mode .mobile-login-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark-mode .mobile-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.3);
}

.mobile-login-btn::after {
    content: "Login/Registro";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dropdown-bg);
    color: var(--dropdown-text);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px var(--shadow-color);
}

.mobile-login-btn:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Media queries para alternar visibilidade */
@media (max-width: 768px) {
    .desktop-login-btn {
        display: none; /* Esconde o botão de desktop no mobile */
    }

    .mobile-login-btn {
        display: flex; /* Mostra o botão de mobile */
    }
}

@media (min-width: 769px) {
    .mobile-login-btn {
        display: none; /* Garante que o botão mobile não apareça no desktop */
    }

    .desktop-login-btn {
        display: inline-block; /* Garante que o botão desktop esteja visível */
    }
}

@media (max-width: 480px) {
    .mobile-login-btn {
        width: 28px;
        height: 28px;
    }

    .mobile-login-btn i {
        font-size: 0.9rem;
    }

    .mobile-login-btn::after {
        font-size: 0.65rem;
    }
}

.mobile-menu-btn {
    display: none; /* Removido completamente */
}


.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--footer-text);
    position: relative;
    white-space: nowrap;
}

.user-profile a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--footer-text);
    text-decoration: none;
    overflow: hidden;
}


.user-profile .avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: var(--footer-text);
    text-transform: uppercase;
    flex-shrink: 0;
}

.user-profile .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-profile span {
    font-size: 0.95rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-toggle {
    color: var(--footer-text);
    font-size: 14px;
    padding: 5px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: var(--hover-light);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dropdown-bg);
    border-radius: 5px;
    box-shadow: 0 2px 5px var(--shadow-color);
    min-width: 150px;
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: var(--dropdown-text) !important;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--hover-light);
}

/* Media queries para responsividade do header */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 1rem;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.3rem;
        flex-grow: 1;
    }

    .nav-links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        position: static;
        height: auto;
        background-color: transparent;
        padding: 0;
    }

    .nav-links a,
    .nav-links .login-btn,
    .nav-links .theme-toggle-btn {
        font-size: 0.9rem;
        padding: 0.3rem 0.6rem;
    }

    .nav-links .login-btn {
        background: rgba(255, 255, 255, 0.15);
        color: var(--footer-text) !important;
        border-radius: 5px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-links .login-btn:hover {
        background: rgba(255, 255, 255, 0.25);
    }

    .dark-mode .nav-links .login-btn {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff !important;
    }

    .dark-mode .nav-links .login-btn:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .nav-links .theme-toggle-btn {
        background: none;
        border: none;
        padding: 0.3rem;
        color: var(--footer-text);
    }

    .user-profile {
        margin: 0;
        padding: 0;
    }

    .user-profile .avatar {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .user-profile span {
        display: none; /* Esconde o nome em mobile para economizar espaço */
    }

    .dropdown-menu {
        position: absolute;
        top: 100%;
        right: 0;
        width: 150px;
        margin-top: 0.3rem;
    }

    .mobile-login-btn {
        display: none; /* Já está no nav-links, não precisa separado */
    }

    .mobile-login-message {
        display: none; /* Não necessário mais */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a,
    .nav-links .login-btn,
    .nav-links .theme-toggle-btn {
        font-size: 0.85rem;
        padding: 0.2rem 0.5rem;
    }

    .user-profile .avatar {
        width: 28px;
        height: 28px;
    }

    .dropdown-menu {
        min-width: 130px;
    }

    .dropdown-menu a {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

/* Search Section */
.search-section {
    padding: 4rem 1rem 2rem;
    background: var(--card-bg);
}

.search-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.search-title {
    display: inline-block; /* Para desktop */
    white-space: nowrap; /* Impede quebra em desktop */
    font-size: 2.5rem; /* Tamanho do texto */
    opacity: 1 !important; /* Evita conflitos com fade */
    margin-bottom: 2rem; /* Espaçamento abaixo do título */
    border-right: none !important; /* Remove qualquer cursor estático */
}
/* Animação do cursor piscante */
@keyframes blinkCursor {
    0%, 100% { border-right-color: var(--text-color); }
    50% { border-right-color: transparent; }
}

/* Garantir que não haja conflitos com animações de fade */
.search-title {
    opacity: 1 !important; /* Evita conflitos com fade */
    animation: none !important; /* Remove outras animações */
}

.search-form {
    display: flex;
    gap: 0.75rem; /* Reduzido de 1rem para economizar espaço */
    flex-wrap: wrap; /* Permite quebra em telas menores */
    width: 100%;
    align-items: center;
    justify-content: center; /* Centraliza os elementos */
    padding: 0 0.5rem;
}
/* Limitar a expansão do input e selects */
.search-wrapper {
    position: relative;
    flex: 0 1 250px; /* Largura fixa base de 250px, sem crescer além disso */
    min-width: 150px; /* Mínimo para telas pequenas */
    max-width: 250px; /* Limite máximo para evitar expansão */
}

.search-input {
    width: 100%;
    padding: 0.8rem 1rem; /* Reduzido de 0.9rem para consistência */
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 0.95rem; /* Reduzido de 1rem */
    color: var(--text-color);
    background-color: var(--card-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.search-input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.search-input::placeholder {
    color: #666;
    opacity: 1;
}

.dark-mode .search-input::placeholder {
    color: #999;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 10px var(--shadow-color);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 0.5rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.suggestion-item:hover {
    background-color: var(--hover-light);
}

.suggestion-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.suggestion-info {
    display: flex;
    flex-direction: column;
}

.suggestion-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-color);
}

.suggestion-username {
    font-size: 0.8rem;
    color: var(--text-color);
}

.filter-select {
    flex: 0 1 150px; /* Largura fixa base de 150px */
    min-width: 120px; /* Mínimo para telas pequenas */
    max-width: 150px; /* Limite máximo */
    padding: 0.8rem 1.5rem 0.8rem 0.8rem; /* Ajustado para consistência */
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    background-color: var(--card-bg);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
}
.dark-mode .filter-select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23e2e8f0" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
}

.filter-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* Garantir que o botão tenha largura fixa e não seja empurrado */
.search-btn {
    padding: 0.8rem 1rem;
    background-color: var(--primary-color);
    color: var(--footer-text);
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 100px;
    min-width: 80px;
    max-width: 100px;
    height: 40px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
    flex-shrink: 0; /* Impede que o botão encolha */
    white-space: nowrap; /* Evita quebra de texto */
    display: flex; /* Adicionado para centralização */
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
}

.search-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 64, 175, 0.3);
}

/* Providers Section */
.providers-section {
    padding: 2rem 1rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.filter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 90%;
}

.filter-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    flex-shrink: 0;
}

.sort-select {
    min-width: 180px;
    padding: 0.8rem 2rem 0.8rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
    flex-grow: 0;
}

.dark-mode .sort-select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23e2e8f0" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
}

.sort-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.providers-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

/* Results Text */
.results-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: 0 4px 10px var(--shadow-color);
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    max-width: 90%;
    margin: 0 auto 1.5rem;
    animation: slideIn 0.5s ease-out;
}

.results-text i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.results-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilo do provider-card */

.provider-card {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color), 0 0 0 1px var(--card-border);
    padding: 1.5rem 2rem;
    width: 100%;
    max-width: 90%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    overflow: visible; /* Mantido para permitir que elementos absolutos sejam visíveis */
    min-height: 120px; /* Altura mínima para evitar colapso em mobile */
}

.provider-card-inner {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden; /* Mantém o overflow apenas no conteúdo interno */
}

.provider-card:hover {
    box-shadow: 0 6px 20px var(--shadow-color), 0 0 0 2px var(--primary-color);
    transform: translateY(-5px);
}

/* Estilo da imagem do provedor */
.provider-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 1.5rem;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--card-bg); /* Garante fundo sólido para o fallback */
}

.provider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Substitui background-size: cover */
    border-radius: 50%;
}

.provider-image span {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem; /* Tamanho da inicial ajustado */
    font-weight: bold;
    color: #ffffff; /* Cor padrão do texto para contraste com fundo gerado */
    text-transform: uppercase;
}

/* Ajustes para modo escuro */
.dark-mode .provider-image {
    background-color: var(--card-bg); /* Mantém consistência no tema escuro */
}

.dark-mode .provider-image span {
    color: #ffffff; /* Garante legibilidade no modo escuro */
}

.provider-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0.5rem;
    min-width: 0;
}

.provider-company {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.provider-category {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

.provider-location {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.provider-location i {
    font-size: 0.9rem;
}

.provider-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--warning-color);
    font-size: 0.8rem;
}

.provider-rating i {
    font-size: 0.9rem;
}

.view-details-btn {
    padding: 0.5rem 1.2rem;
    background-color: var(--primary-color);
    color: var(--footer-text);
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.view-details-btn:hover {
    background-color: var(--secondary-color);
    transform: scale(1.05);
}

/* Atualize o .user-company-label */
.user-company-label {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    position: absolute; /* Posicionamento absoluto em relação ao .provider-card-inner */
    bottom: 10px; /* Canto inferior */
    right: 10px;  /* Canto direito */
    z-index: 10;  /* Garante que fique acima de outros elementos */
}


/* Estilo para o emblema "Empresa Nova" com ícone */
.new-company-wrapper {
    position: absolute;
    top: 10px;
    right: 10px; /* Canto superior direito */
    z-index: 20;
}

.new-company-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #28a745; /* Verde para indicar "novo" */
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    padding: 0;
    position: relative;
    transition: transform 0.3s ease;
    animation: pulse 1.5s infinite ease-in-out;
}

.new-company-label i {
    font-size: 0.9rem;
    color: #ffffff;
}

.new-company-label:hover {
    transform: scale(1.1);
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .new-company-wrapper {
        top: 8px;
        right: 8px;
    }

    .new-company-label {
        width: 20px;
        height: 20px;
    }

    .new-company-label i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .new-company-wrapper {
        top: 6px;
        right: 6px;
    }

    .new-company-label {
        width: 18px;
        height: 18px;
    }

    .new-company-label i {
        font-size: 0.7rem;
    }
}

/* Animação de pulso */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Ajustes para mobile */
@media (max-width: 768px) {
    .new-company-wrapper {
        top: 5px; /* Reduzido para ficar mais dentro do card */
        left: 5px;
    }

    .new-company-label {
        width: 18px; /* Menor tamanho para caber melhor */
        height: 18px;
    }

    .new-company-label i {
        font-size: 0.7rem; /* Ícone proporcional */
    }

    /* Ajustar o tooltip */
    .new-company-label::after {
        font-size: 0.6rem;
        padding: 3px 6px;
        white-space: normal; /* Permite quebra de linha */
        max-width: 70px; /* Largura máxima ajustada */
        text-align: center;
        bottom: 100%; /* Mantido acima */
        margin-bottom: 4px;
    }
}

@media (max-width: 480px) {
    .new-company-wrapper {
        top: 4px; /* Ainda mais próximo da borda superior */
        left: 4px;
    }

    .new-company-label {
        width: 16px; /* Tamanho mínimo viável */
        height: 16px;
    }

    .new-company-label i {
        font-size: 0.6rem;
    }

    .new-company-label::after {
        font-size: 0.55rem;
        padding: 2px 5px;
        max-width: 60px; /* Ainda mais restrito */
        line-height: 1.2; /* Melhora a legibilidade com quebra */
    }

    .provider-card {
        padding: 1rem; /* Garante espaço interno suficiente */
    }
}

/* Filter Message */
.filter-message {
    text-align: center;
    color: var(--dark-color);
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-color);
    max-width: 90%;
    margin: 2rem auto;
    position: relative;
    z-index: 1;
}

.filter-message i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.filter-message h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.filter-message p {
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 80%;
    margin: 0 auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: var(--footer-text);
    transform: scale(1.05);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    color: var(--footer-text);
    border-color: var(--primary-color);
    cursor: default;
    transform: scale(1.05);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: var(--text-color);
}

/* Responsive Design Improvements */
@media (max-width: 768px) {
    .search-section {
        padding: 3rem 0.5rem 1.5rem;
    }

    .search-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
        gap: 0.6rem;
        padding: 0 0.5rem;
    }

    .search-wrapper {
        grid-column: 1 / -1; /* Ocupa linha inteira */
        flex: 0 1 100%;
        max-width: 100%;
    }

    .search-btn {
        grid-column: 1 / -1; /* Ocupa linha inteira */
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0.7rem;
        height: 38px;
        font-size: 0.85rem;
    }

    .filter-select {
        flex: 0 1 100%;
        max-width: 100%;
        padding: 0.7rem 1.5rem 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .search-title {
        display: block; /* Permite quebra de linha */
        white-space: normal; /* Permite quebra de linha */
        overflow-wrap: break-word; /* Garante que palavras longas quebrem */
        text-align: center; /* Centraliza texto multilinha */
        font-size: 1.8rem; /* Tamanho reduzido */
        margin-bottom: 1.5rem; /* Espaçamento ajustado */
        max-width: 90%; /* Limita largura */
        margin-left: auto;
        margin-right: auto;
        overflow: visible; /* Permite texto quebrado */
    }

    .typing-span {
        white-space: nowrap; /* Mantém animação em uma linha durante digitação */
        display: inline; /* Ajusta para texto multilinha */
    }

    .filter-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .sort-select {
        width: 100%;
        min-width: 0;
    }

    .results-text {
        font-size: 1.1rem;
        padding: 0.8rem 1rem;
        margin-bottom: 1rem;
    }

    .results-text i {
        font-size: 1.3rem;
    }

    .provider-card {
        flex-direction: row;
        padding: 1rem;
        max-width: 100%;
    }

    .provider-image {
        width: 60px;
        height: 60px;
        margin-right: 1rem;
    }

    .provider-image span {
        font-size: 1.5rem; /* Reduz tamanho da inicial */
    }

    .provider-company {
        font-size: 1.1rem;
        max-width: 180px;
    }
    

    .provider-category {
        font-size: 0.85rem;
        max-width: 180px;
    }

    .provider-location {
        font-size: 0.75rem;
        max-width: 180px;
    }

    .provider-rating {
        font-size: 0.75rem;
    }

    .provider-rating i {
        font-size: 0.8rem;
    }

    .view-details-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }

    /* Ajustes para "Sua Empresa" e "Empresa Nova" no mobile */
    .user-company-wrapper {
        bottom: 8px;
        right: 8px;
    }

    .user-company-label {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .new-company-wrapper {
        top: 8px;
        left: 8px;
    }

    .new-company-label {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .new-company-label i {
        margin-right: 3px;
        font-size: 0.7rem;
    }

    .filter-message {
        padding: 1.5rem;
        margin: 1.5rem auto;
    }

    .filter-message h2 {
        font-size: 1.5rem;
    }

    .filter-message p {
        font-size: 1rem;
    }

    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .search-section {
        padding: 2rem 0.5rem 1rem;
    }

    .search-form {
        grid-template-columns: 1fr; /* 1 coluna em celulares */
        gap: 0.5rem;
    }

    .search-wrapper {
        flex: 0 1 100%;
        max-width: 100%;
        min-width: 0;
    }

    .search-title {
        font-size: 1.4rem; /* Tamanho ainda menor para telas pequenas */
        margin-bottom: 1rem;
        max-width: 95%; /* Ajuste para telas muito pequenas */
    }

    .search-input,
    .filter-select,
    .search-btn {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .filter-select {
        flex: 0 1 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.6rem 1.5rem 0.6rem 0.8rem;
        font-size: 0.85rem;
    }

    .search-btn {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0.6rem;
        height: 36px;
        font-size: 0.8rem;
    }

    .providers-section {
        padding: 1.5rem 0.5rem 3rem;
    }

    .results-text {
        font-size: 1rem;
        padding: 0.6rem 1rem;
        margin-bottom: 0.8rem;
    }

    .results-text i {
        font-size: 1.2rem;
    }

    .provider-card {
        padding: 0.8rem;
    }

    .provider-image {
        width: 50px;
        height: 50px;
        margin-right: 0.8rem;
    }

    .provider-image span {
        font-size: 1.2rem; /* Reduz ainda mais em telas pequenas */
    }
    
    .provider-company {
        font-size: 1rem;
        max-width: 140px;
    }

    .provider-category,
    .provider-location,
    .provider-rating {
        font-size: 0.7rem;
        max-width: 140px;
    }

    .view-details-btn {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }

    /* Ajustes para "Sua Empresa" e "Empresa Nova" em telas muito pequenas */
    .user-company-wrapper {
        bottom: 6px;
        right: 6px;
    }

    .user-company-label {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .new-company-wrapper {
        top: 6px;
        left: 6px;
    }

    .new-company-label {
        font-size: 0.55rem;
        padding: 2px 6px;
    }

    .new-company-label i {
        margin-right: 2px;
        font-size: 0.6rem;
    }

    .filter-message {
        padding: 1rem;
        margin: 1rem auto;
        max-width: 95%;
    }

    .filter-message i {
        font-size: 2rem;
    }

    .filter-message h2 {
        font-size: 1.2rem;
    }

    .filter-message p {
        font-size: 0.9rem;
        max-width: 90%;
    }

    .pagination-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 3rem 5% 0;
    flex-shrink: 0;
    width: 100%;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--footer-text);
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo i {
    margin-right: 0.5rem;
}

.footer-description {
    margin-bottom: 1.5rem;
    color: var(--footer-text);
    line-height: 1.6;
    font-size: 1rem;
}

.social-media {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--footer-text);
    transition: background-color 0.3s;
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--primary-color);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: var(--footer-text);
    text-align: center; /* Centraliza o texto do título */
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%; /* Posiciona o início da linha no centro */
    transform: translateX(-50%); /* Centraliza a linha em relação ao título */
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza os itens horizontalmente */
    justify-content: space-between; /* Distribui os itens de forma justificada verticalmente */
    min-height: 120px; /* Altura mínima para garantir espaçamento visível */
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--hover-light);
}

.contact-info {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza os itens horizontalmente */
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--footer-text);
    font-size: 0.95rem;
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--footer-text);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1200px;
    margin: 0 auto;
    color: var(--footer-text);
    font-size: 0.9rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section {
        margin-bottom: 1.5rem;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-media {
        justify-content: center;
    }

    .footer-links,
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-links {
        justify-content: space-between; /* Mantém o justify no mobile */
        min-height: 120px; /* Altura mínima para espaçamento */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        font-size: 1.3rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-title {
        font-size: 1.1rem;
    }

    .contact-info li {
        font-size: 0.85rem;
    }

    .footer-links {
        min-height: 100px; /* Reduz a altura mínima no mobile pequeno */
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border: none;
    color: var(--footer-text);
    font-size: 0.85rem; /* Reduzido de 1rem */
    padding: 0.3rem 0.7rem; /* Reduzido de 0.5rem 1rem */
    border-radius: 16px; /* Ajustado para um tamanho menor */
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px var(--shadow-color); /* Sombra reduzida */
}

.theme-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition: left 0.3s ease;
}

.theme-toggle-btn:hover::before {
    left: 0;
}

.theme-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Sombra reduzida no hover */
}

.theme-toggle-btn i {
    font-size: 1rem; /* Reduzido de 1.2rem */
}

.theme-toggle-btn .theme-label {
    font-size: 0.75rem; /* Reduzido de 0.9rem */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px; /* Ajustado para melhor legibilidade */
}

.dark-mode .theme-toggle-btn {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(255, 255, 255, 0.1); /* Sombra reduzida */
}

.dark-mode .theme-toggle-btn:hover {
    box-shadow: 0 2px 6px rgba(255, 255, 255, 0.2); /* Sombra reduzida no hover */
}

@media (max-width: 768px) {
    .nav-links .theme-toggle-btn {
        padding: 0.25rem 0.6rem; /* Reduzido ainda mais */
        font-size: 0.8rem; /* Reduzido de 0.9rem */
    }

    .theme-toggle-btn i {
        font-size: 0.9rem; /* Reduzido de 1.1rem */
    }

    .theme-toggle-btn .theme-label {
        font-size: 0.7rem; /* Reduzido de 0.8rem */
    }
}

@media (max-width: 480px) {
    .nav-links .theme-toggle-btn {
        padding: 0.2rem 0.5rem; /* Reduzido ainda mais */
    }

    .theme-toggle-btn i {
        font-size: 0.85rem; /* Reduzido de 1rem */
    }

    .theme-toggle-btn .theme-label {
        font-size: 0.65rem; /* Reduzido de 0.75rem */
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-bg);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow-color);
    max-width: 480px;
    width: 90%;
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 1.5rem;
    position: relative;
    color: var(--footer-text);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--footer-text);
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: var(--hover-light);
    transform: translateY(-50%) scale(1.1);
}

.modal-body {
    padding: 2rem;
    text-align: center;
}

.modal-body p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    font-weight: 400;
}

.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--footer-text);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.modal-btn:hover::before {
    left: 0;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-btn.provider {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.modal-btn.seeker {
    background: linear-gradient(90deg, var(--success-color), #16a34a);
}

.modal-btn i {
    font-size: 1.2rem;
}

/* Animação de entrada do modal */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade do Modal */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .modal-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }

    .modal-btn i {
        font-size: 1rem;
    }
}

/* Estilos do Modal de Pagamento */
.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.payment-modal.active {
    display: flex;
    opacity: 1;
}

.payment-modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    width: 800px;
    height: auto;
    max-height: 90vh;
    padding: 40px;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: slideIn 0.4s ease forwards;
}

.payment-modal-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 25px;
}

.payment-modal-header h2 {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin: 0;
    font-weight: 600;
}

.payment-modal-header p {
    color: var(--text-color);
    font-size: 1.2rem;
    margin: 10px 0 0;
    line-height: 1.5;
}

.payment-modal-body {
    display: flex;
    margin-bottom: 30px;
    gap: 30px;
}

.plan-info {
    flex: 0 0 300px;
}

.plan-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.plan-card h3 {
    margin: 0 0 15px;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.plan-card .price {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin: 0 0 20px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.plan-card .price span {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 400;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.plan-card ul li {
    margin: 12px 0;
    padding-left: 30px;
    position: relative;
}

.plan-card ul li::before {
    content: "✅";
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.payment-container {
    flex: 1;
    min-height: 400px;
}

#payment-brick-container {
    width: 100%;
    min-height: 400px;
}

.payment-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-modal-close:hover {
    color: var(--primary-color);
    background: var(--hover-light);
}

.benefits-section {
    margin-top: 20px;
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
}

.benefits-section h4 {
    margin: 0 0 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Estilo da Animação de Carregamento */
.success-loading {
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s ease-in;
}

.success-loading .spinner {
    width: 60px;
    height: 60px;
    border: 6px solid var(--light-bg);
    border-top: 6px solid var(--success-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.favorite-btn {
    position: absolute;
    top: 10px; /* Usando px para maior controle */
    left: 10px; /* Usando px para consistência */
    background: none;
    border: none;
    font-size: 1.2rem; /* Tamanho base para desktop */
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease; /* Adicionado transform para interação */
    z-index: 15; /* Garante que fique acima de outros elementos */
    padding: 5px; /* Pequeno padding para facilitar o clique */
}

.favorite-btn .fa-heart.favorited {
    color: #ff4444;
}

.favorite-btn:hover .fa-heart {
    color: #ff6666;
    transform: scale(1.1); /* Efeito sutil ao passar o mouse */
}

/* Para tablets (max-width: 768px) */
@media (max-width: 768px) {
    .favorite-btn {
        top: 8px; /* Reduzido para se ajustar ao padding menor do card */
        left: 8px;
        font-size: 1rem; /* Tamanho reduzido para mobile */
        padding: 4px;
    }

    .provider-card {
        padding: 1rem; /* Já está assim, garantindo espaço */
        position: relative; /* Confirma que o pai suporta position: absolute */
        overflow: visible; /* Evita corte do botão */
    }
}

/* Para celulares menores (max-width: 480px) */
@media (max-width: 480px) {
    .favorite-btn {
        top: 6px; /* Ainda mais próximo da borda */
        left: 6px;
        font-size: 0.9rem; /* Tamanho otimizado para telas pequenas */
        padding: 3px;
    }

    .provider-card {
        padding: 0.8rem; /* Já está assim, mantendo consistência */
        overflow: visible; /* Garante visibilidade */
    }
}

/* Estilo do botão GPS no cabeçalho */
.gps-btn {
    background: none;
    border: none;
    color: var(--footer-text);
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

.gps-btn:hover {
    color: var(--hover-light);
    background-color: rgba(255, 255, 255, 0.1);
}

.gps-btn.active {
    color: white; /* Cor quando o GPS está ativo no modo claro */
}

.dark-mode .gps-btn.active {
    color: #60a5fa; /* Cor quando o GPS está ativo no modo escuro */
}

.gps-btn i {
    font-size: 16px;
}

.gps-text {
    display: inline; /* Visível por padrão em desktop */
}

/* Responsividade */
@media (max-width: 768px) {
    .gps-btn {
        padding: 6px;
    }

    .gps-text {
        display: none; /* Esconde o texto em mobile para economizar espaço */
    }

    .gps-btn i {
        font-size: 18px; /* Ícone maior em mobile para facilitar toque */
    }
}

@media (max-width: 480px) {
    .gps-btn {
        padding: 5px;
    }

    .gps-btn i {
        font-size: 16px;
    }
}

.provider-distance {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0;
}
.provider-distance i {
    color: #2563eb;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-loading p {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    animation: pulseText 1.5s infinite;
}

@keyframes pulseText {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Estilo da Mensagem de Sucesso Melhorada */
.success-message {
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 8px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.8s ease-out;
}

.clear-filters-btn {
    padding: 0.8rem 1rem; /* Igual ao search-btn */
    background-color: #ef4444; /* Vermelho base, ajustado para o tema */
    color: var(--footer-text); /* Igual ao search-btn */
    border: none; /* Igual ao search-btn */
    border-radius: 8px; /* Igual ao search-btn */
    font-size: 0.9rem; /* Igual ao search-btn */
    font-weight: 600; /* Igual ao search-btn */
    cursor: pointer;
    flex: 0 0 100px; /* Igual ao search-btn */
    min-width: 80px; /* Igual ao search-btn */
    max-width: 100px; /* Igual ao search-btn */
    height: 40px; /* Igual ao search-btn */
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Igual ao search-btn */
    box-shadow: 0 2px 4px var(--shadow-color); /* Igual ao search-btn */
    flex-shrink: 0; /* Igual ao search-btn */
    white-space: nowrap; /* Igual ao search-btn */
    display: flex; /* Igual ao search-btn */
    align-items: center; /* Igual ao search-btn */
    justify-content: center; /* Igual ao search-btn */
}

.clear-filters-btn:hover {
    background-color: #dc2626; /* Tom mais escuro de vermelho, consistente com secondary-color do search-btn */
    transform: translateY(-2px); /* Igual ao search-btn */
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3); /* Efeito similar ao search-btn, com tom vermelho */
}

.clear-filters-btn:active {
    transform: scale(0.95); /* Mantido para feedback de clique */
}

/* Responsividade */
@media (max-width: 768px) {
    .clear-filters-btn {
        padding: 0.7rem 1rem; /* Ajustado como search-btn */
        font-size: 0.85rem; /* Igual ao search-btn */
        height: 38px; /* Igual ao search-btn */
        flex: 0 0 100%; /* Ocupa linha inteira como search-btn */
        max-width: 100%; /* Igual ao search-btn */
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .clear-filters-btn {
        padding: 0.6rem; /* Igual ao search-btn */
        font-size: 0.8rem; /* Igual ao search-btn */
        height: 36px; /* Igual ao search-btn */
        flex: 0 0 100%; /* Igual ao search-btn */
        max-width: 100%; /* Igual ao search-btn */
    }
}

.success-message::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0) 70%);
    animation: successGlow 4s infinite;
}

@keyframes successGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.success-message i {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
    animation: bounceIn 1s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); }
}

.success-message h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin: 0 0 15px;
    font-weight: 700;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.success-message p {
    font-size: 1.3rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.5;
    animation: fadeInUp 1s ease-out 1s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade do Modal de Pagamento */
@media (max-width: 900px) {
    .payment-modal-content {
        width: 90%;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .payment-modal-body {
        flex-direction: column;
    }
    .plan-info {
        flex: auto;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    .payment-modal-header h2 {
        font-size: 1.8rem;
    }
    .payment-modal-header p {
        font-size: 1.1rem;
    }
    .success-message i {
        font-size: 3.5rem;
    }
    .success-message h3 {
        font-size: 1.8rem;
    }
    .success-message p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .payment-modal-content {
        width: 95%;
        padding: 20px;
    }
    .payment-modal-header h2 {
        font-size: 1.6rem;
    }
    .payment-modal-header p {
        font-size: 1rem;
    }
    .plan-card {
        padding: 20px;
    }
    .plan-card h3 {
        font-size: 1.5rem;
    }
    .plan-card .price {
        font-size: 2rem;
    }
    .plan-card ul {
        font-size: 1rem;
    }
    .success-loading .spinner {
        width: 50px;
        height: 50px;
    }
    .success-loading p {
        font-size: 1rem;
    }
    .success-message {
        padding: 30px;
    }
    .success-message i {
        font-size: 3rem;
    }
    .success-message h3 {
        font-size: 1.5rem;
    }
    .success-message p {
        font-size: 1rem;
    }
}

/* Estilos para o Pagamento Pix */
.pix-pending {
    padding: 30px;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-color);
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.pix-pending::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 70%);
    animation: pixGlow 5s infinite ease-in-out;
}

/* Modal de Carregamento */
.loading-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.9));
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px var(--shadow-color), inset 0 1px 3px rgba(255, 255, 255, 0.5);
    position: fixed; /* Alterado de relative para fixed */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1005; /* Garantir que fique acima de outros elementos */
    overflow: hidden;
    min-width: 300px;
    animation: fadeIn 0.5s ease-out;
}

/* Overlay para cobrir a tela */
.modal.loading-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
    z-index: 1004; /* Abaixo do modal, acima do conteúdo */
    display: none;
}

/* Quando ativo */
.modal.loading-modal-overlay.active {
    display: block;
}

.dark-mode .loading-modal {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95), rgba(31, 41, 55, 0.9));
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 3px rgba(255, 255, 255, 0.1);
}

/* Efeito de fundo sutil */
.loading-modal::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
    animation: pulseGlow 4s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Spinner Estilizado */
.loading-modal .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid transparent;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite, pulseSpinner 1.5s infinite ease-in-out;
    margin: 0 auto 15px;
    position: relative;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
}

@keyframes pulseSpinner {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* Texto Melhorado */
.loading-modal p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textPulse 2s infinite ease-in-out;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Animação de entrada */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 768px) {
    .loading-modal {
        padding: 25px;
        min-width: 250px;
    }

    .loading-modal .spinner {
        width: 45px;
        height: 45px;
        border-width: 4px;
    }

    .loading-modal p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .loading-modal {
        padding: 20px;
        min-width: 200px;
    }

    .loading-modal .spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    .loading-modal p {
        font-size: 1rem;
    }
}

.pix-pending h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: slideInFromTop 0.5s ease-out;
}

.pix-pending p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.5;
    animation: fadeInUp 0.7s ease-out;
}

.qrcode-container {
    margin: 20px auto;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 12px;
    display: inline-block;
    box-shadow: inset 0 2px 5px var(--shadow-color), 0 0 0 3px var(--primary-color);
    transition: transform 0.3s ease;
    max-width: 250px;
    width: 100%;
}

.qrcode-container:hover {
    transform: scale(1.05);
}

.qrcode-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.typing-span {
    display: inline-block; /* Para animação */
    white-space: nowrap; /* Mantém animação em uma linha */
    border-right: 3px solid var(--text-color, #333); /* Cursor piscante */
    animation: blinkCursor 0.7s step-end infinite; /* Animação do cursor */
}

.pix-pending input[type="text"] {
    width: 90%;
    max-width: 400px;
    padding: 12px 15px;
    margin: 15px auto;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--card-bg);
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    word-break: break-all;
    cursor: default;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pix-pending input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
    outline: none;
}

.pix-pending button {
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--footer-text);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    margin: 15px auto;
    display: inline-block;
    position: relative;
}

.pix-pending button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.pix-pending p:last-child {
    font-size: 1rem;
    color: var(--text-color);
    font-style: italic;
    margin-top: 20px;
    animation: pulseText 2s infinite;
}

/* Animações */
@keyframes slideInFromTop {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade para Pix */
@media (max-width: 768px) {
    .pix-pending {
        padding: 20px;
        border-radius: 12px;
    }

    .pix-pending h3 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .pix-pending p {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .qrcode-container {
        max-width: 200px;
        padding: 10px;
    }

    .pix-pending input[type="text"] {
        width: 95%;
        max-width: 350px;
        padding: 10px;
        font-size: 0.9rem;
    }

    .pix-pending button {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .pix-pending p:last-child {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pix-pending {
        padding: 15px;
        border-radius: 10px;
    }

    .pix-pending h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .pix-pending p {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .qrcode-container {
        max-width: 150px;
        padding: 8px;
    }

    .pix-pending input[type="text"] {
        width: 100%;
        padding: 8px;
        font-size: 0.85rem;
    }

    .pix-pending button {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .pix-pending p:last-child {
        font-size: 0.85rem;
    }
}

/* Estilo do botão de login mobile e mensagem */
.mobile-login-btn {
    display: none; /* Escondido por padrão no desktop */
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--footer-text);
    padding: 0.5rem;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    align-items: center;
    justify-content: center;
    position: relative;
}

.mobile-login-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

.dark-mode .mobile-login-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark-mode .mobile-login-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.3);
}

.mobile-login-message {
    display: none; /* Escondido por padrão no desktop */
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    color: var(--footer-text);
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    margin-top: 0.5rem;
    z-index: 1001;
}

.mobile-login-message span {
    display: block;
    margin-bottom: 0.2rem;
}

.mobile-login-message i {
    font-size: 0.8rem;
    color: var(--footer-text);
    animation: bounceArrow 1.5s infinite;
}

/* Animação da flecha */
@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Responsividade */
@media (max-width: 1024px) {
    nav {
        padding: 0.8rem 1.5rem;
    }

    .logo {
        max-width: 130px; /* Reduz o contêiner da logo */
    }

    .logo-img {
        max-height: 45px; /* Reduz a imagem */
        max-width: 130px;
    }

    .nav-links {
        gap: 0.75rem;
    }

    .gps-text {
        display: none; /* Esconde texto do GPS */
    }
}


/* Ajustes no nav para acomodar o botão e mensagem em mobile */
@media (max-width: 768px) {
    .mobile-login-btn {
        display: flex; /* Visível apenas em mobile */
        margin-right: 0.75rem;
    }

    .mobile-login-message {
        display: block; /* Visível apenas em mobile */
    }

    nav {
        padding: 0.8rem 1rem;
        flex-wrap: nowrap; /* Evita quebra do nav */
    }

    .logo {
        max-width: 120px;
    }

    .logo-img {
        max-height: 40px;
        max-width: 120px;
    }

    .mobile-login-btn {
        order: 1;
        flex-shrink: 0;
    }

    .mobile-menu-btn {
        order: 2;
        flex-shrink: 0;
        margin-left: 0;
    }

    .logo-img {
        height: 40px; /* Reduz ainda mais */
    }

    .nav-links {
        gap: 0.5rem;
    }

    .desktop-login-btn {
        display: none;
    }

    .mobile-login-btn {
        display: flex; /* Mostra botão de login mobile */
    }

    .gps-btn {
        padding: 6px;
    }

    .gps-btn i {
        font-size: 18px; /* Ícone maior para toque */
    }
    
}

@media (max-width: 480px) {
    .mobile-login-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        padding: 0.4rem;
        margin-right: 0.5rem;
    }

    .mobile-login-message {
        font-size: 0.65rem;
    }

    .mobile-login-message i {
        font-size: 0.7rem;
    }

    .logo {
        max-width: 100px;
    }

    .logo-img {
        max-height: 35px;
        max-width: 100px;
    }

    nav {
        padding: 0.8rem 1rem;
    }

    .nav-links {
        gap: 0.4rem;
    }

    .mobile-login-btn {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .gps-btn i {
        font-size: 16px;
    }

}

/* Estilos do Modal de Plano Gratuito */
.free-plan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.timer-text {
    font-weight: bold;
    color: #2563eb; /* Ajuste a cor conforme seu design */
}

.free-plan-modal.active {
    display: flex; /* Ativado */
    opacity: 1;
}

/* Estilo para a mensagem de erro personalizada */
.error-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef4444; /* Vermelho */
    color: #ffffff; /* Branco */
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1003;
    font-size: 1rem;
    font-weight: 500;
    max-width: 300px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.error-message.hide {
    opacity: 0;
    transform: translateY(-20px);
}

/* Estilo para a barra de progresso */
.error-message-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    width: 100%;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

.error-message-progress-bar {
    height: 100%;
    background: #ffffff;
    width: 100%;
    transform: translateX(-100%);
    transition: transform 5s linear; /* Duração de 5 segundos */
}

.error-message.show .error-message-progress-bar {
    transform: translateX(0);
}

.free-plan-modal-content {
    background: var(--card-bg);
    border-radius: 15px;
    width: 500px;
    max-height: 90vh;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    animation: slideIn 0.4s ease forwards;
}

.free-plan-modal-header {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--card-border); /* Usando variável do tema */
    margin-bottom: 25px;
}

.free-plan-modal-header h2 {
    font-size: 2.2rem;
    color: var(--dark-color); /* Usando variável do tema */
    margin: 0;
    font-weight: 600;
    background: linear-gradient(90deg, #2563eb, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.free-plan-modal-header p {
    color: var(--text-color); /* Usando variável do tema */
    font-size: 1.2rem;
    margin: 10px 0 0;
    line-height: 1.5;
}

.free-plan-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative; /* Pai relativo para o free-plan-status */
    min-height: 150px; /* Garantir espaço mínimo */
    margin-bottom: 30px;
}

.free-plan-modal-body p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin: 0 0 20px;
    line-height: 1.5;
    text-align: center;
}

.free-plan-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.free-plan-modal-close:hover {
    color: #2563eb; /* Cor primária */
    background: rgba(37, 99, 235, 0.1);
    transform: rotate(90deg);
}

.free-plan-modal .submit-btn {
    padding: 12px 25px;
    background: linear-gradient(90deg, #2563eb 0%, #4cc9f0 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.free-plan-modal .submit-btn:hover {
    background: linear-gradient(90deg, #1d4ed8 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6);
}

.free-plan-modal .submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.free-plan-modal .submit-btn:hover::before {
    left: 0;
}

/* Estilos para o container de status (carregamento e sucesso) */
.free-plan-status {
    position: absolute; /* Posicionamento absoluto dentro do modal-body */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

.free-plan-status.active {
    opacity: 1;
    visibility: visible; /* Visível quando ativo */
}

.free-plan-status.hidden {
    opacity: 0;
    visibility: hidden; /* Escondido, mas mantém o espaço */

}

/* Spinner elegante */
.free-plan-status .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(37, 99, 235, 0.2);
    border-top: 5px solid #2563eb; /* Cor primária */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

/* Mensagem de status */
.free-plan-status p {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
    text-align: center;
    line-height: 1.5;
}

/* Estilo de sucesso */
.free-plan-status.success p {
    color: #22c55e; /* Cor de sucesso */
    font-size: 1.3rem;
    animation: fadeInUp 0.5s ease-out;
}

/* Animações */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsividade */
@media (max-width: 768px) {
    .free-plan-modal-content {
        width: 90%;
        padding: 30px;
    }

    .free-plan-modal-header h2 {
        font-size: 1.8rem;
    }

    .free-plan-modal-header p {
        font-size: 1.1rem;
    }

    .free-plan-modal-body p {
        font-size: 1.1rem;
    }

    .free-plan-modal .submit-btn {
        padding: 10px 20px;
        font-size: 1rem;
        max-width: 180px;
    }

    .free-plan-status .spinner {
        width: 45px;
        height: 45px;
        border-width: 4px;
    }

    .free-plan-status p {
        font-size: 1.1rem;
    }

    .free-plan-status.success p {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .free-plan-modal-content {
        width: 95%;
        padding: 20px;
    }

    .free-plan-modal-header h2 {
        font-size: 1.6rem;
    }

    .free-plan-modal-header p {
        font-size: 1rem;
    }

    .free-plan-modal-body p {
        font-size: 1rem;
    }

    .free-plan-modal .submit-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        max-width: 160px;
    }

    .free-plan-status .spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    .free-plan-status p {
        font-size: 1rem;
    }

    .free-plan-status.success p {
        font-size: 1.1rem;
    }

    .free-plan-modal-close {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

.free-plan-btn {
    position: fixed;
    bottom: 80px; /* Acima do .payment-balloon (20px + altura do botão + margem) */
    right: 20px;
    background: var(--success-color);
    color: var(--footer-text);
    padding: 12px 20px;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    z-index: 1001; /* Acima do .payment-balloon (1000) */
}

.free-plan-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Estilo base do botão flutuante */
.floating-btn.free-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem; /* Espaço entre ícone e texto */
    background: linear-gradient(135deg, #2563eb 0%, #60a5fa 100%); /* Gradiente consistente com o tema */
    color: var(--footer-text);
    border: none;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.2);
    position: fixed;
    z-index: 1000; /* Garante que fique acima de outros elementos */
}


/* Efeito hover */
.floating-btn.free-plan-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Ícone dentro do botão */
.floating-btn.free-plan-btn i {
    font-size: 1rem;
}

/* Posicionamento no desktop: canto inferior direito */
@media (min-width: 769px) {
    #activate-free-plan-btn {
        bottom: 20px;
        right: 20px;
        padding: 0.8rem 1.2rem; /* Levemente maior no desktop */
        font-size: 0.95rem;
    }
}

/* Ajustes para mobile: centralizado e tamanho otimizado */
@media (max-width: 768px) {
    #activate-free-plan-btn {
        bottom: 15px;
        right: 15px; /* Mantém no canto direito, mas ajustado para mobile */
        padding: 0.6rem 1rem; /* Menor para caber bem */
        font-size: 0.85rem;
        border-radius: 10px; /* Bordas ligeiramente menores */
        box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3); /* Sombra um pouco reduzida */
    }

    #activate-free-plan-btn i {
        font-size: 0.9rem; /* Ícone proporcional */
    }
}

/* Telas muito pequenas (ex.: < 480px) */
@media (max-width: 480px) {
    #activate-free-plan-btn {
        bottom: 10px;
        right: 10px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    #activate-free-plan-btn i {
        font-size: 0.8rem;
    }
}

/* Seção Por que Escolher a SoSLar */
.why-choose-us {
    padding: 60px 0;
    margin-bottom: 100px; /* Aumentado para desktop */
    background-color: #f8f9fa;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.why-choose-us.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-choose-us .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: capitalize;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.section-subtitle strong {
    color: #007bff;
}

.why-choose-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.why-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
    opacity: 0;
    transform: scale(0.95);
}

.why-card.visible {
    opacity: 1;
    transform: scale(1);
}

.why-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.why-icon {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.why-card:hover .why-icon {
    color: #0056b3;
}

.why-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.why-description {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

.why-description strong {
    color: #007bff;
}

/* Responsividade */
@media (max-width: 768px) {
    main {
        padding-bottom: 80px; /* Menos espaço em tablets */
    }

    .why-choose-us {
        padding: 50px 0;
        margin-bottom: 80px; /* Aumentado para tablet */
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .why-card {
        padding: 20px;
    }

    .why-icon {
        font-size: 2.5rem;
    }

    .why-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    main {
        padding-bottom: 60px; /* Menos espaço em mobile */
    }

    .why-choose-us {
        padding: 40px 0;
        margin-bottom: 60px; /* Aumentado para mobile */
    }

    .why-choose-cards {
        grid-template-columns: 1fr;
    }
}

/* Modo escuro */
.dark-mode .why-choose-us {
    background-color: #1a1a1a;
}

.dark-mode .section-title,
.dark-mode .why-title {
    color: #fff;
}

.dark-mode .section-subtitle {
    color: #aaa;
}

.dark-mode .section-subtitle strong,
.dark-mode .why-description strong {
    color: #4dabf7;
}

.dark-mode .why-card {
    background-color: #2a2a2a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-mode .why-description {
    color: #ccc;
}

.dark-mode .why-icon {
    color: #4dabf7;
}

.dark-mode .why-card:hover .why-icon {
    color: #1e90ff;
}

/* Estilos para a Seção de Soluções */
.solutions-section {
    padding: 80px 20px;
    background: var(--light-bg);
    text-align: center;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.solutions-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.solutions-section .section-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
    animation: fadeIn 0.8s ease-out;
}

.solutions-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin: 0 auto 2.5rem;
    line-height: 1.5;
    max-width: 700px;
}

.solutions-section .section-subtitle strong {
    color: var(--primary-color);
    font-weight: 600;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.solution-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 1.75rem;
    box-shadow: 0 3px 10px var(--shadow-color);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(15px);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    position: relative;
}

.solution-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.solution-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.solution-card:hover .solution-icon {
    color: var(--secondary-color);
}

.solution-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.solution-description {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 1.25rem;
    line-height: 1.5;
    flex-grow: 1;
}

.solution-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.solution-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--footer-text);
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
    margin-top: auto;
    align-self: center;
}

.solution-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.solutions-cta-box {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 3px 10px var(--shadow-color);
    border: 1px solid var(--card-border);
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cta-description strong {
    color: var(--primary-color);
    font-weight: 600;
}

.main-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, var(--success-color), #16a34a);
    color: var(--footer-text);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.main-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
}

/* Modo Escuro */
.dark-mode .solutions-section {
    background: var(--light-bg);
}

.dark-mode .solution-card,
.dark-mode .solutions-cta-box {
    background: var(--card-bg);
    border-color: var(--card-border);
}

.dark-mode .solution-title,
.dark-mode .cta-title {
    color: var(--text-color);
}

.dark-mode .solution-description,
.dark-mode .cta-description {
    color: var(--text-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .solutions-section {
        padding: 60px 15px;
    }

    .solutions-section .section-title {
        font-size: 2rem;
    }

    .solutions-section .section-subtitle {
        font-size: 1rem;
        max-width: 90%;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .solution-card {
        padding: 1.5rem;
        min-height: 280px;
    }

    .solution-icon {
        font-size: 2rem;
    }

    .solution-title {
        font-size: 1.3rem;
    }

    .solution-description {
        font-size: 0.9rem;
    }

    .solution-cta {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    .solutions-cta-box {
        padding: 1.5rem;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-description {
        font-size: 0.95rem;
    }

    .main-cta {
        padding: 0.6rem 1.75rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .solutions-section {
        padding: 50px 10px;
    }

    .solutions-section .section-title {
        font-size: 1.8rem;
    }

    .solutions-section .section-subtitle {
        font-size: 0.95rem;
    }

    .solution-card {
        padding: 1.25rem;
        min-height: 260px;
    }

    .solution-icon {
        font-size: 1.8rem;
    }

    .solution-title {
        font-size: 1.2rem;
    }

    .solution-description {
        font-size: 0.85rem;
    }

    .solution-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .solutions-cta-box {
        padding: 1.25rem;
    }

    .cta-title {
        font-size: 1.3rem;
    }

    .cta-description {
        font-size: 0.9rem;
    }

    .main-cta {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Seção de Depoimentos */
.testimonials-section {
    padding: 60px 20px;
    background: var(--card-bg);
    text-align: center;
    overflow: hidden;
}

.testimonials-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-color);
    background: linear-gradient(90deg, #2563eb, #4cc9f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.logo-img {
    max-height: 50px; /* Altura máxima para a imagem */
    max-width: 150px; /* Largura máxima */
    width: auto; /* Mantém proporção */
    height: auto; /* Mantém proporção */
    object-fit: contain; /* Evita distorção */
    display: block; /* Remove espaços abaixo da imagem */
}
.testimonials-wrapper {
    display: flex;
    width: calc(100% * 20); /* 20 cards (10 originais + 10 duplicados) */
    animation: slide 200s linear infinite; /* Duração de 1000 segundos */
}

.testimonial-card {
    flex: 0 0 calc(100% / 20); /* Cada card ocupa 1/20 da largura */
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #2b2d42;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2563eb;
}

.author-location {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #f59e0b;
}

.testimonial-rating i {
    font-size: 1rem;
}

.testimonial-rating span {
    color: #2b2d42;
    font-weight: 500;
}

/* Animação de Slide */
@keyframes slide {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-50%); /* Move até a metade (10 cards) */
    }
    100% {
        transform: translateX(-50%); /* Mantém na posição para reinício suave */
    }
}

/* Modo Escuro */
@media (prefers-color-scheme: dark) {
    .testimonial-card {
        background: linear-gradient(135deg, #2b2d42 0%, #1e1e2f 100%);
    }
    .testimonial-content p,
    .testimonial-rating span {
        color: #d1d5db;
    }
    .author-name {
        color: #4cc9f0;
    }
    .author-location {
        color: #9ca3af;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .testimonials-title {
        font-size: 2rem;
    }
    .testimonial-card {
        padding: 20px;
        margin: 0 10px;
    }
    .testimonial-content p {
        font-size: 1rem;
    }
    .author-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-title {
        font-size: 1.8rem;
    }
    .testimonial-card {
        padding: 15px;
    }
    .testimonial-content p {
        font-size: 0.95rem;
    }
}