/* =========================================
   GO PREMIUM — COMPONENTES ESPECÍFICOS
   ========================================= */

/* --- HERO PRINCIPAL (página 00) --- */
.hero-main {
  min-height: calc(100vh - var(--header-height) - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 40px 0;
}

.hero-title-block { max-width: 720px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--info);
  margin-bottom: 16px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--info);
  animation: hotspotPulse 2s ease-in-out infinite;
}

.hero-main h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.hero-main h1 .accent {
  background: linear-gradient(135deg, #0891b2, #7c3aed, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-number {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* Blocos de acesso no hero */
.hero-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.hero-block {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.hero-block::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.hero-block:hover::before { opacity: 1; }

.hero-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.hero-block-icon {
  font-size: 2rem;
  line-height: 1;
}

.hero-block-title {
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.3;
}

.hero-block-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* Cores por bloco */
.hero-block.tireoide { border-color: rgba(8,145,178,0.3); }
.hero-block.tireoide:hover { border-color: var(--color-tireoide); box-shadow: 0 16px 40px rgba(8,145,178,0.2); }
.hero-block.tireoide::before { background: linear-gradient(135deg,rgba(8,145,178,0.04),rgba(8,145,178,0.08)); }

.hero-block.reumato { border-color: rgba(147,51,234,0.3); }
.hero-block.reumato:hover { border-color: var(--color-reumato); box-shadow: 0 16px 40px rgba(147,51,234,0.2); }
.hero-block.reumato::before { background: linear-gradient(135deg,rgba(147,51,234,0.04),rgba(147,51,234,0.08)); }

.hero-block.cardio { border-color: rgba(225,29,72,0.3); }
.hero-block.cardio:hover { border-color: var(--color-cardio); box-shadow: 0 16px 40px rgba(225,29,72,0.2); }
.hero-block.cardio::before { background: linear-gradient(135deg,rgba(225,29,72,0.04),rgba(225,29,72,0.08)); }

.hero-block.hepato { border-color: rgba(217,119,6,0.3); }
.hero-block.hepato:hover { border-color: var(--color-hepato); box-shadow: 0 16px 40px rgba(217,119,6,0.2); }
.hero-block.hepato::before { background: linear-gradient(135deg,rgba(217,119,6,0.04),rgba(217,119,6,0.08)); }

.hero-block.itu { border-color: rgba(2,132,199,0.3); }
.hero-block.itu:hover { border-color: var(--color-itu); box-shadow: 0 16px 40px rgba(2,132,199,0.2); }
.hero-block.itu::before { background: linear-gradient(135deg,rgba(2,132,199,0.04),rgba(2,132,199,0.08)); }

.hero-block.revisao { border-color: rgba(15,118,110,0.3); }
.hero-block.revisao:hover { border-color: var(--color-revisao); box-shadow: 0 16px 40px rgba(15,118,110,0.2); }
.hero-block.revisao::before { background: linear-gradient(135deg,rgba(15,118,110,0.04),rgba(15,118,110,0.08)); }

/* --- CLASSIFICADOR INTERATIVO --- */
.classifier {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--bg-card);
}

.classifier-header {
  padding: 14px 20px;
  background: rgba(0,0,0,0.03);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: var(--text-sm);
}

[data-theme="dark"] .classifier-header { background: rgba(255,255,255,0.04); }

.classifier-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.classifier-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-base);
  gap: 12px;
}

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

.classifier-item:hover { background: rgba(0,0,0,0.025); }

[data-theme="dark"] .classifier-item:hover { background: rgba(255,255,255,0.04); }

.classifier-item-label {
  font-size: var(--text-sm);
  color: var(--text-primary);
  flex: 1;
}

.classifier-item-btns {
  display: flex;
  gap: 6px;
}

.cls-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 700;
  transition: var(--transition-fast);
  color: var(--text-secondary);
}

.cls-btn:hover { border-color: var(--info); color: var(--info); }

.cls-btn.selected-ok {
  border-color: var(--success);
  background: var(--success-light);
  color: #065f46;
}

.cls-btn.selected-no {
  border-color: var(--error);
  background: var(--error-light);
  color: #991b1b;
}

.classifier-feedback {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  font-size: var(--text-sm);
  display: none;
  animation: fadeInUp 0.35s ease;
}

