/* ===== NORMALIZE / SIZING ===== */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { width: 100%; }

/* ===========================================================
   NETWORK PLATFORM – STYLE.CSS (VISUAL CLEAN INSTITUCIONAL)
   PARTE 1/3: BASE + LAYOUT GERAL + SIDEBAR FIXA
   =========================================================== */

/* ============ RESET GLOBAL ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
  font-family: 'Poppins', sans-serif;
  color: #1E1E1E;
  background-color: #F7F8FA;
}

/* ============ VARIÁVEIS DE TEMA ============ */
:root {
  --primary-color: #A10D0E;
  --secondary-color: #2E2768;
  --gradient: linear-gradient(135deg, #A10D0E, #2E2768);

  --bg-light: #FFFFFF;
  --bg-page: #F7F8FA;
  --text-dark: #1E1E1E;
  --text-muted: #6B7280;
  --border-color: rgba(0,0,0,0.08);
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ============ BODY E CONTAINERS GERAIS ============ */
body {
  display: flex;
  flex-direction: row;
  background-color: var(--bg-page);
  overflow-x: hidden;
}

/* Conteúdo principal */
.main-content {
  flex: 1;
  padding: 40px;
  margin-left: 90px; /* espaço da sidebar fixa */
  min-height: 100vh;
  transition: var(--transition);
}

/* Containers */
.section {
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  margin-bottom: 30px;
}

/* Tipografia básica */
h1, h2, h3, h4 {
  font-weight: 600;
  color: var(--text-dark);
}
p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* =================== SIDEBAR FIXA =================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 100vh;
  background: var(--bg-light);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  box-shadow: var(--shadow-soft);
  z-index: 100;
}

.sidebar-logo {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 18px;
  text-align: center;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 10px;
  transition: var(--transition);
  font-size: 22px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 4px 10px rgba(161,13,14,0.3);
}

.sidebar-footer {
  margin-bottom: 20px;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 22px;
}

.sidebar-footer a:hover {
  background: var(--gradient);
  color: #fff;
}

/* =================== HEADER FIXO =================== */
.header {
  position: fixed;
  top: 0;
  left: 90px;
  width: calc(100% - 90px);
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  padding: 15px 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  font-weight: 600;
  font-size: 20px;
  color: var(--text-dark);
}
.header .logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* =================== BOTÕES PADRÃO =================== */
button, .btn {
  font-family: 'Poppins', sans-serif;
  border: none;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius);
  font-weight: 500;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  padding: 12px 28px;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(161,13,14,0.25);
}
.btn-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 18px rgba(46,39,104,0.35);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 10px 26px;
}
.btn-outline:hover {
  background: var(--gradient);
  color: #fff;
}

/* =================== UTILITÁRIOS =================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.shadow-soft { box-shadow: var(--shadow-soft); }

/* =================== RESPONSIVIDADE BASE =================== */
@media (max-width: 992px) {
  .sidebar { width: 70px; }
  .header { left: 70px; width: calc(100% - 70px); }
  .main-content { margin-left: 70px; padding: 25px; }
}

@media (max-width: 768px) {
  .sidebar {
    flex-direction: row;
    height: 70px;
    width: 100%;
    bottom: 0;
    top: auto;
    border-right: none;
    border-top: 1px solid var(--border-color);
  }
  .sidebar-nav {
    flex-direction: row;
    margin-top: 0;
  }
  .header {
    position: relative;
    left: 0;
    width: 100%;
  }
  .main-content {
    margin: 0;
    padding: 20px;
  }
}



/* ===========================================================
   NETWORK PLATFORM – STYLE.CSS (VISUAL CLEAN INSTITUCIONAL)
   PARTE 2/3: DASHBOARD, MÉTRICAS, CARDS E CONTAINERS
   =========================================================== */

/* =================== HERO / SEÇÃO DE BOAS-VINDAS =================== */
.hero-section {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 50px 30px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
}

