/* ==========================================================================
   CONCURSEIRO JUDICIÁRIO TRT8 - DESIGN SYSTEM "TOGA PRETA" (grafite, vinho e latão fosco)
   ========================================================================== */

:root {
  --bg-main: #17171A;
  --bg-card: #202024;
  --bg-card-subtle: #26262B;
  --bg-card-hover: #2F2F35;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(179, 154, 104, 0.35);
  --border-blue: rgba(142, 42, 54, 0.45);

  /* Identidade "Toga Preta": --trt-gold = latão fosco, --trt-blue = vinho (nomes mantidos por compatibilidade) */
  --trt-gold: #B39A68;
  --trt-gold-light: #CDB78A;
  --trt-gold-glow: rgba(179, 154, 104, 0.08);
  --trt-blue: #8E2A36;
  --trt-blue-dark: #4A151C;
  --trt-blue-glow: rgba(142, 42, 54, 0.15);

  /* Status */
  --certo-green: #5E9B72;
  --certo-green-bg: rgba(94, 155, 114, 0.15);
  --errado-red: #C2544A;
  --errado-red-bg: rgba(194, 84, 74, 0.15);

  /* Texto */
  --text-main: #EEE9DF;
  --text-muted: #A39D92;
  --text-dim: #6F6A62;

  /* Fontes: serifada nos títulos (tom jurídico), Inter no corpo */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  /* Sombras & Efeitos */
  --shadow-tactical: 0 10px 30px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--border-subtle);
  --shadow-gold: 0 6px 18px -8px rgba(0, 0, 0, 0.6);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(142, 42, 54, 0.07) 0%, transparent 55%);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   HEADER & ESTATÍSTICAS DO ALUNO (ESTILO GAME / PATENTE)
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 18px;
}

.header-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-crest {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: radial-gradient(circle at 50% 30%, #2A2A30, #121214);
  border: 1.5px solid rgba(179, 154, 104, 0.6);
  display: grid;
  place-items: center;
  color: #CDB78A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.5px;
}

.brand-info h1 {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-official {
  background: rgba(179, 154, 104, 0.15);
  color: var(--trt-gold);
  border: 1px solid rgba(179, 154, 104, 0.4);
  font-size: 9.5px;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  font-weight: 800;
}

.brand-info p {
  font-size: 11px;
  color: var(--text-dim);
}

.player-stats {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stat-chip.rank-chip {
  border-color: rgba(179, 154, 104, 0.3);
  color: var(--trt-gold);
}

.stat-chip.streak-chip {
  color: #C0743E;
}

.stat-chip.xp-chip {
  color: #A7B4B8;
}

/* ==========================================================================
   CONTAINER PRINCIPAL
   ========================================================================== */

.main-content {
  flex: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

/* ==========================================================================
   BARRA DE CONTROLE: BARALHOS & CARREIRAS (SELETOR DE TRILHAS)
   ========================================================================== */

.deck-selector-bar {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.deck-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.deck-bar-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.deck-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(179, 154, 104, 0.12);
  border: 1px solid rgba(179, 154, 104, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.deck-label-texts {
  display: flex;
  flex-direction: column;
}

.deck-title-main {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-main);
}

.deck-title-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-deck-action-mini {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-deck-action-mini:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

/* GRID DE TRILHAS (2 COLUNAS NO DESKTOP, RESPONSIVO) */
.deck-track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.deck-track-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  color: inherit;
  position: relative;
  outline: none;
  min-height: 52px;
}

.deck-track-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.track-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.track-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.track-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.track-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  white-space: normal;
}

.track-sub {
  font-size: 11px;
  color: var(--text-dim);
  white-space: normal;
}

.track-sub b {
  color: var(--text-muted);
}

.track-status-badge {
  flex-shrink: 0;
}

.status-active-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.status-inactive-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* TRILHA TÉCNICO JUDICIÁRIO (DOURADO) */
.deck-track-card.track-tecnico.active {
  background: linear-gradient(135deg, rgba(179, 154, 104, 0.15) 0%, rgba(179, 154, 104, 0.05) 100%);
  border: 1.5px solid var(--trt-gold);
  box-shadow: 0 0 15px rgba(179, 154, 104, 0.07);
}

.deck-track-card.track-tecnico.active .track-name {
  color: var(--trt-gold-light);
}

.deck-track-card.track-tecnico.active .status-active-pill {
  background: rgba(179, 154, 104, 0.2);
  color: var(--trt-gold-light);
  border: 1px solid var(--trt-gold);
}

/* TRILHA ANALISTA JUDICIÁRIO (VINHO) */
.deck-track-card.track-admin.active {
  background: linear-gradient(135deg, rgba(168, 64, 75, 0.15) 0%, rgba(168, 64, 75, 0.05) 100%);
  border: 1.5px solid #A8404B;
  box-shadow: 0 0 15px rgba(168, 64, 75, 0.2);
}

.deck-track-card.track-admin.active .track-name {
  color: #D49A9F;
}

.deck-track-card.track-admin.active .status-active-pill {
  background: rgba(168, 64, 75, 0.2);
  color: #A8404B;
  border: 1px solid #A8404B;
}

.btn-tactical {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-tactical:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-tactical.primary {
  background: linear-gradient(135deg, var(--trt-gold), #8C7548);
  color: #000;
  border: none;
  box-shadow: 0 4px 15px var(--trt-gold-glow);
}

.btn-tactical.primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 20px rgba(179, 154, 104, 0.45);
}

.btn-tactical.btn-blue {
  background: linear-gradient(135deg, var(--trt-blue), #5C1A23);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px var(--trt-blue-glow);
}

/* ==========================================================================
   NAVEGAÇÃO POR ABAS (MODOS DE JOGO)
   ========================================================================== */

.game-mode-tabs {
  display: flex;
  gap: 6px;
  background: rgba(28, 28, 32, 0.7);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 22px;
}

.tab-btn {
  flex: 1;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  background: var(--bg-card-subtle);
  color: var(--trt-gold);
  border: 1px solid var(--border-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   PROGRESS BAR & TOP BAR DO SIMULADO
   ========================================================================== */

.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.counter-badge {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
}

.counter-badge b {
  color: var(--trt-gold);
  font-size: 15px;
}

.timer-box {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(23, 23, 26, 0.95), rgba(38, 38, 43, 0.92));
  border: 1.5px solid rgba(179, 154, 104, 0.45);
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 12px rgba(179, 154, 104, 0.05);
  min-width: 96px;
  gap: 4px;
  transition: all 0.25s ease;
  user-select: none;
}

.timer-dial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.timer-icon {
  font-size: 15px;
  filter: drop-shadow(0 0 6px rgba(179, 154, 104, 0.6));
  animation: timer-tic 1s infinite steps(1);
}

@keyframes timer-tic {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.timer-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.timer-label {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #A39D92;
  text-transform: uppercase;
}

.timer-digits {
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-display);
  color: #CDB78A;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(179, 154, 104, 0.14);
}

.timer-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.timer-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #5E9B72, #9C845A);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Estado de Atenção (15s a 6s) */
.timer-box.warning {
  border-color: #9C845A;
  background: linear-gradient(135deg, rgba(38, 30, 32, 0.95), rgba(50, 36, 24, 0.6));
  box-shadow: 0 0 16px rgba(201, 152, 90, 0.14);
}

.timer-box.warning .timer-digits {
  color: #C4AC7C;
  text-shadow: 0 0 12px rgba(201, 152, 90, 0.21);
}

.timer-box.warning .timer-bar-fill {
  background: #9C845A;
}

/* Estado Crítico de Perigo (<= 5s) */
.timer-box.danger {
  border-color: #C2544A;
  background: linear-gradient(135deg, rgba(60, 24, 22, 0.95), rgba(110, 38, 34, 0.8));
  box-shadow: 0 0 20px rgba(194, 84, 74, 0.21);
  animation: pulse-danger 0.6s infinite alternate;
}

.timer-box.danger .timer-label {
  color: #E0A79F;
}

.timer-box.danger .timer-digits {
  color: #FFFFFF;
  text-shadow: 0 0 14px rgba(194, 84, 74, 0.32);
}

.timer-box.danger .timer-bar-fill {
  background: #C2544A;
}

@keyframes pulse-danger {
  from {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(194, 84, 74, 0.14);
  }
  to {
    transform: scale(1.04);
    box-shadow: 0 0 24px rgba(194, 84, 74, 0.28);
  }
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--trt-blue), var(--trt-gold));
  border-radius: 999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   MODO 1: QUIZ SIMULADO (QUESTÕES FCC A–E)
   ========================================================================== */

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-tactical);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.quiz-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--trt-blue), var(--trt-gold));
}

.card-meta-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.meta-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.meta-pill.materia {
  background: rgba(120, 34, 45, 0.15);
  color: #D9C9A3;
  border: 1px solid rgba(142, 42, 54, 0.3);
}

.meta-pill.banca {
  background: rgba(179, 154, 104, 0.12);
  color: var(--trt-gold);
  border: 1px solid rgba(179, 154, 104, 0.3);
}

.question-text {
  font-size: 17px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 28px;
}

/* Ações Certo ou Errado */
.answer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.btn-cebraspe {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--bg-card-subtle);
  color: var(--text-main);
}

.btn-cebraspe.btn-certo {
  border-color: rgba(94, 155, 114, 0.3);
  color: #7DB38E;
}

.btn-cebraspe.btn-certo:hover:not(:disabled) {
  background: var(--certo-green-bg);
  border-color: var(--certo-green);
  box-shadow: 0 0 20px rgba(94, 155, 114, 0.12);
  transform: translateY(-2px);
}

.btn-cebraspe.btn-errado {
  border-color: rgba(194, 84, 74, 0.3);
  color: #D27A70;
}

.btn-cebraspe.btn-certo.selected-correct {
  background: #5E9B72 !important;
  color: #000000 !important;
  border-color: #5E9B72 !important;
  box-shadow: 0 0 25px rgba(94, 155, 114, 0.21) !important;
  font-weight: 900;
}

.btn-cebraspe.btn-errado.selected-correct {
  background: #5E9B72 !important;
  color: #000000 !important;
  border-color: #5E9B72 !important;
  box-shadow: 0 0 25px rgba(94, 155, 114, 0.21) !important;
  font-weight: 900;
}

.btn-cebraspe.selected-wrong {
  background: #C2544A !important;
  color: #FFFFFF !important;
  border-color: #C2544A !important;
  box-shadow: 0 0 25px rgba(194, 84, 74, 0.21) !important;
  font-weight: 900;
}

.key-hint {
  display: inline-block;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1.5px 6px;
  font-family: inherit;
  font-weight: 800;
  margin-left: 6px;
  letter-spacing: 0;
  vertical-align: middle;
}

/* Feedback Status Pill no Card */
.feedback-status-pill {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.feedback-status-pill.status-correct {
  background: rgba(94, 155, 114, 0.15);
  border: 1px solid #5E9B72;
  color: #7DB38E;
  box-shadow: 0 0 15px rgba(94, 155, 114, 0.09);
}

.feedback-status-pill.status-wrong {
  background: rgba(194, 84, 74, 0.15);
  border: 1px solid #C2544A;
  color: #D27A70;
  box-shadow: 0 0 15px rgba(194, 84, 74, 0.09);
}

.feedback-status-pill.status-timeout {
  background: rgba(179, 154, 104, 0.15);
  border: 1px solid #B39A68;
  color: #B39A68;
}

.simulado-feedback-zone {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
  animation: slideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.resposta-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.simulado-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto 16px auto;
  gap: 10px;
  width: 100%;
  max-width: 480px;
}

.simulado-counter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-exit-simulado {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #E3DDD1;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-exit-simulado:hover {
  background: rgba(194, 84, 74, 0.2);
  border-color: rgba(194, 84, 74, 0.5);
  color: #E0A79F;
}

.btn-exit-error-guide {
  background: rgba(194, 84, 74, 0.15);
  border: 1px solid rgba(194, 84, 74, 0.35);
  color: #E0A79F;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  margin-left: auto;
  align-self: center;
}

.btn-exit-error-guide:hover {
  background: rgba(194, 84, 74, 0.25);
  border-color: rgba(194, 84, 74, 0.6);
  color: #FFFFFF;
}

.meta-pill-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   MODO FOCO TOTAL DO SIMULADOR (EXIBE SOMENTE O CARD E O STATUS)
   ========================================================================== */

body.simulado-focus-mode .app-header,
body.simulado-focus-mode .deck-selector-bar,
body.simulado-focus-mode .game-mode-tabs,
body.simulado-focus-mode #simulado-progress-track {
  display: none !important;
}

body.simulado-focus-mode .main-content {
  padding-top: 24px;
  max-width: 700px;
}

body.simulado-focus-mode .trt-card-stage {
  padding: 4px 0 20px;
}

.feedback-box.correct .feedback-title {
  color: #7DB38E;
}

.feedback-box.wrong .feedback-title {
  color: #D27A70;
}

.gabarito-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: rgba(179, 154, 104, 0.12);
  border: 1px solid rgba(179, 154, 104, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--trt-gold);
}

