.servicesContainer {
    display: grid;
    grid-template-columns: 220px 1fr; /* Largura reduzida para dar mais espaço ao topo */
    min-height: 100vh;
    background-color: #f8fafc;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Removido overflow: hidden e height fixo para permitir rolagem da página */
}

.collapsedLayout {
    grid-template-columns: 80px 1fr; /* Sidebar encolhida */
}

.videoModeLayout {
    grid-template-columns: 80px 1fr 350px; /* Sidebar encolhida + Painel de Vídeo */
}

.sidebar {
    background: linear-gradient(90deg, #1c271d 0%, #756d53 100%); /* Degradê escuro na esquerda, clareando para um marrom/oliva na direita */
    color: white;
    padding: 120px 0 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 4px 0 25px rgba(0,0,0,0.2);
    z-index: 10;
    border-right: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
    overflow: visible; /* Mudado de hidden para permitir tooltips */
}

.sidebarCollapsed {
    width: 80px;
}

.sidebarCollapsed .catLabel {
    position: absolute;
    left: 70px;
    background: #1a1c2e;
    color: #d4af37;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    z-index: 100;
}

.sidebarCollapsed .categoryItem:hover .catLabel {
    opacity: 1;
    transform: translateX(10px);
}

.sidebarHeader {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 10px;
}

.sidebarHeader h3 {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #d4af37;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.sidebarCollapsed .sidebarHeader {
    display: none;
}

.categoryList {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.categoryItem {
    background: transparent;
    border: none;
    padding: 10px 20px; /* Reduzido de 14px para 10px */
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
}

.catLabel {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.categoryItem:hover {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    padding-left: 25px;
}

.categoryItem:hover .catLabel {
    transform: scale(1.08); /* Curto zoom no nome da categoria */
    transform-origin: left center;
    color: #ffffff;
}

.activeCategory {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15) 0%, transparent 100%) !important;
    color: #d4af37 !important;
    border-left: 4px solid #d4af37;
}

.activeCategory .catIcon {
    color: #d4af37;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.catIcon {
    font-size: 1.1rem;
    color: #ffffff; /* Ícones brancos a pedido do usuário */
    transition: all 0.3s;
}

.categoryItem:hover .catIcon {
    color: #ffffff;
}

/* Conteúdo Principal */
.mainContent {
    padding: 115px 40px 40px 60px; /* Aumentado padding esquerdo para 60px para descolar os cards da sidebar verde */
    display: flex;
    flex-direction: column;
}

.contentHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 20px;
}

.headerControls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.searchBar {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 400px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
}

.searchIcon {
    color: #94a3b8;
}

.searchBar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.9rem;
    color: #090b1b;
}

.filterSelect {
    background: white;
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 230px;
    width: auto;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
}

.filterIcon {
    color: #d4af37;
    font-size: 0.9rem;
}

.filterSelect select {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
    font-weight: 600;
    color: #090b1b;
    background: transparent;
    cursor: pointer;
    padding-right: 25px; /* Espaço extra para a setinha */
    text-overflow: ellipsis;
}

.resultsInfo {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

/* Grid de Business Cards - 2 Colunas */
.servicesGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px; /* Reduzido gap */
}

.businessCard {
    background: white;
    border-radius: 12px;
    display: flex;
    padding: 0; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    border: 1px solid #eef2f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 120px; /* Reduzido para ficar mais compacto */
    height: auto;
    overflow: hidden; 
}

.businessCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: #d4af37;
}

.cardLogoArea {
    width: 120px;
    height: auto; /* Deixa esticar com o card */
    min-height: 120px;
    background: #f8fafc;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.logoImg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.verifiedDot {
    position: absolute;
    bottom: 10px; /* Ajustado para dentro da imagem */
    right: 10px;
    background: #00e676;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
    z-index: 3;
}