.hero-section h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.hero-section p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 20px;
}

.hero-section .btn-primary {
  padding: 12px 36px;
  font-size: 15px;
}

/* =================== PAINEL DE CONEXÕES =================== */
.stats-panel {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 25px;
  margin-bottom: 40px;
}

.stat-card {
  flex: 1 1 250px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 35px 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-number {
  font-size: 64px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

/* =================== SEÇÃO DE DESTAQUE CTA =================== */
.highlight-section {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  margin-bottom: 60px;
}

.highlight-section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.highlight-section p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 25px;
}

.highlight-section .cta-button {
  background: var(--gradient);
  color: #fff;
  padding: 14px 30px;
  font-size: 15px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.highlight-section .cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(46,39,104,0.3);
}

/* =================== CARDS GENÉRICOS (EX: VANTAGENS / MATCHING) =================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  cursor: pointer;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =================== BLOCO DE CARROSSEL / ROLAGEM =================== */
.carousel-container {
  position: relative;
  margin-bottom: 50px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(46,39,104,0.3);
}
.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.1);
}
.carousel-arrow.left { left: -10px; }
.carousel-arrow.right { right: -10px; }

/* =================== BLOCO DE CONEXÕES EXPANDIDO =================== */
.connections-panel {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.connections-panel.expanded {
  max-height: 600px;
  padding: 30px;
}

.connection-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.connection-column {
  flex: 1 1 300px;
}

.connection-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
}

.connection-item:last-child {
  border-bottom: none;
}

.connection-item .status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-green { background-color: #4CAF50; }
.status-blue { background-color: #1E88E5; }
.status-yellow { background-color: #FFC107; }

.connection-item span {
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* =================== TITULAÇÃO DE SEÇÕES =================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.section-header h2 {
  font-size: 1.5rem;
  color: var(--text-dark);
  font-weight: 600;
}
.section-header a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}
.section-header a:hover {
  text-decoration: underline;
}

/* =================== RESPONSIVIDADE DA DASHBOARD =================== */
@media (max-width: 992px) {
  .stats-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .stat-card { margin-bottom: 10px; }
}

@media (max-width: 768px) {
  .hero-section { padding: 30px 20px; }
  .stat-number { font-size: 48px; }
  .highlight-section { padding: 30px 20px; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}




/* ===========================================================
   NETWORK PLATFORM – STYLE.CSS (VISUAL CLEAN INSTITUCIONAL)
   PARTE 3/3: PÁGINAS ESPECÍFICAS + MODAIS + FORMULÁRIOS + AJUSTES
   =========================================================== */

/* =================== PÁGINA – CLUBE DE VANTAGENS =================== */
/* ===== OFFERS GRID ===== */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}

/* breakpoints */
@media (max-width: 1200px) {
  .offers-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  .offers-grid { grid-template-columns: 1fr; }
}

/* ===== OFFER CARD ===== */
.offer-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0,0,0,.08);
}
.offer-card-content { padding: 22px; }
.offer-card-company {
  margin: 0 0 6px;
  font: 700 16px/1.3 'Poppins',sans-serif;
  color: #1f1f1f;
}
.offer-card-title {
  margin: 0 0 12px;
  color: #4a4a4a;
  font: 500 15px 'Poppins',sans-serif;
}
.offer-card-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(46,39,104,.08);
  color: #2E2768;
  font: 600 12px 'Poppins',sans-serif;
}

/* =================== MODAL GENÉRICO =================== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}
.modal.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  width: 90%;
  max-width: 600px;
  padding: 40px;
  position: relative;
}
.modal-content h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.modal-content p {
  color: var(--text-muted);
}
.modal-close {
  position: absolute;
  top: 15px; right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: var(--primary-color);
}

/* =================== PÁGINA – MATCHING =================== */
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}
.match-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 25px;
  transition: var(--transition);
}
.match-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.match-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.match-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
}
.match-header h4 {
  font-size: 1.1rem;
  font-weight: 600;
}
.match-header span {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.match-details p {
  color: var(--text-muted);
  line-height: 1.5;
}
.match-btn {
  margin-top: 20px;
  width: 100%;
  background: var(--gradient);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}
.match-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 14px rgba(161,13,14,0.25);
}

