/* ═══════════════════════════════════════════════════
   DebtView — tutorial.css
   Sistema de tour interativo com spotlight
   ═══════════════════════════════════════════════════ */

/* ── OVERLAY ESCURO ──────────────────────────────── */
.tut-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  transition: opacity 0.35s ease;
  opacity: 0;
}
.tut-backdrop.visible { opacity: 1; pointer-events: all; }

/* SVG que cobre tudo e tem buraco no spotlight */
.tut-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9001;
  pointer-events: none;
}

/* ── SPOTLIGHT RING ──────────────────────────────── */
.tut-ring {
  position: fixed;
  border-radius: inherit;
  z-index: 9002;
  pointer-events: none;
  box-shadow: 0 0 0 4px rgba(245,166,35,0.6), 0 0 0 8px rgba(245,166,35,0.2);
  transition: all 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  opacity: 0;
}
.tut-ring.visible { opacity: 1; }

/* ── TOOLTIP ─────────────────────────────────────── */
.tut-tooltip {
  position: fixed;
  z-index: 9010;
  width: 320px;
  background: #15151a;
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 18px;
  padding: 0;
  box-shadow:
    0 32px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(245,166,35,0.08),
    inset 0 1px 0 rgba(255,255,255,0.04);
  opacity: 0;
  transform: scale(0.92) translateY(10px);
  transition: all 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
}
.tut-tooltip.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: all;
}

/* Seta */
.tut-tooltip::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #15151a;
  border: 1px solid rgba(245,166,35,0.3);
  transform: rotate(45deg);
  z-index: -1;
}
.tut-tooltip[data-arrow="top"]::before    { top: -7px;    left: 28px; border-bottom: none; border-right: none; }
.tut-tooltip[data-arrow="bottom"]::before { bottom: -7px; left: 28px; border-top: none;    border-left: none;  }
.tut-tooltip[data-arrow="left"]::before   { left: -7px;   top: 24px;  border-top: none;    border-right: none; }
.tut-tooltip[data-arrow="right"]::before  { right: -7px;  top: 24px;  border-bottom: none; border-left: none;  }
.tut-tooltip[data-arrow="none"]::before   { display: none; }

/* Header do tooltip */
.tut-header {
  padding: 18px 20px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.tut-emoji {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(245,166,35,0.4));
}
.tut-titles { flex: 1; }
.tut-step-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber, #f5a623);
  margin-bottom: 3px;
}
.tut-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: #eaeaf0;
  line-height: 1.1;
}

