    /*==========================================
  GUMROAD NEO-BRUTALIST STYLE
  Adapted for Blogger
==========================================*/

/* ===== Variables ===== */
:root {
  --pink: #FF90E8;
  --yellow: #FFC900;
  --green: #23A094;
  --blue: #90A8ED;
  --coral: #FF6B6B;
  --purple: #B8A9FA;
  --black: #000000;
  --white: #FFFFFF;
  --gray-light: #F4F4F0;
  --gray: #E8E8E3;
  --gray-dark: #666666;
  
  --border: 2px solid var(--black);
  --border-thick: 2px solid var(--black);
  --shadow: 4px 4px 0 var(--black);
  --shadow-hover: 6px 6px 0 var(--black);
  --radius: 8px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main, .q-dynamic-container, .aula-layout, .disc-hub-container {
  animation: pageFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
  opacity: 0; 
}

@keyframes pageFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Fallback: DM Sans mapeia ℓ (U+2113) para 'l' — força font com glyph correto */
@font-face {
  font-family: 'MathSymbols';
  src: local('Noto Sans'), local('Segoe UI'), local('DejaVu Sans'), local('Liberation Sans'), local('Arial');
  unicode-range: U+2113, U+2080-209F, U+2070-207F;
  /* ℓ, subscript digits ₀-₉, superscript digits ⁰-⁹ */
}

body {
  font-family: 'MathSymbols', 'DM Sans', -apple-system, sans-serif;
  background: var(--gray-light);
  color: var(--black);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

blockquote {
    border-left: 4px solid #000; /* Barra preta na esquerda */
    margin: 10px 0;
    padding: 10px 15px;
    background-color: #f9f9f9;
    color: #555;
    font-style: italic;
    font-family: 'DM Sans', sans-serif;
}

/* ===== Material Icons ===== */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-size: 24px;
  vertical-align: middle;
}

i {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-size: 24px;
  vertical-align: middle;
}

/* ===== Nav Rail (Desktop - Redesenhado) ===== */
.nav-rail {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 72px; /* Largura fechada sincronizada com Header */
  background: var(--white);
  border-right: var(--border-thick);
  display: flex;
  flex-direction: column;
  z-index: 600; 
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0; /* REMOVE O ESPAÇO NO TOPO/RODAPÉ */
  overflow: hidden; /* Garante que nada vaze */
}

/* Área do Topo */
.nav-rail-header {
  height: 72px; 
  width: 100%;
  display: flex;
  align-items: center;
  /* Estado Fechado: Centraliza o botão (logo está escondido) */
  justify-content: center; 
  border-bottom: 2px solid transparent; 
  flex-shrink: 0;
  transition: all 0.3s ease;
  overflow: hidden; /* Garante segurança */
}

/* Estilo do Logo */
.nav-rail-logo {
  display: none;       /* Escondido por padrão */
  
  flex: 1;             /* Ocupa todo o espaço sobrando à esquerda do botão */
  text-align: center;  /* Centraliza o texto DENTRO desse espaço sobrando */
  
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1;
  white-space: nowrap; /* Não deixa quebrar linha */
}

/* Área dos Links */
.nav-rail-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.5rem; /* Padding interno apenas para os ícones não colarem na borda */
  overflow-y: auto;
  overflow-x: hidden;
}

/* --- ESTADO EXPANDIDO --- */
.nav-rail.expanded {
  width: 260px;
  box-shadow: 10px 0 0 rgba(0,0,0,0.1);
}

/* Garante que o botão não esmague */
.nav-rail-toggle {
  flex-shrink: 0; 
}

/* --- ESTADO EXPANDIDO --- */
.nav-rail.expanded .nav-rail-header {
  /* Removemos o justify-content antigo pois o flex:1 do logo já empurra */
  padding-right: 12px; /* Espaço da direita */
  border-bottom-color: var(--black);
  background: #f4f4f0;
}

/* Mostra o logo */
.nav-rail.expanded .nav-rail-logo {
  display: block;
  animation: fadeInLabel 0.3s forwards;
}
.nav-rail.expanded .nav-rail-content {
  align-items: stretch; 
  padding: 1rem;
}

/* --- BOTÃO TOGGLE (Seta) --- */
.nav-rail-toggle {
  width: 40px; 
  height: 40px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 var(--black);
}

.nav-rail-toggle:hover {
  background: var(--yellow);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}

.nav-rail-toggle i {
  font-size: 24px;
  color: var(--black);
  font-weight: 800; /* Mais gordinho para parecer seta de navegação */
}

/* --- LINKS --- */
.nav-rail a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin: 4px 0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  border: 2px solid transparent;
  color: var(--black);
  text-decoration: none;
  height: 48px;
  flex-shrink: 0;
}

.nav-rail.expanded a {
  justify-content: flex-start;
  padding-left: 16px;
  gap: 16px;
  border: 2px solid transparent;
}

.nav-rail a:hover {
  background: var(--gray);
  border-color: var(--black);
}

.nav-rail a.active {
  background: var(--yellow);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--black);
}

.nav-rail a i {
  font-size: 24px;
  flex-shrink: 0;
  margin: 0;
}

/* Textos e Labels */
.nav-rail a span {
  display: none;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-rail.expanded a span {
  display: inline-block;
  animation: fadeInLabel 0.3s forwards;
}

.nav-rail .divider {
  width: 100%;
  height: 2px;
  background: var(--black);
  margin: 1rem 0;
  opacity: 0.2;
}

.nav-rail .label {
  display: none;
}

.nav-rail.expanded .label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin: 0.5rem 0;
  text-align: left;
  padding-left: 4px;
}

@keyframes fadeInLabel {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ===== Mobile Drawer (Unificado com Nav Rail) ===== */

.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
}

.drawer-overlay.active {
  display: block;
}

.drawer {
  position: fixed;
  left: -280px;
  top: 0;
  bottom: 0;
  width: 260px;
  background: var(--white);
  border-right: var(--border-thick);
  z-index: 201;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer.active {
  left: 0;
  box-shadow: 10px 0 0 rgba(0,0,0,0.1);
}

/* Header do Drawer - igual ao nav-rail expandido */
.drawer-header {
  height: 72px;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 2px solid var(--black);
  background: #f4f4f0;
  flex-shrink: 0;
}

.drawer-logo {
  flex: 1;
  text-align: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1;
}

.drawer-close {
  width: 40px;
  height: 40px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 var(--black);
  flex-shrink: 0;
}

.drawer-close:hover {
  background: var(--yellow);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--black);
}

.drawer-close i {
  font-size: 24px;
  color: var(--black);
}

/* Conteúdo do Drawer - igual ao nav-rail expandido */
.drawer-content {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.drawer a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
  margin: 4px 0;
  gap: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  border: 2px solid transparent;
  color: var(--black);
  text-decoration: none;
  height: 48px;
  flex-shrink: 0;
}

.drawer a:hover {
  background: var(--gray);
  border-color: var(--black);
}

.drawer a.active {
  background: var(--yellow);
  border: var(--border);
  box-shadow: 2px 2px 0 var(--black);
}

.drawer a i {
  font-size: 24px;
  flex-shrink: 0;
}

.drawer a span {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.drawer .divider {
  width: 100%;
  height: 2px;
  background: var(--black);
  margin: 1rem 0;
  opacity: 0.2;
}

.drawer .label {
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gray-dark);
  margin: 0.5rem 0;
  text-align: left;
  padding-left: 4px;
}