.feedback-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.law-reference {
  font-size: 12px;
  font-weight: 700;
  color: var(--trt-gold);
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.next-action-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ==========================================================================
   MODO 2: BARALHO 3D (FLASHCARD COM REPETIÇÃO ESPAÇADA)
   ========================================================================== */

.flashcard-scene {
  perspective: 1200px;
  margin: 10px auto 26px;
  max-width: 580px;
  min-height: 360px;
}

.flashcard-3d {
  width: 100%;
  min-height: 360px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.flashcard-3d.flipped {
  transform: rotateY(180deg);
}

.flashcard-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border-gold);
}

.flashcard-front {
  background: linear-gradient(145deg, #1B1B1E, #17171A);
}

.flashcard-front::after {
  content: "🔄 Clique para ver a resposta";
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  margin-top: 14px;
}

.flashcard-back {
  background: linear-gradient(145deg, #26262B, #17171A);
  transform: rotateY(180deg);
  border-color: rgba(142, 42, 54, 0.5);
}

.card-number-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.card-badge-gold {
  background: rgba(179, 154, 104, 0.15);
  color: var(--trt-gold);
  border: 1px solid rgba(179, 154, 104, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.card-flip-prompt {
  font-size: 11px;
  color: var(--text-dim);
}

.card-body-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.flashcard-rating-bar {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.btn-rating {
  flex: 1;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-rating small {
  font-size: 10px;
  color: var(--text-dim);
}

.btn-rating.hard:hover {
  background: var(--errado-red-bg);
  border-color: var(--errado-red);
  color: #D27A70;
}

.btn-rating.medium:hover {
  background: rgba(179, 154, 104, 0.15);
  border-color: var(--trt-gold);
  color: var(--trt-gold);
}

.btn-rating.easy:hover {
  background: var(--certo-green-bg);
  border-color: var(--certo-green);
  color: #7DB38E;
}

/* ==========================================================================
   MODAL DE EXPANSÃO / IMPORTAÇÃO DE QUESTÕES
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), var(--shadow-gold);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--trt-gold);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

.expansion-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
}

.expansion-box h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
}

.expansion-box p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #111113;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--trt-gold);
}

.form-textarea {
  min-height: 80px;
  resize: vertical;
}

/* ==========================================================================
   TELA FINAL / RESULTADOS DO SIMULADO
   ========================================================================== */

.results-card {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow-tactical);
  animation: slideDown 0.4s ease;
}

.results-badge-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(179, 154, 104, 0.2), transparent);
  border: 2px solid var(--trt-gold);
  display: grid;
  place-items: center;
  font-size: 38px;
  margin: 0 auto 16px;
  box-shadow: var(--shadow-gold);
}

.results-card h2 {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 6px;
}

.results-card p.subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 480px;
  margin: 0 auto 26px;
}

.score-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  padding: 14px 10px;
  border-radius: var(--radius-md);
}

.score-num {
  font-size: 24px;
  font-weight: 900;
}

.score-num.green { color: var(--certo-green); }
.score-num.red { color: var(--errado-red); }
.score-num.gold { color: var(--trt-gold); }

.score-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 4px;
}