/* =================== PÁGINA – TRILHAS / CURSOS =================== */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
}
.course-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.course-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}
.course-card-content {
  padding: 20px;
}
.course-card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.course-card-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* =================== PÁGINA – PERFIL =================== */
.profile-container {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
}
.profile-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
}
.profile-info p {
  color: var(--text-muted);
}

/* =================== FORMULÁRIOS =================== */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
}



input, select, textarea {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  outline: none;
  transition: var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(161,13,14,0.25);
}
textarea {
  resize: vertical;
  min-height: 100px;
}

/* =================== FILTROS / PESQUISA =================== */
/* ===== FILTER TOOLS ===== */
.filter-tools {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 18px 0 26px;
  position: relative; /* Necessário para o z-index funcionar */
  z-index: 1;      /* Coloca os filtros acima do conteúdo seguinte */
}

/* Campo de pesquisa */
.search-wrapper {
  position: relative;
  flex: 1 1 320px;                  /* cresce e tem mínimo de 320px */
  min-width: 260px;                 /* nunca menor que 260px */
  max-width: 560px;                 /* opcional: limita exageros */
}
.search-wrapper i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #8a8a8a;
}
#search-input {
  width: 100%;
  height: 44px;
  padding: 10px 14px 10px 44px;     /* espaço pro ícone */
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  font: 500 14px 'Poppins',sans-serif;
  outline: none;
  transition: box-shadow .2s,border-color .2s;
}
#search-input:focus {
  border-color: #d9d9f2;
  box-shadow: 0 0 0 4px rgba(46,39,104,.08);
}

/* Botões de categoria */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #ececec;
  background: #fff;
  color: #444;
  font: 500 13px 'Poppins',sans-serif;
  cursor: pointer;
  transition: all .2s ease;
}
.filter-btn:hover { border-color: #ddd; }
.filter-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg,#A10D0E,#2E2768);
  box-shadow: 0 3px 10px rgba(161,13,14,.18);
}

/* Limpar filtros */
.clear-filter-btn {
  margin-left: auto;                /* “cola” no fim da linha em telas largas */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #ececec;
  background: #fff;
  color: #666;
  font: 500 13px 'Poppins',sans-serif;
  cursor: pointer;
  transition: all .2s ease;
}
.clear-filter-btn:hover {
  border-color: #ddd;
  background: #fafafa;
}
.clear-filter-btn i { font-size: 18px; }

/* --- Caixa de Sugestões de Busca (Autocomplete) --- */
#search-suggestions {
  display: none; /* Escondida por padrão */
  position: absolute;
  top: 100%; /* Posicionada logo abaixo do input */
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  max-height: 250px;
  overflow-y: auto;
  z-index: 101; /* Fica acima de outros elementos */
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s;
}

.suggestion-item:hover {
  background-color: #f5f5f5;
}

.suggestion-item strong {
  font-weight: 600;
  color: #1E1E1E;
}

.suggestion-item span {
  color: #6B7280;
  font-size: 13px;
}


/* =================== AJUSTES FINAIS =================== */
footer {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
  margin-top: 40px;
}
footer a {
  color: var(--secondary-color);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* =================== RESPONSIVIDADE FINAL =================== */
@media (max-width: 992px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
}
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 25px;
  }
  .offer-card img, .course-card img {
    height: 150px;
  }
  .match-card, .offer-card, .course-card {
    padding: 20px;
  }
  .profile-container {
    padding: 25px;
  }
}


/* HEADER FIXO */
.topbar-fixed {
  position: fixed;
  top: 0;
  left: 90px;
  right: 0;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 100;
}