/* ===== Header Integrado V20 (Com Seletor de Contexto) ===== */
header {
  position: fixed;        /* Força ficar preso na janela */
  top: 0;
  right: 0;               /* Encosta na direita */
  height: 72px;
  background: var(--white);
  border-bottom: var(--border-thick);
  z-index: 500;           /* Bem alto para aparecer sobre tudo */
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  
  /* Lógica de Largura Responsiva */
  left: 0;                /* Padrão Mobile: ocupa tudo */
  width: 100%;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Lado Esquerdo: Menu e Logo/Contexto */
.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

header .menu-btn {
  display: none;
  width: 40px; height: 40px;
  background: var(--white); border: var(--border); border-radius: var(--radius);
  cursor: pointer; align-items: center; justify-content: center;
  transition: all 0.1s;
}
header .menu-btn:hover { background: var(--yellow); box-shadow: 2px 2px 0 #000; }

header h5 {
  font-size: 1.25rem; font-weight: 900; letter-spacing: -0.02em; margin: 0;
}

/* Lado Direito: Ações */
.header-right {
  display: flex;
  align-items: center;
  height: 100%;
}

/* --- ESTADO 1: VISITANTE (Botões de Ação) --- */
#actions-logged-out {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botão Liberar Acesso */
.header-btn-access {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: #23A094; color: #fff;
  border: 2px solid #000; border-radius: 8px;
  font-size: 14px; font-weight: 800;
  cursor: pointer; box-shadow: 3px 3px 0 #000; transition: all 0.1s;
}
.header-btn-access:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 #000; }

/* --- ESTADO 2: ALUNO (Barra de Informações) --- */
#actions-logged-in {
  display: none;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  height: 48px;
}

/* Itens da Barra do Usuário */
.user-item {
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 12px;
  height: 100%;
  line-height: 1.2;
  flex-shrink: 0; 
}

.user-item:last-child { border-right: none; }

.user-label { font-size: 9px; text-transform: uppercase; color: #666; font-weight: 700; margin-bottom: 2px; }
.user-value { font-size: 11px; font-weight: 800; color: #000; white-space: nowrap; }

/* Chave com toggle olhinho */
.ui-chave-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ui-chave-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.15s ease;
}
.ui-chave-toggle:hover { color: #000; }
.ui-chave-toggle i { font-size: 14px; }

/* Larguras Fixas */
.ui-compra, .ui-validade {
  min-width: 110px;
  text-align: center;
}

.timer-box {
  color: #fff;
  min-width: 90px;
  text-align: center;
}

.timer-box .user-value { 
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.ui-key { font-family: monospace; letter-spacing: 0.5px; }

.ui-status { 
  display: flex; align-items: center; gap: 5px; 
  color: #23A094;
}
.status-dot { width: 8px; height: 8px; background: currentColor; border-radius: 50%; }

/* Estado Expirado */
#actions-logged-in.expired { border-color: #FF6B6B; }
#actions-logged-in.expired .ui-status { color: #FF6B6B; }
#actions-logged-in.expired .timer-box { background: #FF6B6B; }
#actions-logged-in.expired .timer-box .user-label { color: #fff; opacity: 0.8; }

/* Botão Sair */
.btn-logout {
  width: 40px;
  height: 100%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.1s;
}
.btn-logout:hover { background: #FF6B6B; color: #fff; }

/* =====================================================
   SELETOR DE CONTEXTO NO HEADER
   ===================================================== */

.context-selector {
  position: relative;
  margin-left: 8px;
}

.context-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #E8E8E3;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 3px 3px 0 #000;
}

.context-current:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #000;
}

.context-selector.open .context-current {
  box-shadow: 3px 3px 0 #000;
}

.context-label {
  font-size: 11px;
  font-weight: 600;
  color: #000;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.context-value {
  font-size: 14px;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
}

.context-arrow {
  font-size: 20px;
  color: #000;
  transition: transform 0.2s ease;
}

.context-selector.open .context-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.context-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 320px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 4px 4px 0 #000;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.context-selector.open .context-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.context-option {
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid #E8E8E3;
  transition: all 0.15s ease;
}

.context-option:first-child {
  border-radius: 6px 6px 0 0;
}

.context-option:last-child {
  border-bottom: none;
  border-radius: 0 0 6px 6px;
}

.context-option:hover { 
  background: #F4F4F0;
}

.context-option.active { 
  background: #FFC900;
}

.context-opt-name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #000;
  margin-bottom: 3px;
}

.context-opt-desc {
  display: block;
  font-size: 13px;
  color: #222;
  opacity: 0.75;
  font-weight: 500;
}

/* ============ RESPONSIVIDADE ============ */

/* Tablet: Remove data de compra */
@media (max-width: 1100px) {
  .ui-compra { display: none; } 
}

/* Tablet Menor */
@media (max-width: 900px) {
  .btn-fale-conosco span { display: none; } 
  .context-label { display: none; } /* Esconde ""Estudando para"" */
}

/* MOBILE (< 768px) */
@media (max-width: 768px) {
  header { padding: 0 0.75rem; }
  
  .context-selector { margin-left: 4px; }
  .context-value { font-size: 12px; }
  .context-arrow { font-size: 18px; }
  
  .context-dropdown {
    position: fixed;
    left: 8px;
    right: 8px;
    top: 64px;
    border: 2px solid #000;
    border-radius: 8px;
    min-width: auto;
  }
}

/* MOBILE PEQUENO (< 650px): CONFIGURAÇÃO FINAL */
@media (max-width: 650px) {
  header { padding: 0 0.5rem; height: 64px; }
  
  /* ESCONDE Nome, Datas E AGORA TAMBÉM A CHAVE */
  .ui-name, .ui-compra, .ui-validade, .ui-chave { display: none !important; }
  
  /* Resultado Mobile: [Contexto] ... [Status] | [Timer] | [Sair] */
  
  /* Timer mais compacto */
  .timer-box { min-width: 70px; padding: 0 8px; }
  .timer-box .user-value { font-size: 10px; }
  
  /* Botão sair menor */
  .btn-logout { width: 36px; }
}

/* MOBILE MUITO PEQUENO (< 400px) */
@media (max-width: 400px) {
  .context-selector {margin-left: -8px;}
  .context-value { font-size: 10px; }
  /* Seletor de contexto mais compacto */
  .context-current {
    padding: 8px 5px;
    gap: 4px;
  }
  
  /* Se ainda não couber, esconde o status também */
  /* .ui-status { display: none !important; } */
}

/* ===== Main Content ===== */
main {
  padding: 2rem;
  min-height: calc(100vh - 200px);
}

/* ===== Footer ===== */
footer {
  background: var(--black);
  color: var(--white);
  border-top: var(--border-thick);
  padding: 2rem;
  margin-top: auto;
}

footer .footer-grid {
  display: flex;
  justify-content: space-between; /* Espalha Info para a esq. e Links para a dir. */
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Info (Esquerda) */
footer .footer-info h6 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

footer .footer-info p {
  font-size: 0.875rem;
  opacity: 0.7;
  max-width: 600px; /* Garante que o texto não estique demais */
}

/* Links (Direita) - Estilo Minimalista */
footer nav.footer-links {
  display: flex;
  gap: 1.5rem; /* Espaço entre os links */
}

footer nav.footer-links a {
  padding: 0;           /* Sem padding */
  background: none;     /* Sem fundo */
  border: none;         /* Sem borda */
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0.6;         /* Levemente apagado */
  transition: all 0.2s ease;
  cursor: pointer;
}

footer nav.footer-links a:hover {
  background: none;     /* Garante que não apareça fundo no hover */
  border: none;
  color: var(--white);
  opacity: 1;           /* Fica branco total */
  text-decoration: underline; /* Sublinhado simples */
}

footer .legal-id {
  font-size: 0.7rem;    /* Menor que o texto normal */
  opacity: 0.4;         /* Mais apagado */
  margin-top: 0.5rem;   /* Espacinho do texto de cima */
  font-family: 'Courier New', monospace; /* Fonte ""fiscal"" */
  text-transform: uppercase;
}

/* Responsividade Mobile */
@media (max-width: 600px) {
  footer .footer-grid {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  footer nav.footer-links {
    justify-content: center;
    gap: 2rem; /* Mais espaço para dedo no mobile */
  }
}

/* ===== Responsive (Desktop) ===== */
@media (min-width: 993px) {
  /* 1. Empurra o corpo do site para não ficar atrás do menu */
  body {
    padding-left: 72px; 
  }
  
  /* 2. Empurra e ajusta a largura do Header */
  header {
    left: 72px;           
    width: calc(100% - 72px); 
  }
  
  /* 3. Esconde o botão de menu do Header (pois já temos o da Sidebar) */
  header .menu-btn {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .nav-rail {
    display: none;
  }
  
  header .menu-btn {
    display: flex;
  }
  
  main {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  main {
    padding: 1rem;
  }
}

/* ===== SCROLLBAR GLOBAL (Estilo Overlay/Clean) ===== */

/* 1. Definições para Firefox */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* 2. Definições para Chrome, Edge, Safari */

/* Largura da barra */
::-webkit-scrollbar {
  width: 10px; /* Um pouco mais larga que a do menu (8px) para facilitar no desktop */
  background: transparent;
}

/* A trilha (fundo) invisível */
::-webkit-scrollbar-track {
  background: transparent;
}

/* Pilula arrastavel */
::-webkit-scrollbar-thumb {
  /* Cor preta com 20% de opacidade (sutil) */
  background-color: rgba(0, 0, 0, 0.2);
  
  /* Borda transparente cria o respiro (efeito flutuante) */
  border: 3px solid transparent;
  
  /* Recorta o fundo para respeitar a borda transparente */
  background-clip: content-box;
  
  /* Totalmente arredondado */
  border-radius: 20px;
}

/* Quando passa o mouse em cima da barra */
::-webkit-scrollbar-thumb:hover {
  /* Fica mais escuro (60%) para indicar interatividade */
  background-color: rgba(0, 0, 0, 0.6);
}

/* ===== Selection ===== */
::selection {
  background: var(--pink);
  color: var(--black);
}
/* ========================================
   GUMROAD NEO-BRUTALIST - PÁGINAS DE AULA
   ======================================== */

/* Layout da Aula */
.aula-layout {
  display: flex;
  gap: 24px;
  padding: 12px;
  max-width: 1400px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
}

.aula-content {
  flex: 1;
  min-width: 0;
}

.aula-sidebar {
  width: 320px;
  flex-shrink: 0;
  margin-top: 42px;
  /* --- LÓGICA DE MENU FIXO (STICKY) --- */
  position: -webkit-sticky; /* Para Safari */
  position: sticky;         /* Padrão moderno */
  top: 88px;                /* Distância do topo quando rolar */
  align-self: flex-start;   /* IMPRESCINDÍVEL: Impede que a barra estique até o fim */
  z-index: 10;              /* Garante que fique acima de outros elementos se houver */
}

/* Breadcrumb */
.aula-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 600;
}

.aula-breadcrumb a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* ========================================
   PLAYER DE VÍDEO
   ======================================== */
.aula-player {
  display: grid;
  grid-template-columns: 1fr 300px;
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0px 0px 0 #000;
  margin-bottom: 24px;
}

.aula-player-video {
  position: relative;
  background: #000;
border-right: 2px solid #000;
}

.aula-player-video iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: none;
  display: block;
}

.aula-player-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #FFC900;
  padding: 8px 16px;
  border: 2px solid #000;
  border-radius: 4px;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 3px 3px 0 #000;
  z-index: 10;
}

.aula-player-list {
  background: #fff;
  border-left: 2px solid #000;
  display: flex;
  flex-direction: column;
}

/* =====================================================
   AJUSTE: ABAS DO PLAYER (ESTILO CHIPS COM SCROLL)
   ===================================================== */

.aula-player-tabs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #E8E8E3;
  border-bottom: 2px solid #000;
  
  /* Correção de Scroll */
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */

/* CORREÇÃO PARA MOBILE: Força o browser a respeitar o limite */
  width: 100%;          /* Ocupa o que der */
  max-width: 100vw;     /* Nunca passa da tela */
  box-sizing: border-box; /* Garante que padding não estoura */
}

/* Esconde scroll no Chrome/Safari/Opera */
.aula-player-tabs::-webkit-scrollbar {
  display: none;
}


.aula-tab-btn {
  /* Remove o esticamento antigo */
  flex: none; 
  
  /* Estilo Chip */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;       /* Padding menor para parecer chip */
  background: #fff;
  border: 2px solid #000;
  border-radius: 50px;     /* Bordas arredondadas (Pílula) */
  font-size: 12px;
  font-weight: 800;
  
  cursor: pointer;
  transition: all 0.1s ease;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 2px 2px 0 #000; /* Sombra dura pequena */
}

.aula-tab-btn i {
  font-size: 16px; /* Ícone menor */
}

.aula-tab-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #000;
}

.aula-tab-btn.active {
  background: #FF90E8; /* Rosa */
  box-shadow: 1px 1px 0 #000; /* Efeito de pressionado */
  transform: translate(1px, 1px);
}

