/* ==========================================================================
   CENTRO DE FORMAÇÃO - EXÉRCITO RP (LANDING PAGE DESIGN SYSTEM)
   Design Tático Dark com Fundo da Tropa e Helicópteros na Seção Final
   ========================================================================== */

:root {
  /* Color Palette - Military Dark Theme */
  --bg-main: #070906;
  --bg-surface: #0e120b;
  --bg-card: rgba(16, 20, 14, 0.84);
  --bg-card-hover: rgba(24, 30, 20, 0.94);
  --bg-input: #0a0d08;
  
  /* Accents */
  --green-primary: #3d562b;
  --green-hover: #4a6835;
  --green-light: #618746;
  --green-glow: rgba(97, 135, 70, 0.4);
  
  --gold-primary: #d4af37;
  --gold-hover: #e5be48;
  --gold-glow: rgba(212, 175, 55, 0.3);
  
  /* Status Colors */
  --status-done: #48bb78;
  --status-progress: #ed8936;
  --status-locked: #a0aec0;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(97, 135, 70, 0.5);
  --border-gold: rgba(212, 175, 55, 0.35);

  /* Typography */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions & Shadows */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 16px 40px -10px rgba(0, 0, 0, 0.95);
  --shadow-glow: 0 0 30px rgba(61, 86, 43, 0.4);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg-main);
}

/* Utility Classes */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.text-gold { color: var(--gold-primary); }
.text-green { color: var(--green-light); }
.text-muted { color: var(--text-muted); }

/* OCULTAR OS INDICADORES DE PONTOS DO CARROSSEL EM TODAS AS TELAS POR PADRÃO (SÓ APARECEM NO CELULAR QUANDO O CARROSSEL ESTIVER ATIVO) */
.carousel-dots-wrapper {
  display: none !important;
}

/* Header Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 9, 6, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
}

.nav-center-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

@media (min-width: 769px) {
  .nav-center-menu {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-right-btn {
  margin-left: auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 42px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px var(--gold-glow));
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.show-on-desktop {
  display: inline;
}

.show-on-desktop-block {
  display: grid !important;
}

.show-on-mobile,
.show-on-mobile-block {
  display: none !important;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.15;
}

.brand-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(
    45deg,
    #00c853 0%,
    #00c853 26%,
    #ffd600 27%,
    #ffd600 76%,
    #0091ea 77%,
    #0091ea 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.brand-sub {
  display: block;
  font-size: 0.68rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-top: 0.1rem;
  opacity: 0.95;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--green-primary), #27381b);
  color: #fff;
  border: 1px solid var(--border-active);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--green-hover), var(--green-primary));
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), #9e7f1d);
  color: #0c0e0b;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold-primary));
  color: #000;
  box-shadow: 0 0 25px var(--gold-glow);
}



.btn-outline {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* BOTÃO DE CHECK CONCLUÍDO SEM LOGIN */
.btn-outline.checked {
  background: rgba(72, 187, 120, 0.15);
  border-color: var(--status-done);
  color: var(--status-done);
  box-shadow: 0 0 15px rgba(72, 187, 120, 0.2);
}

.btn-outline.checked:hover {
  background: rgba(72, 187, 120, 0.25);
}

/* BARRA DE PROGRESSO */
.progress-bar-bg {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-primary), var(--gold-primary));
  border-radius: 6px;
  transition: width 0.4s ease-in-out;
}

/* HERO SECTION WITH FULL HEAD SOLDIER IMAGE */
.hero {
  padding: 12rem 0 7rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/cifm_hero_bg.jpg');
  background-size: cover;
  background-position: center center;
  opacity: 0.65;
  filter: contrast(1.15) brightness(0.85);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 6, 0.7) 0%, transparent 45%, var(--bg-main) 100%);
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.25rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.hero-insignia {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-insignia svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 25px var(--gold-glow));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.95);
}

.hero-title span {
  display: block;
  color: inherit;
}

.hero-sub-text {
  font-size: 0.95rem !important;
  color: var(--gold-primary) !important;
  font-weight: 600 !important;
  letter-spacing: 2px !important;
  margin-top: 0.5rem !important;
}