.upsell-banner {
  background: linear-gradient(135deg, rgba(120, 34, 45, 0.15), rgba(179, 154, 104, 0.1));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  max-width: 500px;
  margin: 0 auto 24px;
  text-align: left;
}

.upsell-banner h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--trt-gold);
  margin-bottom: 4px;
}

.upsell-banner p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   PAINEL DO CONCURSEIRO
   ========================================================================== */

.dashboard-view {
  display: block;
  animation: fadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Badge de Notificação de Erros no Menu */
.badge-error-count {
  background: var(--errado-red);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 4px;
  box-shadow: 0 0 10px rgba(194, 84, 74, 0.21);
}

/* 1. Hero do Operador */
.dash-hero-card {
  background: linear-gradient(135deg, #1B1B1E 0%, #17171A 50%, #2A1A1D 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(179, 154, 104, 0.04);
  position: relative;
  overflow: hidden;
}

.dash-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--trt-gold), var(--trt-blue), var(--trt-gold));
}

.dash-hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-user-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dash-crest {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #B39A68, #7A6644);
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.3px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(179, 154, 104, 0.16);
}

.dash-subtitle {
  font-size: 11px;
  font-weight: 800;
  color: var(--trt-gold);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.dash-title {
  font-size: 20px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.3px;
}

.dash-rank-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 480px;
}

.dash-rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dash-rank-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--trt-gold);
}

.dash-rank-badge {
  font-size: 11px;
  font-weight: 800;
  background: rgba(179, 154, 104, 0.15);
  color: var(--trt-gold);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(179, 154, 104, 0.3);
}

.dash-rank-bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 5px;
}