/* Link que envolve a logo no topo */
.topbar-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Logo do topo (header) */
.topbar-logo {
  height: 34px;     /* ajuste fino do tamanho da logo */
  width: auto;
  display: block;
}



/* ===== GRADIENT TEXT (identidade Network) ===== */
.gradient-text {
  background: linear-gradient(90deg,#A10D0E,#2E2768);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* LAYOUT ENCAIXOTADO — Máx. 1250px centralizado */
.main-content {
  margin-left: 90px;
  padding: 110px 40px 60px 40px;
  background: #f8f9fb;
  min-height: 100vh;
  display: block; /* ← Volta ao comportamento padrão de empilhamento */
}

/* AJUSTE NO CONTENT-WRAPPER */
.main-content .content-wrapper {
  max-width: 1250px;
  margin: 0 auto;
  position: relative; /* Adicione esta linha */
}



/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 90px;
  height: 100vh;
  background: #fff;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  z-index: 200;
}
.sidebar-nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin: 10px 0;
  border-radius: 12px;
  color: #6b6b6b;
  font-size: 24px;
  transition: 0.3s;
}
.sidebar-nav a:hover {
  background: linear-gradient(135deg, #A10D0E, #2E2768);
  color: #fff;
}
.sidebar-nav a.active {
  background: linear-gradient(135deg, #A10D0E, #2E2768);
  color: #fff;
  box-shadow: 0 3px 10px rgba(161,13,14,0.3);
}

/* HERO */
.hero-section {
  background: #fff;
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}
.hero-section h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
}
.hero-section p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

/* BOTÃO GRADIENTE */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #A10D0E, #2E2768);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* MÉTRICAS */
.stats-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
}
.stat-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.stat-number {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, #A10D0E, #2E2768);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* CARDS DE RECURSOS */
.highlight-section {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.highlight-section h2 {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}
.highlight-section p {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
}
.card-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.card.feature-card {
  flex: 1;
  min-width: 280px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  padding: 30px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: 0.3s;
}
.card.feature-card:hover {
  transform: translateY(-4px);
}
.card.feature-card i {
  font-size: 42px;
  color: #A10D0E;
  margin-bottom: 10px;
}

/* RODAPÉ */
footer {
  text-align: center;
  padding: 40px 0;
  font-size: 14px;
  color: #777;
}
footer a {
  color: #2E2768;
  text-decoration: none;
  font-weight: 500;
}
footer a:hover {
  text-decoration: underline;
}



/* ======================================================
   PÁGINA DE CONEXÕES (MATCHING) — NOVO VISUAL
   ====================================================== */

/* --- Cabeçalho da página --- */
.page-header {
  text-align: center;
  margin-bottom: 30px;
}
.page-header h1 {
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(135deg, #A10D0E, #2E2768);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.page-header p {
  font-size: 15px;
  color: #555;
  max-width: 650px;
  margin: 0 auto;
}

/* --- Abas de navegação (centralizadas) --- */
/* --- Abas de navegação (centralizadas, com base achatada) --- */
.tabs-container {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 1px solid #e4e4e4;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px 10px 0 0; /* Topo arredondado, base reta */
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #555;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  top: 2px; /* cria leve sobreposição sobre a borda inferior */
}

.tab-btn:hover {
  background: #f8f8f8;
  border-color: #ccc;
}

.tab-btn.active {
  background: linear-gradient(135deg, #A10D0E, #2E2768);
  color: #fff;
  border-color: transparent;
  border-bottom: none; /* remove a borda inferior da aba ativa */
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  top: 1px; /* aba levemente “inserida” na linha inferior */
}

.tab-btn i {
  font-size: 20px;
}

/* --- Container geral dos cards --- */
.matches-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.matches-grid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 24px;
}
.matches-grid.active {
  display: grid;
}

/* --- Card de conexão (duas colunas) --- */
.match-card {
  background: #fff;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  transition: all 0.25s ease;
}
.match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* --- Cabeçalho do card (Logo + Empresa) --- */
.match-card-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}
.match-card-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background-color: #f3f3f3;
  border: 1px solid #ddd;
  object-fit: cover;
  flex-shrink: 0;
}
.match-card-company-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: #1e1e1e;
  margin-bottom: 4px;
}
.match-card-company-info p {
  font-size: 14px;
  color: #6b6b6b;
  margin: 0;
}

