:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --primary: #1e3a8a;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --accent: #0d9488;
  --accent-soft: #f0fdfa;
  --gold: #d97706;
  --gold-soft: #fffbeb;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --purple: #6d28d9;
  --purple-soft: #f5f3ff;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 0.925rem;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.hidden {
  display: none !important;
}

/* ==========================================
   BUTTONS & BADGES
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.05rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: #0f766e;
}

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover {
  background: #166534;
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-outline:hover {
  background: var(--surface-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger-soft {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid #fecaca;
}
.btn-danger-soft:hover {
  background: #fee2e2;
}

.btn-sm {
  padding: 0.36rem 0.72rem;
  font-size: 0.8rem;
  border-radius: 7px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.badge-pos { background: var(--primary-soft); color: var(--primary); border: 1px solid #bfdbfe; }
.badge-curso { background: var(--accent-soft); color: var(--accent); border: 1px solid #99f6e4; }
.badge-tcc { background: var(--purple-soft); color: var(--purple); border: 1px solid #ddd6fe; }
.badge-consultoria { background: var(--gold-soft); color: var(--gold); border: 1px solid #fde68a; }

.badge-success { background: var(--success-soft); color: var(--success); border: 1px solid #bbf7d0; }
.badge-warning { background: var(--gold-soft); color: var(--gold); border: 1px solid #fde68a; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border: 1px solid #fecaca; }
.badge-neutral { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

.tier-ouro { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; border: 1px solid #f59e0b; }
.tier-prata { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #334155; border: 1px solid #94a3b8; }
.tier-bronze { background: linear-gradient(135deg, #ffedd5, #fed7aa); color: #9a3412; border: 1px solid #fb923c; }

/* ==========================================
   SITE PÚBLICO INSTITUCIONAL
   ========================================== */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #0d9488);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}
.site-nav-links a:hover {
  color: var(--primary);
}

.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #0f766e 100%);
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.hero-kicker {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: 2.55rem;
  line-height: 1.16;
  font-weight: 800;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 1.8rem;
  max-width: 580px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-stat-num {
  font-size: 1.65rem;
  font-weight: 800;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.75rem;
}

.hero-pillars {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.hero-pillar-item {
  background: rgba(15, 23, 42, 0.35);
  padding: 0.9rem 1rem;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.2rem;
}

.section-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.pill-btn {
  padding: 0.48rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
}
.pill-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.35rem;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.quote-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  max-width: 840px;
  margin: 0 auto;
}

/* ==========================================
   PAINEL DE GESTÃO (ADMIN & VENDEDOR)
   ========================================== */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0f172a;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.25rem 0.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.1rem;
}

.sidebar-brand-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  line-height: 1.25;
}

.sidebar-role-tag {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 9px;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.9rem;
  text-align: left;
  transition: all 0.14s ease;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.nav-item.active {
  background: var(--primary-hover);
  color: #fff;
  font-weight: 600;
}

.nav-counter {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 0.1rem 0.48rem;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.main-area {
  padding: 1.6rem 2rem 3rem;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.page-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Sub-abas dentro dos módulos */
.subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  background: #e2e8f0;
  padding: 0.32rem;
  border-radius: 11px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.subtab-btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: all 0.15s ease;
}
.subtab-btn:hover {
  color: var(--text);
}
.subtab-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* Cards & Grids */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(182px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0.35rem 0 0.25rem;
  color: var(--text);
}

.kpi-foot {
  font-size: 0.79rem;
  color: var(--text-light);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.card-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

/* Tabelas */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th {
  text-align: left;
  padding: 0.72rem 0.85rem;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 0.82rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #fafcff;
}

/* Progress bar */
.progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0d9488);
  transition: width 0.3s ease;
}

/* Formulários */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-control {
  padding: 0.58rem 0.78rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease;
}
.form-control:focus {
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Podium Ranking */
.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.podium-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  background: var(--surface-soft);
  position: relative;
}
.podium-card.rank-1 {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border-color: #f59e0b;
}

/* Bar chart custom */
.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  height: 210px;
  padding: 1rem 0.5rem 0.25rem;
  border-bottom: 1px solid var(--border);
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-group {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 165px;
  width: 100%;
  justify-content: center;
}

.bar-rev {
  width: 16px;
  background: #1d4ed8;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}
.bar-out {
  width: 16px;
  background: #94a3b8;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}
.bar-prof {
  width: 16px;
  background: #0d9488;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.chart-month-lbl {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.45rem;
}

/* DRE list */
.dre-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.dre-row span:last-child {
  white-space: nowrap;
  font-weight: 600;
}
.dre-row.highlight {
  background: var(--surface-soft);
  font-weight: 700;
  border-radius: 6px;
  border-bottom: none;
  margin: 0.25rem 0;
}
.dre-row.profit {
  background: var(--success-soft);
  color: var(--success);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  margin-top: 0.5rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 0.78rem 1.15rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  border-left: 4px solid #10b981;
}
.toast.error {
  border-left-color: #ef4444;
}

@media (max-width: 960px) {
  .hero-grid, .grid-2, .app-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    height: auto;
  }
  .form-grid, .podium-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================
   TEMA ACADÊMICO / ESCOLA & DIPLOMA (SITE PÚBLICO)
   ========================================== */
:root {
  --acad-navy: #0c1f3f;
  --acad-navy-mid: #16325c;
  --acad-gold: #c9972b;
  --acad-gold-light: #f3d78a;
  --acad-cream: #faf7f0;
  --acad-border-gold: rgba(201, 151, 43, 0.38);
}

.font-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.acad-navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 2px solid var(--acad-border-gold);
}

.acad-brand-crest {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--acad-navy), #1e3a8a);
  border: 2px solid var(--acad-gold);
  color: var(--acad-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(12, 31, 63, 0.2);
}

.acad-hero {
  position: relative;
  background-color: var(--acad-navy);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 5.2rem 0 4.6rem;
  overflow: hidden;
  border-bottom: 4px solid var(--acad-gold);
}

.acad-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(9, 22, 46, 0.88) 0%, rgba(12, 31, 63, 0.68) 52%, rgba(12, 31, 63, 0.36) 100%);
  pointer-events: none;
}