.dash-rank-fill {
  height: 100%;
  background: linear-gradient(90deg, #B39A68, #A7B4B8);
  border-radius: 999px;
  transition: width 0.4s ease;
}

.dash-rank-xp-info {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 600;
}

.btn-hero-start {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* 2. Grid de Métricas Principais */
.dash-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dash-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.dash-metric-card.highlight-gold {
  border-color: rgba(179, 154, 104, 0.4);
}
.dash-metric-card.highlight-gold:hover {
  border-color: var(--trt-gold);
}

.dash-metric-card.highlight-blue {
  border-color: rgba(142, 42, 54, 0.4);
}
.dash-metric-card.highlight-blue:hover {
  border-color: #A7B4B8;
}

.dash-metric-card.highlight-green {
  border-color: rgba(94, 155, 114, 0.4);
}

.dash-metric-card.highlight-red {
  border-color: rgba(194, 84, 74, 0.4);
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.metric-icon {
  font-size: 22px;
}

.metric-trend {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.metric-trend.up {
  background: rgba(179, 154, 104, 0.15);
  color: var(--trt-gold);
  border: 1px solid rgba(179, 154, 104, 0.3);
}

.metric-trend.alert {
  background: rgba(194, 84, 74, 0.15);
  color: var(--errado-red);
  border: 1px solid rgba(194, 84, 74, 0.3);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 4px;
}

.highlight-gold .metric-value { color: var(--trt-gold); }
.highlight-blue .metric-value { color: #A7B4B8; }
.highlight-green .metric-value { color: var(--certo-green); }
.highlight-red .metric-value { color: var(--errado-red); }

.metric-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 3px;
}

.metric-desc {
  font-size: 11px;
  color: var(--text-dim);
}

/* 3. Duas Colunas da Dashboard */
.dash-two-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  margin-bottom: 30px;
}

.dash-col-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.dash-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dash-col-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.badge-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(142, 42, 54, 0.15);
  color: #D9C9A3;
  border: 1px solid rgba(142, 42, 54, 0.3);
}

.badge-tag.gold {
  background: rgba(179, 154, 104, 0.15);
  color: var(--trt-gold);
  border-color: rgba(179, 154, 104, 0.3);
}

.dash-col-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

/* Lista Radar de Matérias */
.materia-radar-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.radar-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.radar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.radar-materia-name {
  font-weight: 700;
  color: var(--text-main);
}

.radar-stats-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
}

.radar-fraction {
  color: var(--text-dim);
}

.radar-pct {
  font-weight: 800;
  color: var(--trt-gold);
}

.radar-bar {
  width: 100%;
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.radar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.radar-fill.green { background: linear-gradient(90deg, #5E9B72, #7DB38E); }
.radar-fill.yellow { background: linear-gradient(90deg, #B39A68, #C4AC7C); }
.radar-fill.red { background: linear-gradient(90deg, #C2544A, #D27A70); }

/* Lista de Metas Diárias */
.missions-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mission-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease;
}

.mission-item.completed {
  border-color: rgba(94, 155, 114, 0.35);
  background: rgba(94, 155, 114, 0.05);
}

.mission-icon {
  font-size: 20px;
}

.mission-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mission-name {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
}

.mission-desc {
  font-size: 11px;
  color: var(--text-dim);
}

.mission-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 2px;
}

.mission-fill {
  height: 100%;
  background: var(--trt-gold);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.mission-status {
  font-size: 10px;
  color: var(--trt-gold);
  font-weight: 700;
  margin-top: 2px;
}

.mission-reward {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(179, 154, 104, 0.12);
  color: var(--trt-gold);
  border: 1px solid rgba(179, 154, 104, 0.25);
  white-space: nowrap;
}

.mission-item.completed .mission-reward {
  background: rgba(94, 155, 114, 0.15);
  color: var(--certo-green);
  border-color: rgba(94, 155, 114, 0.3);
}

/* Atalhos Rápidos da Dashboard */
.dash-shortcuts-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 16px;
}

.dash-shortcut-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  color: var(--text-main);
}

.dash-shortcut-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--trt-gold);
  transform: translateY(-1px);
}

.sc-icon {
  font-size: 18px;
}

.sc-text b {
  display: block;
  font-size: 11.5px;
  color: #FFFFFF;
}

.sc-text small {
  font-size: 10px;
  color: var(--text-dim);
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE-FIRST POLISH)
   ========================================================================== */

@media (max-width: 640px) {
  .app-header {
    padding: 10px 14px;
  }

  .header-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .player-stats {
    justify-content: space-between;
    gap: 6px;
    flex-wrap: wrap; /* chips que não cabem descem para a linha de baixo, nunca saem da tela */
  }

  .stat-chip {
    flex: 1 1 auto;
    justify-content: center;
    padding: 5px 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .main-content {
    padding: 12px 10px 70px;
  }

  .deck-selector-bar {
    padding: 10px 12px;
    gap: 10px;
    margin-bottom: 14px;
  }

  .deck-bar-top {
    flex-wrap: nowrap;
  }

  .deck-badge-icon {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .deck-title-main {
    font-size: 11.5px;
  }

  .deck-title-sub {
    font-size: 10px;
  }

  .btn-deck-action-mini {
    padding: 5px 9px;
    font-size: 11px;
  }

  .deck-track-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .deck-track-card {
    padding: 9px 12px;
    min-height: 48px;
  }

  .track-icon {
    font-size: 18px;
  }

  .track-name {
    font-size: 12.5px;
  }

  .track-sub {
    font-size: 10.5px;
  }

  .status-active-pill {
    font-size: 10px;
    padding: 3px 8px;
  }

  .status-inactive-pill {
    font-size: 10px;
    padding: 3px 7px;
  }

  /* Abas de navegação no celular */
  .game-mode-tabs {
    gap: 4px;
    padding: 3px;
    margin-bottom: 16px;
    display: flex;
    overflow: visible;
  }

  .tab-btn {
    flex: 1;
    padding: 9px 4px;
    font-size: 11px;
    gap: 4px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
    touch-action: manipulation;
    user-select: none;
  }

  /* Top bar do simulado: Sair + Carta e cronômetro na 1ª linha, matéria/assunto na 2ª */
  .simulado-top-bar {
    margin-bottom: 10px;
    gap: 6px;
    flex-wrap: wrap;
  }

  .simulado-counter-wrap,
  .timer-box {
    flex-shrink: 0;
  }

  .meta-pill-box {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 0;
  }

  .meta-pill-box .meta-pill {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .counter-badge {
    font-size: 12px;
  }

  .timer-box {
    padding: 4px 8px;
    min-width: 82px;
  }

  .timer-digits {
    font-size: 14px;
  }

  .meta-pill {
    font-size: 10px;
    padding: 2.5px 7px;
  }

  /* Palco e card no smartphone */
  .trt-card-stage {
    padding: 0 0 16px;
  }

  .trt-card {
    max-width: 100%;
    border-radius: 16px;
    border-width: 1.5px;
  }

  .trt-card .card-header-bar {
    padding: 7px 12px;
    min-height: 44px;
  }

  .trt-card .header-brand {
    font-size: 26px;
  }

  .trt-card .header-org-title span {
    font-size: 8.5px;
    letter-spacing: 0.5px;
  }

  .trt-card .header-card-badge {
    padding: 3px 10px 3px 14px;
    min-width: 52px;
  }

  .trt-card .header-card-badge .badge-label {
    font-size: 7.5px;
  }

  .trt-card .header-card-badge .badge-num {
    font-size: 17px;
  }

  /* Banner proporcional para caber na tela do celular sem rolar muito */
  .trt-card .card-media {
    height: 150px;
  }

  .trt-card .card-content {
    padding: 10px 12px 14px;
    gap: 7px;
  }

  .trt-card .block-tag {
    font-size: 10px;
    padding: 2px 7px;
  }

  .trt-card .block-box {
    padding: 7px 9px;
    font-size: 12.5px;
    line-height: 1.4;
  }

  .trt-card .block-box.pergunta-box {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .trt-card .text-res {
    font-size: 13px;
  }

  /* Botões CERTO e ERRADO no celular */
  .answer-actions {
    gap: 8px;
    margin: 10px 0 6px;
  }

  .btn-cebraspe {
    padding: 14px 10px;
    font-size: 14.5px;
    border-radius: 10px;
    gap: 6px;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
  }

  /* Oculta os atalhos de teclado no mobile pois a tela é touch */
  .key-hint {
    display: none !important;
  }

  /* Rodapé do Card */
  .trt-card .card-footer-bar {
    padding: 6px 12px 8px;
  }

  .trt-card .footer-motto {
    font-size: 8.5px;
    letter-spacing: 0.5px;
  }

  .trt-card .footer-slashes {
    font-size: 16px;
  }

  /* Galeria Completa em Coluna Única */
  .cards-grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .score-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
  }

  .score-box {
    padding: 10px 6px;
  }

  .score-num {
    font-size: 20px;
  }

  /* Dashboard no celular */
  .dash-hero-card {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
    gap: 16px;
  }

  .btn-hero-start {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 14px;
  }

  .dash-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }

  .dash-metric-card {
    padding: 14px 12px;
  }

  .metric-value {
    font-size: 22px;
  }

  .dash-two-cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .dash-col-card {
    padding: 16px 14px;
  }

  .dash-shortcuts-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 380px) {
  .player-stats {
    gap: 4px;
  }

  .stat-chip {
    padding: 4px 6px;
    font-size: 10px;
  }

  .tab-btn {
    font-size: 10px;
    padding: 7px 4px;
  }

  .trt-card .header-brand {
    font-size: 22px;
  }

  .trt-card .header-org-title span {
    font-size: 7.5px;
  }

  .btn-cebraspe {
    padding: 12px 6px;
    font-size: 13.5px;
  }
}

/* ==========================================================================
   MODELO VISUAL DAS CARTAS
   ========================================================================== */

.card-fiel-view {
  display: block;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Barra de controles acima da carta */
.card-tactical-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 440px;
  margin: 0 auto 12px;
  gap: 10px;
  flex-wrap: wrap;
}

.controls-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-pagination-badge {
  background: var(--bg-card);
  border: 1px solid rgba(179, 154, 104, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.card-pagination-badge b {
  color: #B39A68;
  font-size: 14px;
}

.btn-control {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 6px 12px;
  font-size: 11.5px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #B39A68;
  color: #B39A68;
}

/* Palco Central */
.trt-card-stage {
  display: flex;
  justify-content: center;
  padding: 4px 0 24px;
}

/* Estrutura Exata do Card Físico */
.trt-card {
  width: 100%;
  max-width: 440px;
  background: #1B1B1E;
  border-radius: 20px;
  border: 2px solid #2F2F35;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.88), 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: #FFFFFF;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trt-card:hover {
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.95), 0 0 25px rgba(179, 154, 104, 0.05);
}

/* 1. Topo / Cabeçalho */
.trt-card .card-header-bar {
  background: #17171A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px 9px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 48px;
}

.trt-card .header-brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #B39A68;
  letter-spacing: -0.3px;
  line-height: 1;
  text-shadow: 0 0 14px rgba(179, 154, 104, 0.12);
}

.trt-card .header-org-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
}

.trt-card .header-org-title span {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Badge amarela chanfrada da CARTA XX */
.trt-card .header-card-badge {
  background: #B39A68;
  color: #000000;
  padding: 4px 14px 4px 18px;
  border-radius: 4px;
  clip-path: polygon(14px 0%, 100% 0%, 100% 100%, 0% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
}

.trt-card .header-card-badge .badge-label {
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.5px;
  line-height: 1;
}

.trt-card .header-card-badge .badge-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  margin-top: 1px;
}

/* 2. Foto Temática */
.trt-card .card-media {
  width: 100%;
  height: 185px;
  position: relative;
  overflow: hidden;
  background: #1B1B1E;
}

.trt-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.trt-card:hover .card-media img {
  transform: scale(1.02);
}

.trt-card .card-media-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to bottom, transparent, #1B1B1E);
  pointer-events: none;
}

/* 3. Corpo e os 4 Blocos Oficiais */
.trt-card .card-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.trt-card .content-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Tag Amarela Oficial do Bloco */
.trt-card .block-tag {
  align-self: flex-start;
  background: #B39A68;
  color: #000000;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  padding: 2.5px 8px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.trt-card .block-tag svg {
  width: 13px;
  height: 13px;
}

/* Caixas de Texto */
.trt-card .block-box {
  background: #1B1B1E;
  border: 1px solid #2F2F35;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #EEE9DF;
}

.trt-card .block-box.pergunta-box {
  font-weight: 600;
  color: #FFFFFF;
  font-size: 13.5px;
}

.trt-card .block-box.resposta-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-color: rgba(94, 155, 114, 0.35);
}

.trt-card .check-circle {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: #5E9B72;
  color: #000;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
}

.trt-card .text-res {
  font-weight: 700;
  color: #FFFFFF;
  font-size: 13.5px;
}

.trt-card .block-box.porque-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #CFC8BB;
}

.trt-card .book-icon {
  font-size: 15px;
  line-height: 1.2;
}

.trt-card .block-box.macete-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(179, 154, 104, 0.05);
  border: 1px solid rgba(179, 154, 104, 0.35);
  color: #E6D9B8;
  font-weight: 600;
  font-size: 12px;
}

.trt-card .bulb-icon {
  font-size: 15px;
  line-height: 1.2;
}

/* Modo Estudo Ocultar/Revelar */
.study-mode-active #fiel-reveal-zone {
  display: none;
}

.study-mode-active #btn-reveal-answer {
  display: flex !important;
}

.btn-reveal-tactical {
  width: 100%;
  padding: 14px;
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(179, 154, 104, 0.15), rgba(120, 34, 45, 0.15));
  border: 1px dashed #B39A68;
  border-radius: 8px;
  color: #B39A68;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reveal-tactical:hover {
  background: linear-gradient(135deg, rgba(179, 154, 104, 0.25), rgba(120, 34, 45, 0.25));
  transform: translateY(-1px);
}