/* --- Motivo da Conexão --- */
.match-reason {
  background-color: #fafafa;
  border-radius: 10px;
  padding: 18px;
  border-left: 5px solid #A10D0E;
}
.match-reason-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
  font-weight: 600;
}
.match-reason-title i {
  font-size: 18px;
  color: #A10D0E;
}
.match-reason p {
  margin: 0;
  color: #555;
  line-height: 1.6;
  font-size: 14.5px;
}

/* --- Responsividade --- */
@media (max-width: 1100px) {
  .matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}
@media (max-width: 850px) {
  .matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}
@media (max-width: 600px) {
  .tabs-container {
    flex-direction: column;
    gap: 10px;
  }
  .tab-btn {
    width: 100%;
    justify-content: center;
  }
  .matches-grid {
    grid-template-columns: 1fr;
  }
}

/* ==== FIX: desligar sidebar "mobile" antiga e ajustar layout ==== */
@media (max-width: 768px) {
  /* some a sidebar antiga que virava barra inferior */
  .sidebar {
    display: none !important;
  }

  /* header em largura total */
  .topbar-fixed {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }

  /* remove margem da sidebar e reserva espaço para a bottom-nav */
  .main-content {
    margin: 0 !important;
    padding: 100px 16px 88px !important; /* bottom = altura da nav + folga */
    min-height: 100vh;
  }

  /* garante que nada fique escondido atrás da nav fixa */
  body {
    padding-bottom: 88px; /* mesma altura da nav */
  }
}



/* =================== FILTROS COM SELECT =================== */
.filter-select-wrapper {
  flex: 1 1 200px; /* Permite que cresçam e diminuam com um tamanho base */
  min-width: 180px;
}

.filter-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  font: 500 14px 'Poppins', sans-serif;
  color: #444;
  outline: none;
  -webkit-appearance: none; /* Remove a seta padrão em alguns navegadores */
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
  transition: box-shadow .2s, border-color .2s;
}

.filter-select:focus {
  border-color: #d9d9f2;
  box-shadow: 0 0 0 4px rgba(46, 39, 104, .08);
}


/* =================== AJUSTES DE ESTILO PARA SELECT2 =================== */

/* --- Container Principal do Select2 --- */
/* Garante que o container tenha a mesma altura e aparência do input de pesquisa. */
.select2-container--default .select2-selection--single {
  height: 44px !important; /* Força a altura para bater com o #search-input */
  border: 1px solid #e8e8e8 !important; /* Mesma borda do #search-input */
  border-radius: 12px !important; /* Mesmo raio de borda */
  background-color: #fff;
  display: flex;
  align-items: center; /* Centraliza verticalmente o texto selecionado */
}

/* --- Texto do item selecionado --- */
/* Ajusta a fonte e a cor para combinar com o placeholder dos seus inputs. */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #444; /* Cor do texto quando algo é selecionado */
  line-height: 42px; /* Alinhamento vertical */
  padding-left: 14px !important;
  padding-right: 30px !important; /* Espaço para a seta */
}

/* --- Seta (dropdown arrow) --- */
/* Posiciona a seta corretamente dentro do container de 44px. */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px;
  top: 1px;
  right: 5px;
}

/* --- Placeholder (texto "Filtrar por...") --- */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #8a8a8a; /* Cor cinza sutil, igual ao placeholder da pesquisa */
}