.flag-gradient-text {
  background: linear-gradient(
    45deg,
    #00c853 0%,
    #00c853 26%,
    #ffd600 27%,
    #ffd600 76%,
    #0091ea 77%,
    #0091ea 100%
  ) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-weight: 900 !important;
  display: inline-block !important;
  white-space: nowrap !important;
  letter-spacing: 1.5px !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.7));
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.65;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 4rem;
}

/* Stats Counter Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* SECTION WITH MOUNTAIN SUNSET BACKGROUND */
.section-mountain-bg {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
}

.section-mountain-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/cifm_modulos_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: contrast(1.15) brightness(0.85);
  z-index: 1;
}

.section-mountain-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(6, 9, 6, 0.3) 25%, rgba(6, 9, 6, 0.96) 65%, var(--bg-main) 100%);
  z-index: 1;
  pointer-events: none;
}

/* SECTION WITH SQUAD & HELICOPTERS BACKGROUND */
.section-jets-bg {
  padding: 7rem 0 6rem;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-main);
}

.section-jets-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/bg_helicopters_squad.png');
  background-size: cover;
  background-position: center;
  opacity: 0.48;
  filter: contrast(1.2) brightness(0.95);
  z-index: 1;
}

.section-jets-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-main) 0%, transparent 20%, transparent 80%, #040503 100%);
  z-index: 1;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.section-tag {
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.95);
}



.module-status-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-done { background: rgba(0, 200, 83, 0.2); color: #00c853; border: 1px solid rgba(0, 200, 83, 0.4); }
.status-active { background: rgba(237, 137, 54, 0.15); color: var(--status-progress); }
.status-locked { background: rgba(160, 174, 192, 0.15); color: var(--status-locked); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
  text-align: center;
  background: rgba(7, 9, 6, 0.98);
  position: relative;
  z-index: 2;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin: 0;
  line-height: 1;
}

/* GRADE DE PREVIEW DOS MÓDULOS NO INDEX (DESKTOP): LINHA 1 (2 MAIORES) + LINHA 2 (3 IGUAIS) */
.modules-grid-container {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 1.25rem !important;
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
}

.modules-grid-container .module-card-preview:nth-child(1),
.modules-grid-container .module-card-preview:nth-child(2) {
  grid-column: span 3 !important; /* 50% de largura cada na Linha 1 */
}

.modules-grid-container .module-card-preview:nth-child(3),
.modules-grid-container .module-card-preview:nth-child(4),
.modules-grid-container .module-card-preview:nth-child(5) {
  grid-column: span 2 !important; /* 33.3% de largura cada na Linha 2 */
}

/* CARROSSEL CENTRALIZADO ESTILO COVERFLOW / PEEKING */
.modules-carousel-container {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.modules-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem calc(50% - 170px);
  scrollbar-width: none;
  -ms-overflow-style: none;
  align-items: center;
}

.modules-carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 340px;
  scroll-snap-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0.35;
  transform: scale(0.9);
  user-select: none;
}

.carousel-item.active-item {
  opacity: 1 !important;
  transform: scale(1) !important;
  border-color: var(--border-gold) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
}

.carousel-dots-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--gold-primary);
  width: 24px;
  border-radius: 10px;
  box-shadow: 0 0 12px var(--gold-glow);
}

@media (max-width: 640px) {
  .modules-carousel-container {
    max-width: 100%;
  }
  .modules-carousel-track {
    padding: 1rem calc(50% - 135px);
  }
  .carousel-item {
    flex: 0 0 270px;
    padding: 1.25rem;
  }
}

/* Responsive YouTube Embedded Video Player */
.video-player-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
  background: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.video-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* IMAGEM DE FUNDO TÁTICA DA SALA DE MÓDULOS (PAINÉIS) */
.paineis-bg-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 70px);
  background-image: linear-gradient(180deg, rgba(7, 9, 6, 0.2) 0%, rgba(7, 9, 6, 0.75) 40%, rgba(7, 9, 6, 0.95) 100%), url('assets/paineis_classroom_bg.jpg');
  background-size: cover;
  background-position: top center;
}

/* MÓDULO BLOQUEADO / EFEITO MIOPIA SUAVE (SEM ALTERAR OPACIDADE DO CARD) */
.module-card-locked {
  filter: blur(2.5px);
  opacity: 1 !important;
  pointer-events: none;
  user-select: none;
  transition: filter 0.4s ease;
}