.classifier-feedback.show { display: block; }

/* --- DIAGRAMA SVG WRAPPER --- */
.diagram-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 24px;
  margin-bottom: 16px;
}

.diagram-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* --- CALCULADORA --- */
.calc-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
}

.calc-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 16px;
}

.calc-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.calc-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 120px;
}

.calc-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.calc-input {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-mono);
  outline: none;
  transition: var(--transition-base);
  width: 100%;
}

.calc-input:focus {
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}

.calc-result-box {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border-color);
  margin-top: 16px;
  min-height: 52px;
}

[data-theme="dark"] .calc-result-box { background: rgba(255,255,255,0.04); }

.calc-result-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.calc-result-value {
  font-size: var(--text-lg);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* --- TABS --- */
.tabs {
  margin-bottom: 24px;
}

.tab-list {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border-color);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 0;
}

.tab-list::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 18px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  position: relative;
  transition: var(--transition-base);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: transparent;
  transition: var(--transition-base);
}

.tab-btn:hover { color: var(--text-primary); background: rgba(0,0,0,0.03); }
.tab-btn.active { color: var(--info); }
.tab-btn.active::after { background: var(--info); }

[data-theme="dark"] .tab-btn:hover { background: rgba(255,255,255,0.05); }

.tab-panel { display: none; padding-top: 24px; animation: fadeIn 0.3s ease; }
.tab-panel.active { display: block; }

/* --- CHECKBOX CRITERIA --- */
.criteria-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.criteria-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: var(--transition-base);
}

.criteria-item:hover { border-color: var(--info); background: rgba(59,130,246,0.04); }

.criteria-item.checked {
  border-color: var(--success);
  background: var(--success-light);
}

[data-theme="dark"] .criteria-item.checked { background: rgba(16,185,129,0.12); }

.criteria-checkbox {
  width: 20px; height: 20px;
  border-radius: 5px;
  border: 2px solid var(--border-color);
  background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition-base);
  font-size: 0.75rem;
}

.criteria-item.checked .criteria-checkbox {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.criteria-label {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.45;
  flex: 1;
}

.criteria-score {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.criteria-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border-color);
  margin-top: 8px;
  font-weight: 700;
  font-size: var(--text-sm);
}

[data-theme="dark"] .criteria-total { background: rgba(255,255,255,0.05); }

/* --- LINHA DO TEMPO --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 20px;
  border-left: 2px solid var(--border-color);
  margin-left: 10px;
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  transition: var(--transition-base);
}

.timeline-item.active::before {
  background: var(--info);
  border-color: var(--info);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
}

.timeline-period {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timeline-content {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- COMPARADOR LADO A LADO --- */
.versus-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 16px 0;
}

.versus-label {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text-muted);
  text-align: center;
  padding: 0 8px;
}

.versus-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
}

.versus-card-title {
  font-weight: 800;
  font-size: var(--text-sm);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.versus-card.side-a .versus-card-title { color: var(--info); }
.versus-card.side-b .versus-card-title { color: var(--color-cardio); }

.versus-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.versus-card ul li {
  font-size: var(--text-xs);
  padding: 5px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  line-height: 1.5;
}
.versus-card ul li:last-child { border-bottom: none; }

@media (max-width: 640px) {
  .versus-wrap { grid-template-columns: 1fr; }
  .versus-label { display: none; }
}

/* --- EIXO FISIOLÓGICO (diagrama simplificado) --- */
.axis-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.axis-box {
  width: 100%;
  max-width: 340px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 600;
  border: 2px solid transparent;
  transition: var(--transition-base);
}

.axis-box:hover { transform: scale(1.04); }

.axis-box.source {
  background: rgba(8,145,178,0.1);
  border-color: var(--color-tireoide);
  color: var(--color-tireoide);
}

.axis-box.process {
  background: rgba(147,51,234,0.1);
  border-color: var(--color-reumato);
  color: var(--color-reumato);
}

.axis-box.result-up {
  background: var(--error-light);
  border-color: var(--error);
  color: var(--error);
}

.axis-box.result-down {
  background: var(--success-light);
  border-color: var(--success);
  color: #065f46;
}

.axis-box.result-normal {
  background: rgba(245,158,11,0.1);
  border-color: var(--warning);
  color: #92400e;
}

.axis-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
}