/* --- Efeito de Foco (quando o usuário clica no filtro) --- */
/* Replica EXATAMENTE o mesmo efeito de foco azulado do seu input de pesquisa. */
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #d9d9f2 !important;
  box-shadow: 0 0 0 4px rgba(46, 39, 104, .08) !important;
}

/* --- Painel de Opções (o dropdown que abre) --- */
/* Estiliza o painel para combinar com a estética geral. */
.select2-dropdown {
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 16px rgba(0,0,0,0.07);
    overflow: hidden; /* Garante que os cantos arredondados sejam aplicados a tudo */
}

/* --- Campo de Busca dentro do Dropdown --- */
.select2-search--dropdown .select2-search__field {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: 'Poppins', sans-serif;
}

/* --- Estilo das Opções (Hover e Selecionada) --- */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: linear-gradient(135deg, #A10D0E, #2E2768); /* Usa seu gradiente de marca */
    color: white;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f0f0f5;
    color: #1E1E1E;
}


/* --- modal card --- */


.match-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform .2s;
}
.match-card:hover { transform: scale(1.02); }

.match-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.match-logo {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
}
.match-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}
.match-modal.active { display: flex; }
.match-modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.match-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
}
.match-modal-footer a {
  margin-right: 8px;
  text-decoration: none;
  color: #fff;
  background: #2E2768;
  padding: 8px 12px;
  border-radius: 8px;
}
.btn-whatsapp { background: #25D366; }
.btn-email { background: #A10D0E; }


/* ======================================================
   MODAL DE OPORTUNIDADES - NOVO COMPONENTE
   ====================================================== */

/* --- Wrapper Principal do Modal (Fundo e Posição) --- */
.opportunities-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Animação de entrada */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}
.opportunities-modal.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* --- Fundo Escurecido (Backdrop) --- */
.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* --- Container do Modal (Caixa Branca) --- */
.modal-container {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  
  /* Animação de entrada */
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.opportunities-modal.active .modal-container {
  transform: scale(1);
}

/* --- Cabeçalho do Modal --- */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0; /* Impede que o header encolha */
}
.modal-header h2 {
  font-size: 22px;
  margin: 0;
}
.modal-close-btn {
  background: none;
  border: none;
  font-size: 32px;
  font-weight: 300;
  color: #888;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}
.modal-close-btn:hover {
  color: #333;
}

/* --- Abas de Navegação --- */
.modal-tabs {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.modal-tab-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #555;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.modal-tab-btn:hover {
  background-color: #f0f0f0;
  border-color: #ccc;
}
.modal-tab-btn.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Conteúdo Principal do Modal (Área de Rolagem) --- */
.modal-content {
  flex-grow: 1; /* Faz esta área ocupar o espaço restante */
  overflow-y: auto; /* Adiciona barra de rolagem se necessário */
  padding: 24px;
}
.modal-tab-content {
  display: none; /* Esconde as abas inativas */
}
.modal-tab-content.active {
  display: block; /* Mostra a aba ativa */
}
.modal-loading-text, .modal-empty-state {
  text-align: center;
  color: #888;
  font-size: 15px;
  padding: 40px 0;
}

/* --- Card de Oportunidade --- */
.opportunity-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.opportunity-card:last-child {
  margin-bottom: 0;
}
.opportunity-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
  flex-shrink: 0;
}
.opportunity-details {
  flex-grow: 1;
}
.opportunity-company-name {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.opportunity-reason {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px 0;
  padding: 10px;
  background-color: #f5f5fa;
  border-left: 4px solid var(--secondary-color);
  border-radius: 4px;
}
.opportunity-reason strong {
  color: #333;
}
.opportunity-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-right: 10px;
  transition: opacity 0.2s;
}
.opportunity-actions a:hover {
  opacity: 0.85;
}
.action-whatsapp { background-color: #25D366; }
.action-email { background-color: var(--primary-color); }

/* --- Responsividade do Modal --- */
@media (max-width: 768px) {
  .modal-container {
    max-height: 95vh;
    width: 95%;
  }
  .modal-header h2 {
    font-size: 18px;
  }
  .modal-tab-btn {
    font-size: 13px;
    padding: 10px;
  }
  .modal-content {
    padding: 16px;
  }
  .opportunity-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .opportunity-actions {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}


/* ============================================== */
/* FIX VISUAL — MODAL DE CRIAÇÃO DE VOUCHER       */
/* ============================================== */

/* Espaçamento padrão (desktop) */
.modal-content {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
  border-radius: 16px !important;
}

/* Ajuste no container do modal */
.modal.active {
  display: flex;
  justify-content: center;
  align-items: flex-start !important; /* evita colar no topo */
  padding-top: 40px;
  padding-bottom: 40px;
}

/* MOBILE FIX */
@media (max-width: 768px) {

  /* Modal deve ficar com respiro nas laterais e no topo */
  .modal-content {
    width: 92% !important;
    padding: 22px !important;
    margin: 60px auto !important; /* cria espaçamento */
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto;
  }

  /* O wrapper do modal deve permitir rolagem */
  .modal.active {
    align-items: flex-start !important;
    padding: 20px 0 !important;
  }
}


/* ======================================================
   ESTILOS ADICIONAIS PARA O BOTÃO DE RESGATE NO MODAL
   ====================================================== */
.opportunity-actions .action-resgatar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-right: 10px;
  transition: opacity 0.2s;
  background-color: var(--secondary-color); /* Usando sua cor secundária */
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
}

.opportunity-actions .action-resgatar:hover {
  opacity: 0.85;
}

.opportunity-actions .action-resgatar:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}


/* ======================================================
   AJUSTES VISUAIS E RESPONSIVOS NO MODAL E SWEETALERT
   (Solução para os 6 pontos de feedback)
   ====================================================== */

/* --- PONTO 1: Aumenta a largura máxima do modal no desktop --- */
/* Aumenta de 700px para 800px para dar mais espaço e aproveitar melhor a tela */
.modal-container {
  max-width: 800px;
}

/* --- PONTOS 2, 3, 4: Ajustes para o MODO MOBILE --- */
@media (max-width: 768px) {

  /* PONTO 2: Adiciona margem nas laterais do modal no mobile */
  .modal-container {
    width: 95%; /* Ocupa 95% da tela, criando margens de 2.5% de cada lado */
    margin: 0 auto; /* Centraliza o container */
  }

  /* PONTO 3: Ajusta o texto e o espaçamento das abas no mobile */
  .modal-tab-btn {
    flex-direction: column; /* Ícone fica em cima, texto embaixo */
    gap: 4px; /* Espaço menor entre o ícone e o texto */
    font-size: 12px;
    padding: 8px 5px; /* Ajusta o padding vertical e horizontal */
    height: 60px; /* Garante que as abas tenham a mesma altura */
    text-align: center; /* Centraliza o texto caso ele quebre em duas linhas */
    justify-content: center; /* Centraliza verticalmente o conteúdo */
  }

  /* PONTO 4: Organiza os botões de ação um abaixo do outro no mobile */
  .opportunity-actions {
    flex-direction: column; /* Empilha os botões verticalmente */
    align-items: stretch;  /* Faz os botões ocuparem a largura total */
    gap: 10px; /* Adiciona espaço entre os botões empilhados */
    margin-top: 16px; /* Adiciona espaço acima do primeiro botão */
  }

  .opportunity-actions a,
  .opportunity-actions button {
    margin-right: 0; /* Remove a margem direita que só faz sentido no desktop */
    width: 100%;     /* Garante que todos os botões tenham a mesma largura */
    justify-content: center; /* Centraliza o conteúdo (ícone e texto) do botão */
  }
}

/* --- PONTOS 5 e 6: Ajustes para os pop-ups do SWEETALERT no mobile --- */
@media (max-width: 500px) {

  /* Ponto 5 e 6: Garante que o alerta não ocupe a tela toda */
  .swal2-popup {
    width: 90% !important; /* Força o pop-up a ter 90% da largura da tela, criando margens */
  }

  /* Empilha os botões "Resgatar" e "Cancelar" para não ficarem espremidos */
  .swal2-actions {
    display: flex;
    flex-direction: column; 
    gap: 10px;
  }
  .swal2-actions button.swal2-confirm,
  .swal2-actions button.swal2-cancel {
    width: 100%;
    margin: 0 !important; /* Remove margens padrão do sweetalert que atrapalham no mobile */
  }
}


/* ============================== */
/* AJUSTE REAL DO MODAL */
/* ============================== */

#create-voucher-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px 20px; /* espaço superior e inferior */
    overflow-y: auto !important; /* modal deve rolar */
    display: flex;
    align-items: flex-start; 
    justify-content: center;
    z-index: 9999;
}

