/* css/components.css */
/* Estilos para os Recursos Interativos do Ebook */

/* ==========================================
   FAIXA DE AVISO EDUCATIVO (DISCLAIMER)
   ========================================== */
.edu-disclaimer {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(90deg, rgba(245,158,11,0.15) 0%, rgba(245,158,11,0.08) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 0.82rem;
  line-height: 1.5;
  padding: 0.5rem 1.25rem;
  text-align: center;
}
.edu-disclaimer strong { color: #fbbf24; }

/* ==========================================
   1. MAPA CORPORAL CLICÁVEL (BODY MAP)
   ========================================== */
.bodymap-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
  align-items: center;
}

/* Palco holográfico do corpo humano (modelo 3D animado) */
.bodymap-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 1rem;
  border-radius: 16px;
  height: 440px;
  perspective: 900px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 92%, rgba(34, 211, 238, 0.22) 0%, transparent 70%),
    radial-gradient(circle at 50% 40%, rgba(0, 230, 118, 0.08) 0%, transparent 65%),
    linear-gradient(180deg, #05131c 0%, #07090f 100%);
  border: 1px solid rgba(34, 211, 238, 0.18);
  cursor: grab;
  touch-action: pan-y;
}
.bodymap-visual:active { cursor: grabbing; }

/* Grade de fundo (piso do holograma) */
.holo-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 80%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 80%, #000 0%, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

/* Figura anatômica (imagem) com giro 3D */
.body-3d {
  position: relative;
  z-index: 2;
  height: 100%;
  display: inline-flex;
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.35));
  transform-style: preserve-3d;
  animation: holoTurn 9s ease-in-out infinite;
}

/* Estado de rotação manual (arrastar): desliga o giro automático */
.body-3d.manual {
  animation: none;
  transition: transform 0.08s linear;
}

.body-img {
  height: 100%;
  width: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Linha de varredura (scanner) sobre a imagem */
.body-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 14%;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(165, 243, 252, 0) 0%,
    rgba(103, 232, 249, 0.45) 50%,
    rgba(165, 243, 252, 0) 100%);
  mix-blend-mode: screen;
  animation: holoScan 3.8s cubic-bezier(.4, 0, .6, 1) infinite;
}

/* Aviso quando a imagem ainda não foi adicionada */
.bodymap-visual.img-missing .body-img { display: none; }
.bodymap-visual.img-missing .body-3d::after {
  content: "Imagem do mapa corporal indisponível";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: #67e8f9;
  font-size: 0.85rem;
  border: 1px dashed rgba(34, 211, 238, 0.4);
  border-radius: 12px;
}

/* Dica de interação */
.holo-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 0.72rem;
  color: #67e8f9;
  background: rgba(5, 19, 28, 0.6);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.4s;
}
.holo-hint.hidden { opacity: 0; }