.acad-hero-content {
  position: relative;
  z-index: 2;
}

.acad-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  background: rgba(201, 151, 43, 0.18);
  border: 1px solid rgba(243, 215, 138, 0.55);
  color: var(--acad-gold-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
}

.acad-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.85rem;
  line-height: 1.14;
  font-weight: 800;
  margin-bottom: 1.15rem;
  color: #fff;
}

.acad-hero-title span {
  color: var(--acad-gold-light);
}

.btn-gold {
  background: linear-gradient(135deg, #d4a336, #b3801b);
  color: #0b1830;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(201, 151, 43, 0.35);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #e0b146, #c48f22);
  transform: translateY(-2px);
}

/* Diploma Floating Preview in Hero */
.diploma-showcase-card {
  background: linear-gradient(155deg, #fffdf8 0%, #f7f0df 100%);
  color: var(--acad-navy);
  border-radius: 16px;
  padding: 1.65rem;
  border: 2px solid var(--acad-gold);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.38);
  position: relative;
  overflow: hidden;
}

.diploma-showcase-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(201, 151, 43, 0.55);
  border-radius: 10px;
  pointer-events: none;
}

.diploma-seal {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f6dc8d, #c9972b 65%, #8f6510);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(143, 101, 16, 0.4);
  flex-shrink: 0;
}

/* Abas Interativas do Catálogo Acadêmico */
#catalogo, #avaliacoes, #orcamento {
  scroll-margin-top: 84px;
}

.acad-catalog-section {
  background: var(--acad-cream);
  padding: 4.5rem 0;
}

.acad-tabs-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  max-width: 960px;
  margin: 0 auto 2.4rem;
}

.acad-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #fff;
  border: 1.5px solid #e2ddd0;
  color: var(--acad-navy);
  text-align: left;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 8px rgba(12, 31, 63, 0.04);
}

.acad-tab-btn:hover {
  border-color: var(--acad-gold);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(12, 31, 63, 0.08);
}