.aula-playlist-wrapper {
  /* Ocupa o espaço restante da sidebar */
  flex: 1; 
  max-height: 292px; 
  min-height: 0; /* Importante para o Firefox não travar o flexbox */
  
  /* ROLAGEM */
  overflow-y: auto;
}

.aula-playlist {
  flex: 1;
  overflow-y: auto;
  max-height: 350px;
}

.aula-playlist-page {
  display: none;
}

.aula-playlist-page.active {
  display: block;
}

/* Video Items */
.aula-video-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 2px solid #000;
  transition: all 0.15s ease;
  text-decoration: none;
  color: #000;
  background: #eee;
}

.aula-video-item:hover {
  background: #E8E8E3;
}

.aula-video-item.active {
  background: #FFC900;
}

.aula-video-thumb {
  position: relative;
  width: 100px;
  height: 56px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid #000;
  flex-shrink: 0;
}

.aula-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aula-video-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
}

.aula-video-item:hover .aula-video-play {
  opacity: 1;
}

.aula-video-play i {
  color: #fff;
  font-size: 28px;
}

.aula-video-info {
  flex: 1;
  min-width: 0;
}

.aula-video-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   MEDIA BAR (Podcast + Resumo)
   ======================================== */
.aula-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.aula-media-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 0px 0px 0 #000;
  cursor: pointer;
  transition: all 0.15s ease;
}

.aula-media-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 #000;
}

.aula-media-card.podcast {
  background: #23A094;
  color: #fff;
}

.aula-media-card.resumo {
  background: #90A8ED;
  color: #000;
}

.aula-media-icon {
  width: 48px;
  height: 48px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aula-media-icon i {
  font-size: 24px;
  color: #000;
}

.aula-media-info {
  flex: 1;
}

.aula-media-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.aula-media-subtitle {
  font-size: 13px;
  opacity: 0.8;
}

.aula-media-action {
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aula-media-action i {
  font-size: 20px;
  color: #000;
}

.aula-media-card audio {
  height: 32px;
  width: 100%;
  margin-top: 4px;
}

/* ========================================
   ABAS COM STICKY PERFEITO
   ======================================== */

/* 1. O Container Pai fica INVISÍVEL (apenas estrutural) */
.aula-tabs {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible !important; /* Essencial para o sticky funcionar */
  margin-bottom: 40px;
}

/* 2. NOVO: Wrapper Sticky que engloba Nav + Barra de Progresso */
.aula-tabs-header {
  position: -webkit-sticky;
  position: sticky;
  top: 88px;
  z-index: 100;
  width: 100%;
  max-width: 100%;
}

/* 3. A Barra de Navegação (não precisa mais de sticky próprio) */
.aula-tabs-nav {
  /* Visual da Caixa */
  background: #E8E8E3;
  border: 2px solid #000;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -20px 0 0 #f4f4f1;
  
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

.aula-tabs-nav::-webkit-scrollbar { display: none; }

/* Links das Abas */
.aula-tabs-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  border-right: 2px solid #000;
  cursor: pointer;
  background: transparent;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.aula-tabs-nav a:hover { background: #FFDB58; }
.aula-tabs-nav a.active { background: #FFC900; }

/* 4. NOVO: Barra de Progresso de Leitura (grudada no nav) */
.aula-reading-progress {
  height: 8px;
  background: #FFF;
  border-left: 2px solid #000;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  display: none; /* Começa oculta, JS mostra quando sticky ativa */
}

.aula-reading-bar {
  height: 100%;
  background: #90A8ED;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* 5. O Conteúdo vira o ""Corpo"" da caixa */
.aula-tab-content-box {
  background: #fff;
  border: 2px solid #000;
  border-top: none;
  border-radius: 0 0 8px 8px;
  min-height: 300px;
  position: relative;
  z-index: 1;
}

.aula-tab-content {
  display: none;
  padding: 30px;
  animation: fade 0.3s;
}

.aula-tab-content.active {
  display: block;
}

#page-conteudo {padding-top: 20px}
#page-mapa {padding: 0}
#page-roteiro {padding: 0}
#page-questoes {padding: 0}
#page-checklist { padding: 0 !important; }

/* Content styling inside tabs */
.aula-tab-content h1,
.aula-tab-content h2,
.aula-tab-content h3 {
  font-weight: 900;
  margin: 1.5rem 0 1rem;
  line-height: 1.2;
}

.aula-tab-content h1 { font-size: 2rem; }
.aula-tab-content h2 { font-size: 1.5rem; }
.aula-tab-content h3 { font-size: 1.25rem; }

.aula-tab-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

.aula-tab-content ul,
.aula-tab-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

.aula-tab-content li {
  margin-bottom: 0.5rem;
}

.aula-tab-content blockquote {
  background: #FFC900;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 4px 4px 0 #000;
}

.aula-tab-content img {
  border: 2px solid #000;
  border-radius: 8px;
  margin: 16px 0;
}

.aula-tab-content table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #000;
  margin: 16px 0;
}

.aula-tab-content th,
.aula-tab-content td {
  padding: 12px;
  border: 2px solid #000;
  text-align: left;
}

.aula-tab-content th {
  background: #FFC900;
  font-weight: 900;
}

.aula-tab-content tr:nth-child(even) {
  background: #E8E8E3;
}

/* ========================================
   SIDEBAR / MENU LATERAL
   ======================================== */
.aula-module {
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 0px 0px 0 #000;
  overflow: hidden;
}

.aula-module-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #E8E8E3;
  border-bottom: 2px solid #000;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.aula-module-header i {
  font-size: 20px;
}

.aula-module-list {
  padding: 0px;
}

.aula-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 0px;
  margin-bottom: 0px;
  transition: all 0.15s ease;
  text-decoration: none;
  color: #000;
  border-bottom: 2px solid #000;
}

.aula-menu-item:nth-last-child(2) {
  border-bottom: none;
}

.aula-menu-item:hover {
  background: #E8E8E3;
}

.aula-menu-item.active {
  background: #FFC900;
}

.aula-menu-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aula-menu-icon i {
  color: #000;
  font-size: 20px;
}

.aula-menu-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* RESPONSIVE */
@media (max-width: 1280px) {
  .aula-layout {
    flex-direction: column;
    padding: 12px;
  }
  
  .aula-sidebar {
    width: 100%;
    display: none;
  }
  
  .aula-player-list {
    border-left: none;
    border-top: 2px solid #000;
  }
  
  .aula-playlist {
    max-height: 250px;
  }
/* CONTER O GRID */
  .aula-player {
    grid-template-columns: 100%; /* Força coluna única rígida */
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Corta o que vazar, forçando o filho a ter scroll */
  }
  
  .aula-player-sidebar {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Importante */
    background: #E8E8E3;
  }
}

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

/* CSS ADICIONAL PARA FLASHCARDS */

/* Grid Dinâmico da Media Bar */
.aula-media.media-cols-1 { 
  grid-template-columns: 1fr; 
}

.aula-media.media-cols-2 { 
  grid-template-columns: repeat(2, 1fr); 
}

.aula-media.media-cols-3 { 
  grid-template-columns: repeat(3, 1fr); 
}

/* Responsivo para grid dinâmico */
@media (max-width: 900px) {
  .aula-media.media-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .aula-media.media-cols-2,
  .aula-media.media-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Card de Flashcards na Media Bar */
.aula-media-card.flashcards {
  background: #B8A9FA; /* Roxo claro - cor diferenciada */
  color: #000;
}

/* ========================================
   PIX MODAL V49 — MINIMALIST (mockup-fiel)
   Design sóbrio/clean para o modal de pagamento.
   Ver backup CSS_PIX_NEO_BRUTALIST_BACKUP.txt para o design anterior.
   ======================================== */

/* ===== Overlay + container ===== */
.pix-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.pix-modal.active {
  display: flex;
}

.pix-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.pix-modal-container {
  position: relative;
  background: #fff;
  border-radius: 12px;
  border: 0.5px solid rgba(0,0,0,0.15);
  width: 90%;
  max-width: 400px;
  max-height: 92vh;
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  margin: 16px;
  display: flex;
  flex-direction: column;
  color: #1a1a1a;
}

/* ===== Steps ===== */
.pix-step {
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.pix-step.active {
  display: flex;
}

.pix-step-body {
  padding: 20px;
  overflow-y: auto;
}

.pix-step-title {
  font-size: 14px;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Header dentro de cada step ===== */
.pix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  background: transparent;
  border: none;
}

.pix-header-info {
  display: flex;
  flex-direction: column;
}

.pix-modal-title {
  font-size: 18px;
  font-weight: 900;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}

.pix-subtitle {
  font-size: 12px;
  color: #6b6b6b;
  margin-top: 2px;
  font-weight: 600;
  opacity: 0.7;
}

.pix-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  color: #000;
  line-height: 1;
  font-family: inherit;
  padding: 0;
  transition: all 0.15s ease;
}

.pix-close-btn:hover {
  background: #FF6B6B;
  color: #fff;
}

.pix-close-btn i {
  font-size: 18px;
}

.pix-divider {
  height: 0.5px;
  background: rgba(0,0,0,0.1);
  margin: 0 20px;
}

/* ===== STEP 1: Cards de método ===== */
.pix-method-card {
  border: 0.5px solid rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 16px 18px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
  background: #fff;
}

.pix-method-card:hover {
  border-color: rgba(0,0,0,0.4);
}

.pix-method-card-featured {
  border: 2px solid #185FA5;
  border-radius: 12px;
  padding: 16px 18px;
  padding-top: 22px;
  cursor: pointer;
  position: relative;
  margin-bottom: 12px;
  background: #fff;
}

.pix-popular-badge {
  position: absolute;
  top: -1px;
  right: 16px;
  background: #185FA5;
  color: #E6F1FB;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 0 0 8px 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.pix-card-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pix-card-content {
  flex: 1;
}

.pix-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pix-icon-green { background: #E1F5EE; }
.pix-icon-blue  { background: #E6F1FB; }

.pix-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.pix-card-title {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
}

.pix-card-desc {
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.5;
}

.pix-badge {
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  margin-top: 10px;
}

.pix-badge-green {
  color: #0F6E56;
  background: #E1F5EE;
}

.pix-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 10px;
}

.pix-price-main {
  font-size: 22px;
  font-weight: 500;
  color: #1a1a1a;
}

.pix-price-period {
  font-size: 13px;
  color: #6b6b6b;
}

.pix-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.25);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  transition: all 0.15s ease;
}

.pix-radio-filled-blue {
  border-color: #185FA5;
  background: #185FA5;
  margin-top: 6px;
}

.pix-radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

/* Estado "selecionado via click" — JS troca as classes */
.pix-method-card.selected {
  border: 2px solid #1a1a1a;
}
.pix-method-card.unselected {
  border: 0.5px solid rgba(0,0,0,0.2);
}
.pix-method-card-featured.selected {
  border: 2px solid #185FA5;
}
.pix-method-card-featured.unselected {
  border: 0.5px solid rgba(0,0,0,0.2);
}

.pix-step-actions {
  margin-top: 20px;
}

/* ===== Botões ===== */
.pix-btn {
  width: 100%;
  padding: 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  border: none;
  transition: opacity 0.15s ease;
}

.pix-btn:hover {
  opacity: 0.92;
}

.pix-btn-primary {
  background: #23A094;
  color: #fff;
  border: 3px solid #000;
  box-shadow: 4px 4px 0 #000;
  font-weight: 800;
  transition: all 0.15s ease;
}

.pix-btn-primary:hover {
  background: #23A094;
  opacity: 1;
  box-shadow: 4px 4px 0 #000;
}

.pix-btn-primary:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #000;
}

.pix-btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: 4px 4px 0 #000;
}

.pix-btn-outline {
  background: transparent;
  border: none;
  color: #666;
  font-size: 14px;
  font-weight: 600;
}

.pix-btn-outline:hover {
  background: transparent;
  color: #000;
  opacity: 1;
}

.pix-btn-gap {
  margin-top: 8px;
}

/* ===== Input de valor (steps 2 e 9) ===== */
.pix-input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid #1a1a1a;
  border-radius: 8px;
  padding: 12px 14px;
  gap: 6px;
}