/* Camada de hotspots sobreposta à imagem (cobre exatamente a figura) */
.organ-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* Hotspots interativos sobre os órgãos */
.organ-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}
.hs-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.6px solid var(--accent);
  animation: hsPulse 2s ease-out infinite;
}
.hs-core {
  position: absolute;
  inset: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1;
  background: rgba(5, 19, 28, 0.78);
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
  transition: var(--transition-normal);
}
.hs-tag {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 600;
  color: #e0fbff;
  background: rgba(5, 19, 28, 0.85);
  border: 1px solid rgba(34, 211, 238, 0.35);
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.organ-hotspot:hover .hs-tag,
.organ-hotspot:focus-visible .hs-tag,
.organ-hotspot.active .hs-tag { opacity: 1; }
.organ-hotspot:hover .hs-core,
.organ-hotspot:focus-visible .hs-core { border-color: var(--accent); }
.organ-hotspot.active .hs-core {
  background: var(--accent);
  border-color: #fff;
  box-shadow: 0 0 14px rgba(0, 200, 255, 0.95);
}
.organ-hotspot.active .hs-pulse { border-width: 2.4px; }

@keyframes holoTurn {
  0%, 100% { transform: rotateY(-7deg); }
  50%      { transform: rotateY(7deg); }
}
@keyframes holoScan {
  0%   { top: -14%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes hsPulse {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(2.3); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .body-3d, .body-scan, .hs-pulse { animation: none !important; }
}

/* Info Panel do Mapa Corporal */
.bodymap-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  gap: 1rem;
}

/* Medidor de exploração (gamificação) */
.explore-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 12px;
}
.explore-meter span { font-size: 0.8rem; color: var(--text-muted); }
.explore-meter strong { font-family: var(--font-title); color: var(--accent); font-size: 1rem; }
.explore-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.explore-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

/* Card de órgão (resultado da seleção) */
.organ-card { animation: cardIn 0.35s ease; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.organ-card ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }
.organ-card li { margin-bottom: 0.4rem; color: var(--text-muted); line-height: 1.55; }
.explore-done {
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  text-align: center;
  color: var(--primary-light);
  background: var(--primary-glow);
  border-radius: 10px;
  font-weight: 600;
}

.bodymap-info h4 {
  font-family: var(--font-title);
  color: var(--primary-light);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bodymap-info-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  min-height: 120px;
}

.bodymap-placeholder-text {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  font-style: italic;
}

/* ==========================================
   2. CARDS DE EFEITOS ADVERSOS (FLIP CARDS)
   ========================================== */
.effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.effect-card-3d {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
}

.effect-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.effect-card-3d:hover .effect-card-inner,
.effect-card-3d.flipped .effect-card-inner {
  transform: rotateY(180deg);
}

.effect-card-front, .effect-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.effect-card-front {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: #fff;
}

.effect-card-front h4 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-light);
}

.effect-card-front .frequency-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 3px 10px;
  border-radius: 20px;
  color: var(--accent);
}

.effect-card-front .flip-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

.effect-card-back {
  background: var(--bg-tertiary);
  color: var(--text-main);
  transform: rotateY(180deg);
  border-color: var(--primary);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: left;
}

.effect-card-back h5 {
  font-family: var(--font-title);
  color: var(--primary-light);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* ==========================================
   3. COMPARADOR DE MEDICAMENTOS
   ========================================== */
.comparator-wrapper {
  margin: 2.5rem 0;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.comparator-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
  background: var(--bg-secondary);
  min-width: 700px;
}

.comparator-table th, .comparator-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.comparator-table th {
  background: var(--bg-tertiary);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
}

.comparator-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.comparator-table tr:last-child td {
  border-bottom: none;
}

.comparator-drug-name {
  font-family: var(--font-title);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
}

.comparator-drug-active {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.badge-efficacy {
  background: rgba(0, 230, 118, 0.1);
  color: var(--primary-light);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.badge-status {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================
   4. INTERACTIVE QUIZ
   ========================================== */
.quiz-box {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
}

.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.quiz-progress-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.quiz-score-badge {
  background: var(--primary-dark);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.quiz-question-text {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.quiz-options-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-option-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.quiz-option-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
  transform: translateX(4px);
}

.quiz-option-btn.selected {
  border-color: var(--accent);
  background: rgba(0, 200, 255, 0.05);
}

.quiz-option-btn.correct {
  border-color: var(--primary) !important;
  background-color: rgba(0, 230, 118, 0.08) !important;
  color: var(--primary-light) !important;
  font-weight: 600;
}

.quiz-option-btn.incorrect {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.08) !important;
  color: #fca5a5 !important;
}

.quiz-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
}

.btn-quiz-next {
  background: var(--primary);
  color: var(--text-inverse);
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-quiz-next:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-primary);
}

.btn-quiz-next:disabled {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.quiz-explanation-box {
  background: rgba(0, 230, 118, 0.03);
  border: 1px solid rgba(0, 230, 118, 0.15);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #a7f3d0;
  animation: fadeIn 0.3s ease;
}

.quiz-explanation-box strong {
  color: #fff;
}

/* Gamification Progress Bar */
.quiz-progress-bar-bg {
  width: 100%;
  height: 8px;
  background-color: var(--bg-tertiary);
  border-radius: 4px;
  margin-top: 1rem;
  overflow: hidden;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  width: 0%;
  transition: width 0.5s ease-in-out;
}

/* Certificado */
.quiz-certificate {
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 200, 255, 0.1));
  border: 2px dashed var(--primary);
  border-radius: 12px;
  max-width: 400px;
  color: var(--text-main);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.2);
}