.acad-tab-btn.active {
  background: linear-gradient(135deg, var(--acad-navy), #1c3a6e);
  color: #fff;
  border-color: var(--acad-gold);
  box-shadow: 0 12px 26px rgba(12, 31, 63, 0.22);
  transform: translateY(-2px);
}

.acad-tab-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(201, 151, 43, 0.14);
  color: var(--acad-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acad-tab-btn.active .acad-tab-icon {
  background: rgba(243, 215, 138, 0.2);
  color: var(--acad-gold-light);
}

.acad-tab-title {
  font-weight: 800;
  font-size: 0.94rem;
  line-height: 1.2;
}

.acad-tab-sub {
  font-size: 0.74rem;
  opacity: 0.78;
  margin-top: 2px;
}

/* Cards de Curso Estilo Diploma & Parcelas 12x */
.acad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.5rem;
}

.acad-card {
  background: #fff;
  border: 1.5px solid #e6e0d2;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(12, 31, 63, 0.05);
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  position: relative;
}

.acad-card:hover {
  transform: translateY(-5px);
  border-color: var(--acad-gold);
  box-shadow: 0 18px 36px rgba(12, 31, 63, 0.13);
}

.acad-card-top {
  background: linear-gradient(135deg, #0f2447, #1b3b70);
  padding: 1rem 1.35rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--acad-gold);
}

.acad-card-top.cat-tcc {
  background: linear-gradient(135deg, #2d1b54, #4c2889);
}
.acad-card-top.cat-curso {
  background: linear-gradient(135deg, #0d3b46, #0f6870);
}
.acad-card-top.cat-consultoria {
  background: linear-gradient(135deg, #3b2608, #7c4d12);
}

.acad-card-html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.acad-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--acad-navy);
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.acad-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 0.65rem;
}

.acad-price-box {
  background: #faf7f0;
  border: 1px solid #eadfc7;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-top: auto;
  margin-bottom: 1rem;
}

.acad-installment-main {
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--acad-navy);
  line-height: 1.15;
}

.acad-installment-main span {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--acad-gold);
}

.acad-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0 1.35rem 1.35rem;
}

/* Modal Interativo de Detalhes do Curso & Prévia de Diploma */
.course-detail-anim {
  animation: popReveal 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.diploma-mini-preview {
  background: linear-gradient(135deg, #fffdf7 0%, #f6eed9 100%);
  border: 2px solid var(--acad-gold);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  text-align: center;
  position: relative;
  margin-bottom: 1.25rem;
}

.diploma-mini-preview::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 151, 43, 0.4);
  border-radius: 8px;
  pointer-events: none;
}

/* Seção de Avaliações de Clientes */
.reviews-section {
  background: #fff;
  padding: 4.5rem 0;
  border-top: 1px solid #e6e0d2;
  border-bottom: 1px solid #e6e0d2;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--acad-cream);
  border: 1px solid #e6decb;
  border-radius: 14px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(12, 31, 63, 0.08);
}

.review-stars {
  color: #d97706;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 0.65rem;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--acad-navy);
  color: var(--acad-gold-light);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

@media (max-width: 960px) {
  .acad-tabs-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .acad-hero-title {
    font-size: 2.1rem;
  }
}

@media (max-width: 560px) {
  .acad-tabs-bar {
    grid-template-columns: 1fr;
  }
}


/* ==========================================
   VÍDEO DE FUNDO RESPONSIVO + PSICOLOGIA + PROXIMIDADE/FORMATURA
   ========================================== */
.acad-catalog-section {
  position: relative;
  overflow: hidden;
  background: var(--acad-navy);
}

.catalog-bg-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center bottom;
}

.bg-slide-a {
  background-image: url('/img/catalogo-formatura-hd.jpg');
  opacity: 1;
}

.bg-slide-b {
  background-image: url('/img/hero-diploma-hd.jpg');
  background-position: center;
  opacity: 0;
  animation: catalogSoftFade 18s ease-in-out infinite;
}

@keyframes catalogSoftFade {
  0%, 45%  { opacity: 0; }
  55%, 90% { opacity: 1; }
  100%     { opacity: 0; }
}

.catalog-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 27, 56, 0.50) 0%,
    rgba(11, 27, 56, 0.22) 30%,
    rgba(11, 27, 56, 0.12) 60%,
    rgba(11, 27, 56, 0.40) 100%
  );
}

.catalog-foreground .section-header h2,
.catalog-foreground .section-header p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.catalog-foreground {
  position: relative;
  z-index: 2;
}

/* Faixa Psicológica: Por que investir na sua formação agora? */
.psych-banner {
  background: rgba(9, 22, 46, 0.58);
  border: 1px solid rgba(243, 215, 138, 0.4);
  backdrop-filter: blur(6px);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.2rem;
  color: #fff;
}

.psych-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 1rem;
}

.psych-item {
  background: rgba(9, 22, 46, 0.55);
  border: 1px solid rgba(243, 215, 138, 0.22);
  border-radius: 13px;
  padding: 1.05rem 1.15rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.psych-item:hover {
  transform: translateY(-3px);
  border-color: var(--acad-gold-light);
}

.psych-metric {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--acad-gold-light);
  margin-bottom: 0.25rem;
}