.cardInfoArea {
    flex: 1;
    padding: 8px 15px; /* Ajustado padding mais compacto */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.cardTop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cardTop h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #090b1b;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Suporta até 2 linhas */
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

.catBadge {
    font-size: 0.55rem;
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #d4af37;
    padding: 2px 7px; /* Reduzido o padding em 1px para compensar a borda */
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.contactList {
    margin: 6px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contactItem {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem; /* Aumentado para 0.8rem */
    color: #000000;
    font-weight: 500;
}

.contactItem svg {
    color: #090b1b;
    font-size: 0.85rem;
    width: 14px;
}

.cardBottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
}

.socialGroup {
    display: flex;
    gap: 12px;
}

.socialIcon {
    color: #090b1b;
    font-size: 1rem;
    transition: all 0.2s;
}

.socialIcon:hover {
    color: #d4af37;
    transform: scale(1.1);
}

.profileLink {
    font-size: 0.9rem;
    font-weight: 600;
    color: #12251a;
    background: #c8a96a;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.profileLink:hover {
    background: #b5985e;
    color: #000000;
    transform: translateY(-2px);
}

.actionButtonsArea {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 30px; /* Reduzido para 30px */
    justify-content: flex-start;
}

.btnAddService, .btnPremiumServices {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btnMultiQuoteTop {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.btnMultiQuoteTop:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btnPremiumTop {
    background: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.btnPremiumTop:hover {
    background: #0d1a12;
    color: #ffffff;
    border-color: #0d1a12;
}

.btnNews {
    background: #090b1b;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btnNews:hover {
    background: var(--primary-light);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btnAddService {
    background: #c8a96a;
    color: #12251a;
}

.btnAddService:hover {
    background: #b5985e;
    transform: translateY(-2px);
}

.btnPremiumServices {
    background: #090b1b;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.btnPremiumServices:hover {
    background: #d4af37;
    color: #090b1b;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .servicesGrid {
        grid-template-columns: 1fr;
    }
    .businessCard {
        height: auto;
    }
}

/* Paginação */
.pagination {
    margin-top: auto; /* Empurra para o fundo do flex container */
    padding-top: 20px;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.pageNumbers {
    display: flex;
    gap: 8px;
}

.pageBtn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

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

.numBtn {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.activePage {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

.btnHowItWorks {
    background: rgba(0, 230, 118, 0.05);
    color: #00c853;
    border: 1px solid rgba(0, 200, 83, 0.3);
    border-radius: 8px;
    padding: 10px 15px; /* Reduzido lateralmente */
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0px; /* Sem gap inicialmente */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    max-width: 44px; /* Apenas o ícone */
}

.btnHowItWorks span {
    opacity: 0;
    width: 0;
    transition: all 0.4s ease;
    display: inline-block;
}

.btnHowItWorks:hover {
    background: #00c853;
    color: white;
    max-width: 250px;
    padding: 10px 20px;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.2);
}

.btnHowItWorks:hover span {
    opacity: 1;
    width: auto;
}

.btnAI {
    background: #090b1b;
    color: #d4af37;
    border: 1px solid #d4af37;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.btnAI:hover {
    background: #d4af37;
    color: #090b1b;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.aiIconAnim {
    animation: botFloat 2s ease-in-out infinite;
}

@keyframes botFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-3px) rotate(5deg); }
}

/* Painel de Chat Lateral */
.chatContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #090b1b;
}

.chatWelcome {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.welcomeBotIcon {
    font-size: 3rem;
    color: #d4af37;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.chatWelcome h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 8px;
}

.chatWelcome p {
    color: #94a3b8;
    font-size: 0.85rem;
}

.chatMessagesPlaceholder {
    flex: 1;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.messageBot {
    background: rgba(255,255,255,0.05);
    color: white;
    padding: 12px 15px;
    border-radius: 15px 15px 15px 0;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 90%;
}

.chatInputArea {
    display: flex;
    gap: 10px;
    padding: 20px 0 20px; /* Reduzido de 100px para abaixar o campo */
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
}

.chatInputArea input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 10px;
    color: white;
    font-size: 0.85rem;
}

.chatInputArea button {
    background: #d4af37;
    color: #090b1b;
    border: none;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Painel de Vídeo Lateral - Estilo Premium */
.videoSidebarPanel {
    background: #090b1b; /* Fundo escuro premium */
    border-left: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 20;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    height: 100vh;
    position: sticky;
    top: 0;
    padding-top: 100px;
}

.chatHeaderInfo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.themeToggle {
    display: flex;
    background: rgba(255,255,255,0.05);
    padding: 2px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.themeBtn {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.themeActive {
    background: #d4af37;
    color: #090b1b;
}

/* Modo Claro do Chat */
.lightModePanel {
    background: #f8fafc !important;
    border-left: 1px solid #e2e8f0 !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.05) !important;
}

.lightModePanel .videoSidebarHeader {
    border-bottom: 1px solid #e2e8f0;
}

.lightModePanel .videoSidebarHeader h4 {
    color: var(--primary);
}

.lightModePanel .closeVideoBtn {
    color: #64748b;
}

.lightModeChat {
    background: #ffffff !important;
}

.lightModeChat .chatWelcome h5 {
    color: var(--primary);
}

.lightModeChat .chatWelcome p {
    color: #64748b;
}

.lightModeChat .chatWelcome {
    border-bottom: 1px solid #f1f5f9;
}

.lightModeChat .messageBot {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.lightModeChat .chatInputArea {
    border-top: 1px solid #f1f5f9;
}

.lightModeChat .chatInputArea input {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: var(--primary);
}

.lightModeChat .chatInputArea input::placeholder {
    color: #94a3b8;
}

.lightModePanel .playlistTitle {
    color: var(--primary);
    border-bottom: 1px solid #f1f5f9;
}

.lightModePanel .videoSidebarItem {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.lightModePanel .videoSidebarItem:hover {
    background: #f8fafc;
    border-color: #d4af37;
    transform: translateX(5px);
}

.lightModePanel .sidebarVidTitle {
    color: var(--primary);
}

.lightModePanel .sidebarVidLength {
    color: #64748b;
}

.videoSidebarHeader {
    padding: 15px 20px; /* Reduzido de 25px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.videoSidebarHeader h4 {
    font-size: 0.75rem;
    font-weight: 900;
    color: #d4af37;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.closeVideoBtn {
    background: rgba(255,255,255,0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #ffffff;
    transition: all 0.2s;
}

.closeVideoBtn:hover {
    background: #d4af37;
    color: #090b1b;
}

.videoPlayerSidebar {
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.videoPlayerSidebar video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlistTitle {
    padding: 20px 20px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #00e5ff; /* Neon Blue */
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.videoSidebarPlaylist {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.videoSidebarItem {
    display: flex;
    gap: 0; /* Removido gap para imagem colar no texto */
    padding: 0; /* Removido padding para imagem colar nas bordas */
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden; /* Garante que a imagem respeite o radius do card */
    min-height: 100px;
}

.videoSidebarItem:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(5px);
}

.videoSidebarItemActive {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid #d4af37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.sidebarVidThumb {
    width: 130px; /* Largura fixa para o lado esquerdo */
    height: auto; /* Estica com o card */
    min-height: 100px;
    border-radius: 0; /* Removido para colar nas bordas */
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: none; /* Removido borda interna */
}

.sidebarVidThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebarVidOverlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    opacity: 0;
    transition: 0.3s;
}

.videoSidebarItem:hover .sidebarVidOverlay {
    opacity: 1;
}

.sidebarVidInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 12px 18px; /* Adicionado padding para compensar a remoção no card */
}

.sidebarVidTitle {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.sidebarVidLength {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
}

.viewAllNewsBtn {
    width: 100%;
    padding: 12px;
    background: #d4af37;
    color: #090b1b;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.viewAllNewsBtn:hover {
    background: #b8952d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.lightModePanel .viewAllNewsBtn {
    background: #090b1b;
    color: #d4af37;
}

.lightModePanel .viewAllNewsBtn:hover {
    background: #1a1c2e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .servicesGrid {
        grid-template-columns: 1fr;
    }
    .compactCard {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .infoRow {
        justify-content: center;
    }
}

.cardActionBtns {
    display: flex;
    gap: 8px;
}

.quoteLink {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    background: #ffffff;
    border: 1px solid var(--primary);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.quoteLink:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}