/* Resultados Finais do Quiz */
.quiz-results-screen {
  text-align: center;
  padding: 1rem 0;
  animation: fadeIn 0.4s ease;
}

.quiz-results-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.quiz-results-title {
  font-family: var(--font-title);
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.quiz-results-score {
  font-size: 1.2rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.quiz-results-feedback {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.btn-quiz-reset {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-title);
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-quiz-reset:hover {
  background: var(--primary);
  color: var(--text-inverse);
  border-color: var(--primary);
}

/* ==========================================
   5. CHECKLIST DE CONTRAINDICAÇÕES / CONSULTA
   ========================================== */
.checklist-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
}

.checklist-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.checklist-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.checklist-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-hover);
}

.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
  margin-top: 2px;
}

.checklist-item-text {
  font-size: 0.9rem;
  color: var(--text-main);
  user-select: none;
}

/* Resultado Dinâmico da Triagem */
.checklist-result-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  font-size: 0.95rem;
  display: none;
  animation: fadeIn 0.3s ease;
}

.checklist-result-box.safe {
  display: block;
  background: rgba(0, 230, 118, 0.05);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: #a7f3d0;
}

.checklist-result-box.warning {
  display: block;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

/* Checklist para Consulta Médica */
.doctor-consultation-box {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
}

.consult-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.consult-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-size: 0.9rem;
}

/* ==========================================
   6. DIÁRIOS INTERATIVOS (BÔNUS)
   ========================================== */
.diary-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .diary-container {
    grid-template-columns: 1fr;
  }
  .bodymap-container {
    grid-template-columns: 1fr;
  }
  .bodymap-visual {
    height: 380px;
  }
}

.diary-form-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.diary-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.diary-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.diary-input {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.diary-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

.diary-btn-submit {
  background: var(--primary);
  color: var(--text-inverse);
  border: none;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

.diary-btn-submit:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-primary);
}

.diary-logs-panel {
  display: flex;
  flex-direction: column;
  height: 320px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--bg-primary);
  padding: 1rem;
}

.diary-logs-heading {
  font-family: var(--font-title);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-clear-logs {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
}

.btn-clear-logs:hover {
  text-decoration: underline;
}

.diary-empty-state {
  margin: auto;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
}

.log-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
  animation: fadeIn 0.3s ease;
}

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

.log-item-date {
  color: var(--text-muted);
}

.log-item-value {
  font-weight: 600;
  color: var(--primary-light);
}

.log-item-tag {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--accent);
}

/* ==========================================
   7. GLOSSARY POPUPS / HIGHLIGHTS
   ========================================== */
.glossary-term {
  border-bottom: 1px dashed var(--primary);
  color: var(--primary-light);
  cursor: help;
  position: relative;
  font-weight: 500;
}

.glossary-term:hover {
  color: #fff;
  border-color: #fff;
}

/* Tooltip CSS — funciona em desktop e mobile (substitui title do browser) */
.glossary-term[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-hover);
  color: var(--text-main);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  width: max-content;
  max-width: 240px;
  white-space: normal;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.15s ease;
}

.glossary-term[data-tooltip]::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--border-hover);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.glossary-term[data-tooltip]:hover::before,
.glossary-term[data-tooltip]:hover::after,
.glossary-term[data-tooltip]:focus::before,
.glossary-term[data-tooltip]:focus::after {
  opacity: 1;
}

/* ==========================================
   8. CALCULADORA DE IMC E TMB
   ========================================== */
.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 16px;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-lg);
}

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