/* 4. Rodapé da Carta */
.trt-card .card-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #17171A;
}

.trt-card .footer-motto {
  font-family: 'Inter', sans-serif;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #9A9488;
  text-transform: uppercase;
}

.trt-card .footer-slashes {
  font-family: var(--font-display);
  color: #B39A68;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -2px;
  font-style: italic;
}

/* ==========================================================================
   GALERIA DE CARTAS (GRADE IDÊNTICA À PÁGINA DO PDF)
   ========================================================================== */

.grid-view {
  width: 100%;
  margin-bottom: 30px;
}

.grid-header-info {
  text-align: center;
  margin-bottom: 20px;
}

.grid-header-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.grid-header-info p {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 4px;
}

.cards-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 20px;
  width: 100%;
}

@media (min-width: 1280px) {
  .cards-grid-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   TELA DE AUTENTICAÇÃO / LOGIN & CADASTRO (SUPABASE AUTH)
   ========================================================================== */

body.auth-locked {
  overflow: hidden !important;
}

body.auth-locked .main-content,
body.auth-locked .app-header {
  filter: blur(8px) brightness(0.4);
  pointer-events: none;
  user-select: none;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(14, 14, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: authFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authFadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, #1B1B1E 0%, #17171A 100%);
  border: 1px solid rgba(179, 154, 104, 0.35);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 35px rgba(179, 154, 104, 0.05);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8E2A36 0%, #B39A68 50%, #8E2A36 100%);
}

.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}

.auth-crest {
  margin: 0 auto 12px;
  width: 48px;
  height: 48px;
  font-size: 22px;
  box-shadow: 0 0 20px rgba(179, 154, 104, 0.14);
}

.auth-brand h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.auth-alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  animation: authAlertSlide 0.25s ease-out;
}

@keyframes authAlertSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-alert.error {
  background: rgba(194, 84, 74, 0.15);
  border: 1px solid rgba(194, 84, 74, 0.4);
  color: #E0A79F;
}

.auth-alert.success {
  background: rgba(94, 155, 114, 0.15);
  border: 1px solid rgba(94, 155, 114, 0.4);
  color: #A8CBB2;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #CFC8BB;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.auth-form .form-input {
  width: 100%;
  background: rgba(14, 14, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: all 0.2s ease;
}

.auth-form .form-input:focus {
  border-color: var(--trt-gold);
  box-shadow: 0 0 0 3px rgba(179, 154, 104, 0.06);
  background: rgba(14, 14, 16, 0.95);
}

.btn-auth-submit {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  margin-top: 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-link-forgot {
  font-size: 11.5px;
  color: var(--trt-gold);
  text-decoration: none;
  transition: color 0.15s;
}

.auth-link-forgot:hover {
  text-decoration: underline;
  color: var(--trt-gold-light);
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.auth-link-switch {
  color: var(--trt-gold);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s;
}

.auth-link-switch:hover {
  color: #fff;
  text-decoration: underline;
}

.auth-info-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.auth-footer-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: var(--text-dim);
}

.btn-link-config {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.btn-link-config:hover {
  color: var(--trt-gold);
  background: rgba(179, 154, 104, 0.1);
}

/* User chip e logout no header */
.user-chip {
  background: rgba(120, 34, 45, 0.15);
  border: 1px solid rgba(120, 34, 45, 0.35);
  color: #E0D3B3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.btn-logout-mini {
  background: rgba(194, 84, 74, 0.2);
  border: 1px solid rgba(194, 84, 74, 0.4);
  color: #E0A79F;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout-mini:hover {
  background: #C2544A;
  color: #fff;
}

/* ==========================================================================
   CADERNO DE ERROS - BANNER & BLOCO DE RELEMBRANÇA / ESTUDO
   ========================================================================== */

.error-mode-guide {
  background: linear-gradient(135deg, rgba(194, 84, 74, 0.15) 0%, rgba(28, 28, 32, 0.9) 100%);
  border: 1.5px solid rgba(194, 84, 74, 0.4);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(194, 84, 74, 0.15);
  animation: fadeIn 0.3s ease;
}

.guide-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.guide-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #D27A70;
}

.guide-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.guide-desc b {
  color: #7DB38E;
}

/* CAIXA DE ESTUDO & RELEMBRANÇA NO PRÓPRIO CARD */
.error-study-cue-box {
  background: linear-gradient(135deg, rgba(179, 154, 104, 0.08) 0%, rgba(28, 28, 32, 0.9) 100%);
  border: 1.5px solid rgba(179, 154, 104, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.35s ease;
}

.cue-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cue-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.cue-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--trt-gold);
}

.cue-assunto {
  font-size: 13.5px;
  font-weight: 700;
  color: #EEE9DF;
  line-height: 1.3;
}

.btn-toggle-cue {
  background: rgba(179, 154, 104, 0.15);
  border: 1px solid rgba(179, 154, 104, 0.4);
  color: var(--trt-gold-light);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
}

.btn-toggle-cue:hover {
  background: rgba(179, 154, 104, 0.25);
  border-color: var(--trt-gold);
  transform: translateY(-1px);
}

.cue-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(179, 154, 104, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: fadeIn 0.25s ease;
}

.cue-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.cue-row.cue-highlight {
  background: rgba(179, 154, 104, 0.08);
  border-left: 3px solid var(--trt-gold);
  padding: 6px 10px;
  border-radius: 0 6px 6px 0;
}

.cue-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--trt-gold);
}

.cue-val {
  color: #E3DDD1;
  line-height: 1.45;
  font-size: 12px;
}

@media (max-width: 640px) {
  .error-mode-guide {
    padding: 10px 12px;
    gap: 10px;
    margin-bottom: 12px;
  }
  .guide-icon {
    font-size: 20px;
  }
  .guide-title {
    font-size: 12px;
  }
  .guide-desc {
    font-size: 11px;
  }
  .cue-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .btn-toggle-cue {
    align-self: flex-start;
    padding: 5px 10px;
    font-size: 10.5px;
  }
  .cue-assunto {
    font-size: 12.5px;
  }
}

/* ==========================================================================
   PWA INSTALL BUTTON & MODAL
   ========================================================================== */

.btn-install-pwa {
  background: linear-gradient(135deg, rgba(179, 154, 104, 0.25), rgba(142, 42, 54, 0.25));
  border: 1px solid rgba(179, 154, 104, 0.6);
  color: #CDB78A !important;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
}

.btn-install-pwa:hover {
  background: linear-gradient(135deg, rgba(179, 154, 104, 0.45), rgba(142, 42, 54, 0.45));
  border-color: #CDB78A;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(179, 154, 104, 0.35);
}

.pwa-quick-btn {
  border-color: rgba(179, 154, 104, 0.4) !important;
  background: linear-gradient(145deg, rgba(23, 23, 26, 0.95), rgba(179, 154, 104, 0.08)) !important;
}

.pwa-quick-btn:hover {
  border-color: #CDB78A !important;
  box-shadow: 0 4px 16px rgba(179, 154, 104, 0.25) !important;
}

.pwa-quick-btn .sc-icon {
  background: rgba(179, 154, 104, 0.15) !important;
}

/* Modal de Instalação */
.modal-install-card {
  max-width: 480px;
  width: 90%;
  background: #17171A;
  border: 1px solid rgba(179, 154, 104, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(179, 154, 104, 0.05);
}

.install-modal-body {
  padding: 16px 20px 24px;
}

.install-device-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.install-device-badge b {
  color: #CDB78A;
}

.install-guide-block {
  display: none;
}

.install-guide-block.active-platform {
  display: block;
}

.guide-platform-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #EEE9DF;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(179, 154, 104, 0.2);
  border: 1px solid rgba(179, 154, 104, 0.6);
  color: #CDB78A;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-text {
  font-size: 13px;
  color: #CFC8BB;
  line-height: 1.45;
}