.pix-currency {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
}

.pix-valor-input {
  font-size: 28px;
  font-weight: 900;
  color: #1a1a1a;
  border: none;
  outline: none;
  width: 100%;
  background: transparent;
  font-family: 'DM Sans', system-ui, sans-serif;
}

.pix-valor-input::-webkit-outer-spin-button,
.pix-valor-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pix-feedback-box {
  margin-top: 12px;
  text-align: center;
  min-height: 44px;
}

.pix-feedback-main {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
}

.pix-feedback-sub {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ===== STEP 3: QR Code ===== */
.pix-qr-box {
  width: 172px;
  height: 172px;
  border: 1.5px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafafa;
  position: relative;
  padding: 8px;
}

.pix-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pix-qr-loading {
  position: absolute;
  inset: 0;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
}

.pix-qr-loading.hidden {
  display: none;
}

.pix-qr-loading span {
  font-size: 12px;
  color: #6b6b6b;
  font-weight: 500;
}

.pix-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid #eee;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: pix-spin 0.8s linear infinite;
}

.pix-spinner-large {
  width: 48px;
  height: 48px;
  border: 3px solid #eee;
  border-top-color: #1a1a1a;
  border-radius: 50%;
  animation: pix-spin 0.8s linear infinite;
}

@keyframes pix-spin {
  to { transform: rotate(360deg); }
}

.pix-copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #F4F4F0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 4px;
}

.pix-copy-input {
  flex: 1;
  font-size: 11px;
  color: #6b6b6b;
  background: transparent;
  border: none;
  outline: none;
  font-family: monospace;
  min-width: 0;
}

.pix-copy-btn {
  width: 30px;
  height: 30px;
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.15s ease;
  box-shadow: none;
}

.pix-copy-btn:hover {
  background: #F4F4F0;
  transform: none;
  box-shadow: none;
}

