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

:root {
  --primary: #1d4ed8;
  --primary-light: #dbeafe;
  --success: #059669;
  --success-light: #d1fae5;
  --error: #dc2626;
  --error-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --sidebar-w: 270px;

  --mat: #2563eb;
  --mat-light: #dbeafe;
  --lang: #7c3aed;
  --lang-light: #ede9fe;
  --hum: #d97706;
  --hum-light: #fef3c7;
  --nat: #059669;
  --nat-light: #d1fae5;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  letter-spacing: -.3px;
  white-space: nowrap;
}
.logo-icon { font-size: 1.4rem; }
.logo strong { font-weight: 800; }
.header-stats {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.stat-chip {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
}
.stat-chip.success { background: rgba(5,150,105,.3); border-color: rgba(5,150,105,.5); }
.stat-chip.error { background: rgba(220,38,38,.3); border-color: rgba(220,38,38,.5); }
.header-actions { display: flex; gap: 8px; align-items: center; }
.btn-mode {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  color: white;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.btn-mode:hover { background: rgba(255,255,255,.35); }
.btn-reset {
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.8);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: .85rem;
  cursor: pointer;
  transition: .2s;
}
.btn-reset:hover { background: rgba(255,255,255,.15); color: white; }
.btn-menu {
  display: none;
  background: rgba(255,255,255,.2);
  border: none;
  color: white;
  font-size: 1.2rem;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ── LAYOUT ── */
.app-layout {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  min-height: calc(100vh - 60px);
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  overflow-y: auto;
  height: calc(100vh - 60px);
  position: sticky;
  top: 60px;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: .88rem;
  transition: background .15s;
  border: 1px solid transparent;
}
.filter-item:hover { background: var(--bg); }
.filter-item.active, .filter-item:has(input:checked) {
  background: var(--primary-light);
  border-color: #93c5fd;
  color: var(--primary);
  font-weight: 600;
}
.filter-item.mat:has(input:checked) { background: var(--mat-light); border-color: #93c5fd; color: var(--mat); }
.filter-item.lang:has(input:checked) { background: var(--lang-light); border-color: #c4b5fd; color: var(--lang); }
.filter-item.hum:has(input:checked) { background: var(--hum-light); border-color: #fcd34d; color: var(--warning); }
.filter-item.nat:has(input:checked) { background: var(--nat-light); border-color: #6ee7b7; color: var(--nat); }
.filter-item.success:has(input:checked) { background: var(--success-light); border-color: #6ee7b7; color: var(--success); }
.filter-item.error:has(input:checked) { background: var(--error-light); border-color: #fca5a5; color: var(--error); }
.filter-item input[type="radio"] { accent-color: var(--primary); }

.progress-list { display: flex; flex-direction: column; gap: 10px; }
.progress-subject { }
.progress-subject-label {
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  margin-bottom: 4px;
  font-weight: 500;
}
.progress-bar-bg {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .4s ease;
}
.progress-bar-fill.mat { background: var(--mat); }
.progress-bar-fill.lang { background: var(--lang); }
.progress-bar-fill.hum { background: var(--hum); }
.progress-bar-fill.nat { background: var(--nat); }

/* ── MAIN CONTENT ── */
.main-content {
  flex: 1;
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.question-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-mat { background: var(--mat-light); color: var(--mat); }
.badge-lang { background: var(--lang-light); color: var(--lang); }
.badge-hum { background: var(--hum-light); color: var(--warning); }
.badge-nat { background: var(--nat-light); color: var(--nat); }
.badge-year { background: var(--border); color: var(--text-muted); }
.badge-topic { background: #f8fafc; color: var(--text-muted); border: 1px solid var(--border); }

.question-nav-top { display: flex; align-items: center; gap: 12px; }
.question-counter { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.nav-arrows { display: flex; gap: 6px; }
.btn-nav {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .15s;
  color: var(--text);
}
.btn-nav:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ── QUESTION CARD ── */
.question-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  flex: 1;
}
.question-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
  white-space: pre-line;
}
.alternatives { display: flex; flex-direction: column; gap: 10px; }
.alternative {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
  font-size: .95rem;
  line-height: 1.5;
}
.alternative:hover:not(.answered) {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateX(3px);
}
.alt-letter {
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  transition: .15s;
}
.alternative:hover:not(.answered) .alt-letter {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.alternative.correct {
  border-color: var(--success);
  background: var(--success-light);
  animation: pop .3s ease;
}
.alternative.correct .alt-letter {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
.alternative.wrong {
  border-color: var(--error);
  background: var(--error-light);
  animation: shake .35s ease;
}
.alternative.wrong .alt-letter {
  background: var(--error);
  border-color: var(--error);
  color: white;
}
.alternative.show-correct {
  border-color: var(--success);
  background: var(--success-light);
}
.alternative.show-correct .alt-letter {
  background: var(--success);
  border-color: var(--success);
  color: white;
}
.alternative.answered { cursor: default; }
.alternative.muted { opacity: .45; }

@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ── FEEDBACK ── */
.feedback {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: .93rem;
  line-height: 1.65;
  animation: fadeIn .3s ease;
}
.feedback.correct-fb {
  background: var(--success-light);
  border: 1px solid #6ee7b7;
  color: #065f46;
}
.feedback.wrong-fb {
  background: var(--error-light);
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}
.feedback-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
@keyframes fadeIn {
  from { opacity:0; transform: translateY(8px); }
  to { opacity:1; transform: translateY(0); }
}

/* ── FOOTER NAV ── */
.question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-prev, .btn-next {
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  color: var(--text);
}
.btn-prev:hover, .btn-next:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-next {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.btn-next:hover { background: #1e40af; }
.question-dots {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 500px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: .15s;
}
.dot.current { background: var(--primary); transform: scale(1.3); }
.dot.correct { background: var(--success); }
.dot.wrong { background: var(--error); }
.dot:hover { transform: scale(1.3); }

/* ── MODALS ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.modal {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal h2 { font-size: 1.3rem; margin-bottom: 12px; }
.modal p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.modal-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.modal-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 500; }
.modal-form select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  cursor: pointer;
}
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn-cancel {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
}
.btn-cancel:hover { background: var(--bg); }
.btn-confirm {
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-confirm:hover { background: #1e40af; }
.btn-confirm.danger { background: var(--error); }
.btn-confirm.danger:hover { background: #b91c1c; }
.modal-resultado { max-width: 520px; }
.resultado-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 20px 0;
}
.resultado-item {
  background: var(--bg);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.resultado-item .value { font-size: 2rem; font-weight: 800; }
.resultado-item .label { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.resultado-item.success .value { color: var(--success); }
.resultado-item.error .value { color: var(--error); }
.resultado-item.primary .value { color: var(--primary); }

/* ── SIMULADO BANNER ── */
.simulado-banner {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.simulado-banner span { font-weight: 600; font-size: .95rem; }
.btn-exit-sim {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .85rem;
  cursor: pointer;
}
.btn-exit-sim:hover { background: rgba(255,255,255,.3); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: -290px;
    top: 60px;
    height: calc(100vh - 60px);
    z-index: 90;
    transition: left .3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.1);
  }
  .sidebar.open { left: 0; }
  .btn-menu { display: flex !important; }
  .header-stats .stat-chip:last-child { display: none; }
}
@media (max-width: 600px) {
  .main-content { padding: 14px; }
  .question-card { padding: 18px; }
  .header-stats { display: none; }
  .question-dots { display: none; }
  .logo-text { font-size: .95rem; }
}

/* ══════════════════════════════════════════════════════
   BONUS MODULE
══════════════════════════════════════════════════════ */

/* ── Bonus button variant ── */
.btn-bonus { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); }
.btn-bonus:hover { background: rgba(255,255,255,.3); }

/* ── Exit bonus button (inside bonus pages) ── */
.btn-exit-bonus {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
}
.btn-exit-bonus:hover { background: var(--bg); color: var(--text); }

/* ── Bonus list page ── */
.bonus-page { padding: 8px 0 40px; }
.bonus-hero {
  text-align: center;
  padding: 40px 20px 32px;
}
.bonus-hero-icon { font-size: 3.5rem; margin-bottom: 12px; }
.bonus-hero h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.bonus-hero p { color: var(--text-muted); font-size: 1rem; max-width: 500px; margin: 0 auto 20px; }
.bonus-back-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.bonus-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.bonus-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.bonus-card-header {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}
.bonus-card-icon { font-size: 2.2rem; }
.bonus-card-tag {
  background: rgba(255,255,255,.25);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bonus-card-body { padding: 20px; }
.bonus-card-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.bonus-card-body p { color: var(--text-muted); font-size: .87rem; line-height: 1.55; margin-bottom: 16px; }
.btn-bonus-acessar {
  display: inline-block;
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
  width: 100%;
  text-align: center;
}
.btn-bonus-acessar:hover { opacity: .85; }

/* ── Bonus content page ── */
.bonus-content-page { padding: 0 0 60px; }
.bonus-content-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.bonus-content-tag {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  display: block;
  margin-bottom: 6px;
}
.bonus-content-header h2 { font-size: 1.2rem; font-weight: 800; }
.btn-back-bonus {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-back-bonus:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* ── CRONOGRAMA ── */
.cron-intro {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.cron-intro p { color: var(--text-muted); font-size: .9rem; margin-bottom: 12px; }
.cron-progress-label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cron-progress-bg {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.cron-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  border-radius: 5px;
  transition: width .4s ease;
  min-width: 2px;
}
.cron-semana {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.cron-semana-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  color: white;
  font-weight: 700;
  font-size: .92rem;
  flex-wrap: wrap;
}
.cron-dias { padding: 4px 0; }
.cron-dia {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.cron-dia:last-child { border-bottom: none; }
.cron-dia:hover { background: var(--bg); }
.cron-dia.done { background: var(--success-light); }
.cron-dia.done .cron-dia-info strong { color: var(--success); text-decoration: line-through; opacity: .7; }
.cron-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  flex-shrink: 0;
  padding-top: 2px;
}
.cron-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--success);
  cursor: pointer;
  flex-shrink: 0;
}
.cron-day-num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.cron-dia-info { flex: 1; min-width: 0; }
.cron-dia-info strong { display: block; font-size: .92rem; margin-bottom: 3px; }
.cron-dia-info span { color: var(--text-muted); font-size: .83rem; line-height: 1.5; }

/* ── RESUMÃO ── */
.resumao-materia {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.resumao-mat-header {
  padding: 14px 20px;
  color: white;
  font-weight: 800;
  font-size: 1rem;
}
.resumao-topicos { padding: 8px 0; }
.resumao-item {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.resumao-item:last-child { border-bottom: none; }
.resumao-item:hover { background: var(--bg); }
.resumao-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
}
.resumao-rank {
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  color: white;
  font-size: .78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.resumao-item-header strong { flex: 1; font-size: .9rem; }
.resumao-arrow {
  font-size: .75rem;
  color: var(--text-muted);
  transition: transform .2s;
  flex-shrink: 0;
}
.resumao-item.open .resumao-arrow { transform: rotate(180deg); }
.resumao-item-body {
  display: none;
  padding: 0 20px 14px 58px;
  font-size: .87rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.resumao-item.open .resumao-item-body { display: block; }

/* ── PEGADINHAS ── */
.pg-intro {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: .9rem;
  color: #7c2d12;
}
.pg-grupo {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.pg-grupo-header {
  padding: 13px 20px;
  color: white;
  font-weight: 700;
  font-size: .92rem;
}
.pg-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.pg-item:last-child { border-bottom: none; }
.pg-num {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  color: white;
  font-size: .82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pg-content strong { display: block; font-size: .9rem; margin-bottom: 5px; }
.pg-content p { color: var(--text-muted); font-size: .85rem; line-height: 1.6; margin: 0; }

/* ── REDAÇÃO ── */
.red-intro {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.red-tema-box { margin-bottom: 16px; }
.red-label {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.red-tema-box h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.red-legend { display: flex; gap: 10px; flex-wrap: wrap; }
.leg {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
}
.leg-intro { background: #dbeafe; color: #1e40af; }
.leg-arg1 { background: #ede9fe; color: #5b21b6; }
.leg-arg2 { background: #fce7f3; color: #9d174d; }
.leg-conc { background: #d1fae5; color: #065f46; }

.red-body { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.red-paragrafo {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.red-intro-p { border-top: 4px solid #2563eb; }
.red-arg1-p  { border-top: 4px solid #7c3aed; }
.red-arg2-p  { border-top: 4px solid #db2777; }
.red-conc-p  { border-top: 4px solid #059669; }
.red-para-label {
  padding: 12px 20px 8px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.red-text {
  padding: 0 20px 4px;
  font-size: .95rem;
  line-height: 1.9;
}
.ann {
  position: relative;
  background: rgba(250,204,21,.35);
  border-bottom: 2px dashed #ca8a04;
  cursor: help;
  border-radius: 2px;
  padding: 1px 2px;
}
.ann::after {
  content: attr(data-note);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: .77rem;
  white-space: nowrap;
  max-width: 280px;
  white-space: normal;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  transition: opacity .2s;
  line-height: 1.4;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.ann:hover::after { opacity: 1; }
.red-dica {
  margin: 10px 20px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .84rem;
  line-height: 1.5;
  color: #78350f;
}

.red-notas {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.red-notas h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 16px; }
.red-notas-grid { display: flex; flex-direction: column; gap: 10px; }
.red-nota-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
}
.nota-n {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary);
  min-width: 50px;
  text-align: center;
}
.nota-desc { font-size: .87rem; line-height: 1.55; }
.nota-desc strong { display: block; margin-bottom: 2px; }

/* ── GRUPO WHATSAPP ── */
.grupo-page { max-width: 620px; margin: 0 auto; padding-bottom: 40px; }
.grupo-hero {
  text-align: center;
  padding: 32px 20px 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 20px;
}
.grupo-icon { font-size: 3rem; margin-bottom: 12px; }
.grupo-hero h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.grupo-hero p { color: var(--text-muted); font-size: .92rem; }
.grupo-beneficios {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
}
.grupo-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.grupo-item:last-child { border-bottom: none; }
.grupo-item > span { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.grupo-item strong { display: block; font-size: .92rem; margin-bottom: 3px; }
.grupo-item p { color: var(--text-muted); font-size: .84rem; line-height: 1.5; margin: 0; }
.grupo-cta { text-align: center; }
.btn-grupo-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, transform .15s;
  margin-bottom: 14px;
}
.btn-grupo-whatsapp:hover { background: #1ebe5a; transform: translateY(-2px); }
.grupo-obs {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 380px;
  margin: 0 auto;
}

/* ── Header: esconde texto dos botões em telas muito pequenas ── */
@media (max-width: 520px) {
  .btn-label { display: none; }
  .btn-mode { padding: 7px 9px; min-width: 34px; }
  .btn-reset { padding: 7px 9px; min-width: 34px; }
}

/* ── Bonus responsive ── */
@media (max-width: 700px) {
  .bonus-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* Bonus list */
  .bonus-hero { padding: 24px 16px 20px; }
  .bonus-hero h1 { font-size: 1.35rem; }
  .bonus-hero p { font-size: .88rem; }
  .bonus-back-row { margin-bottom: 4px; }

  /* Bonus content header */
  .bonus-content-header { flex-direction: column; gap: 12px; padding: 16px; }
  .bonus-content-header h2 { font-size: 1rem; }
  .btn-back-bonus { align-self: flex-start; font-size: .8rem; padding: 7px 12px; }

  /* Cronograma */
  .cron-semana-header { flex-direction: column; align-items: flex-start; gap: 3px; font-size: .83rem; }
  .cron-dia { padding: 10px 14px; gap: 10px; }
  .cron-dia-info strong { font-size: .85rem; }
  .cron-dia-info span { font-size: .78rem; }
  .cron-day-num { font-size: .72rem; }

  /* Resumão */
  .resumao-mat-header { font-size: .9rem; padding: 12px 16px; }
  .resumao-item-header { padding: 11px 14px; gap: 8px; }
  .resumao-item-header strong { font-size: .82rem; line-height: 1.4; }
  .resumao-item-body { padding: 0 14px 12px 46px; font-size: .82rem; line-height: 1.6; }
  .resumao-rank { min-width: 22px; height: 22px; font-size: .72rem; }

  /* Pegadinhas */
  .pg-grupo-header { font-size: .85rem; padding: 11px 14px; }
  .pg-item { padding: 11px 14px; gap: 10px; }
  .pg-content strong { font-size: .85rem; }
  .pg-content p { font-size: .8rem; }
  .pg-num { min-width: 26px; height: 26px; font-size: .75rem; border-radius: 6px; }

  /* Redação */
  .red-intro { padding: 16px; }
  .red-tema-box h3 { font-size: .95rem; }
  .red-para-label { padding: 10px 14px 6px; font-size: .72rem; }
  .red-text { padding: 0 14px 4px; font-size: .85rem; line-height: 1.75; }
  .ann { background: rgba(250,204,21,.5); border-bottom-width: 1px; }
  .ann::after { display: none; }
  .red-dica { margin: 8px 14px 14px; font-size: .79rem; }
  .red-notas { padding: 16px; }
  .red-nota-item { padding: 10px 12px; gap: 10px; }
  .nota-n { font-size: 1.1rem; min-width: 42px; }
  .nota-desc { font-size: .8rem; }

  /* Exit bonus button */
  .btn-exit-bonus { font-size: .8rem; padding: 7px 12px; }
}