/* BOTÕES APAGADOS E CINZAS EM CARDS BLOQUEADOS (EFEITO GAMIFICAÇÃO) */
.module-card-locked .btn-primary {
  opacity: 0.3 !important;
  filter: grayscale(1) !important;
  box-shadow: none !important;
  border-color: var(--border-subtle) !important;
}

.paineis-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.modules-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card-action-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-step-locked {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.8) !important;
  box-shadow: none !important;
}

.btn-yt {
  background: linear-gradient(135deg, #cc0000, #990000);
  border-color: #ff3333;
  color: #ffffff;
  transition: all 0.3s ease;
}

.btn-yt:hover {
  background: linear-gradient(135deg, #e60000, #b30000);
  box-shadow: 0 0 20px rgba(204, 0, 0, 0.4);
}

.btn-pdf {
  background: linear-gradient(135deg, #0b2916, #144223) !important;
  border: 1px solid #2e7d32 !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.btn-pdf:hover {
  background: linear-gradient(135deg, #144223, #1b5e20) !important;
  border-color: #4caf50 !important;
  box-shadow: 0 0 15px rgba(46, 125, 50, 0.4);
  transform: translateY(-2px);
}

.btn-check {
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transition: all 0.3s ease;
}

.btn-check:hover {
  background: #111111 !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}

.btn-check.checked {
  background: linear-gradient(135deg, #059669, #047857) !important;
  border-color: #10b981 !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

/* RESPONSIVIDADE ULTRA-MODERNA PARA CELULAR E TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-container {
    padding: 0.8rem 1.5rem !important;
  }

  .nav-center-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 1.2rem !important;
    margin: 0 !important;
  }

  .nav-link {
    font-size: 0.9rem !important;
    padding: 0.4rem 0.6rem !important;
  }

  .hero {
    padding: 7.5rem 0 4rem !important;
  }

  .hero-title {
    font-size: 2.2rem !important;
  }

  .hero-subtitle {
    font-size: 0.95rem !important;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .modules-grid-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .card-action-bar {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.6rem !important;
  }
}

@media (max-width: 992px) {
  .hero-title { font-size: 2.1rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .paineis-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .modules-grid-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  /* HERO MOBILE */
  .hero {
    padding: 6.5rem 0 3.5rem;
  }

  .hero-title {
    font-size: 1.6rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-buttons .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-top: 2rem !important;
  }

  .stat-card {
    padding: 1rem 0.75rem !important;
    border-radius: 12px !important;
    background: rgba(0, 0, 0, 0.65) !important;
    border: 1px solid rgba(212, 175, 55, 0.25) !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
  }

  .stat-number {
    font-size: 1.45rem !important;
    font-weight: 900 !important;
  }

  .stat-label {
    font-size: 0.72rem !important;
    letter-spacing: 0.5px !important;
  }

  /* CARROSSEL COVERFLOW ESTILO INDEX APENAS NO CELULAR (MAX-WIDTH: 767PX) */
  @media (max-width: 767px) {
    .modules-cards-wrapper {
      display: flex !important;
      flex-direction: row !important;
      align-items: flex-start !important;
      overflow-x: auto !important;
      scroll-snap-type: x mandatory !important;
      scroll-behavior: smooth !important;
      -webkit-overflow-scrolling: touch !important;
      gap: 1rem !important;
      padding: 1rem 0 0.4rem !important;
      scrollbar-width: none !important;
    }

    .modules-cards-wrapper::-webkit-scrollbar {
      display: none !important;
    }

    .modules-cards-wrapper > div {
      flex: 0 0 90% !important;
      min-width: 90% !important;
      max-width: 90% !important;
      height: auto !important;
      min-height: auto !important;
      scroll-snap-align: center !important;
      scroll-snap-stop: always !important;
      padding: 1.25rem !important;
      border-radius: 16px !important;
      background: rgba(10, 15, 12, 0.9) !important;
      border: 1px solid var(--border-subtle) !important;
      backdrop-filter: blur(16px) !important;
      transition: transform 0.35s ease, opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
      opacity: 0.55 !important;
      transform: scale(0.93) !important;
      box-sizing: border-box !important;
      display: flex !important;
      flex-direction: column !important;
    }

    .modules-cards-wrapper > div.active-item {
      opacity: 1 !important;
      transform: scale(1) !important;
      border-color: var(--border-gold) !important;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 15px var(--gold-glow) !important;
    }

    .module-status-badge {
      display: none !important;
    }

    /* INDICADORES DOTS DO CARROSSEL NO MOBILE (SÓ NO CELULAR) */
    .carousel-dots-wrapper {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      gap: 0.65rem !important;
      margin: 0.3rem 0 1rem !important;
      width: 100% !important;
    }

    .carousel-dot {
      width: 12px !important;
      height: 12px !important;
      border-radius: 50% !important;
      background: rgba(255, 255, 255, 0.3) !important;
      cursor: pointer !important;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
      display: inline-block !important;
    }

    .carousel-dot.active {
      width: 32px !important;
      height: 12px !important;
      border-radius: 12px !important;
      background: var(--gold-primary) !important;
      box-shadow: 0 0 12px var(--gold-glow) !important;
    }
  }

  /* NO TABLET E IPAD (768PX A 1024PX): SEM CARROSSEL, CARDS EM LISTA/GRADE NOMAL */
  @media (min-width: 768px) and (max-width: 1024px) {
    .modules-cards-wrapper {
      display: flex !important;
      flex-direction: column !important;
      gap: 1.5rem !important;
      overflow: visible !important;
    }

    .modules-cards-wrapper > div {
      opacity: 1 !important;
      transform: none !important;
      width: 100% !important;
      max-width: 100% !important;
      min-width: 100% !important;
      min-height: auto !important;
    }
  }

  @media (min-width: 768px) {
    .module-status-badge {
      display: inline-flex !important;
      align-items: center !important;
    }
  }

  /* BARRA DE BOTÕES INTERNOS DOS CARDS NO CELULAR */
  .modules-cards-wrapper > div p {
    min-height: 0 !important;
    margin-bottom: 0.75rem !important;
  }

  .card-action-bar {
    grid-template-columns: 1fr !important;
    gap: 0.65rem !important;
    padding-top: 0.5rem !important;
    margin-top: 0.5rem !important;
  }

  /* GRADE EM 2 COLUNAS PARA OS BOTÕES DO MÓDULO 5 NO CELULAR */
  .card-action-bar-dual {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .card-action-bar-dual a,
  .card-action-bar-dual button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.65rem 0.3rem !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    box-sizing: border-box !important;
    text-align: center !important;
    white-space: nowrap !important; /* IMPEDE QUEBRA DE LINHA DO TEXTO */
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.35rem !important;
  }

  /* Esconde o ícone extra de seta externa nos botões pequenos de 2 colunas para economizar espaço */
  .card-action-bar-dual a .fa-arrow-up-right-from-square {
    display: none !important;
  }

  .card-action-bar-dual #check-btn-5 {
    grid-column: 1 / -1 !important;
    font-size: 0.82rem !important;
    padding: 0.75rem 1rem !important;
  }

  .card-action-bar [aria-hidden="true"] {
    display: none !important;
  }

  .card-action-bar .btn-primary,
  .card-action-bar .btn-gold,
  .card-action-bar a,
  .card-action-bar button {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    min-height: 46px !important;
    border-radius: 8px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* HEADER MOBILE COMPACTO E LIMPO */
  .navbar {
    padding: 0.5rem 0 !important;
  }

  .nav-container {
    padding: 0.25rem 0.35rem !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .brand-logo {
    gap: 0.5rem !important;
    max-width: 55% !important;
  }

  .brand-icon {
    width: 30px !important;
    height: 34px !important;
    flex-shrink: 0 !important;
  }

  .show-on-desktop,
  .show-on-desktop-block {
    display: none !important;
  }

  .show-on-mobile {
    display: inline !important;
  }

  .show-on-mobile-block {
    display: block !important;
  }

  .brand-text {
    font-size: 0.85rem !important;
    line-height: 1 !important;
    letter-spacing: 0.5px !important;
  }

  .brand-title {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .brand-sub {
    font-size: 0.58rem !important;
    white-space: nowrap !important;
    margin-top: 0.1rem !important;
  }

  .nav-center-menu {
    position: absolute !important;
    left: 58% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 0.3rem !important;
    margin: 0 !important;
    align-items: center !important;
  }

  .nav-link {
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    padding: 0.25rem 0.3rem !important;
  }

  .nav-btn-text {
    display: none !important; /* Esconde o texto extenso do botão no celular */
  }

  .nav-right-btn {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  .nav-container-paineis .nav-right-btn {
    margin-left: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .mobile-progress-bar-container {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    left: 0;
    overflow: hidden;
  }

  .mobile-progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-primary), #ffd700, #00c853);
    box-shadow: 0 0 10px var(--gold-glow);
    transition: width 0.4s ease-in-out;
  }

  .mobile-progress-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    background: rgba(0, 0, 0, 0.6) !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 50px !important;
    border: 1px solid var(--border-gold) !important;
    margin-left: auto !important;
    margin-right: 0.4rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }

  .hero-title {
    font-size: 1.65rem !important;
    margin-bottom: 0.6rem !important;
  }

  .hero-subtitle {
    font-size: 0.88rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.4 !important;
  }

  .hero-sub-text.show-on-mobile {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 0.98rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
    margin-top: 0.25rem !important;
    color: var(--gold-primary) !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
  }

  .nav-right-btn .btn-gold,
  .nav-links .btn-gold {
    padding: 0.35rem 0.85rem !important;
    min-width: 48px !important;
    height: 36px !important;
    border-radius: 50px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 0 10px var(--gold-glow) !important;
  }

  .nav-right-btn .btn-gold i,
  .nav-links .btn-gold i {
    font-size: 1.15rem !important;
  }

  a[href="modulos.html"].btn-gold {
    white-space: nowrap !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    padding: 0.95rem 1.6rem !important;
    max-width: 100% !important;
    width: 90% !important;
    gap: 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .nav-links-paineis {
    display: none !important;
  }

  .progress-widget-header {
    padding: 0.3rem 0.6rem !important;
    gap: 0.4rem !important;
  }

  .progress-widget-header #progressCountText {
    display: none !important; /* Oculta texto estendido no celular */
  }
}

/* BARRA NEON DE PROGRESSO NA BASE INFERIOR DA NAVBAR (GLOBAL - MOBILE, TABLET E DESKTOP) */
.mobile-progress-bar-container {
  width: 100% !important;
  height: 4px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  overflow: hidden !important;
  z-index: 200 !important;
  display: block !important;
}

.mobile-progress-bar-fill {
  height: 100% !important;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-primary), #ffd700, #00c853) !important;
  box-shadow: 0 0 12px var(--gold-glow) !important;
  transition: width 0.4s ease-in-out !important;
}

/* HEADER EXCLUSIVO REESTRUTURADO PARA MODULOS.HTML NO DESKTOP */
@media (min-width: 1025px) {
  .nav-container-modulos {
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .brand-logo-modulos {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
  }
}

/* SISTEMA DE NOTIFICAÇÃO TOAST CUSTOMIZADO (SUBSTITUI O ALERT NATIVO DO NAVEGADOR) */
.custom-toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 3rem);
}

.custom-toast {
  pointer-events: auto;
  background: rgba(14, 18, 11, 0.95);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9), 0 0 20px var(--gold-glow);
  backdrop-filter: blur(16px);
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-toast.toast-show {
  transform: translateY(0);
  opacity: 1;
}

.custom-toast-icon {
  font-size: 1.25rem;
  color: var(--gold-primary);
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.custom-toast-content {
  flex: 1;
}

.custom-toast-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold-primary);
  margin-bottom: 0.25rem;
}

.custom-toast-message {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.custom-toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 0.2rem;
  margin-left: 0.5rem;
  line-height: 1;
  transition: var(--transition);
}

.custom-toast-close:hover {
  color: var(--gold-primary);
}

/* CURSOR DE BLOQUEIO (NOT-ALLOWED / 🚫) PARA ELEMENTOS E BOTÕES TRAVADOS */
.btn-step-locked,
.btn-step-locked:hover,
a.btn-step-locked,
button.btn-step-locked,
.btn-step-locked * {
  cursor: not-allowed !important;
  opacity: 0.45 !important;
  filter: grayscale(0.85) !important;
  pointer-events: auto !important;
  box-shadow: none !important;
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

.module-card-locked {
  opacity: 0.6;
  filter: blur(1.5px) grayscale(0.5);
  transition: var(--transition);
}

.module-card-locked:hover,
.module-card-locked * {
  cursor: not-allowed !important;
}