.pix-copy-msg {
  font-size: 12px;
  color: #0F6E56;
  text-align: center;
  margin-bottom: 14px;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pix-copy-msg.visible {
  opacity: 1;
}

.pix-instructions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.pix-instruction {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pix-instruction-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.pix-instruction-text {
  font-size: 13px;
  color: #333;
  line-height: 1.4;
}

/* ===== STEP 4: Verificando ===== */
.pix-verificando {
  text-align: center;
}

.pix-verificando-titulo {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.pix-verificando-desc {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 24px;
}

.pix-countdown-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 16px;
}

.pix-countdown-svg {
  transform: rotate(-90deg);
  width: 140px;
  height: 140px;
}

.pix-countdown-bg {
  fill: none;
  stroke: #F0F0F0;
  stroke-width: 8;
}

.pix-countdown-progress {
  fill: none;
  stroke: #23A094;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 389.6;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.pix-countdown-time {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.pix-countdown-num {
  font-size: 28px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1;
  display: block;
}

.pix-countdown-unit {
  font-size: 11px;
  color: #6b6b6b;
  display: block;
  font-weight: 400;
  margin-top: 2px;
}

.pix-verificando-dica {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #F4F4F0;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #6b6b6b;
  text-align: left;
}

/* ===== STEPS 5, 8, 10: sucesso/chave válida/recarga sucesso ===== */
.pix-sucesso {
  text-align: center;
}

.pix-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #23A094;
  background: #E0F2F1;
  box-shadow: 4px 4px 0 rgba(35, 160, 148, 0.3);
}

.pix-icon-circle i {
  font-size: 36px;
  color: #23A094;
}

/* Variante erro (vermelho) */
.pix-icon-circle.icon-erro {
  border-color: #E53E3E;
  background: #FDECEA;
  box-shadow: 4px 4px 0 rgba(229, 62, 62, 0.3);
}
.pix-icon-circle.icon-erro i { color: #E53E3E; }

/* Variante info/azul (chave válida) */
.pix-icon-circle.icon-info {
  border-color: #185FA5;
  background: #E6F1FB;
  box-shadow: 4px 4px 0 rgba(24, 95, 165, 0.3);
}
.pix-icon-circle.icon-info i { color: #185FA5; }

/* Variante recarga (azul vibrante) */
.pix-icon-circle.icon-recarga {
  border-color: #2196F3;
  background: #E3F2FD;
  box-shadow: 4px 4px 0 rgba(33, 150, 243, 0.3);
}
.pix-icon-circle.icon-recarga i { color: #2196F3; }

.pix-section-title {
  font-size: 18px;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.pix-key-box {
  background: #F4F4F0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  margin-bottom: 14px;
}

.pix-key-label {
  font-size: 12px;
  color: #6b6b6b;
  margin-bottom: 8px;
}

.pix-key-value {
  font-size: 24px;
  font-weight: 900;
  color: #1a1a1a;
  font-family: monospace;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.pix-key-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 0.5px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
  color: #333;
  font-family: 'DM Sans', system-ui, sans-serif;
  box-shadow: none;
  transition: background 0.15s ease;
}

.pix-key-copy-btn:hover {
  background: #F4F4F0;
  transform: none;
  box-shadow: none;
}

.pix-info-box {
  border: 0.5px solid rgba(0,0,0,0.12);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.pix-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}

.pix-info-row + .pix-info-row {
  border-top: 0.5px solid rgba(0,0,0,0.08);
  padding-top: 8px;
  margin-top: 4px;
}

.pix-info-label {
  color: #6b6b6b;
}

.pix-info-value {
  font-weight: 500;
  color: #1a1a1a;
}

.pix-aviso {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #F4F4F0;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  text-align: left;
}

.pix-aviso-success {
  background: #E1F5EE;
  color: #0F6E56;
}

/* ===== STEP 6: Erro ===== */
.pix-erro-msg {
  font-size: 13px;
  color: #6b6b6b;
  margin-bottom: 18px;
}

.pix-erro-dicas {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.pix-dica {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #F4F4F0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: #333;
  line-height: 1.4;
  text-align: left;
}

/* ===== STEP 7: Inserir chave ===== */
.pix-chave-input-container {
  border: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 8px;
  transition: border-color 0.15s ease;
}

.pix-chave-input-container:focus-within {
  border-color: #1a1a1a;
}

.pix-chave-input {
  width: 100%;
  font-size: 22px;
  font-weight: 500;
  color: #1a1a1a;
  border: none;
  outline: none;
  text-align: center;
  letter-spacing: 3px;
  font-family: monospace;
  background: transparent;
}

.pix-chave-hint {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-bottom: 16px;
}

.pix-chave-erro {
  font-size: 13px;
  font-weight: 700;
  color: #c62828;
  text-align: center;
  margin-top: -12px;
  margin-bottom: 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.2s ease;
}

.pix-chave-erro.visible {
  opacity: 1;
  max-height: 40px;
}

/* ===== STEP 9: Recarga (header do usuário) ===== */
.pix-recarga-header-box {
  background: #F4F4F0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.pix-recarga-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pix-recarga-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pix-recarga-avatar i {
  color: #fff;
  font-size: 20px;
}

.pix-recarga-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pix-recarga-nome {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.pix-recarga-chave-label {
  font-size: 11px;
  color: #6b6b6b;
  font-family: monospace;
}

.pix-recarga-status,
.recarga-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: #FFF4E6;
  color: #9C5700;
}

.recarga-status.ativa {
  background: #E0F2F1;
  color: #00796b;
}

.recarga-status.expirada {
  background: #FFEBEE;
  color: #c62828;
}

.recarga-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  flex-shrink: 0;
}

.pix-recarga-saldo-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-top: 0.5px solid rgba(0,0,0,0.1);
  padding-top: 10px;
}

.pix-recarga-saldo-label {
  color: #6b6b6b;
}

.pix-recarga-saldo-value {
  font-weight: 500;
  color: #1a1a1a;
}

/* ===== STEP 10: Recarga sucesso (saldos grid) ===== */
.pix-recarga-resultado-box {
  background: #F4F4F0;
  border-radius: 8px;
  padding: 16px;
  margin: 14px 0;
}

.pix-recarga-resultado-chave {
  font-size: 17px;
  font-weight: 500;
  color: #1a1a1a;
  font-family: monospace;
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.pix-saldos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.pix-saldo-item {
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 10px 4px;
  border: 0.5px solid rgba(0,0,0,0.1);
}

.pix-saldo-item-label {
  font-size: 10px;
  color: #6b6b6b;
  display: block;
  margin-bottom: 4px;
}

.pix-saldo-item-valor {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

.pix-saldo-adicionado .pix-saldo-item-valor {
  color: #0F6E56;
}

.pix-recargas-label {
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* ===== STEP 11: Hotmart ===== */
.pix-hotmart-aviso {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #E6F1FB;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #185FA5;
  line-height: 1.5;
}

.pix-iframe-wrapper {
  height: 480px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 0.5px solid rgba(0,0,0,0.1);
}

/* ===== Link "Cansou de recarregar?" (step 9) ===== */
.pix-assinar-link {
  margin-top: 14px;
  padding: 12px 14px;
  background: #E6F1FB;
  border-radius: 8px;
  border: 0.5px solid rgba(24, 95, 165, 0.2);
  cursor: pointer;
  transition: background 0.15s ease;
}

.pix-assinar-link:hover {
  background: #D4E5F5;
}

.pix-assinar-link-title {
  font-size: 13px;
  font-weight: 500;
  color: #185FA5;
  margin-bottom: 2px;
}

.pix-assinar-link-desc {
  font-size: 12px;
  color: #185FA5;
  line-height: 1.4;
}

.pix-assinar-link-cta {
  font-weight: 500;
  text-decoration: underline;
}

/* ===== Aviso extra step 11 (quando veio da recarga) ===== */
.pix-hotmart-aviso-extra {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #FFF4E6;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  margin-top: -6px;
  font-size: 13px;
  color: #9C5700;
  line-height: 1.5;
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .pix-modal-container {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .pix-modal {
    padding: 0;
  }

  .pix-step-body {
    padding: 16px;
  }

  .pix-valor-input {
    font-size: 22px;
  }

  .pix-qr-box {
    width: 160px;
    height: 160px;
  }

  .pix-countdown-wrapper {
    width: 120px;
    height: 120px;
  }

  .pix-countdown-svg {
    width: 120px;
    height: 120px;
  }

  .pix-countdown-num {
    font-size: 24px;
  }

  .pix-iframe-wrapper {
    height: calc(100dvh - 280px);
    min-height: 380px;
  }
}

/* =====================================================
   HEADER - Botão "Adicionar Tempo"
   (não faz parte do modal; mantém neo-brutalist)
   ======================================================= */
.header-add-time-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 36px;
  background: #23A094;
  color: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 3px 3px 0 #000;
  transition: all 0.15s ease;
  margin-right: 2px;
  white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}

.header-add-time-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 #000;
  background: #1a7a70;
}

.header-add-time-btn i {
  font-size: 20px;
  flex-shrink: 0;
}

.add-time-text {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 768px) {
  .add-time-text {
    display: none;
  }

  .header-add-time-btn {
    width: 36px;
    padding: 0;
    justify-content: center;
  }
}

/* Link de subtopico nas listagens (aba Questoes da pagina de topico, Raio-X e modal).
   O site tem `a { color: inherit; text-decoration: none }`, entao sem esta regra o link
   sai identico a texto comum e o aluno nao percebe que e clicavel.
   Decisao do dono (2026-07-28): SO sublinhado, mantendo a cor do texto — numa tabela com
   muitas linhas, colorir tambem polui; o sublinhado ja sinaliza sozinho e funciona no
   celular, onde nao existe hover. */
.sub-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.sub-link:hover {
  text-decoration-thickness: 2px;
}

/* =====================================================
   CSS DO MODAL DE QUESTÕES v4
===================================================== */

/* === HEADER CENTRALIZADO === */
.q-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  background: #F9F9F7;
  border-bottom: 1px solid #E8E8E3;
  margin: -24px -24px 24px -24px;
  border-radius: 9px 9px 0 0;
}

.q-modal-header .q-status-indicator {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ddd;
  border: 1px solid #000;
  flex-shrink: 0;
}

.q-modal-header .q-status-indicator.q-status-correct {
  background: #4CAF50;
}

.q-modal-header .q-status-indicator.q-status-wrong {
  background: #f44336;
}

.q-modal-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === LINKS DE AÇÃO === */
.q-action-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  border-top: 1px solid #E8E8E3;
  margin-top: 24px;
  flex-wrap: wrap;
}

.q-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  transition: all 0.15s ease;
}

.q-action-btn:hover {
  background: #F4F4F0;
  color: #000;
}

.q-action-btn i {
  font-size: 20px;
  color: #888;
  transition: color 0.15s ease;
}

.q-action-btn:hover i {
  color: #000;
}

/* === BREADCRUMB === */
.q-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: #F9F9F7;
  border-bottom: 1px solid #E8E8E3;
  flex-wrap: wrap;
}

.q-breadcrumb-back {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.1s ease;
}

.q-breadcrumb-back:hover {
  background: #FFC900;
  transform: translate(2px, 2px);
  box-shadow: 0 0 0;
}

.q-breadcrumb-back i {
  font-size: 16px;
}

.q-breadcrumb-sep {
  color: #999;
  font-weight: 500;
}

.q-breadcrumb-current {
  font-size: 13px;
  font-weight: 600;
  color: #666;
}

/* === VIEW ANÁLISE === */
.q-view-analise {
  padding: 0 !important;
}

.q-analise-section {
  padding: 20px 24px;
  border-bottom: 1px solid #E8E8E3;
}

.q-analise-section:last-child {
  border-bottom: none;
}

.q-analise-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.q-analise-title i {
  font-size: 18px;
  color: #666;
}

.q-analise-text {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.q-analise-text.q-justificativa {
  margin-top: 12px;
}

.q-analise-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* === GRÁFICO DE DIFICULDADE (estilo raio-x) === */
.q-dif-container {
  background: #F9F9F7;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.q-dif-graph-label {
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  text-align: center;
}

.q-diff-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 15px;
  width: 100%;
}

.q-diff-endpoint-label {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  flex-shrink: 0;
  line-height: 24px;
}

.q-diff-meter-container {
  flex: 1;
  position: relative;
}

.q-diff-bar-gradient {
  height: 15px;
  background: linear-gradient(90deg, #23A094 0%, #FFDB58 50%, #FF6B6B 100%);
  border: 2px solid #050505;
  border-radius: 20px;
  position: relative;
  z-index: 1;
}

.q-diff-pointer {
  position: absolute;
  top: -5px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid #050505;
  transform: translateX(-50%);
  transition: left 1s ease-out;
  z-index: 5;
}

.q-diff-value-bubble {
  position: absolute;
  top: -38px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #050505;
  color: white;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.85rem;
  white-space: nowrap;
}

.q-diff-value-bubble::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #050505;
}

/* === ISSUE 4: Dificuldade desativada === */
.q-dif-disabled {
  opacity: 0.6;
}

.q-dif-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  background: #F4F4F0;
  border-radius: 8px;
  border: 1px dashed #ccc;
  color: #888;
  font-size: 14px;
  line-height: 1.5;
}

.q-dif-empty i {
  font-size: 20px;
  color: #bbb;
  flex-shrink: 0;
}

/* Grid de conteúdo */
.q-conteudo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.q-conteudo-item {
  background: #F9F9F7;
  border-radius: 8px;
  padding: 12px;
}

.q-conteudo-item.full {
  grid-column: 1 / -1;
}

.q-conteudo-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.q-conteudo-value {
  font-size: 14px;
  color: #000;
  line-height: 1.4;
}

/* === CONTEÚDO PROGRAMÁTICO — LISTA === */
.q-cp-list {
  margin: 4px 0 0 0;
}

.q-cp-item {
  font-size: 14px;
  color: #000;
  line-height: 1.6;
  padding: 4px 0;
  border-bottom: 1px dashed #E8E8E3;
}

.q-cp-item:last-child {
  border-bottom: none;
}

/* === VIEW RESPOSTA === */
.q-view-resposta {
  padding: 0 !important;
}

.q-resposta-section {
  padding: 20px 24px;
  border-bottom: 1px solid #E8E8E3;
}

.q-resposta-section:last-child {
  border-bottom: none;
}

.q-resposta-title {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Alternativa correta */
.q-alternativa-correta {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #E8F5E9;
  border: 2px solid #4CAF50;
  border-radius: 10px;
}
.q-alternativa-correta.q-anulada {
  background: #F4F4F0;
  border-color: #bbb;
}
.q-anulada .q-alt-letra {
  background: #999;
}

.q-alt-letra {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #4CAF50;
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

.q-alt-texto {
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  padding-top: 6px;
}

/* Vídeo */
.q-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #000;
}

.q-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Resolução texto */
.q-resolucao-texto, .q-padrao-resposta {
  font-size: 15px;
  line-height: 1.7;
  color: #333;
}

.q-resolucao-texto p {
  margin-bottom: 1rem;
}

/* === ISSUE 2: BADGES — estilo idêntico aos cards do banco === */
.q-badge-tipo {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  display: inline-block;
  text-transform: capitalize;
  white-space: nowrap;
  text-align: center;
  background: #F5F5F5;
  color: #757575;
}

.tipo-interpretativa { background: #E3F2FD; color: #1565C0; }
.tipo-conceitual { background: #E8F5E9; color: #2E7D32; }
.tipo-procedimental { background: #FFF3E0; color: #E65100; }
.tipo-default { background: #F5F5F5; color: #757575; }

.q-badge-dif {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #000;
  display: inline-block;
  white-space: nowrap;
  text-transform: uppercase;
  text-align: center;
}

.dif-easy { background: #90EE90; }
.dif-medium { background: #FFDB58; }
.dif-hard { background: #FF6B6B; color: #fff; }
.dif-normal { background: #eee; }

/* Complexidade — estilo original enem dos badges de tipo (Interpretativa→Simples, Conceitual→Médio, Procedimental→Complexo) */
.q-badge-tipo.simples { background: #E3F2FD; color: #1565C0; }
.q-badge-tipo.medio { background: #E8F5E9; color: #2E7D32; }
.q-badge-tipo.complexo { background: #FFF3E0; color: #E65100; }

/* FIX #8+New#1: Pseudo-elements only inside modal (not filter panel) */
#q-modal-body .q-badge-dif.dif-easy::before { content: 'Fácil '; opacity: 0.7; font-weight: 600; font-size: 10px; margin-right: 4px; color: #000; }
#q-modal-body .q-badge-dif.dif-medium::before { content: 'Médio '; opacity: 0.7; font-weight: 600; font-size: 10px; margin-right: 4px; color: #000; }
#q-modal-body .q-badge-dif.dif-hard::before { content: 'Difícil '; opacity: 0.7; font-weight: 600; font-size: 10px; margin-right: 4px; color: #FFF; }

/* === AJUSTES NO BODY DO MODAL === */
#q-modal-body .q-container {
  padding: 24px;
}

#q-modal-body .q-view-analise,
#q-modal-body .q-view-resposta {
  padding: 0;
}

/* Esconde o header antigo de badges */
#q-modal-body .q-header:not(.q-modal-header) {
  display: none !important;
}

/* === ISSUE 9: RESPONSIVO — Mobile fullscreen === */
@media (max-width: 600px) {

  #q-modal-overlay.q-modal-overlay {
    padding: 0;
  }

  #q-modal-overlay .q-modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .q-modal-header {
    border-radius: 0;
  }

  .q-modal-title {
    font-size: 0.95rem;
  }

  .q-action-links {
    flex-direction: column;
    align-items: stretch;
  }

  .q-action-btn {
    justify-content: center;
  }

  .q-breadcrumb {
    padding: 12px 16px;
  }

  .q-breadcrumb-back span {
    display: none;
  }

  .q-breadcrumb-current {
    font-size: 12px;
  }

  .q-analise-section,
  .q-resposta-section {
    padding: 16px;
  }

  .q-conteudo-grid {
    grid-template-columns: 1fr;
  }

  .q-conteudo-item {
    grid-column: 1 !important;
  }

  .q-alternativa-correta {
    flex-direction: column;
    align-items: flex-start;
  }
  .q-alternativa-correta .q-alt-letra {
    margin-bottom: 8px;
  }

  .q-diff-wrapper {
    padding-top: 30px;
  }

}

/* === OPÇÕES DE QUESTÃO === */
#q-modal-body .q-options {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* CE: botões Certo/Errado lado a lado */
#q-modal-body .q-options-ce {
  flex-direction: row;
  gap: 12px;
}
#q-modal-body .q-options-ce .q-opt {
  flex: 1;
  justify-content: center;
}

#q-modal-body .q-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  text-align: left;
  transition: all 0.1s;
  box-shadow: 3px 3px 0 #000;
}

#q-modal-body .q-opt:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #000;
  background: #F4F4F0;
}

#q-modal-body .q-opt .opt-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #000;
  color: #fff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

/* Wrapper do texto da alternativa — evita desalinhamento de bold/underline */
#q-modal-body .q-opt .q-opt-text {
  flex: 1;
  min-width: 0;
  line-height: 1.5;
  display: inline;
}

#q-modal-body .q-opt .q-opt-text strong {
  vertical-align: baseline;
  line-height: inherit;
}

#q-modal-body .q-opt .q-opt-text u {
  vertical-align: baseline;
  line-height: inherit;
  text-underline-offset: 2px;
}

#q-modal-body .q-opt.correct {
  background:  #23A094 !important;
  color: #fff;
  border-color: #2E7D32;
}