/* --- MAPA MENTAL VISUAL --- */
.mindmap-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.mindmap-center-node {
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: var(--text-base);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.mindmap-branches-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.mindmap-node {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: center;
  cursor: default;
  transition: var(--transition-base);
}

.mindmap-node:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* --- RÉGUA LABORATORIAL --- */
.lab-ruler {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.lab-ruler-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.ruler-track {
  height: 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #bfdbfe 0%, #22c55e 30%, #fde68a 60%, #fca5a5 100%);
  position: relative;
  margin-bottom: 8px;
}

.ruler-marker {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 30px;
  background: rgba(0,0,0,0.7);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.4,0,0.2,1);
}

[data-theme="dark"] .ruler-marker { background: rgba(255,255,255,0.8); }

.ruler-zones {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.ruler-zone-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* --- RESPOSTA DE PROVA RÁPIDA --- */
.prova-card {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(59,130,246,0.3);
  background: rgba(59,130,246,0.05);
  margin-bottom: 12px;
}

.prova-card-title {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--info);
  margin-bottom: 8px;
}

.prova-card p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0;
}

[data-theme="dark"] .prova-card {
  border-color: rgba(59,130,246,0.25);
  background: rgba(59,130,246,0.1);
}

/* --- RESUMO ALTO RENDIMENTO --- */
.resumo-list {
  counter-reset: resumo;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resumo-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
  counter-increment: resumo;
}

.resumo-item:hover { background: var(--bg-card); transform: translateX(4px); }

.resumo-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--info);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.resumo-text {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-primary);
  flex: 1;
}

.resumo-text strong { color: var(--text-primary); }

/* --- NAV CHIPS (bloco selector) --- */
.block-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.block-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
  transition: var(--transition-base);
  white-space: nowrap;
}

.block-chip:hover { border-color: var(--info); color: var(--info); }
.block-chip.active { background: var(--info); border-color: var(--info); color: #fff; }

/* --- SCORE DISPLAY --- */
.score-display {
  text-align: center;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
}

.score-number {
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.score-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* --- RESPONSIVIDADE EXTRA --- */
@media (max-width: 640px) {
  .hero-blocks { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 16px; }
  .hero-main h1 { font-size: 1.9rem; }
  .tab-btn { padding: 8px 12px; font-size: 0.78rem; }
  .mindmap-branches-row { flex-direction: column; align-items: center; }
}
/* =========================================
   SINDROMES FEBRIS — COMPONENTES ESPECIFICOS
   ========================================= */

.febris-home {
  align-items: stretch;
}

.febris-hero h1,
.febris-home h1 {
  letter-spacing: 0;
}

.module-question {
  padding: 20px 22px;
  margin: -4px 0 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.module-question span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.module-question strong {
  display: block;
  color: var(--text-primary);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.35;
}

.module-card {
  min-height: 190px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.module-card h3 {
  font-size: var(--text-xl);
  line-height: 1.2;
}

.module-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.module-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.module-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--module-accent, var(--color-revisao));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--module-accent, var(--color-revisao)) 16%, transparent);
}

.svg-hotspot-wrap {
  position: relative;
  margin: 0 0 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--shadow-md);
}

.svg-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1120 / 520;
  overflow: hidden;
}

.febris-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.svg-title {
  font: 800 30px var(--font-body);
  fill: var(--text-primary);
}

.svg-num {
  font: 900 20px var(--font-body);
  fill: #0f172a;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.hotspot-dot {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0f172a;
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  box-shadow: var(--shadow-md);
}

.hotspot-dot span {
  pointer-events: none;
}

.hotspot-dot:focus-visible,
.choice-btn:focus-visible,
.module-card:focus-visible,
.global-case-card:focus-visible,
.inline-link:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 3px;
}

.hotspot-feedback,
.interaction-feedback,
.global-case-feedback {
  margin: 0 18px 18px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(15, 118, 110, .10);
  color: var(--text-secondary);
  line-height: 1.55;
}

.interactive-panel {
  padding: 22px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}

.interactive-panel h3 {
  margin-bottom: 14px;
  font-size: var(--text-xl);
}