/* Cards com Efeito de Proximidade + 3D + Formatura */
.acad-card {
  --mx: 50%;
  --my: 50%;
  --prox: 0;
  transform-style: flat;
  will-change: transform;
  border: 1.5px solid rgba(230, 224, 210, 0.9);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}

/* Brilho dourado magnético que intensifica quanto mais perto o cursor chega */
.acad-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: radial-gradient(
    280px circle at var(--mx) var(--my),
    rgba(243, 215, 138, calc(0.22 * var(--prox))),
    rgba(201, 151, 43, calc(0.06 * var(--prox))) 45%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.2s ease;
}

.acad-card.is-near {
  border-color: rgba(212, 163, 54, calc(0.45 + 0.55 * var(--prox)));
  box-shadow: 0 12px 32px rgba(212, 163, 54, calc(0.14 + 0.24 * var(--prox)));
}

.acad-card:hover {
  border-color: var(--acad-gold);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(243, 215, 138, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .bg-slide-a { animation: none; opacity: 1; transform: none; }
  .bg-slide-b { display: none; }
  .acad-card { transition: none; }
}

/* Etiqueta Psicológica de Carreira em cada Card */
.career-trigger-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

/* Partículas de Formatura (Capelos e Brilhos Dourados) */
.grad-particle {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 16px;
  animation: gradFloatUp 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  user-select: none;
}

@keyframes gradFloatUp {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.55) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx, 0px), var(--dy, -75px)) scale(1.15) rotate(var(--rot, 25deg));
  }
}

/* Barra Emocional "Mais Perto da Sua Formação" no Modal e Formulário */
.journey-stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.15rem;
  background: #f8f5ec;
  border: 1px solid #e6decb;
  border-radius: 12px;
  padding: 0.75rem;
}

.journey-step {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

.journey-step.done {
  color: var(--success);
}

.journey-step.active {
  color: var(--acad-navy);
  font-weight: 800;
}

.journey-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin: 0 auto 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #475569;
}

.journey-step.done .journey-dot {
  background: var(--success);
  color: #fff;
}

.journey-step.active .journey-dot {
  background: linear-gradient(135deg, #d4a336, #b3801b);
  color: #0b1830;
  box-shadow: 0 0 0 4px rgba(212, 163, 54, 0.25);
}

.psych-impact-box {
  background: linear-gradient(135deg, #0f2447, #1b3b70);
  color: #fff;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.15rem;
  border-left: 4px solid var(--acad-gold-light);
}

@media (max-width: 860px) {
  .psych-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-container {
    padding: 0 1rem;
  }
  .site-nav-inner {
    height: auto;
    padding: 0.7rem 0;
    flex-wrap: wrap;
  }
  .site-nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.84rem;
  }
  .acad-hero {
    padding: 2.8rem 0 2.6rem;
  }
  .acad-hero-title {
    font-size: 1.85rem;
  }
  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .hero-stat-num {
    font-size: 1.25rem;
  }
  .acad-catalog-section {
    padding: 2.8rem 0;
  }
  .psych-banner {
    padding: 1.1rem;
  }
  .acad-grid {
    grid-template-columns: 1fr;
  }
  .acad-card-actions {
    grid-template-columns: 1fr;
  }
  .quote-box {
    padding: 1.3rem;
  }
  .modal-box {
    padding: 1.1rem;
  }
}


/* Vídeo MP4 Nativo Responsivo (H.264) + Botão Flutuante WhatsApp */
.catalog-bg-video-el {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  pointer-events: none;
}

.whatsapp-float {
  position: fixed;
  bottom: 1.35rem;
  left: 1.35rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #16a34a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.38);
  transition: transform 0.18s ease, background 0.18s ease;
}

.whatsapp-float:hover {
  background: #15803d;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .whatsapp-float span.wa-label {
    display: none;
  }
  .whatsapp-float {
    padding: 0.8rem;
  }
}


/* ==========================================
   ANIMAÇÕES DE CARREGAMENTO (COUNT-UP + SCROLL REVEAL)
   ========================================== */
.hero-stat-bar {
  width: 100%;
  max-width: 110px;
  height: 3px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  margin-top: 0.45rem;
  overflow: hidden;
}

.hero-stat-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9972b, #f6dc8d);
  border-radius: 999px;
  transition: width 3.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-stat-bar-fill {
    transition: none;
    width: 100% !important;
  }
}


/* ==========================================
   CARROSSEL DE AVALIAÇÕES + HOVER 2S PARA ABRIR
   ========================================== */