#q-modal-body .q-opt.correct .opt-letter {
  background: #fff;
  color: #2E7D32;
}

#q-modal-body .q-opt.wrong {
  background: #FF6B6B !important;
  color: #fff;
  border-color: #c62828;
}

#q-modal-body .q-opt.wrong .opt-letter {
  background: #fff;
  color: #c62828;
}
#q-modal-body .q-opt.anulada-sel {
  background: #E8E8E3;
  border-color: #999;
  color: #000;
}
.q-modal-header .q-status-indicator.q-status-anulada {
  background: #bbb;
  border-color: #888;
  position: relative;
}
.q-modal-header .q-status-indicator.q-status-anulada::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

#q-modal-body .q-options.answered .q-opt:not(.correct):not(.wrong) {
  opacity: 0.5;
}

/* === CORPO DA QUESTÃO === */
#q-modal-body .q-body {
  font-size: 15px;
  line-height: 1.7;
  color: #000;
}

/* ISSUE 5: quebras de linha no enunciado (igual à resolução) */
#q-modal-body .q-text {
  padding-bottom: 15px;
  border-bottom: 1px dashed #ddd;
}

#q-modal-body .q-text p {
  margin-bottom: 1rem;
}

#q-modal-body .q-text h1,
#q-modal-body .q-text h2,
#q-modal-body .q-text h3,
#q-modal-body .q-text h4,
#q-modal-body .q-text h5 {
  margin: 1rem 0 0.5rem;
  line-height: 1.3;
}

#q-modal-body .q-text ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

#q-modal-body .q-text ul li {
  margin-bottom: 0.3rem;
}

/* Resolução também */
.q-resolucao-texto h1,
.q-resolucao-texto h2,
.q-resolucao-texto h3,
.q-resolucao-texto h4,
.q-resolucao-texto h5 {
  margin: 1rem 0 0.5rem;
  line-height: 1.3;
}

.q-resolucao-texto ul {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.q-resolucao-texto ul li {
  margin-bottom: 0.3rem;
}

#q-modal-body .q-images {
  margin: 20px 0;
  text-align: center;
}

#q-modal-body .q-img {
  max-width: 100%;
  border-radius: 8px;
}

.q-img-responsive {
  display: block;
  margin: 12px auto;
  max-width: 100%;
  border-radius: 8px;
}

#q-modal-body .q-command {
  margin-top: 15px;
}

/* === ISSUE 8: TEXTO BASE UERJ-EQ — Estilo FAQ da index === */
.q-texto-base {
  margin: 0 0 20px 0;
  background: var(--white, #fff);
  border: 2px solid var(--black, #000);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--black, #000);
}

.q-texto-base-toggle {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  list-style: none;
  transition: background 0.15s ease;
}

.q-texto-base-toggle::-webkit-details-marker { display: none; }
.q-texto-base-toggle::marker { content: ''; }

.q-texto-base-toggle:hover {
  background: var(--gray, #F4F4F0);
}

.q-texto-base-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: #000;
}

.q-texto-base-label i {
  font-size: 20px;
}

.q-texto-base-chevron {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: #555;
}

.q-texto-base[open] .q-texto-base-chevron {
  transform: rotate(180deg);
}

.q-texto-base[open] .q-texto-base-toggle {
  border-bottom: 2px solid var(--black, #000);
}

.q-texto-base-content {
  padding: 12px;
}

/* === CAROUSEL DE IMAGENS === */
.q-carousel {
  margin: 20px 0;
  text-align: center;
}
.q-carousel-track {
  position: relative;
}
.q-carousel-slide {
  display: none;
}
.q-carousel-slide.active {
  display: block;
}
.q-carousel-slide img {
  max-width: 100%;
  border-radius: 8px;
}
.q-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
}
.q-carousel-btn {
  width: 36px;
  height: 36px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.q-carousel-btn:hover {
  background: #FFD700;
}
.q-carousel-counter {
  font-size: 13px;
  font-weight: 700;
  color: #555;
}

/* === UERJ-ED: PADRÃO DE RESPOSTAS ESTRUTURADO === */
.q-padrao-bloco {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}
.q-padrao-cmd {
  padding: 10px 15px;
  background: #f5f5f5;
  font-size: 14px;
  border-bottom: 1px solid #e0e0e0;
  line-height: 1.6;
}
.q-padrao-gab {
  padding: 15px;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.q-padrao-gab p {
  margin-bottom: 1rem;
}

.q-padrao-gab ul {
  margin: 0.5em 0 0.5em 1.5em;
  padding: 0;
  list-style: disc;
}

.q-padrao-gab ul li {
  margin-bottom: 0.3em;
}

/* === KaTeX — Ajustes para display math no modal === */
#q-modal-body .katex-display {
  margin: 1em 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0;
  text-align: left;
}

#q-modal-body .katex {
  font-size: 1.1em;
}

#q-modal-body .katex-display>.katex {
    text-align: left;
}

#q-modal-body .q-modal-header {
  position: sticky; top: 0; z-index: 5;
  background: #F9F9F7;
  border-bottom: 1px solid #E8E8E3;
  margin: -24px -24px 24px -24px;
  border-radius: 9px 9px 0 0;
  padding-right: 56px;
}

#q-modal-body .q-breadcrumb {
  position: sticky; top: 0; z-index: 5;
}

