/* Modal de tutorial passo a passo (Home e Controle de Obrigações). Usa as variáveis --pba-* do tema. */
/* ── Modal de tutorial ── */
.tut-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 1090;
  background: rgba(12,17,29,.5);
  backdrop-filter: blur(5px);
  align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .2s ease;
}
.tut-overlay.open { display: flex; }
.tut-overlay.show { opacity: 1; }

.tut-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%; max-width: 540px; max-height: 88vh;
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.tut-overlay.show .tut-modal { transform: translateY(0) scale(1); opacity: 1; }

.tut-head {
  background: linear-gradient(120deg, #2E374C, #0C111D);
  color: #fff;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.tut-head-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.tut-head-title i { color: var(--pba-orange); }
.tut-close {
  background: rgba(255,255,255,.14); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; cursor: pointer;
  transition: background .18s ease;
}
.tut-close:hover { background: rgba(255,255,255,.26); }

.tut-progress-wrap { padding: 14px 20px 0; }
.tut-progress-label { font-size: 11.5px; font-weight: 700; color: var(--pba-gray-body); text-transform: uppercase; letter-spacing: .03em; }
.tut-progress-track {
  margin-top: 6px;
  height: 4px; border-radius: 999px;
  background: #EEEEEE;
  overflow: hidden;
}
.tut-progress-fill {
  height: 100%;
  background: var(--pba-orange);
  border-radius: 999px;
  width: 0%;
  transition: width .35s cubic-bezier(.2,.8,.2,1);
}

.tut-body { padding: 20px; overflow-y: auto; min-height: 190px; }
.tut-step { display: flex; gap: 14px; align-items: flex-start; }
.tut-step.tut-anim-fwd { animation: tut-slide-fwd .3s cubic-bezier(.2,.8,.2,1) both; }
.tut-step.tut-anim-back { animation: tut-slide-back .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes tut-slide-fwd {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes tut-slide-back {
  from { opacity: 0; transform: translateX(-22px); }
  to   { opacity: 1; transform: translateX(0); }
}

.tut-step-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: rgba(255,106,0,.1);
  color: var(--pba-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.tut-step-title { font-weight: 700; color: var(--pba-dark-heading); font-size: 14.5px; margin-bottom: 4px; }
.tut-step-desc { font-size: 13.5px; color: var(--pba-gray-body); line-height: 1.55; }

/* Tutoriais com imagens (telas reais): janela mais larga */
.tut-modal.wide { max-width: 880px; }
.tut-step-text { min-width: 0; flex: 1; }
.tut-list { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--pba-gray-body); line-height: 1.55; }
.tut-list li { margin-bottom: 3px; }
.tut-list b, .tut-step-desc b { color: var(--pba-dark-heading); }
.tut-note { margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: #FFF3EA; border: 1px solid #F5DCC8;
  color: #8A4B0A; font-size: 12.5px; line-height: 1.5; }
.tut-figure { margin: 12px 0 0; }
.tut-img { display: block; width: 100%; border: 1px solid #E5E5E5; border-radius: 10px; cursor: zoom-in;
  box-shadow: 0 4px 14px rgba(0,0,0,.08); background: #fff; }
.tut-figure figcaption { font-size: 11.5px; color: var(--pba-gray-body); margin-top: 4px; }

.tut-foot {
  padding: 12px 18px;
  border-top: 1px solid #E5E5E5;
  display: flex; justify-content: flex-end; gap: 10px;
}
.tut-btn {
  border-radius: 8px; padding: 8px 18px;
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: 1px solid #D9DBDF;
  background: #fff; color: var(--pba-dark-heading);
  transition: border-color .18s ease, color .18s ease, opacity .18s ease;
}
.tut-btn-secondary:hover { border-color: var(--pba-orange); color: var(--pba-orange); }
.tut-btn-secondary:disabled { opacity: 0; pointer-events: none; }
.tut-btn-primary {
  background: linear-gradient(135deg, #FF6A00, #E85F00);
  border: none; color: #fff;
}
.tut-btn-primary:hover { filter: brightness(1.05); }

@media (prefers-reduced-motion: reduce) {
  .tut-step.tut-anim-fwd, .tut-step.tut-anim-back { animation: none !important; }
  .tut-overlay, .tut-modal, .tut-progress-fill { transition: none !important; }
}