#create-voucher-modal .modal-content {
    width: 100%;
    max-width: 650px;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 60px; /* evita grudar no menu mobile */
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ============================== */
/* MOBILE (iPhone / Android) */
/* ============================== */
@media (max-width: 768px) {

    #create-voucher-modal {
        padding: 60px 16px 100px !important; 
        /* top maior + bottom maior para não colidir com menu inferior */
    }

    #create-voucher-modal .modal-content {
        padding: 24px !important;
        width: 100% !important;
        margin: 0 auto 80px !important;
    }
}



/* ============================================================
   NETWORK — ESTILO DO FORMULÁRIO DO MODAL DE CRIAÇÃO DE VOUCHER
   ============================================================ */

/* ======================= */
/* 1) TÍTULO COM GRADIENTE */
/* ======================= */

#create-voucher-modal .modal-content h3 {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    background: linear-gradient(135deg, #A10D0E, #2E2768);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#create-voucher-modal .modal-content p {
    color: #6B7280 !important;
    margin-bottom: 25px !important;
    font-size: 15px;
    line-height: 1.5;
}

/* ============================================================
   2) SELECTS ESTILO NETWORK – IGUAL AOS DA PÁGINA VANTAGENS
   ============================================================ */

#create-voucher-modal select {
    width: 100%;
    height: 48px !important;
    padding: 0 16px !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 12px !important;
    background: #fff !important;
    font: 500 14px 'Poppins', sans-serif !important;
    color: #444 !important;
    
    /* Remove a seta nativa */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;

    /* Seta customizada */
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 18px !important;

    transition: all .25s ease;
}