.step-text b {
  color: #FFFFFF;
}

.ios-share-icon {
  display: inline-block;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 14px;
}

.guide-success-note {
  margin-top: 14px;
  background: rgba(142, 42, 54, 0.1);
  border: 1px solid rgba(142, 42, 54, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #A8CBB2;
  line-height: 1.45;
}

/* Botão Baixar PDF na Galeria */
.grid-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  text-align: left;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-download-pdf {
  padding: 8px 16px;
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #5C1A23, #8E2A36);
  color: white;
  border: 1px solid rgba(142, 42, 54, 0.5);
  box-shadow: 0 4px 12px rgba(120, 34, 45, 0.25);
}

.btn-download-pdf:hover {
  background: linear-gradient(135deg, #8E2A36, #A8404B);
  transform: translateY(-1px);
}

/* ==========================================================================
   FOLHAS DE IMPRESSÃO (8 CARTAS POR A4)
   Na tela o agrupamento é invisível; o layout A4 está em print.css
   ========================================================================== */
.print-sheet {
  display: contents;
}

/* ==========================================================================
   CRONOGRAMA DE ESTUDOS DE 30 DIAS (ÁREA ADMIN PRIVADA)
   ========================================================================== */

.badge-admin-tag {
  background: #C2544A;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: 5px;
}

.cronograma-view {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.crono-header-card {
  background: linear-gradient(135deg, rgba(23, 23, 26, 0.95), rgba(42, 42, 47, 0.9));
  border: 1px solid rgba(179, 154, 104, 0.4);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.crono-badge-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-lock-admin {
  background: rgba(94, 155, 114, 0.15);
  border: 1px solid rgba(94, 155, 114, 0.4);
  color: #A8CBB2;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-track-label {
  background: rgba(179, 154, 104, 0.15);
  border: 1px solid rgba(179, 154, 104, 0.4);
  color: #CDB78A;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}

.crono-header-card h2 {
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.crono-desc {
  font-size: 13.5px;
  color: #A39D92;
  line-height: 1.5;
  max-width: 800px;
  margin-bottom: 18px;
}

.crono-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.crono-stats-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #CFC8BB;
  font-weight: 600;
}

.btn-print-crono {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5C1A23, #8E2A36);
  color: white;
  border: 1px solid rgba(142, 42, 54, 0.6);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(120, 34, 45, 0.3);
  transition: all 0.2s ease;
}

.btn-print-crono:hover {
  background: linear-gradient(135deg, #8E2A36, #A8404B);
  transform: translateY(-1px);
}

/* Semanas e Dias */
.crono-weeks-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.crono-week-card {
  background: #17171A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.crono-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.crono-week-title {
  font-size: 16px;
  font-weight: 800;
  color: #EEE9DF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crono-week-badge {
  background: rgba(179, 154, 104, 0.2);
  color: #CDB78A;
  border: 1px solid rgba(179, 154, 104, 0.4);
  font-size: 11px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 999px;
}

.crono-days-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr));
  gap: 14px;
}

.crono-day-box {
  background: rgba(23, 23, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.crono-day-box:hover {
  border-color: rgba(179, 154, 104, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.crono-day-box.completed {
  border-color: rgba(142, 42, 54, 0.4);
  background: rgba(94, 155, 114, 0.05);
}

.crono-day-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crono-day-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  color: #CDB78A;
  display: flex;
  align-items: center;
  gap: 6px;
}

.crono-day-check {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #A39D92;
  user-select: none;
}

.crono-day-check input {
  accent-color: #6BA57E;
  cursor: pointer;
}

.crono-day-materia {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #A7B4B8;
}

.crono-day-topico {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
}

.crono-day-meta {
  font-size: 12px;
  color: #A39D92;
  line-height: 1.45;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 10px;
  border-radius: 6px;
  border-left: 3px solid #C9A25A;
}

.crono-day-meta b {
  color: #E3DDD1;
}

.crono-day-app-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #A8CBB2;
  font-weight: 600;
}

.crono-day-time {
  color: #7A746B;
  font-size: 11px;
}

/* Cronograma: datas, semana atual e ações do dia */
.crono-week-dates { font-size: 11px; color: var(--text-muted); font-weight: 600; margin-left: 4px; }
.crono-week-card.is-current { border-color: rgba(179, 154, 104, 0.55); }
.crono-week-now { background: #8E2A36; color: #F7F1E6; font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.crono-day-date { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: capitalize; }
.crono-day-box.is-today { border-color: rgba(179, 154, 104, 0.7); box-shadow: 0 0 0 1px rgba(179, 154, 104, 0.35); }
.crono-day-box.tipo-revisao { background: rgba(142, 42, 54, 0.08); border-color: rgba(142, 42, 54, 0.3); }
.crono-day-box.tipo-final, .crono-day-box.tipo-prova { background: rgba(179, 154, 104, 0.06); border-color: rgba(179, 154, 104, 0.3); }
.crono-day-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.crono-day-actions > *:only-child { grid-column: 1 / -1; }
.crono-act-btn { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 7px 8px; border-radius: 6px; cursor: pointer; text-decoration: none; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.04); color: #E3DDD1; font-family: inherit; }
.crono-act-btn:hover { border-color: rgba(179, 154, 104, 0.6); color: #CDB78A; }
.crono-act-btn.wine { background: rgba(142, 42, 54, 0.85); border-color: rgba(142, 42, 54, 1); color: #F7F1E6; }
.crono-act-btn.wine:hover { background: #8E2A36; color: #fff; }

/* Simulado filtrado por matéria (vindo do Cronograma) */
.materia-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: rgba(179, 154, 104, 0.1); border: 1px solid rgba(179, 154, 104, 0.35); font-size: 12.5px; color: #E3DDD1; }
.materia-filter-bar b { color: #CDB78A; }
.materia-filter-bar button { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #E3DDD1; font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-family: inherit; }
.materia-filter-bar button:hover { border-color: #CDB78A; color: #CDB78A; }

.btn-read-resumo {
  background: linear-gradient(135deg, rgba(179, 154, 104, 0.15), rgba(42, 42, 47, 0.8));
  border: 1px solid rgba(179, 154, 104, 0.4);
  color: #CDB78A;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-read-resumo:hover {
  background: linear-gradient(135deg, rgba(179, 154, 104, 0.3), rgba(42, 42, 47, 0.9));
  border-color: #CDB78A;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(179, 154, 104, 0.2);
}

/* Modal de resumo da meta */
.modal-crono-card {
  max-width: 680px;
  width: 92%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #17171A;
  border: 1px solid rgba(179, 154, 104, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(179, 154, 104, 0.05);
}

.modal-crono-head-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.crono-head-badge {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #CDB78A;
}

.modal-crono-head-info h2 {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.3;
}

.modal-crono-body {
  padding: 18px 24px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-crono-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.crono-meta-pill {
  background: rgba(167, 180, 184, 0.15);
  border: 1px solid rgba(167, 180, 184, 0.35);
  color: #C4CDCF;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.crono-meta-time {
  font-size: 12px;
  color: #A39D92;
  font-weight: 600;
}

/* Blocos de Conteúdo do Resumo */
.modal-crono-content-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #CFC8BB;
}

.resumo-section-box {
  background: rgba(23, 23, 26, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 14px 16px;
}

.resumo-section-title {
  font-size: 13px;
  font-weight: 800;
  color: #EEE9DF;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.resumo-points-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

.resumo-points-list li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: #E3DDD1;
}

.resumo-points-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: #C9A25A;
  font-weight: 900;
  font-size: 14px;
}

.resumo-pegadinha-box {
  background: rgba(194, 84, 74, 0.1);
  border: 1px solid rgba(194, 84, 74, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  color: #EDD0CB;
  font-size: 12.5px;
  line-height: 1.5;
}

.resumo-pegadinha-title {
  font-size: 12px;
  font-weight: 900;
  color: #D27A70;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.resumo-macete-box {
  background: rgba(179, 154, 104, 0.1);
  border: 1px solid rgba(179, 154, 104, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  color: #E6D9B8;
  font-size: 12.5px;
  line-height: 1.5;
}

.resumo-macete-title {
  font-size: 12px;
  font-weight: 900;
  color: #CDB78A;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.resumo-artigo-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11.5px;
  color: #A39D92;
  font-family: monospace;
}

.resumo-artigo-tag b {
  color: #A7B4B8;
}

.modal-crono-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   CARDS DE BLOQUEIO 7 DIAS E UPGRADE VITALÍCIO VIP
   ========================================================================== */

.badge-vip-tag {
  background: linear-gradient(135deg, #9C845A, #8C7548);
  color: #202024;
  font-size: 9px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-left: 5px;
  box-shadow: 0 0 10px rgba(201, 152, 90, 0.14);
}

.tactical-lock-card {
  background: linear-gradient(135deg, rgba(23, 23, 26, 0.98), rgba(38, 38, 43, 0.95));
  border: 1px solid rgba(179, 154, 104, 0.4);
  border-radius: 16px;
  padding: 36px 30px;
  text-align: center;
  max-width: 820px;
  margin: 20px auto 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(179, 154, 104, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lock-shield-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 16px rgba(179, 154, 104, 0.5));
}

.lock-badge-tag {
  background: rgba(167, 180, 184, 0.15);
  border: 1px solid rgba(167, 180, 184, 0.4);
  color: #C4CDCF;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.lock-badge-tag.gold-tag {
  background: rgba(201, 152, 90, 0.2);
  border-color: rgba(201, 152, 90, 0.5);
  color: #CDB78A;
}

.tactical-lock-card h2 {
  font-size: 24px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0;
  letter-spacing: -0.5px;
}

.lock-desc {
  font-size: 14px;
  color: #A39D92;
  line-height: 1.6;
  max-width: 680px;
  margin: 0;
}

.lock-countdown-box {
  background: rgba(23, 23, 26, 0.85);
  border: 1px solid rgba(179, 154, 104, 0.35);
  border-radius: 12px;
  padding: 20px 24px;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.countdown-label {
  font-size: 11px;
  font-weight: 800;
  color: #CDB78A;
  letter-spacing: 0.8px;
}

.countdown-digits {
  font-size: 26px;
  font-weight: 900;
  font-family: monospace;
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 2px;
}

.countdown-sub {
  font-size: 12px;
  color: #7A746B;
}

.countdown-sub span {
  color: #CFC8BB;
  font-weight: 700;
}

.lock-notice-box {
  background: rgba(94, 155, 114, 0.08);
  border: 1px solid rgba(94, 155, 114, 0.3);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: left;
  width: 100%;
  max-width: 620px;
  color: #DCEBDF;
  font-size: 13px;
  line-height: 1.6;
}

.lock-notice-box b {
  display: block;
  margin-bottom: 8px;
  color: #7DB38E;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.lock-notice-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Card de Upgrade */
.lock-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 720px;
  text-align: left;
  margin: 8px 0;
}

@media (max-width: 768px) {
  .lock-benefits-grid {
    grid-template-columns: 1fr;
  }
}

.benefit-card {
  background: rgba(23, 23, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 16px;
}

.benefit-card .b-icon {
  font-size: 24px;
  margin-bottom: 8px;
  display: block;
}

.benefit-card b {
  display: block;
  font-size: 13px;
  color: #EEE9DF;
  margin-bottom: 4px;
}

.benefit-card p {
  font-size: 11.5px;
  color: #A39D92;
  margin: 0;
  line-height: 1.4;
}

.upgrade-cta-box {
  background: linear-gradient(135deg, rgba(179, 154, 104, 0.12), rgba(42, 42, 47, 0.8));
  border: 1px solid rgba(179, 154, 104, 0.4);
  border-radius: 12px;
  padding: 22px;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upgrade-price-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upgrade-price-callout .u-small {
  font-size: 11px;
  font-weight: 800;
  color: #CDB78A;
  letter-spacing: 0.5px;
}

.upgrade-price-callout .u-price {
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
}

.upgrade-price-callout .u-price small {
  font-size: 14px;
  color: #A39D92;
  font-weight: 600;
}

.upgrade-price-callout .u-sub {
  font-size: 11.5px;
  color: #CFC8BB;
}

.btn-upgrade-gold {
  background: linear-gradient(135deg, #9C845A, #8C7548);
  color: #202024 !important;
  font-weight: 900;
  font-size: 14px;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(201, 152, 90, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-upgrade-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 152, 90, 0.5);
  filter: brightness(1.08);
}

/* ==========================================================================
   DEGUSTAÇÃO GRATUITA (MODO AMOSTRA) & PAYWALL KIWIFY
   ========================================================================== */
.auth-demo-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 12px;
  color: #7A746B;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
}

.auth-demo-divider::before,
.auth-demo-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.auth-demo-divider span {
  padding: 0 10px;
}

.btn-demo-trial {
  width: 100%;
  padding: 13px 18px;
  background: rgba(201, 152, 90, 0.12);
  border: 1px solid rgba(201, 152, 90, 0.45);
  color: #C4AC7C !important;
  font-weight: 800;
  font-size: 13.5px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.btn-demo-trial:hover {
  background: rgba(201, 152, 90, 0.22);
  border-color: #9C845A;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(201, 152, 90, 0.2);
}

/* Modal Paywall */
.trial-paywall-card {
  max-width: 620px;
  width: 95%;
  background: #17171A;
  border: 1px solid rgba(201, 152, 90, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(201, 152, 90, 0.06);
  border-radius: 16px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
  color: #FFFFFF;
  text-align: center;
}

.trial-paywall-header .trial-fire-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(201, 152, 90, 0.18);
  border: 1px solid rgba(201, 152, 90, 0.5);
  color: #C4AC7C;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.trial-paywall-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: #FFFFFF;
  margin: 0 0 8px;
  line-height: 1.25;
}

.trial-paywall-subtitle {
  font-size: 13px;
  color: #A39D92;
  line-height: 1.45;
  margin: 0 0 16px;
}

.trial-score-summary {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.trial-score-pill {
  background: #202024;
  border: 1px solid #26262B;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #CFC8BB;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trial-score-value {
  white-space: nowrap; /* mantém "0 / 3" junto na mesma linha */
}

.trial-score-pill .text-green { color: #5E9B72; font-weight: 800; font-size: 14px; }
.trial-score-pill .text-gold { color: #9C845A; font-weight: 800; font-size: 14px; }

.trial-unlock-box {
  background: rgba(28, 28, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 20px;
}

.trial-unlock-box h3 {
  font-size: 13.5px;
  font-weight: 800;
  color: #EEE9DF;
  margin: 0 0 10px;
}

.trial-perks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

@media (max-width: 580px) {
  .trial-perks-list {
    grid-template-columns: 1fr;
  }

  /* Espaço para o botão de fechar (✕) não ficar por cima da etiqueta do topo */
  .trial-paywall-header {
    padding-top: 30px;
  }

  .trial-score-pill {
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 10px;
  }
}

.trial-perks-list li {
  font-size: 12px;
  color: #CFC8BB;
  line-height: 1.4;
}

.trial-perks-list li b {
  color: #FFFFFF;
}

.trial-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}

@media (max-width: 580px) {
  .trial-plans-grid {
    grid-template-columns: 1fr;
  }
}

.trial-plan-card {
  background: #202024;
  border: 1px solid #26262B;
  border-radius: 12px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
}

.trial-plan-card.featured {
  background: linear-gradient(180deg, #202024 0%, #17171A 100%);
  border: 1.5px solid #9C845A;
  box-shadow: 0 8px 24px rgba(201, 152, 90, 0.15);
}

.trial-plan-tag {
  font-size: 10px;
  font-weight: 800;
  color: #A39D92;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.trial-plan-tag.best {
  color: #C4AC7C;
}

.trial-plan-name {
  font-size: 17px;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.trial-plan-price {
  margin: 6px 0 10px;
}

.trial-plan-price .t-installments {
  font-size: 11px;
  color: #A39D92;
  display: block;
}

.trial-plan-price .t-currency {
  font-size: 14px;
  font-weight: 700;
  color: #CFC8BB;
}

.trial-plan-price .t-val {
  font-size: 26px;
  font-weight: 900;
  color: #EEE9DF;
}

.trial-plan-price .t-period {
  font-size: 12px;
  color: #A39D92;
}

.trial-plan-price .t-cash {
  font-size: 11px;
  color: #CFC8BB;
  display: block;
  margin-top: 2px;
}

.trial-plan-desc {
  font-size: 11px;
  color: #A39D92;
  line-height: 1.35;
  margin: 0 0 14px;
  flex: 1;
}

.btn-trial-buy-annual {
  background: #26262B;
  color: #FFFFFF !important;
  font-size: 12.5px;
  font-weight: 800;
  padding: 11px 14px;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  transition: all 0.2s;
  border: 1px solid #3A3A40;
}

.btn-trial-buy-annual:hover {
  background: #3A3A40;
}

.btn-trial-buy-vip {
  background: linear-gradient(135deg, #9C845A, #8C7548);
  color: #202024 !important;
  font-size: 13.5px;
  font-weight: 900;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 16px rgba(201, 152, 90, 0.4);
  transition: all 0.2s;
}

.btn-trial-buy-vip:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.trial-paywall-footer {
  margin-top: 10px;
}

.btn-trial-sublink {
  background: none;
  border: none;
  color: #A39D92;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 6px;
  transition: color 0.2s;
}

.btn-trial-sublink:hover {
  color: #FFFFFF;
}

/* Botão de Login no Header para Visitantes */
.btn-login-chip {
  background: rgba(142, 42, 54, 0.15) !important;
  border: 1px solid rgba(142, 42, 54, 0.45) !important;
  color: #E0D3B3 !important;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
}

.btn-login-chip:hover {
  background: rgba(142, 42, 54, 0.28) !important;
  border-color: #D9C9A3 !important;
  color: #FFFFFF !important;
}

/* Botão de Fechar no Card de Autenticação */
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #A39D92;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.auth-modal-close:hover {
  background: rgba(194, 84, 74, 0.2);
  border-color: rgba(194, 84, 74, 0.5);
  color: #C2544A;
  transform: scale(1.05);
}

/* ==========================================================================
   CENTRAL DE NOTIFICAÇÕES DE ESTUDO (DASHBOARD & MOBILE)
   ========================================================================== */
.dash-notif-banner {
  background: linear-gradient(135deg, rgba(23, 23, 26, 0.95), rgba(42, 42, 47, 0.85));
  border: 1px solid rgba(142, 42, 54, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-top: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.3s ease;
}

.dash-notif-banner.active {
  border-color: rgba(142, 42, 54, 0.5);
  background: linear-gradient(135deg, rgba(23, 23, 26, 0.95), rgba(36, 64, 46, 0.2));
}

.dash-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
}

.dash-notif-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #D9C9A3;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Switch toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(90, 86, 80, 0.6);
  border: 1px solid rgba(163, 157, 146, 0.2);
  transition: .3s;
  border-radius: 24px;
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #FFFFFF;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.switch-toggle input:checked + .slider-toggle {
  background-color: #5E9B72;
  border-color: #4E8662;
  box-shadow: 0 0 12px rgba(94, 155, 114, 0.14);
}

.switch-toggle input:checked + .slider-toggle:before {
  transform: translateX(20px);
}

.dash-notif-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-notif-text b {
  display: block;
  font-size: 14px;
  color: #EEE9DF;
  margin-bottom: 4px;
}

.dash-notif-text p {
  font-size: 12px;
  line-height: 1.45;
  color: #A39D92;
  margin: 0;
}

.dash-notif-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-notif-action {
  background: rgba(142, 42, 54, 0.15);
  border: 1px solid rgba(142, 42, 54, 0.4);
  color: #E0D3B3;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-notif-action:hover {
  background: rgba(142, 42, 54, 0.3);
  border-color: #D9C9A3;
  color: #FFFFFF;
  transform: translateY(-1px);
}







/* =========================================================================
   QUESTÕES FCC — ALTERNATIVAS A–E
   ========================================================================= */
.question-type-tag {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--trt-gold-light);
  background: rgba(179, 154, 104, 0.12);
  border: 1px solid rgba(179, 154, 104, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.fcc-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.btn-fcc-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: var(--bg-card-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.btn-fcc-opt:hover:not(:disabled) {
  border-color: var(--trt-gold);
  background: rgba(179, 154, 104, 0.08);
  transform: translateX(2px);
}

.btn-fcc-opt:focus-visible {
  outline: 2px solid var(--trt-gold-light);
  outline-offset: 2px;
}

.btn-fcc-opt .opt-letter {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--trt-gold-light);
  border: 1.5px solid rgba(179, 154, 104, 0.5);
}

.btn-fcc-opt .opt-text { padding-top: 3px; }

.btn-fcc-opt:disabled { cursor: default; opacity: 0.55; }

.btn-fcc-opt.selected-correct {
  opacity: 1;
  border-color: var(--certo-green);
  background: var(--certo-green-bg);
  box-shadow: 0 0 18px rgba(94, 155, 114, 0.10);
}
.btn-fcc-opt.selected-correct .opt-letter { background: var(--certo-green); border-color: var(--certo-green); color: #FFFFFF; }

.btn-fcc-opt.selected-wrong {
  opacity: 1;
  border-color: var(--errado-red);
  background: var(--errado-red-bg);
}
.btn-fcc-opt.selected-wrong .opt-letter { background: var(--errado-red); border-color: var(--errado-red); color: #FFFFFF; }

/* Galeria / impressão */
.fcc-alt-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 0.92em; }
.fcc-alt-list li b { color: var(--trt-gold); margin-right: 3px; }


/* =========================================================================
   SELETOR DE CARGOS (24 CARGOS DO EDITAL TRT8)
   ========================================================================= */
.cargo-picker-card { max-height: 88vh; overflow-y: auto; }
.cargo-picker-intro { font-size: 12.5px; color: var(--text-muted); margin: 0 0 12px; }
.cargo-picker-msg {
  display: none; font-size: 12px; color: var(--trt-gold-light);
  background: rgba(179, 154, 104, 0.1); border: 1px solid rgba(179, 154, 104, 0.3);
  border-radius: var(--radius-sm); padding: 8px 10px; margin-bottom: 12px;
}
.cargo-group { margin-bottom: 16px; }
.cargo-group-title {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: var(--trt-gold-light); margin-bottom: 8px; padding-bottom: 6px;
  border-bottom: 1px solid rgba(179, 154, 104, 0.25);
}
.cargo-option {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 9px 10px; margin-bottom: 6px; border-radius: var(--radius-sm);
  background: var(--bg-card-subtle); border: 1.5px solid rgba(255, 255, 255, 0.08);
  color: var(--text-main); cursor: pointer; font-family: var(--font-sans);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cargo-option:hover { border-color: var(--trt-gold); }
.cargo-option:focus-visible { outline: 2px solid var(--trt-gold-light); outline-offset: 2px; }
.cargo-option.active { border-color: var(--trt-gold); background: rgba(179, 154, 104, 0.1); }
.cargo-option.soon { opacity: 0.55; }
.cargo-option.soon:hover { border-color: rgba(255, 255, 255, 0.2); }
.cargo-code {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 12px;
  color: var(--trt-gold-light); border: 1.5px solid rgba(179, 154, 104, 0.45);
}
.cargo-icon { font-size: 18px; flex-shrink: 0; }
.cargo-texts { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cargo-name { font-size: 13px; font-weight: 700; line-height: 1.25; }
.cargo-meta { font-size: 10.5px; color: var(--text-dim); }
.cargo-pill {
  flex-shrink: 0; font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: rgba(179, 154, 104, 0.15); color: var(--trt-gold-light); white-space: nowrap;
}
.cargo-option.soon .cargo-pill { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