.calculator-results-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.calc-result-title {
  font-family: var(--font-title);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calc-result-value {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0.5rem 0;
}

.calc-result-category {
  font-size: 1.1rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.category-normal { background: rgba(0, 230, 118, 0.15); color: var(--primary-light); }
.category-warning { background: rgba(245, 158, 11, 0.15); color: #fcd34d; }
.category-danger { background: rgba(239, 68, 68, 0.15); color: #fca5a5; }

.calc-result-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.bmi-bar {
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, #3b82f6 20%, #00E676 40%, #f59e0b 60%, #ef4444 80%);
  border-radius: 4px;
  margin-top: 1.5rem;
  position: relative;
}

.bmi-indicator {
  position: absolute;
  top: -6px;
  width: 4px;
  height: 20px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================
   9. SIMULADOR KWIKPEN ANIMADO
   ========================================== */
.pen-simulator-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.kwikpen-container {
  display: flex;
  align-items: center;
  position: relative;
  width: 280px;
  height: 40px;
  transform-style: preserve-3d;
  perspective: 1000px;
  margin: 1rem auto;
}

/* Corpo principal da caneta */
.kwikpen-body {
  width: 60%;
  height: 100%;
  background: linear-gradient(180deg, #f1f5f9 0%, #cbd5e1 50%, #94a3b8 100%);
  border-radius: 8px 0 0 8px;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), inset 0 -2px 5px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

/* Visor de dose */
.kwikpen-display {
  width: 40px;
  height: 24px;
  background: #000;
  border-radius: 4px;
  border: 2px solid #64748b;
  color: var(--primary-light);
  font-family: monospace;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
}

/* Botão rotativo (Dial) */
.kwikpen-dial {
  width: 25%;
  height: 90%;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: 0 6px 6px 0;
  position: relative;
  box-shadow: inset -2px 0 5px rgba(255,255,255,0.1), 0 4px 10px rgba(0,0,0,0.4);
  transition: transform 0.3s ease;
  transform-origin: left center;
}

.kwikpen-dial::after {
  content: '';
  position: absolute;
  top: 0;
  left: 10px;
  width: 2px;
  height: 100%;
  background: rgba(255,255,255,0.2);
  box-shadow: 5px 0 0 rgba(255,255,255,0.2), 10px 0 0 rgba(255,255,255,0.2), 15px 0 0 rgba(255,255,255,0.2);
}

/* Rotação animada do Dial */
.dial-turning {
  animation: turn-dial 0.5s ease;
}

@keyframes turn-dial {
  0% { transform: rotateX(0deg); }
  50% { transform: rotateX(180deg); }
  100% { transform: rotateX(360deg); }
}

/* Agulha */
.kwikpen-needle-base {
  width: 5%;
  height: 50%;
  background: #94a3b8;
  position: absolute;
  left: -5%;
  top: 25%;
  border-radius: 4px 0 0 4px;
  display: none;
}

.kwikpen-needle-tip {
  width: 15%;
  height: 2px;
  background: #cbd5e1;
  position: absolute;
  left: -20%;
  top: calc(50% - 1px);
  display: none;
}

.needle-active .kwikpen-needle-base,
.needle-active .kwikpen-needle-tip {
  display: block;
}

/* =====================================================================
   INTEGRAÇÕES — Auth, Paywall, Captura de Leads (js/integrations.js)
   ===================================================================== */

/* --- Modal de autenticação --- */
.auth-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.auth-modal[hidden] { display: none; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(5, 8, 12, 0.78); backdrop-filter: blur(4px); }
.auth-dialog {
  position: relative; width: min(92vw, 420px);
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 18px; padding: 2rem 1.75rem; box-shadow: var(--shadow-lg);
  animation: authPop 0.25s ease;
}
@keyframes authPop { from { transform: translateY(12px) scale(0.98); opacity: 0; } to { transform: none; opacity: 1; } }
.auth-close {
  position: absolute; top: 0.75rem; right: 0.9rem; background: none; border: none;
  color: var(--text-muted); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.auth-close:hover { color: var(--text-main); }
.auth-dialog h2 { font-family: var(--font-title); color: var(--text-main); margin: 0 0 0.25rem; }
.auth-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1.25rem; }
.auth-dialog form label { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.9rem; }
.auth-dialog form input {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.85rem;
  background: var(--bg-tertiary); border: 1px solid var(--border-color);
  border-radius: 10px; color: var(--text-main); font-size: 1rem;
}
.auth-dialog form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.auth-error { color: #f87171; font-size: 0.85rem; margin: 0 0 0.75rem; }
.btn-auth-submit {
  width: 100%; padding: 0.8rem; border: none; border-radius: 10px; cursor: pointer;
  background: var(--primary); color: var(--text-inverse); font-weight: 600; font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-auth-submit:hover { background: var(--primary-light); }
.btn-auth-submit:disabled { opacity: 0.6; cursor: progress; }
.auth-switch { text-align: center; color: var(--text-muted); font-size: 0.88rem; margin: 1rem 0 0; }
.auth-switch a { color: var(--primary-light); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* --- Paywall sobre o capítulo --- */
.paywall-overlay {
  position: absolute; inset: 0; z-index: 50; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 8vh;
  background: linear-gradient(180deg, rgba(10,15,20,0.55) 0%, var(--bg-primary) 55%);
  backdrop-filter: blur(6px);
}
.article-container { position: relative; }
.paywall-card {
  text-align: center; max-width: 440px; padding: 2.25rem 1.75rem;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 18px; box-shadow: var(--shadow-lg);
}
.paywall-icon { font-size: 2.5rem; }
.paywall-card h2 { font-family: var(--font-title); color: var(--text-main); margin: 0.5rem 0; }
.paywall-card p { color: var(--text-muted); line-height: 1.6; }
.paywall-price { font-family: var(--font-title); font-size: 1.75rem; color: var(--primary-light); margin: 1rem 0; }
.btn-paywall-buy {
  width: 100%; padding: 0.85rem; border: none; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-inverse); font-weight: 700; font-size: 1.05rem;
}
.btn-paywall-buy:disabled { opacity: 0.55; cursor: not-allowed; }
.paywall-note { font-size: 0.85rem; margin-top: 1rem; }
.paywall-note a { color: var(--primary-light); }

/* --- Captura de lead (rodapé da sidebar) --- */
.lead-capture {
  background: var(--bg-tertiary); border: 1px solid var(--border-color);
  border-radius: 12px; padding: 0.9rem; margin-bottom: 1rem;
}
.lead-title { font-size: 0.85rem; color: var(--text-main); margin: 0 0 0.6rem; font-weight: 600; }
.lead-capture input {
  width: 100%; padding: 0.55rem 0.7rem; margin-bottom: 0.5rem;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 8px; color: var(--text-main); font-size: 0.9rem;
}
.lead-capture input:focus { outline: none; border-color: var(--primary); }
.lead-capture button {
  width: 100%; padding: 0.55rem; border: none; border-radius: 8px; cursor: pointer;
  background: var(--primary); color: var(--text-inverse); font-weight: 600; font-size: 0.88rem;
}
.lead-capture button:hover { background: var(--primary-light); }
.lead-msg { font-size: 0.8rem; margin: 0.5rem 0 0; }

/* ==========================================
   NARRADOR DE CAPÍTULOS
   ========================================== */
.narrator-bar {
  position: fixed;
  bottom: 0;
  left: 320px; /* sidebar width */
  right: 0;
  z-index: 100;
  display: none; /* shown via JS */
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 1.5rem;
  background: rgba(10, 15, 20, 0.97);
  border-top: 1px solid rgba(0, 230, 118, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}
@media (max-width: 1024px) {
  .narrator-bar { left: 0; }
}
@media (max-width: 600px) {
  .narrator-bar { flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem 1rem; }
  .narrator-track { order: 3; flex-basis: 100%; }
}

/* Extra bottom padding on article so last content isn't hidden */
.article-container { padding-bottom: 72px; }
/* Quando o narrador está aberto, reserva a altura real da barra (some no mobile) */
body.narrator-open .article-container {
  padding-bottom: calc(32px + var(--narrator-h, 0px));
}

.narrator-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.narrator-icon { font-size: 1.1rem; line-height: 1; }
.narrator-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.narrator-track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.narrator-progress-bg {
  flex: 1;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
}
.narrator-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.narrator-counter {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 3.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.narrator-controls {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}
.narrator-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  line-height: 1.4;
}
.narrator-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.narrator-btn--play {
  background: var(--primary-glow);
  border-color: rgba(0, 230, 118, 0.4);
  color: var(--primary-light);
  font-weight: 600;
}
.narrator-btn--stop:disabled { opacity: 0.35; cursor: not-allowed; }
.narrator-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 0.35rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  max-width: 90px;
}

/* Highlight on currently-read element */
.narrator-reading {
  background: rgba(0, 230, 118, 0.07) !important;
  border-left: 3px solid var(--primary) !important;
  padding-left: 0.6rem !important;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 230, 118, 0.08);
  transition: background 0.25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .narrator-progress-fill { transition: none; }
}

/* ==========================================
   7. COMPONENTE DE VÍDEO (Video Block)
   ========================================== */
.video-block-container {
  margin: 2rem 0 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  overflow: hidden;
}

.video-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.video-player-wrapper:hover .video-thumbnail {
  transform: scale(1.02);
}

/* Estado sem capa: gradiente sutil sobre o fundo preto do wrapper. */
.video-thumbnail--default {
  background-image: linear-gradient(135deg, #1f2937 0%, #0b1220 100%);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.btn-play-video {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 230, 118, 0.9);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.6);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-play-video:hover {
  transform: scale(1.1);
  background: rgba(0, 230, 118, 1);
  border-color: #fff;
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.8);
}

.video-duration {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

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

.video-iframe-container iframe,
.video-iframe-container video {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

.video-metadata {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.video-title {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--primary-light);
}

.video-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ==========================================
   8. AGENTE DE VOZ (WebRTC)
   ========================================== */
/* Dock fixo do agente de voz: agrupa a pílula e o controle de recolher.
   Fica acima do botão de tema e sobe quando o narrador está aberto. */
.voice-agent-dock {
  position: fixed;
  bottom: calc(2rem + 62px + var(--narrator-h, 0px));
  right: 2rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: bottom 0.3s ease;
}

/* Controle de recolher/expandir. Recolhido vira atalho 🎙️; expandido vira ×. */
.btn-voice-collapse {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.2s ease;
}
.btn-voice-collapse:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Estado recolhido: esconde a pílula, deixa só o handle 🎙️ no canto */
.voice-agent-dock.collapsed .btn-voice-agent { display: none; }
.voice-agent-dock.collapsed .btn-voice-collapse {
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  background: var(--bg-secondary);
  color: var(--text-main);
}

.btn-voice-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.btn-voice-agent:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-voice-agent .icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-voice-agent.connecting {
  pointer-events: none;
  opacity: 0.8;
}

.btn-voice-agent.connecting .icon {
  animation: pulse 1s infinite alternate;
}

.btn-voice-agent.active {
  background: rgba(0, 230, 118, 0.1);
  border-color: var(--primary-light);
  color: var(--primary-light);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.3);
}

.btn-voice-agent.active .icon {
  animation: bounce 0.6s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

@media (max-width: 768px) {
  /* Mantém o dock alinhado verticalmente sobre o botão de tema (ambos right: 2rem) */
  .btn-voice-agent { padding: 10px 16px; font-size: 0.9rem; }
}

/* ==========================================
   AÇÕES DO CAPÍTULO (Baixar / Compartilhar PDF)
   ========================================== */
.chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}
.chapter-action-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.chapter-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ==========================================
   PAINEL DO LEITOR (DASHBOARD)
   ========================================== */
.dash { display: flex; flex-direction: column; gap: 1.25rem; }

.dash-back {
  align-self: flex-start;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}
.dash-back:hover { border-color: var(--accent); color: var(--accent); transform: translateX(-3px); }

.dash-hero h1 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.dash-date { color: var(--text-muted); font-size: 0.9rem; }

.dash-card {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow-lg);
}
.dash-card h3 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.dash-bar {
  height: 10px;
  background: var(--bg-tertiary);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.dash-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
}

.dash-suggestions { display: flex; flex-direction: column; gap: 0.6rem; }
.dash-suggestion {
  text-align: left;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
}
button.dash-suggestion:hover {
  border-color: var(--primary);
  transform: translateX(3px);
}
.dash-suggestion--done { cursor: default; }

.dash-name-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dash-name-form input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-body);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}
.dash-name-form input:focus { outline: none; border-color: var(--primary); }
.dash-name-form button {
  background: var(--primary);
  color: var(--text-inverse);
  border: none;
  font-weight: 700;
  font-family: var(--font-body);
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
}

.dash-help-list { list-style: none; margin: 0.5rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.dash-help-list a { color: var(--accent); text-decoration: none; font-weight: 600; }
.dash-help-list a:hover { text-decoration: underline; }
.dash-help-note { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.5rem; }