.reviews-carousel-shell {
  position: relative;
  width: 100%;
}

.reviews-carousel-shell::before,
.reviews-carousel-shell::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 5;
  pointer-events: none;
}

.reviews-carousel-shell::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.reviews-carousel-shell::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.reviews-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.reviews-carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.6rem 2.5rem 1.2rem;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  width: 100%;
}

.reviews-carousel-track::-webkit-scrollbar {
  display: none;
}

.reviews-carousel-track.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
  user-select: none;
}

.review-slide-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.review-hover-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #c9972b, #f3d78a);
  transition: width 0.15s ease;
}

.review-slide-card.is-hover-loading .review-hover-bar {
  width: 100%;
  transition: width 2s linear;
}

.review-hover-hint {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.carousel-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #d6ccb8;
  color: var(--acad-navy);
  font-weight: 800;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.carousel-nav-btn:hover {
  background: var(--acad-navy);
  color: var(--acad-gold-light);
  border-color: var(--acad-navy);
}

@media (max-width: 600px) {
  .review-slide-card {
    flex: 0 0 85vw;
  }
}


/* ==========================================
   RESPIRO DOS CARDS + CURSOR DE MINI DIPLOMA
   ========================================== */
.acad-card,
.acad-card button,
.diploma-showcase-card,
.diploma-mini-preview {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cg transform='rotate(-22 16 16)'%3E%3Crect x='5' y='11' width='22' height='10' rx='3' fill='%23fff8e7' stroke='%23c9972b' stroke-width='2'/%3E%3Cellipse cx='7' cy='16' rx='2.2' ry='5' fill='%23f3e3b8' stroke='%23c9972b' stroke-width='1.5'/%3E%3Crect x='13.5' y='10.5' width='5' height='11' rx='1' fill='%23b91c1c'/%3E%3Ccircle cx='16' cy='16' r='2.3' fill='%23f3d78a' stroke='%2392400e' stroke-width='0.8'/%3E%3Cpath d='M14.5 21 L12 26 L15.5 24.5 Z' fill='%23b91c1c'/%3E%3Cpath d='M17.5 21 L20 26 L16.5 24.5 Z' fill='%23b91c1c'/%3E%3C/g%3E%3C/svg%3E") 6 6, pointer;
}

.acad-card-top {
  padding: 1.05rem 1.55rem;
}

.acad-card-body {
  padding: 1.45rem 1.7rem 1.25rem;
}

.acad-card-title {
  line-height: 1.38;
  margin-bottom: 0.7rem;
}

.acad-card-body p {
  line-height: 1.58;
}

.acad-card-actions {
  padding: 0 1.7rem 1.55rem;
  gap: 0.7rem;
}


/* Barra Dourada de Transição Suave ao Navegar pelo Menu */
.nav-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3.5px;
  width: 0%;
  background: linear-gradient(90deg, #1e3a8a, #c9972b, #f6dc8d);
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(201, 151, 43, 0.55);
  transition: opacity 0.25s ease;
}


/* Gráfico Executivo Interativo SVG no Dashboard */
.exec-chart-wrap {
  position: relative;
  width: 100%;
  margin-top: 0.25rem;
}

.exec-chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.exec-chart-col-hit {
  cursor: pointer;
  fill: transparent;
  transition: fill 0.15s ease;
}
.exec-chart-col-hit:hover {
  fill: rgba(30, 58, 138, 0.04);
}

.exec-chart-tooltip {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  font-size: 0.78rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.28);
  pointer-events: none;
  z-index: 15;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cat-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cat-breakdown-item {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.68rem 0.85rem;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.cat-breakdown-item:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: var(--primary-hover);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}


/* Seção de Subtelas de Configuração no Menu Lateral */
.sidebar-section-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding: 0.85rem 0.85rem 0.3rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-subitem {
  padding: 0.52rem 0.85rem 0.52rem 1.35rem;
  font-size: 0.84rem;
}


/* Menu Sanfona (Accordion) de Configurações na Sidebar */
.nav-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 9px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-accordion-toggle:hover,
.nav-accordion-toggle.is-open {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-chevron {
  display: inline-block;
  font-size: 0.78rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-accordion-toggle.is-open .nav-chevron {
  transform: rotate(90deg);
}

.nav-submenu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-left: 0.45rem;
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-submenu.is-open {
  max-height: 320px;
  opacity: 1;
  margin-top: 0.3rem;
}