.choice-grid,
.case-grid,
.global-case-grid,
.bridge-grid,
.dont-confuse-grid,
.checklist-grid,
.calc-grid {
  display: grid;
  gap: 12px;
}

.choice-grid,
.case-grid,
.global-case-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.bridge-grid,
.dont-confuse-grid,
.checklist-grid,
.calc-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.choice-btn,
.global-case-card,
.dont-confuse-card,
.bridge-card,
.check-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 14px 16px;
  text-align: left;
  line-height: 1.45;
}

.choice-btn,
.global-case-card {
  cursor: pointer;
  transition: var(--transition-base);
}

.choice-btn:hover,
.global-case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.choice-btn.selected-ok {
  border-color: var(--success);
  background: var(--success-light);
}

.choice-btn.selected-no {
  border-color: var(--error);
  background: var(--error-light);
}

.dont-confuse-card {
  border-left: 4px solid var(--warning);
  color: var(--text-secondary);
}

.bridge-card {
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.bridge-card h4 {
  margin-bottom: 8px;
  font-size: var(--text-lg);
}

.bridge-card p,
.bridge-card small {
  display: block;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.bridge-kicker {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.range-label,
.calc-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 700;
}

.calc-grid input,
.calc-grid select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 0 12px;
  font: inherit;
}

.primary-action,
.inline-link {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-md);
  background: #0f766e;
  color: #fff;
  padding: 0 14px;
  font-weight: 800;
  cursor: pointer;
}

.timeline-strip,
.clue-ladder,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-chip,
.chip-row span {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 8px 12px;
  font-size: var(--text-sm);
}

.flashcard-grid.compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.flashcard.mini {
  height: auto;
  min-height: 130px;
  position: relative;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 16px;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
}

