/* ══════════════════════════════════════════════════════════════
   APRENDENDO ONLINE — Portal & Vitrine de Cursos
   Design System Mobile-First Moderno, Responsivo e Performático
   ══════════════════════════════════════════════════════════════ */

:root {
  /* Cores Primárias — Inspiradas na identidade do Logo */
  --blue-primary:       #0066FF;
  --blue-primary-hover: #0052CC;
  --blue-primary-dark:  #003D99;
  --blue-cyan:          #00C6FF;
  --blue-gradient:      linear-gradient(135deg, #0066FF 0%, #00C6FF 100%);
  --blue-gradient-subtle: linear-gradient(180deg, rgba(0, 102, 255, 0.06) 0%, rgba(0, 198, 255, 0.02) 100%);

  /* Cores de Superfície & Fundo */
  --bg-main:            #F8FAFC;
  --bg-card:            #FFFFFF;
  --bg-surface-alt:     #F1F5F9;
  --bg-dark:            #0A1128;
  --bg-dark-card:       #131E3D;

  /* Texto */
  --text-main:          #0F172A;
  --text-muted:         #64748B;
  --text-light:         #94A3B8;
  --text-white:         #FFFFFF;

  /* Bordas & Detalhes */
  --border-light:       #E2E8F0;
  --border-hover:       #CBD5E1;
  --border-focus:       #0066FF;

  /* Status & Acentos */
  --accent-green:       #10B981;
  --accent-green-bg:    #ECFDF5;
  --accent-green-border:#A7F3D0;
  --accent-gold:        #F59E0B;
  --accent-gold-bg:     #FEF3C7;

  /* Tipografia */
  --font-sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading:       'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;

  /* Sombras */
  --shadow-xs:          0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-sm:          0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md:          0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg:          0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow:        0 10px 30px rgba(0, 102, 255, 0.25);

  /* Dimensões */
  --header-h:           72px;
  --radius-sm:          8px;
  --radius-md:          12px;
  --radius-lg:          16px;
  --radius-xl:          24px;
  --radius-pill:        9999px;
  --transition:         all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Configuração Base ────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--blue-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Containers ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-sm {
  max-width: 800px;
}

/* ── Botões ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  box-sizing: border-box;
  max-width: 100%;
}

.btn-primary {
  background: var(--blue-gradient);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.45);
}

.btn-outline {
  background: transparent;
  color: var(--blue-primary);
  border: 1.5px solid var(--blue-primary);
}

.btn-outline:hover {
  background: rgba(0, 102, 255, 0.06);
  border-color: var(--blue-primary-hover);
  color: var(--blue-primary-hover);
}

.btn-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  white-space: nowrap;
}

.btn-lg {
  padding: 0.85rem 1.4rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

/* ── Header Institucional ──────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-h);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--transition);
  padding: 0.4rem 0;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--blue-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Mobile Drawer Navigation ──────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  padding: 1.5rem 1.25rem 2rem;
  gap: 1.25rem;
  z-index: 99;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
}

/* ── Hero Editorial ────────────────────────────────────────── */
.hero {
  padding: 3.5rem 0 3rem;
  background: var(--blue-gradient-subtle);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background-color: #FFFFFF;
  border: 1px solid #D6E4FF;
  color: var(--blue-primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-xs);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--blue-primary);
  display: inline-block;
  box-shadow: 0 0 8px rgba(0, 102, 255, 0.6);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  max-width: 840px;
  margin: 0 auto 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: var(--blue-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

/* Filtros por Categoria */
.category-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 2rem auto 0;
  max-width: 800px;
}

.filter-chip {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.filter-chip:hover,
.filter-chip.active {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: var(--text-white);
  box-shadow: 0 2px 10px rgba(0, 102, 255, 0.25);
}

/* Barra de Confiança / Vantagens */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--blue-primary);
  width: 18px;
  height: 18px;
}

/* ── Vitrine de Cursos (Showcase) ──────────────────────────── */
.section {
  padding: 4.5rem 0;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-primary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ── CARD PRINCIPAL EM DESTAQUE (PRIMEIA START) ────────────── */
.featured-course-card {
  background: var(--bg-card);
  border: 2px solid #D6E4FF;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 36px rgba(0, 102, 255, 0.08);
  overflow: hidden;
  transition: var(--transition);
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 3.5rem;
  position: relative;
}

.featured-course-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 16px 48px rgba(0, 102, 255, 0.15);
  transform: translateY(-2px);
}

.featured-media {
  position: relative;
  background: #0B132B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.featured-cover-img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  transition: transform 0.4s ease;
  display: block;
}

.featured-course-card:hover .featured-cover-img {
  transform: scale(1.02);
}

.featured-content {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

.course-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meta-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-primary);
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.meta-pill.green {
  color: #065F46;
  background: #ECFDF5;
  border-color: #A7F3D0;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.featured-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Lista de Recursos / Diferenciais */
.course-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.benefit-point {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--text-main);
  font-weight: 600;
  line-height: 1.45;
}

.benefit-point svg {
  color: var(--accent-green);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Área de Preço e Ação */
.featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.price-box .price-old {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
  display: block;
}

.price-box .price-current {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.price-box .price-terms {
  font-size: 0.8rem;
  color: var(--accent-green);
  font-weight: 600;
}

.featured-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Grade Curricular Resumida (Accordion / Detalhes) ──────── */
.curriculum-accordion {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
}

.curriculum-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-primary);
  background: #F8FAFC;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.curriculum-toggle-btn:hover {
  background: #F1F5F9;
}

.curriculum-modules-list {
  display: none;
  padding: 1rem 1.15rem;
  flex-direction: column;
  gap: 0.65rem;
  border-top: 1px solid var(--border-light);
}

.curriculum-modules-list.open {
  display: flex;
}

.curriculum-module-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.mod-number {
  font-size: 0.75rem;
  font-weight: 800;
  font-family: monospace;
  background: #EFF6FF;
  color: var(--blue-primary);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid #DBEAFE;
}

/* ── Grade de Outros Cursos / Em Breve ─────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: var(--blue-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.course-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1E293B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.course-card:hover .course-card-thumb img {
  transform: scale(1.05);
}

.badge-coming-soon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.course-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.course-card-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ── Pilares & Vantagens ───────────────────────────────────── */
.features-section {
  background-color: var(--bg-surface-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--blue-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.feature-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--blue-gradient-subtle);
  border: 1px solid #D6E4FF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.feature-box h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── FAQ Accordion ─────────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-question-btn:hover {
  color: var(--blue-primary);
}

.faq-icon {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-primary);
  transition: transform 0.25s ease;
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer-body {
  display: none;
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-top: 1px dashed var(--border-light);
  padding-top: 1rem;
}

.faq-item.open .faq-answer-body {
  display: block;
}

/* ── CTA Final ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--blue-gradient);
  color: var(--text-white);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #FFFFFF;
}

.cta-banner p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.btn-white {
  background: #FFFFFF;
  color: var(--blue-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
  background: #F8FAFC;
  color: var(--blue-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem;
  border-top: 1px solid #1E293B;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-light);
  max-width: 340px;
}

.footer-col h5 {
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: var(--text-light);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid #1E293B;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── Botão Flutuante de WhatsApp ───────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  color: #FFFFFF;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ══════════════════════════════════════════════════════════════
   ÁREA DO ALUNO — AUTENTICAÇÃO & LOGIN
   ══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, rgba(0, 102, 255, 0.08) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(0, 198, 255, 0.05) 0%, transparent 60%),
              var(--bg-main);
}

.auth-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-card);
}

.auth-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 40px rgba(0, 102, 255, 0.08);
  padding: 2.5rem 2rem;
  transition: var(--transition);
}

.auth-card:hover {
  border-color: #BFDBFE;
  box-shadow: 0 20px 48px rgba(0, 102, 255, 0.12);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

/* Abas de Alternância (Entrar vs Criar Conta) */
.auth-tabs-nav {
  display: flex;
  background: #F1F5F9;
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.75rem;
  border: 1px solid var(--border-light);
}

.auth-tab-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-tab-btn:hover {
  color: var(--text-main);
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--blue-primary);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.12);
}


