/* Reset Básico e Tema Principal com Cores do Figma */
:root {
    --primary-background: #0D0B12;
    --secondary-background: #1C1A22;
    --card-border: rgba(255, 255, 255, 0.1);
    --font-primary: #FFFFFF;
    --font-secondary: #A0A0A0;
    --sidebar-background: #12101A;
    --sidebar-width: 80px;
    --sidebar-width-expanded: 320px; /* <-- ADICIONE ESTA LINHA */
    --neon-gradient: linear-gradient(90deg, #8A2BE2, #4158D0, #00BFFF);
    
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--primary-background);
    /* Efeito de brilho gradiente no fundo, como no design */
    background-image: radial-gradient(circle at 90% 40%, rgba(138, 43, 226, 0.15), transparent 40%);
    color: var(--font-primary);
    font-family: 'Inter', sans-serif;
}

/* Barra Lateral Fixa */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    transition: width 0.3s ease; /* <-- ADICIONE ESTA LINHA */
    height: 100vh;
    background-color: var(--sidebar-background);
    border-right: 1px solid var(--card-border);
    z-index: 100;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 20px 0;
}

.sidebar-nav ul {
    list-style-type: none;
}

/* ---- SUBSTITUA O BLOCO ANTIGO POR ESTE ---- */
.sidebar-nav li {
    display: flex; /* Transforma o <li> em um contêiner flexível */
    justify-content: center; /* Centraliza seu filho (o <a>) horizontalmente */
    margin-bottom: 10px;
}

/* ---- SUBSTITUA O BLOCO ANTIGO POR ESTE ---- */
.sidebar-nav a {
    display: flex; /* Mantemos o flex para alinhar o conteúdo interno */
    align-items: center; /* Alinha o ícone verticalmente */
    justify-content: center; /* Centraliza o ícone horizontalmente NO ESTADO RECOLHIDO */
    width: 50px; /* Largura fixa para o botão */
    height: 50px; /* Altura fixa para o botão */
    margin: 0 auto 10px auto; /* Centraliza o botão na barra e adiciona margem inferior */
    color: var(--font-secondary);
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow: hidden; /* Garante que nada "vaze" para fora do botão */
}


/*---- CENTRALIZACAO DOS ICONES NA BARRA LATERAL ESQUERDA ---- */