/* Body */
.tut-body {
  padding: 12px 20px 0;
  font-size: 13.5px;
  color: #9090a8;
  line-height: 1.65;
}
.tut-body strong { color: #eaeaf0; font-weight: 600; }
.tut-body em     { color: var(--amber, #f5a623); font-style: normal; font-weight: 500; }
.tut-body .tut-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: rgba(245,166,35,0.07);
  border: 1px solid rgba(245,166,35,0.15);
  border-radius: 8px;
  font-size: 12px;
  color: #c4a040;
}
.tut-body .tut-tip svg { flex-shrink: 0; margin-top: 1px; }

/* Progresso */
.tut-progress {
  display: flex;
  gap: 5px;
  padding: 14px 20px 0;
}
.tut-dot {
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: rgba(245,166,35,0.15);
  transition: background 0.3s ease, transform 0.3s ease;
}
.tut-dot.done    { background: rgba(245,166,35,0.5); }
.tut-dot.current { background: var(--amber, #f5a623); transform: scaleY(2); }

/* Footer */
.tut-footer {
  padding: 16px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.tut-btn-skip {
  font-size: 12px;
  color: #686878;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  padding: 0;
  transition: color 0.2s;
}
.tut-btn-skip:hover { color: #9090a8; }

.tut-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.tut-btn-prev {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #9090a8;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.tut-btn-prev:hover { background: rgba(255,255,255,0.05); color: #eaeaf0; }
.tut-btn-prev:disabled { opacity: 0.3; cursor: default; }

.tut-btn-next {
  padding: 8px 18px;
  border-radius: 9px;
  border: none;
  background: var(--amber, #f5a623);
  color: #0d0d0f;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.tut-btn-next:hover {
  background: #ffd166;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

/* ── BOTÃO FLUTUANTE DE AJUDA (!) ─────────────────── */
.tut-fab {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 8000;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(21,21,26,0.96);
  border: 1.5px solid rgba(245,166,35,0.45);
  color: var(--amber, #f5a623);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.55);
  transition: all 0.22s;
  backdrop-filter: blur(10px);
  user-select: none;
}
.tut-fab:hover {
  transform: scale(1.12);
  border-color: var(--amber, #f5a623);
  box-shadow: 0 8px 28px rgba(245,166,35,0.28);
}
@media (max-width: 768px) {
  .tut-fab         { bottom: 88px; right: 16px; }
  .tut-tooltip     { width: calc(100vw - 32px); max-width: 340px; }
  .tut-fab-popover { right: 10px; bottom: 130px; }
}

/* ── PULSE ───────────────────────────────────────── */
.tut-fab.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(245,166,35,0.5);
  animation: fabPulse 2.2s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* ── POPOVER "NÃO VER MAIS" ──────────────────────── */
.tut-fab-popover {
  position: fixed;
  bottom: 70px;
  right: 24px;
  z-index: 8001;
  background: #15151a;
  border: 1px solid rgba(245,166,35,0.22);
  border-radius: 14px;
  padding: 12px 14px;
  width: 210px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.65);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transition: all 0.2s cubic-bezier(0.34,1.4,0.64,1);
}
.tut-fab-popover.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}
.tut-fab-popover::after {
  content: '';
  position: absolute;
  bottom: -6px; right: 12px;
  width: 10px; height: 10px;
  background: #15151a;
  border-right: 1px solid rgba(245,166,35,0.22);
  border-bottom: 1px solid rgba(245,166,35,0.22);
  transform: rotate(45deg);
}
.tut-pop-title {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245,166,35,0.7);
  margin-bottom: 8px;
}
.tut-pop-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #9090a8;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}
.tut-pop-btn:hover          { background: rgba(255,255,255,0.04); color: #eaeaf0; }
.tut-pop-btn.danger:hover   { background: rgba(232,53,74,0.08);   color: #e8354a; }
.tut-pop-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 5px 0;
}

/* ── MENU INICIAL DO TUTORIAL ─────────────────────── */
.tut-menu {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,13,15,0.85);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.tut-menu.visible {
  opacity: 1;
  pointer-events: all;
}
.tut-menu-box {
  background: #15151a;
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 24px;
  padding: 36px 40px;
  max-width: 480px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.34,1.4,0.64,1);
}
.tut-menu.visible .tut-menu-box { transform: scale(1); }

.tut-menu-pig {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 20px rgba(245,166,35,0.4));
  animation: piggyFloat 4s ease-in-out infinite;
}
@keyframes piggyFloat {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}
.tut-menu-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 2px;
  color: #eaeaf0;
  margin-bottom: 8px;
}
.tut-menu-sub {
  font-size: 14px;
  color: #9090a8;
  line-height: 1.6;
  margin-bottom: 28px;
}
.tut-menu-btns { display: flex; flex-direction: column; gap: 10px; }
.tut-menu-btn-main {
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: var(--amber, #f5a623);
  color: #0d0d0f;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.tut-menu-btn-main:hover {
  background: #ffd166;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(245,166,35,0.4);
}
.tut-menu-btn-sec {
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: transparent;
  color: #9090a8;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.tut-menu-btn-sec:hover { background: rgba(255,255,255,0.04); color: #eaeaf0; }

.tut-menu-topics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}
.tut-topic-btn {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
  color: #9090a8;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  display: flex; align-items: center; gap: 8px;
}
.tut-topic-btn:hover {
  border-color: rgba(245,166,35,0.3);
  color: var(--amber, #f5a623);
  background: rgba(245,166,35,0.05);
}
.tut-topic-icon { font-size: 18px; flex-shrink: 0; }