#create-voucher-modal select:focus {
    border-color: #d9d9f2 !important;
    box-shadow: 0 0 0 4px rgba(46,39,104,.10) !important;
}


/* ========= */
/* INPUTS    */
/* ========= */

#create-voucher-modal input {
    height: 48px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    padding: 0 16px !important;
}

/* ============================= */
/* 3) AJUSTE DE RESPONSIVIDADE   */
/* ============================= */

@media (max-width: 768px) {

    #create-voucher-modal .modal-content {
        padding: 24px !important;
        width: 100% !important;
        margin: 0 auto 80px !important;
    }

    #create-voucher-modal .modal-content h3 {
        font-size: 24px !important;
        text-align: center !important;
    }

    #create-voucher-modal select {
        height: 44px !important;
        background-position: right 10px center !important;
    }

    #create-voucher-modal input {
        height: 44px !important;
    }
}


/* =========================================================== */
/* 🚀 FIX GLOBAL — PADDING PARA NÃO FICAR ATRÁS DO MENU MOBILE */
/* =========================================================== */
@media (max-width: 768px) {
    
    body {
        padding-bottom: 40px !important;
    }

    main,
    .main-content,
    .content-wrapper,
    .page-container,
    .container,
    .wrapper {
        padding-bottom: 40px !important;
        margin-bottom: 0 !important;
    }

    footer {
        margin-bottom: 40px !important;
    }
}