.q-header-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 2px solid #000;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 2px 2px 0 #000; transition: all 0.1s; flex-shrink: 0;
}
.q-header-close:hover { background: #FF6B6B; color: #fff; transform: translateY(-50%) translate(2px,2px); box-shadow: 0 0 0; }
.q-header-close i { font-size: 20px; }

/* FIX #7: Gradiente invertido para UERJ-EQ */
.q-diff-bar-reversed {
  background: linear-gradient(90deg, #FF6B6B 0%, #FFDB58 50%, #23A094 100%) !important;
}

@media (max-width: 600px) {
  #q-modal-body .q-modal-header { border-radius: 0; }
  .q-header-close { width: 32px; height: 32px; right: 8px; }
  .q-header-close i { font-size: 18px; }
}

/* =====================================================
   GAP-3 · RUNNER DE SIMULADO CRONOMETRADO
===================================================== */
.sim-overlay {
  position: fixed; inset: 0; z-index: 4000;
  background: #F4F4F0;
  display: flex; flex-direction: column;
  font-family: 'DM Sans', sans-serif;
}
.sim-overlay[hidden] { display: none; }

/* Barra sticky de cronômetro + progresso */
.sim-timerbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: #fff; border-bottom: 2px solid #000;
  box-shadow: 0 3px 0 #000;
}
.sim-timer {
  display: flex; align-items: center; gap: 6px;
  font-weight: 900; font-size: 20px; color: #000;
  font-variant-numeric: tabular-nums;
  padding: 4px 12px; border: 2px solid #000; border-radius: 8px;
  background: #FFC900;
}
.sim-timer.warn { background: #FFB020; }
.sim-timer.danger { background: #FF6B6B; color: #fff; animation: simPulse 1s infinite; }
@keyframes simPulse { 0%,100%{opacity:1;} 50%{opacity:.55;} }
.sim-progress { font-weight: 700; font-size: 14px; color: #555; margin-left: auto; }
.sim-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 2px solid #000; border-radius: 8px;
  background: #fff; font-weight: 700; font-size: 14px; color: #000;
  cursor: pointer; box-shadow: 2px 2px 0 #000; transition: all .1s;
}
.sim-btn:hover { transform: translate(2px,2px); box-shadow: 0 0 0; }
.sim-btn.primary { background: #FFC900; }
.sim-btn.danger { background: #FF6B6B; color: #fff; }
.sim-btn.ghost { box-shadow: none; border-color: #ccc; }

/* Corpo rolável (uma questão por tela) */
.sim-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.sim-body {
  max-width: 720px; margin: 0 auto; padding: 20px 16px 120px;
}

/* Palette de navegação (grade numerada) */
.sim-palette-wrap { border-top: 1px dashed #ccc; margin-top: 4px; }
.sim-palette-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 2px solid #000; border-radius: 50px;
  background: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
  box-shadow: 2px 2px 0 #000;
}
.sim-palette {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
  gap: 8px; padding: 14px 0;
}
.sim-palette[hidden] { display: none; }
.sim-pal-btn {
  aspect-ratio: 1 / 1; min-height: 40px;
  border: 2px solid #000; border-radius: 8px;
  background: #fff; font-weight: 800; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.sim-pal-btn.answered { background: #90EE90; }
.sim-pal-btn.current { outline: 3px solid #FFC900; outline-offset: 1px; }

/* Rodapé fixo de navegação */
.sim-nav {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #fff; border-top: 2px solid #000; box-shadow: 0 -3px 0 #000;
}
.sim-nav .sim-btn { flex: 1; justify-content: center; }
.sim-nav .sim-finish { flex: 0 0 auto; }

/* Reuso do render de JS_QUESTOES dentro do overlay (escopo próprio) */
.sim-overlay .q-container { padding: 0; }
.sim-overlay .q-modal-header,
.sim-overlay .q-action-links { display: none !important; }
.sim-overlay .q-body { font-size: 15px; line-height: 1.7; color: #000; }
.sim-overlay .q-text { padding-bottom: 15px; border-bottom: 1px dashed #ddd; }
.sim-overlay .q-text p { margin-bottom: 1rem; }
.sim-overlay .q-command { margin-top: 15px; }
.sim-overlay .q-images { margin: 20px 0; text-align: center; }
.sim-overlay .q-img { max-width: 100%; border-radius: 8px; }
.sim-overlay .q-options { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.sim-overlay .q-options-ce { flex-direction: row; gap: 12px; }
.sim-overlay .q-options-ce .q-opt { flex: 1; justify-content: center; }
.sim-overlay .q-opt {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 2px solid #000; border-radius: 8px; cursor: pointer;
  font-size: 15px; text-align: left; transition: all .1s; box-shadow: 3px 3px 0 #000;
}
.sim-overlay .q-opt:hover { transform: translate(2px,2px); box-shadow: 1px 1px 0 #000; background: #F4F4F0; }
.sim-overlay .q-opt .opt-letter {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; background: #000; color: #fff; border-radius: 50%;
  font-weight: 900; font-size: 13px; flex-shrink: 0;
}
.sim-overlay .q-opt .q-opt-text { flex: 1; min-width: 0; line-height: 1.5; display: inline; }
/* Seleção NEUTRA (sem revelar certo/errado) */
.sim-overlay .q-opt.sim-selected { background: #FFF3BF; border-color: #000; }
.sim-overlay .q-opt.sim-selected .opt-letter { background: #000; color: #FFC900; }
.sim-overlay .q-texto-base { box-shadow: 3px 3px 0 #000; }

/* Modais centrados: abertura / fechamento / confirmação de abandono */
.sim-modal {
  position: fixed; inset: 0; z-index: 4200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(0,0,0,.45);
}
.sim-modal[hidden] { display: none; }
.sim-card {
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto;
  background: #fff; border: 3px solid #000; border-radius: 14px;
  box-shadow: 6px 6px 0 #000; padding: 24px;
}
.sim-card h2 { font-size: 22px; font-weight: 900; margin: 0 0 6px; color: #000; }
.sim-card .sim-sub { font-size: 14px; color: #666; margin: 0 0 16px; }
.sim-contrato { list-style: none; margin: 0 0 18px; padding: 0; }
.sim-contrato li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 0; border-bottom: 1px dashed #E8E8E3; font-size: 14px; line-height: 1.5;
}
.sim-contrato li:last-child { border-bottom: none; }
.sim-contrato .sim-ico { font-size: 18px; flex-shrink: 0; }
.sim-warn {
  background: #FFF3BF; border: 2px solid #000; border-radius: 8px;
  padding: 10px 12px; font-size: 13px; font-weight: 600; margin: 0 0 18px;
}
.sim-actions { display: flex; gap: 10px; }
.sim-actions .sim-btn { flex: 1; justify-content: center; }

/* Placar de fechamento */
.sim-score { display: flex; gap: 10px; margin: 4px 0 18px; }
.sim-score-cell {
  flex: 1; text-align: center; border: 2px solid #000; border-radius: 10px; padding: 12px 6px;
}
.sim-score-cell .n { font-size: 26px; font-weight: 900; line-height: 1; }
.sim-score-cell .l { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #666; letter-spacing: .3px; }
.sim-score-cell.acertos { background: #E8F5E9; }
.sim-score-cell.erros { background: #FDECEA; }
.sim-score-cell.branco { background: #F4F4F0; }
.sim-disc-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #E8E8E3; font-size: 14px;
}
.sim-disc-row:last-child { border-bottom: none; }
.sim-disc-row .d { flex: 1; font-weight: 600; }
.sim-disc-row .v { font-weight: 800; }

@media (max-width: 600px) {
  .sim-timer { font-size: 18px; }
  .sim-body { padding: 16px 12px 140px; }
  .sim-card { padding: 18px; box-shadow: 4px 4px 0 #000; }
  .sim-score-cell .n { font-size: 22px; }
}

/* GAP-3 · modo REVISÃO pós-fechamento (gabarito + resolução dentro do overlay) */
.sim-overlay .q-opt.correct { background: #23A094 !important; color: #fff; border-color: #2E7D32; }
.sim-overlay .q-opt.correct .opt-letter { background: #fff; color: #2E7D32; }
.sim-overlay .q-opt.wrong { background: #FF6B6B !important; color: #fff; border-color: #c62828; }
.sim-overlay .q-opt.wrong .opt-letter { background: #fff; color: #c62828; }
.sim-overlay .q-view-resposta { padding: 8px 0 0; }
.sim-overlay .q-view-resposta .q-breadcrumb { display: none; }
.sim-review-badge {
  display: inline-block; margin: 0 0 12px; padding: 4px 12px;
  border: 2px solid #000; border-radius: 50px; background: #FFC900;
  font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .3px;
}
/* =====================================================
   CSS_SUBTOPICO — estilos exclusivos da página de subtópico
   Entra no bundle /css/sub.css DEPOIS de CSS_PART_1/2, CSS_PIX_MODAL e CSS_QUESTOES,
   então pode contar com as variáveis e o reset já definidos por eles.
   Escopo: tudo aqui é prefixado por .sub-* para não vazar para outras páginas.
   ===================================================== */

.sub-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #1A1A1A;
}

/* --- breadcrumb --- */
.sub-bc {
  font-size: 13px;
  color: #6B6B6B;
  margin-bottom: 20px;
  line-height: 1.6;
}
.sub-bc a { color: #6B6B6B; text-decoration: none; }
.sub-bc a:hover { color: #1A1A1A; text-decoration: underline; }
.sub-bc span { color: #1A1A1A; font-weight: 500; }

/* --- cabeçalho --- */
.sub-head { margin: 0 0 32px; text-align: center; }
.sub-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A8A8A;
  margin-bottom: 6px;
}
.sub-head h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #111;
}
.sub-def {
  font-size: 16px;
  font-style: italic;
  line-height: 1.6;
  color: #5A5A5A;
  margin: 0 auto;
  max-width: 680px;
}

/* --- mídia (condicional: colunas vazias no v1) --- */
.sub-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}
.sub-video iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.sub-img { margin: 24px 0; }
.sub-img img { max-width: 100%; height: auto; border-radius: 8px; display: block; }

.sub-texto {
  font-size: 16px;
  line-height: 1.75;
  color: #2A2A2A;
  margin: 24px 0;
}
.sub-texto p { margin: 0 0 14px; }
.sub-texto strong { font-weight: 700; color: #111; }

/* --- grafo: pré-requisitos e o que destrava --- */
.sub-grafo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
}
.sub-grafo-bloco {
  background: #FFF;
  border: 1px solid #E8E8E4;
  border-radius: 8px;
  padding: 16px 18px;
}
.sub-grafo-bloco h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #8A8A8A;
  margin: 0 0 10px;
}
/* marcadores de lista visiveis (o reset global zera list-style) */
.sub-grafo-bloco ul {
  list-style: disc outside;
  margin: 0;
  padding-left: 20px;
}
.sub-chip {
  display: list-item;
  list-style: disc outside;
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
}
.sub-chip:last-child { margin-bottom: 0; }
.sub-chip a { color: #1A5FB4; text-decoration: none; font-weight: 500; }
.sub-chip a:hover { text-decoration: underline; }
.sub-chip span { color: #555; }

/* --- questões que já caíram --- */
.sub-questoes { margin-top: 32px; }
.sub-questoes h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 4px;
  color: #111;
}
.sub-cont { font-size: 13px; color: #7A7A7A; margin: 0 0 14px; }
.sub-vazio { font-size: 14px; color: #8A8A8A; font-style: italic; margin: 8px 0 0; }

.sub-qlist { display: flex; flex-direction: column; gap: 8px; }
.sub-qitem {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: #FFF;
  border: 1px solid #E8E8E4;
  border-radius: 8px;
  padding: 13px 16px;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.sub-qitem:hover { border-color: #C9C9C2; transform: translateY(-1px); }
.sub-qtitulo { flex: 1; min-width: 200px; font-size: 14px; font-weight: 500; color: #1A1A1A; }
.sub-qbanca,
.sub-qcomp {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.sub-qbanca { background: #EFEFEA; color: #5A5A5A; }
.sub-qcomp  { background: #F3E9CC; color: #7A5E12; }

/* --- link de subtópico usado NAS OUTRAS páginas (tópico, banco, modal) --- */
.sub-link { color: #1A5FB4; text-decoration: none; }
.sub-link:hover { text-decoration: underline; }

/* --- responsivo --- */
@media (max-width: 700px) {
  .sub-wrap { padding: 18px 16px 48px; }
  .sub-head h1 { font-size: 24px; }
  .sub-grafo { grid-template-columns: 1fr; }
}


/* =====================================================
   MODAL DE QUESTAO — copia das regras que vivem no <style> embutido do
   COMP_ABA_QUESTOES. A pagina de subtopico monta a propria listagem e NAO usa
   aquele componente inteiro, mas reusa o mesmo modal (#q-modal-overlay + JS_QUESTOES).
   Sem estas regras o overlay nao recebe `position:fixed; display:none`, aparece no
   fluxo da pagina e o spinner "Carregando questao..." fica visivel — foi o que o dono
   viu no piloto 2026-07-28. Duplicar e o padrao do projeto quando um modulo reusa
   classes de outro (mesma licao do modal de Atividade x modal-conq.js).
   ===================================================== */

  .q-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85);
    z-index: 10001; display: none; justify-content: center; align-items: center;
    padding: 20px; backdrop-filter: blur(4px);
  }
  .q-modal-overlay.active { display: flex; }
  .q-modal-content {
    background: #FFF; width: 100%; max-width: 900px; max-height: 90vh;
    border-radius: 12px; border: 3px solid #000; box-shadow: 8px 8px 0 #000;
    display: flex; flex-direction: column; position: relative;
    animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  #q-modal-body { overflow-y: auto; flex: 1; padding: 0; border-radius: 9px; }
  #q-modal-body .q-container { max-width: 100%; margin: 0; padding: 30px; }
  .q-modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 10;
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 2px solid #000;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 2px 2px 0 #000; transition: all 0.1s;
  }
  .q-modal-close:hover { background: #FF6B6B; color: #fff; transform: translate(2px,2px); box-shadow: 0 0 0; }
  @keyframes popIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* === REGRAS ESPECÍFICAS PARA CONTEXTO UERJ-ED === */
.q-ctx-uerj-ed .q-col-dif { display: none !important; }
.q-ctx-uerj-ed .q-col-sub { flex: 8 !important; }
.q-ctx-uerj-ed .q-status-indicator { display: none !important; }

/* === REGRAS ESPECÍFICAS PARA CONTEXTO CBMERJ === */
.q-ctx-cbmerj .q-col-dif { display: none !important; }

  .q-status-indicator {
    width: 13px; height: 13px; border-radius: 50%;
    background: #ddd;
    margin-right: 0; flex-shrink: 0;
    border: 1px solid #000;
    transition: background 0.2s;
  }
  .q-status-indicator.q-status-correct { background: #4CAF50; }
  .q-status-indicator.q-status-wrong { background: #f44336; }
  .q-status-indicator.q-status-pending { background: #FF9800; }
  .q-status-indicator.q-status-anulada { background: #bbb; border-color: #888; position: relative; }
  .q-status-indicator.q-status-anulada::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 7px; height: 2px; background: #fff; border-radius: 1px; }

  .q-table-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; padding: 20px 20px 0 20px;}
  .q-list-title { font-size: 1.25rem; font-weight: 900; text-transform: uppercase; margin: 0; }
  .q-controls-right { display: flex; gap: 10px; align-items: center; }
  .q-toggle-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: #fff; border: 2px solid #000; border-radius: 6px; box-shadow: 2px 2px 0 #000; cursor: pointer; transition: all 0.1s; }
  .q-toggle-btn:hover { background: #FFC900; }
  .q-provas-btn { width: auto !important; padding: 0 10px; gap: 6px; font-weight: 700; font-size: 12px; font-family: 'DM Sans', sans-serif; }
  .q-provas-btn.q-provas-on { background: #FFC900; }
  .q-toggle-btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0; }
  .q-toggle-btn i { font-size: 20px; }
  .q-search-wrapper, .q-filter-wrapper { display: flex; align-items: center; background: #fff; border: 2px solid #000; border-radius: 6px; padding: 0 12px; box-shadow: 2px 2px 0 #000; height: 40px; box-sizing: border-box; }
  .q-search-wrapper { min-width: 200px; }
  .q-search-wrapper input { border: none; outline: none; margin-left: 8px; flex: 1; font-family: 'DM Sans', sans-serif; height: 100%; font-size: 14px; }
  .q-filter-wrapper { position: relative; min-width: 140px; }
  .q-filter-wrapper select { position: static; opacity: 1; width: 100%; background: transparent; border: none; outline: none; -webkit-appearance: none; appearance: none; font-family: 'DM Sans', sans-serif; font-weight: 600; padding-right: 20px; font-size: 13px; color: #000; }
  .q-filter-wrapper .dropdown-icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 24px; color: #000; z-index: 0; }
  .disc-table-responsive { border-top: 2px solid #000; background: #FFF; border-bottom-right-radius: 8px; border-bottom-left-radius: 8px; overflow-x: auto; width: 100%; }
  .disc-table-nav { display: flex; background: #fff; border-bottom: 2px solid #000; min-width: 850px; }
  .disc-th { box-sizing: border-box; min-width: 0; padding: 12px 16px; font-weight: 800; font-size: 12px; text-transform: uppercase; color: #000; border-right: 2px solid #000; display: flex; align-items: center; cursor: pointer; user-select: none; height: 48px; }
  .disc-th:hover { background: rgba(0,0,0,0.05); }
  .disc-th.active { background: #FFC900; }
  .sort-icon { display: inline-flex; flex-direction: column; height: 12px; width: 10px; margin-left: 8px; justify-content: center; }
  .sort-icon span { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; opacity: 0.3; margin: 1px 0; }
  .sort-icon span:first-child { border-bottom: 4px solid #000; }
  .sort-icon span:last-child { border-top: 4px solid #000; }
  .active[data-order="asc"] .sort-icon span:first-child { opacity: 1; }
  .active[data-order="asc"] .sort-icon span:last-child { display: none; }
  .active[data-order="desc"] .sort-icon span:first-child { display: none; }
  .active[data-order="desc"] .sort-icon span:last-child { opacity: 1; }
  .disc-table-body {overflow-y: auto; min-width: 850px; }
  .disc-table-row { display: flex; border-bottom: 1px solid #E8E8E3; transition: background 0.1s; min-height: 60px; text-decoration: none; color: #000; }
  .disc-table-row:hover { background: #F4F4F0; }
  .disc-table-row > div { box-sizing: border-box; padding: 12px 16px; display: flex; align-items: center; overflow: hidden; border-right: 2px solid transparent; }
  .q-cell-title { font-weight: 700; gap: 10px; min-width: 290px;}
  .q-text-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; padding-top: 2px; }
  .q-badge-dif { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 4px; border: 1px solid #000; display: inline-block; white-space: nowrap; min-width: 28px; text-align: center; }
  .dif-easy { background: #90EE90; } .dif-medium { background: #FFDB58; } .dif-hard { background: #FF6B6B; color: #fff; } .dif-normal { background: #eee; }

  .q-badge-tipo { font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 4px; display: inline-block; white-space: nowrap; text-align: center; background: #F5F5F5; color: #757575; }
  .q-badge-tipo.simples { background: #E3F2FD; color: #2874ae; }
  .q-badge-tipo.medio { background: #E8F5E9; color: #567938; }
  .q-badge-tipo.complexo { background: #FFEBEE; color: #8a2424; }
  .tipo-interpretativa { background: #E3F2FD; color: #2874ae; }
  .tipo-conceitual { background: #E8F5E9; color: #567938; }
  .tipo-procedimental { background: #FFEBEE; color: #8a2424; }
  .tipo-default { background: #F5F5F5; color: #757575; }

  /* COMPLEXIDADE: largura mínima p/ o header "COMPLEXIDADE" caber com folga (aplica a header .disc-th e célula) */
  .q-col-tipo { min-width: 160px; }

  .q-cell-sub { font-size: 13px; color: #000; font-weight: 500; }
  .q-loading, .q-empty { padding: 40px; text-align: center; }
  @media (max-width: 600px) {
    .q-table-controls { flex-direction: column; align-items: stretch; gap: 12px; }
    .q-controls-right { order: -1; flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .q-list-title { font-size: 1.1rem; margin-top: 10px; margin-bottom: 0; }
    .q-search-wrapper { flex: 1; min-width: 150px; }
    .q-filter-wrapper { flex: 1; min-width: 120px; }
    .q-toggle-btn { flex-shrink: 0; }
  }


/* =====================================================
   BREADCRUMB — as 4 regras que vivem no <style> embutido do COMP_ABA_QUESTOES
   ("CSS GERAL E BREADCRUMB"). O bundle ja traz .aula-breadcrumb (container e :hover)
   pelo CSS_PART_*, mas nao estas — sem elas o separador, os links e o ultimo item
   saem todos com a mesma cor e peso, diferente da pagina de topico.
   ===================================================== */
.aula-breadcrumb .separator {
  font-size: 18px;
  color: #999;
  font-weight: bold;
}
.aula-breadcrumb a {
  color: #000;
  text-decoration: none;
}
.aula-breadcrumb a:hover {
  text-decoration: underline;
}
.aula-breadcrumb span {
  opacity: 0.6;
  cursor: default;
  color: #000;
}

/* O breadcrumb do subtopico tem 5 niveis (o do topico tem 4) e o ultimo e um nome longo.
   .aula-breadcrumb e display:flex SEM flex-wrap, entao no mobile a linha nao quebra: ela
   estica o documento (517px numa tela de 375) e a pagina inteira passa a rolar na
   horizontal — o modal, sendo fixed, herdava esse documento esticado e "nao cabia".
   Corrigir aqui resolve pagina e modal de uma vez. Vale so para paginas de subtopico:
   este CSS nao entra no bundle das paginas de topico. */
.aula-breadcrumb {
  flex-wrap: wrap;
  row-gap: 6px;
}
.aula-breadcrumb span,
.aula-breadcrumb a {
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .aula-breadcrumb { font-size: 13px; gap: 8px; }
  .aula-breadcrumb .separator { font-size: 16px; }
}

/* Wrapper do breadcrumb: replica a largura do .aula-layout da pagina de topico
   (max-width 1400px + padding 12px), para o breadcrumb do subtopico nascer alinhado
   a esquerda igual ao dela. Fica FORA do .sub-wrap, que tem max-width 860px e
   centraliza o conteudo de leitura — dentro dele o breadcrumb ficava no meio da tela. */
.sub-bc-wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 12px 0;
}