.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--blue-primary);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.auth-card-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.auth-card-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input {
  width: 100%;
  padding: 0.78rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.toggle-password-btn {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  font-size: 1.1rem;
}

.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.84rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.auth-notice-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

/* ══════════════════════════════════════════════════════════════
   ÁREA DO ALUNO — DASHBOARD / PAINEL DE CURSOS
   ══════════════════════════════════════════════════════════════ */
.dashboard-page {
  min-height: 100vh;
  background-color: var(--bg-main);
  display: flex;
  flex-direction: column;
}

.dashboard-nav {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.dashboard-user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.85rem;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
}

.user-avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.88rem;
}

.user-name-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.dashboard-banner {
  background: linear-gradient(135deg, #0A1128 0%, #10214D 100%);
  color: #FFFFFF;
  padding: 3rem 0 3.25rem;
  position: relative;
  overflow: hidden;
}

.dashboard-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.banner-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: #93C5FD;
  margin-bottom: 0.85rem;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.banner-desc {
  font-size: 1.02rem;
  color: #CBD5E1;
  max-width: 680px;
}

/* Indicadores de métricas */
.dashboard-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
  margin-bottom: 3rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #BFDBFE;
}

.metric-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.metric-info h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.metric-info span {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.hidden-card,
.student-course-card.hidden-card,
#enrolledCourseCard.hidden-card,
#unpaidCourseCard.hidden-card,
[hidden] {
  display: none !important;
}

/* Cards de Cursos Comprados */
.student-course-card {
  background: var(--bg-card);
  border: 2px solid #D6E4FF;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.student-course-card.unpaid-card {
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.student-course-card:hover {
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-md);
}

.student-course-thumb {
  position: relative;
  background: linear-gradient(135deg, #0B132B 0%, #1E293B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  min-height: 100%;
}

.student-course-thumb picture {
  width: 100%;
  height: 100%;
  display: block;
}

.student-course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.student-course-body {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Status Convidativo para Iniciar Formação */
.status-pill.status-invite {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Status de Curso Bloqueado / Pago */
.status-pill.status-locked {
  background: #FFFBEB;
  color: #B45309;
  border: 1px solid #FCD34D;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

/* Lista de Vantagens da Formação */
.unpaid-perks-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
  margin: 1.25rem 0;
}

.unpaid-perk-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: #334155;
  font-weight: 600;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
}

.unpaid-perk-icon {
  color: #10B981;
  font-weight: 800;
  font-size: 0.95rem;
}

/* Bloco de Oferta e Preço */
.unpaid-offer-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.unpaid-price-side .price-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  display: block;
  margin-bottom: 0.2rem;
}

.unpaid-price-side .price-old {
  font-size: 0.88rem;
  color: #94A3B8;
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.unpaid-price-side .price-main {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1.1;
}

.unpaid-price-side .price-installment {
  font-size: 0.82rem;
  color: #64748B;
  display: block;
  margin-top: 0.2rem;
}

.unpaid-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-width: 240px;
}

.btn-buy-course {
  background: linear-gradient(135deg, #0066FF 0%, #0052CC 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.3);
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-buy-course:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}


.student-course-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.student-course-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  line-height: 1.25;
}

.student-course-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pill.active {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.course-progress-wrap {
  margin: 1.25rem 0;
  padding: 1rem;
  background: var(--bg-surface-alt);
  border-radius: var(--radius-md);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: #E2E8F0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0066FF, #00C6FF);
  border-radius: var(--radius-pill);
}

.student-course-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.student-account-card {
  text-align: left;
  background: var(--bg-card);
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 2.25rem 2rem;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVIDADE MOBILE-FIRST AVANÇADA
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 960px) {
  .featured-course-card {
    grid-template-columns: 1fr;
  }

  .featured-media {
    max-height: 420px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .header-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .course-benefits-grid {
    grid-template-columns: 1fr;
  }

  .featured-content {
    padding: 1.75rem 1.25rem;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .featured-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }

  .featured-actions {
    flex-direction: column;
    width: 100%;
  }

  .featured-actions .btn {
    width: 100%;
  }

  .student-course-card {
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    border-radius: var(--radius-xl);
    overflow: hidden;
  }

  .student-course-thumb {
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    background: linear-gradient(135deg, #0B132B 0%, #1E293B 100%) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .student-course-thumb picture {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  .student-course-thumb img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin: 0 !important;
  }

  .student-course-body {
    padding: 1.5rem 1.25rem !important;
    min-width: 0;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .student-course-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .student-course-actions .btn {
    width: 100%;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    white-space: normal;
    text-align: center;
  }

  .auth-card {
    padding: 2rem 1.25rem;
  }

  .student-account-card {
    padding: 1.5rem 1rem;
  }

  .trust-strip {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    padding: 2.5rem 1.25rem;
  }
}

@media (max-width: 520px) {
  :root {
    --header-h: 58px;
  }

  .container {
    padding: 0 1rem;
  }

  .header-logo img {
    height: 36px;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .header-actions .btn {
    padding: 0.38rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .category-filter-bar {
    gap: 0.4rem;
  }

  .filter-chip {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

  .dashboard-banner {
    padding: 2.25rem 0 2.5rem;
  }

  .banner-title {
    font-size: 1.55rem;
  }

  .dashboard-metrics-strip {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: -1.25rem;
  }

  .unpaid-perks-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .unpaid-offer-box {
    padding: 1.1rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .unpaid-price-side {
    text-align: center;
  }

  .unpaid-btn-group {
    width: 100%;
    min-width: 0;
  }

  .student-course-body {
    padding: 1.25rem 1rem;
  }

  .student-course-body h3 {
    font-size: 1.25rem;
    line-height: 1.3;
  }

  .course-progress-wrap {
    padding: 0.85rem 0.75rem;
  }

  .progress-header {
    font-size: 0.8rem;
  }


  .price-box .price-current {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .whatsapp-float {
    bottom: 1.15rem;
    right: 1.15rem;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ── Scroll Margin e Efeitos de Foco na Navegação ─────────── */
#cursos,
.featured-course-card,
.course-card,
.section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

@keyframes cardHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
    border-color: var(--blue-primary);
  }
  40% {
    box-shadow: 0 0 0 10px rgba(0, 102, 255, 0.15);
    border-color: var(--blue-primary);
  }
  100% {
    box-shadow: var(--shadow-sm);
  }
}

.highlight-pulse {
  animation: cardHighlightPulse 1.6s ease-out;
}

/* ── Modal Popup Convidativo e Checkout (100% Mobile First) ─── */
.courses-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  animation: modalFadeIn 0.25s ease;
  box-sizing: border-box;
}

.courses-modal-card {
  background: #FFFFFF;
  border-radius: 22px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1.5rem 1.5rem 1.75rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
  box-sizing: border-box;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Barra superior com Voltar e Fechar (Fixa para nunca sumir no celular) */
.modal-sticky-bar {
  position: sticky;
  top: -1.5rem;
  background: #FFFFFF;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding-top: 0.75rem;
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  border-bottom: 1.5px solid #F1F5F9;
  box-sizing: border-box;
}

.btn-modal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  border-radius: var(--radius-pill);
  color: #1E293B;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-modal-back:hover {
  background: #E2E8F0;
  border-color: #94A3B8;
  color: #0F172A;
}

.modal-close-btn,
.modal-close-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #F8FAFC;
  color: #1E293B;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin: 0;
  flex-shrink: 0;
}

.modal-close-btn:hover,
.modal-close-circle:hover {
  background: #EF4444;
  color: #FFFFFF;
  border-color: #EF4444;
  transform: rotate(90deg);
}

.modal-badge-row {
  margin-bottom: 0.75rem;
}

.modal-badge {
  background: #EFF6FF;
  color: var(--blue-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid #BFDBFE;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.modal-quote {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  font-style: italic;
  background: #F8FAFC;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--blue-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.modal-featured-course {
  background: #F0FDF4;
  border: 1.5px solid #BBF7D0;
  border-radius: 18px;
  padding: 1.25rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-course-info {
  flex: 1;
}

.modal-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-perks-row span {
  background: #FFFFFF;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid #DCFCE7;
}

.modal-course-price-box {
  text-align: right;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Box do Banner para Aluno que Já Comprou o Curso */
.modal-course-enrolled-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 220px;
  min-width: 200px;
  gap: 0.75rem;
  background: #FFFFFF;
  padding: 0.65rem;
  border-radius: var(--radius-lg);
  border: 1.5px solid #BBF7D0;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.12);
  box-sizing: border-box;
}

.modal-enrolled-banner-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #0B132B;
}

.modal-enrolled-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.modal-enrolled-tag {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: blur(4px);
  color: #34D399;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.modal-enrolled-actions {
  width: 100%;
}

.modal-footer-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ── Segmented Control das Abas de Pagamento ──────────────── */
.checkout-tabs-wrap {
  display: flex;
  gap: 0.35rem;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #CBD5E1;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
  width: 100%;
}

.checkout-tab-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #FFFFFF !important;
  color: #1E293B !important; /* Alto contraste: NUNCA branco em fundo branco */
  border-color: #E2E8F0 !important;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.checkout-tab-item:hover:not(.active) {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: #94A3B8 !important;
}

.checkout-tab-item.active {
  background: #0066FF !important;
  color: #FFFFFF !important;
  border-color: #0066FF !important;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.32);
  font-weight: 800;
}

/* ── Card Formatado de Pagamento com Cartão ───────────────── */
.card-checkout-container {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: left;
}

.card-checkout-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #E2E8F0;
}

.card-checkout-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #E0F2FE;
  color: #0284C7;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-perks-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.card-perk-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: #334155;
  line-height: 1.4;
}

.perk-check {
  color: #059669;
  font-weight: 900;
  font-size: 0.95rem;
}

.card-flag-badge {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #475569;
  padding: 0.2rem 0.45rem;
  letter-spacing: 0.04em;
}

/* ── Responsividade Específica para Dispositivos Móveis ───── */
@media (max-width: 600px) {
  .courses-modal-overlay {
    padding: 0.5rem 0.35rem;
    align-items: flex-start;
  }
  .courses-modal-card {
    padding: 0.85rem 0.75rem 1.25rem;
    border-radius: 18px;
    max-height: 94vh;
    margin: 0.25rem auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .modal-sticky-bar {
    top: -0.85rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0.65rem;
  }
  .btn-modal-back {
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
  .modal-close-circle {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
  .modal-title {
    font-size: 1.15rem;
    line-height: 1.3;
  }
  .modal-quote {
    font-size: 0.8rem;
    padding: 0.65rem 0.75rem;
    margin-bottom: 0.85rem;
    line-height: 1.45;
  }
  .modal-featured-course {
    flex-direction: column;
    text-align: center;
    padding: 0.85rem 0.75rem;
    gap: 0.65rem;
  }
  .modal-course-price-box {
    align-items: center;
    width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
  }
  .modal-course-enrolled-box {
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    padding: 0.65rem;
  }
  .modal-enrolled-banner-wrapper {
    max-width: 200px;
    margin: 0 auto;
  }
  .modal-perks-row {
    justify-content: center;
    gap: 0.35rem;
  }
  .modal-perks-row span {
    font-size: 0.72rem;
    padding: 0.2rem 0.45rem;
  }
  .checkout-tabs-wrap {
    gap: 0.25rem;
    padding: 3px;
  }
  .checkout-tab-item {
    font-size: 0.78rem !important;
    padding: 0.55rem 0.35rem !important;
    gap: 0.25rem;
  }
  .card-checkout-container {
    padding: 0.85rem 0.7rem;
  }
  .card-checkout-header {
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
  }
  .card-checkout-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }
  .card-perk-item {
    font-size: 0.78rem;
    gap: 0.4rem;
  }
  .card-flag-badge {
    font-size: 0.62rem;
    padding: 0.15rem 0.35rem;
  }
  #btnCardCheckout {
    font-size: 0.86rem !important;
    padding: 0.75rem 0.5rem !important;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
  }
  #pixQrCodeContainer img {
    width: 160px !important;
    height: 160px !important;
  }
  #pixStatusBox {
    font-size: 0.8rem !important;
    padding: 0.6rem 0.7rem !important;
  }
  .modal-footer-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }
  .modal-footer-actions .btn,
  .modal-footer-actions a {
    width: 100%;
  }
}

.pulse-indicator {
  width: 10px;
  height: 10px;
  background-color: #2563EB;
  border-radius: 50%;
  display: inline-block;
  animation: pulseAnim 1.5s infinite;
  flex-shrink: 0;
}
@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