.bxs-grid-alt:before {
	content: "\edd5";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.bxs-home:before {
content: "\ede7";
    display: flex
;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.bxs-videos:before {
    content: "\eef3";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}


.bxs-shield-alt-2:before {
    content: "\eea3";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.bx-git-compare:before {
    content: ""\eaf2"";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.bxs-user-circle:before {
    content: "\eee5";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.bx-log-out:before {
    content: "\eb4f";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

/* ---- ADICIONE ESTE NOVO BLOCO ---- */
.sidebar-nav a i {
    font-size: 28px;
    min-width: 28px; /* Garante que o ícone sempre ocupe espaço para alinhar o texto depois */
    text-align: center;
    transition: color 0.3s ease;
}

.sidebar-nav a:hover {
    background-color: var(--secondary-background);
    color: var(--font-primary);
}

.sidebar-nav a.active {
    color: var(--font-primary);
    background: var(--neon-gradient);
}

.sidebar-footer {
    padding-bottom: 20px;
}

/* Conteúdo Principal (Deslocado pela Sidebar) */
/* ---- SUBSTITUA A REGRA .main-content EXISTENTE POR ESTA ---- */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: 74px; /* Adiciona espaço no topo para a barra fixa */
    padding: 30px 40px;
    transition: margin-left 0.3s ease;
}

/* ---- SUBSTITUA A REGRA .content-header EXISTENTE POR ESTA ---- */
.content-header {
    /* Posicionamento Fixo e Definitivo */
    position: fixed;
    top: 0;
    left: var(--sidebar-width); /* Começa onde a sidebar termina */
    width: calc(100% - var(--sidebar-width)); /* Ocupa o resto da tela */
    z-index: 50;

    /* Estilização com Blur */
    background-color: rgba(13, 11, 18, 0.8);
    backdrop-filter: blur(10px);

    /* Layout e Espaçamento */
    padding: 20px 40px;
    text-align: center;

    /* Animação para quando a sidebar expandir */
    transition: left 0.3s ease, width 0.3s ease;
}

.logo {
    font-size: 20px;
    font-weight: 700;
    display: inline-block;
}

.logo span {
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Seção de Destaque (Matching) - Estilo do Figma */
.highlight-section {
    background-color: var(--secondary-background);
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 60px;
    border: 1px solid var(--card-border);
}

.highlight-section h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.highlight-section p {
    font-size: 18px;
    color: var(--font-secondary);
    margin-bottom: 30px;
}

.highlight-section strong {
    font-weight: 500;
    color: var(--font-primary);
}

.cta-button {
    background: var(--neon-gradient);
    color: var(--font-primary);
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.4);
}

/* Linhas de Conteúdo (Carrosséis) */
.content-row {
    margin-bottom: 50px;
}

.row-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.card-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.card-carousel::-webkit-scrollbar {
    display: none;
}

.card {
    background-color: var(--secondary-background);
    border-radius: 16px;
    overflow: hidden;
    min-width: 280px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--card-border);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.card-image {
    width: 100%;
    height: 160px;
    background-color: #333;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-subtitle {
    font-size: 14px;
    color: var(--font-secondary);
}

/* ====================================================== */
/* REVISÃO E ADIÇÕES - LAYOUT DE CONTEÚDO                 */
/* ====================================================== */

/* Cabeçalho das linhas de conteúdo (para "Ver tudo") */
.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.view-all-link {
    color: var(--font-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: var(--font-primary);
}

/* Container do Carrossel e Navegação */
.carousel-container {
    position: relative;
}

.carousel-navigation {
    display: flex;
    gap: 10px;
    position: absolute;
    bottom: -30px; /* Alinha com o padding-bottom do carrossel */
    right: 0;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    background-color: rgba(28, 26, 34, 0.8);
    border: 1px solid var(--card-border);
    color: var(--font-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: background-color 0.3s ease;
}

.nav-arrow:hover {
    background-color: var(--secondary-background);
}


/* Novo Layout - Clube de Vantagens */
.clube-vantagens-container {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px;
}

.clube-vantagens-info {
    flex: 1; /* Ocupa o espaço disponível */
}

.clube-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--font-secondary);
}

.benefits-list i {
    font-size: 22px;
    color: #4158D0; /* Tom de azul do gradiente */
}

/* Card CTA do Clube de Vantagens */
.clube-vantagens-cta {
    flex-shrink: 0; /* Impede que o card encolha */
    width: 400px;
    height: 300px;
    background-image: linear-gradient(190deg, #4A00E0, #1a0230);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.cta-shield i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.clube-vantagens-cta h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px;
}

.cta-button-small {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button-small:hover {
    background-color: #FFFFFF;
    transform: scale(1.05);
}


/* ESTILOS DO MENU EXPANSÍVEL (REVISADO)                  */

/* ---- SUBSTITUA A REGRA .nav-text EXISTENTE POR ESTA ---- */
.nav-text {
    opacity: 0;
    width: 0;
    margin-left: 20px;
    font-size: 16px;
    font-weight: 500;
    
}

/* Estado expandido da barra lateral */
.sidebar.expanded {
    width: var(--sidebar-width-expanded);
}

/* Regra para o link QUANDO a barra está expandida */
.sidebar.expanded .sidebar-nav a {
    width: calc(100% - 30px); /* Ocupa a largura total menos um espaçamento */
    justify-content: flex-start; /* Alinha o conteúdo à esquerda */
    padding: 0 15px; /* Adiciona um padding interno */
}

/* Mostra o texto QUANDO a barra está expandida */
.sidebar.expanded .nav-text {
    opacity: 1;
    width: auto; /* Permite que o texto ocupe o espaço necessário */
}

/* Ajusta o conteúdo principal quando a barra expande */
.main-content.expanded {
    margin-left: var(--sidebar-width-expanded);
}

/* ---- ADICIONE ESTE NOVO BLOCO NO FINAL DO SEU CSS ---- */
.content-header.expanded {
    left: var(--sidebar-width-expanded);
    width: calc(100% - var(--sidebar-width-expanded));
}



/* ====================================================== */
/* PÁGINA TRILHA DO CONHECIMENTO                          */
/* ====================================================== */

/* Estilos do Banner Slider */
.banner-slider {
    margin-bottom: 40px;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.swiper-pagination-bullet {
    background-color: var(--font-secondary);
}

.swiper-pagination-bullet-active {
    background: var(--neon-gradient);
}

/* Estilos dos Cards de Vídeo */
.video-card {
    background-color: var(--secondary-background);
    border-radius: 12px;
    overflow: hidden;
    min-width: 250px; /* Um pouco menor que os cards do dashboard */
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--card-border);
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
}

.video-thumbnail {
    width: 100%;
    height: 140px;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.video-thumbnail .play-icon {
    font-size: 50px;
    color: rgba(255, 255, 255, 0.7);
    transition: transform 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.1);
    color: #fff;
}

.video-info {
    padding: 15px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilos do Modal de Vídeo */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.visible {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    z-index: 210;
    width: 90%;
    max-width: 960px; /* Limita a largura máxima do vídeo */
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Proporção 16:9 (9 / 16 = 0.5625) */
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* ====================================================== */
/* MELHORIAS NO MODAL DE VÍDEO                            */
/* ====================================================== */
.modal-content {
    display: flex; /* <-- MUDA PARA FLEXBOX */
    max-width: 1200px; /* Aumenta o tamanho máximo */
    height: 90vh; /* Ocupa 90% da altura da tela */
    max-height: 720px;
    background-color: var(--secondary-background);
    border-radius: 16px;
    overflow: hidden;
}

.video-player-wrapper {
    flex: 3; /* Ocupa 3 partes do espaço */
    display: flex;
    flex-direction: column;
    background-color: #000;
}

.aula-info-wrapper {
    flex: 2; /* Ocupa 2 partes do espaço */
    padding: 30px;
    overflow-y: auto;
    background-color: var(--primary-background);
}

#aula-titulo {
    font-size: 24px;
    margin-bottom: 15px;
}

#aula-descricao {
    font-size: 15px;
    color: var(--font-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.aula-professor {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

#professor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.aula-professor strong {
    display: block;
    font-size: 14px;
    color: var(--font-secondary);
    margin-bottom: 4px;
}

#professor-nome {
    font-size: 16px;
    font-weight: 500;
}

.aula-materiais h3 {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.aula-materiais ul {
    list-style: none;
}

.aula-materiais li a {
    display: block;
    padding: 12px 15px;
    background-color: var(--secondary-background);
    color: var(--font-primary);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.aula-materiais li a:hover {
    background: var(--neon-gradient);
}



/* ====================================================== */
/* PÁGINA CLUBE DE VANTAGENS                              */
/* ====================================================== */

/* Cabeçalho da Página */
.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    color: var(--font-secondary);
}

/* Barra de Filtros */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: var(--secondary-background);
    color: var(--font-secondary);
    border: 1px solid var(--card-border);
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--font-primary);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
    color: var(--font-primary);
    background: var(--neon-gradient);
    border-color: transparent;
}

/* Grade de Ofertas */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

/* Card da Oferta */
.offer-card {
    background-color: var(--secondary-background);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.offer-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
}

.offer-card-content {
    padding: 20px;
}

.offer-card-company {
    font-size: 14px;
    color: var(--font-secondary);
    margin-bottom: 8px;
}

.offer-card-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    height: 54px; /* Garante 2 linhas de altura */
}

.offer-card-tag {
    display: inline-block;
    background-color: rgba(138, 43, 226, 0.2);
    color: #cda8f5;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Modal de Detalhes da Oferta */
.offer-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 200; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}

.offer-modal.visible {
    opacity: 1;
    visibility: visible;
}

.offer-modal .modal-overlay { /* Reutiliza a classe de overlay */
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
}

.offer-modal-content {
    position: relative;
    z-index: 210;
    width: 90%;
    max-width: 600px;
    background-color: var(--primary-background);
    border-radius: 16px;
    padding: 40px;
}

.offer-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

#offer-logo {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: contain;
    background-color: var(--secondary-background);
    padding: 5px;
}

#offer-title {
    font-size: 28px;
}

#offer-company {
    color: var(--font-secondary);
}

#offer-description {
    color: var(--font-primary);
    line-height: 1.7;
    margin-bottom: 30px;
}

.offer-actions {
    text-align: center;
}

/* ADICIONE ESTE BLOCO NO FINAL DA SEÇÃO "PÁGINA CLUBE DE VANTAGENS" */

/* Container Geral dos Filtros */
.filter-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap; /* Permite que os itens quebrem a linha em telas menores */
}

/* Ajuste na barra de filtros para se adaptar ao novo layout */
.filter-bar {
    margin-bottom: 0; /* Remove a margem que agora é controlada pelo container pai */
    flex-grow: 1; /* Permite que a barra de botões cresça para ocupar espaço */
    justify-content: flex-start;
}

/* Campo de Pesquisa */
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px; /* Limita a largura do campo de busca */
}