.flashcard.mini .flashcard-front,
.flashcard.mini .flashcard-back {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 0;
  border: 0;
  box-shadow: none;
  text-align: left;
  transform: none;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.flashcard.mini .flashcard-back {
  display: none;
  background: transparent;
  color: var(--text-secondary);
  line-height: 1.5;
  animation: none;
}

.flashcard.mini.flipped .flashcard-front {
  display: none;
}

.flashcard.mini.flipped .flashcard-back {
  display: block;
  transform: none;
}

.global-case-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.global-case-card strong {
  display: block;
  margin-bottom: 8px;
}

.global-case-card small {
  color: var(--text-secondary);
  line-height: 1.4;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.premium-table caption {
  caption-side: top;
  padding: 0 0 10px;
  color: var(--text-primary);
  font-weight: 800;
  text-align: left;
}

/* Tabelas longas devem rolar dentro do bloco, nunca alargar a rota inteira. */
.table-wrap {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
}

.premium-table {
  min-width: min(760px, 100%);
}

/* =========================================
   PROMPT 3 — REFINAMENTO PREMIUM
   Leitura guiada + SVGs autorais + ritmo cognitivo
   ========================================= */

.prompt3-page {
  --prompt3-surface: color-mix(in srgb, var(--prompt3-accent, #0f766e) 7%, var(--bg-card));
  --prompt3-line: color-mix(in srgb, var(--prompt3-accent, #0f766e) 38%, var(--border-color));
}

.prompt3-reading-card {
  max-width: 880px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--prompt3-line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.52)),
    var(--prompt3-surface);
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .prompt3-reading-card {
  background:
    linear-gradient(135deg, rgba(15,23,42,.86), rgba(15,23,42,.58)),
    var(--prompt3-surface);
}

.prompt3-reading-card p {
  margin: 0 0 18px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1vw + .78rem, 1.12rem);
  line-height: 1.88;
}

.prompt3-clinical-kicker {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--prompt3-accent, #0f766e);
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.prompt3-reading-card h3 {
  margin: 0 0 14px;
  color: var(--text-primary);
  font-size: clamp(1.18rem, 1vw + .95rem, 1.45rem);
  line-height: 1.25;
}

.prompt3-reading-card h3:not(:first-of-type) {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--prompt3-line);
}

.prompt3-reading-card .prompt3-turning-point {
  margin: 22px 0;
  padding: 4px 0 4px 16px;
  border-left: 4px solid var(--prompt3-accent, #0f766e);
  color: var(--text-primary);
}


.prompt3-reading-card p:last-child { margin-bottom: 0; }
.prompt3-reading-card strong { color: var(--text-primary); }

.prompt3-preserved-points {
  max-width: 880px;
  margin: 14px 0 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  overflow: hidden;
}

.prompt3-preserved-points summary {
  cursor: pointer;
  padding: 14px 18px;
  color: var(--text-primary);
  font-weight: 800;
}

.prompt3-preserved-points .styled-list {
  padding: 0 20px 18px;
}

.prompt3-visual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, .7fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.prompt3-visual-note,
.prompt3-proof-card,
.prompt3-interaction-intro {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-sm);
}

.prompt3-visual-note {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.prompt3-visual-note h3,
.prompt3-proof-card h3 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: var(--text-lg);
}

.prompt3-visual-note p,
.prompt3-proof-card p,
.prompt3-interaction-intro {
  color: var(--text-secondary);
  line-height: 1.68;
}

.prompt3-svg-card {
  background:
    radial-gradient(circle at 18% 12%, color-mix(in srgb, var(--prompt3-accent, #0f766e) 18%, transparent), transparent 34%),
    var(--bg-card);
}

.prompt3-svg .svg-concept-label {
  font: 800 20px var(--font-body);
  fill: var(--text-primary);
}

.prompt3-svg .svg-concept-label:first-of-type {
  font-size: 28px;
}

.prompt3-hotspot {
  width: 28px;
  height: 28px;
  border-color: rgba(255,255,255,.88);
  background: color-mix(in srgb, var(--prompt3-accent, #0f766e) 78%, #0f172a);
  font-size: 1rem;
}

.prompt3-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.08);
}

.prompt3-hotspot:focus-visible {
  transform: translate(-50%, -50%) scale(1.08);
}

.prompt3-interaction-intro {
  margin: 0 0 12px;
  padding: 14px 16px;
}

.prompt3-synthesis-grid {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 16px;
  margin-bottom: 22px;
}

.prompt3-proof-card {
  padding: 20px;
}

.prompt3-dont-confuse .dont-confuse-grid {
  grid-template-columns: 1fr;
}

.prompt3-rhythm-lab .prompt3-visual-grid,
.prompt3-rhythm-procedure .prompt3-visual-grid {
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.35fr);
}

.prompt3-rhythm-simulation .prompt3-reading-card,
.prompt3-rhythm-case .prompt3-reading-card {
  max-width: 980px;
}

@media (max-width: 900px) {
  .main-content {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .page-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .prompt3-visual-grid,
  .prompt3-rhythm-lab .prompt3-visual-grid,
  .prompt3-rhythm-procedure .prompt3-visual-grid,
  .prompt3-synthesis-grid {
    grid-template-columns: 1fr;
  }

  .prompt3-svg .svg-concept-label {
    font-size: 18px;
  }

  .prompt3-hotspot {
    width: 22px;
    height: 22px;
    font-size: .78rem;
  }
}

@media (min-width: 901px) {
  .main-content {
    flex: 0 0 calc(100% - var(--sidebar-width) - var(--sidebar-margin) - var(--sidebar-margin)) !important;
    width: calc(100% - var(--sidebar-width) - var(--sidebar-margin) - var(--sidebar-margin)) !important;
    max-width: calc(100% - var(--sidebar-width) - var(--sidebar-margin) - var(--sidebar-margin)) !important;
    min-width: 0 !important;
  }

  body.sidebar-compact .main-content {
    flex-basis: calc(100% - var(--sidebar-width-compact) - var(--sidebar-margin) - var(--sidebar-margin)) !important;
    width: calc(100% - var(--sidebar-width-compact) - var(--sidebar-margin) - var(--sidebar-margin)) !important;
    max-width: calc(100% - var(--sidebar-width-compact) - var(--sidebar-margin) - var(--sidebar-margin)) !important;
  }
}

@media (max-width: 520px) {
  .prompt3-reading-card {
    padding: 20px;
  }

  .prompt3-reading-card p {
    font-size: 1rem;
    line-height: 1.78;
  }
}

@media (max-width: 640px) {
  .hotspot-dot {
    width: 30px;
    height: 30px;
    font-size: .75rem;
  }

  .svg-title {
    font-size: 24px;
  }

  .module-card {
    min-height: 160px;
  }
}