.search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--font-secondary);
    font-size: 20px;
}

#search-input {
    width: 100%;
    background-color: var(--secondary-background);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    color: var(--font-primary);
    padding: 10px 20px 10px 45px; /* Espaço para o ícone */
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#search-input:focus {
    border-color: #8A2BE2;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
}

/* Botão de Limpar Filtro */
.clear-filter-btn {
    background-color: transparent;
    color: var(--font-secondary);
    border: 1px solid var(--card-border);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.clear-filter-btn i {
    font-size: 20px;
}

.clear-filter-btn:hover {
    color: var(--font-primary);
    border-color: rgba(255, 255, 255, 0.5);
    background-color: var(--secondary-background);
}



/* ====================================================== */
/* PÁGINA DE MATCHING                                     */
/* ====================================================== */

/* Abas de Navegação */
.tabs-container {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 40px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--font-secondary);
    font-size: 16px;
    font-weight: 500;
    padding: 20px 30px;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    color: var(--font-primary);
}

.tab-btn.active {
    color: var(--font-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-gradient);
}

.tab-btn i {
    font-size: 22px;
}

/* Grade de Matches */
.matches-grid {
    display: none; /* Começam escondidas por padrão */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.matches-grid.active {
    display: grid; /* A aba ativa mostra a grade */
}

/* Card de Match */
.match-card {
    background-color: var(--secondary-background);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.match-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.match-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.match-card .match-card-logo { /* Tornando a regra mais específica */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-border);
    background-color: var(--secondary-background); /* Adiciona um fundo caso a imagem não carregue */
    flex-shrink: 0; /* Impede que a imagem encolha */
}

.match-card-company-info h3 {
    font-size: 18px;
    font-weight: 500;
}

.match-card-company-info p {
    font-size: 14px;
    color: var(--font-secondary);
}

.match-reason {
    background-color: var(--primary-background);
    padding: 15px;
    border-radius: 12px;
    flex-grow: 1; /* Faz com que o card ocupe a altura total */
}

.match-reason-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--font-secondary);
    margin-bottom: 10px;
}

.match-reason-title i {
    font-size: 20px;
}

.match-reason p {
    font-size: 16px;
    font-weight: 500;
    color: var(--font-primary);
}

/* Ícones de Conexão */
.match-reason-title .icon-cliente { color: #50fa7b; } /* Verde */
.match-reason-title .icon-fornecedor { color: #8be9fd; } /* Azul */

/* Modal de Conexão */
.match-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 200; display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}

.match-modal.visible { opacity: 1; visibility: visible; }

.match-modal .modal-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px);
}

.match-modal-content {
    position: relative; z-index: 210; width: 90%; max-width: 500px;
    background-color: var(--secondary-background);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

#match-modal-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--card-border);
}

#match-modal-title { font-size: 28px; margin-bottom: 5px; }
#match-modal-sector { color: var(--font-secondary); font-size: 16px; margin-bottom: 25px; }

.contact-info {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.contact-info li {
    padding: 15px;
    border-bottom: 1px solid var(--card-border);
}
.contact-info li:last-child { border-bottom: none; }

.contact-info strong {
    display: block;
    color: var(--font-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

.contact-info a {
    color: #8be9fd;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25D366;
    color: #fff;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}

.whatsapp-btn i { font-size: 22px; }

/* ====================================================== */
/* NOVA SEÇÃO: PAINEL DE CONEXÕES                         */
/* ====================================================== */

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.stat-item {
    flex: 1;
}

.stat-number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 16px;
    color: var(--font-secondary);
    margin-top: 10px;
}

.toggle-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.toggle-arrow {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--font-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.toggle-arrow:hover {
    background-color: var(--secondary-background);
}

.toggle-arrow.expanded {
    transform: rotate(180deg);
}

.connections-panel {
    background-color: var(--secondary-background);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    /* Lógica da animação de expandir/retrair */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.connections-panel.expanded {
    max-height: 500px; /* Um valor alto o suficiente para caber o conteúdo */
    padding: 30px;
    transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.connection-list {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.connection-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.connection-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0; /* Impede que a bolinha encolha */
}

.status-dot.status-green { background-color: #50fa7b; }
.status-dot.status-blue { background-color: #8be9fd; }
.status-dot.status-yellow { background-color: #f1fa8c; }

.connection-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--card-border);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--font-secondary);
}