/* ═══════════════════════════════════════════════════════
   1% — Onboarding / Tour Guiado
   Animações estilo Duolingo / iFood
   ═══════════════════════════════════════════════════════ */

/* ─── OVERLAY ─────────────────────────────────────── */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.75);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: auto;
}
.tour-overlay.active { opacity: 1; }
.tour-overlay.closing { opacity: 0; transition: opacity .35s ease; }

/* ─── SPOTLIGHT (buraco no overlay) ───────────────── */
.tour-spotlight {
  position: fixed;
  z-index: 9001;
  border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.72), 0 0 30px 4px rgba(212,255,77,.25);
  transition: all .5s cubic-bezier(.34,1.56,.64,1);
  transform: scale(.92);
  opacity: 0;
}
.tour-spotlight.show {
  transform: scale(1);
  opacity: 1;
}

/* ─── TOOLTIP BUBBLE ──────────────────────────────── */
.tour-tooltip {
  position: fixed;
  z-index: 9002;
  background: var(--surface, #10101a);
  border: 1.5px solid var(--accent, #d4ff4d);
  border-radius: 20px;
  padding: 20px 18px 16px;
  width: 300px;
  opacity: 0;
  transform: translateY(20px) scale(.92);
  transition: all .45s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(212,255,77,.08);
}
.tour-tooltip.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Arrow */
.tour-tooltip::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  background: var(--surface, #10101a);
  border: 1.5px solid var(--accent, #d4ff4d);
  transform: rotate(45deg);
}
.tour-tooltip.arrow-top::after {
  top: -8px;
  left: 50%; margin-left: -7px;
  border-right: none;
  border-bottom: none;
}
.tour-tooltip.arrow-bottom::after {
  bottom: -8px;
  left: 50%; margin-left: -7px;
  border-left: none;
  border-top: none;
}

/* ─── MASCOT ──────────────────────────────────────── */
.tour-mascot {
  position: absolute;
  top: -28px;
  left: 18px;
  width: 52px; height: 52px;
  background: var(--card, #15151f);
  border: 2px solid var(--accent, #d4ff4d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  animation: mascotPop .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes mascotPop {
  0% { transform: scale(0) rotate(-20deg); }
  60% { transform: scale(1.15) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

/* ─── TOOLTIP CONTENT ─────────────────────────────── */
.tour-content {
  margin-top: 6px;
}
.tour-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--accent, #d4ff4d);
  margin-bottom: 6px;
  animation: slideRight .4s .15s both ease;
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}
.tour-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted2, #888898);
  margin-bottom: 14px;
  animation: fadeIn .4s .25s both ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.tour-text strong {
  color: var(--text, #eeeef5);
  font-weight: 700;
}

/* ─── TOUR BUTTON ─────────────────────────────────── */
.tour-btn {
  padding: 12px 28px;
  background: var(--accent, #d4ff4d);
  border: none;
  border-radius: 14px;
  color: #000;
  font-family: var(--font, 'Barlow', sans-serif);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .3px;
  position: relative;
  overflow: hidden;
}
.tour-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(212,255,77,.3);
}
.tour-btn:active {
  transform: scale(.97);
}
/* Ripple on click */
.tour-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.25);
  border-radius: inherit;
  transform: scale(0);
  opacity: 0;
}
.tour-btn:active::after {
  animation: btnRipple .4s ease;
}
@keyframes btnRipple {
  0%   { transform: scale(0); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ─── PROGRESS DOTS ───────────────────────────────── */
.tour-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tour-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border2, #2e2e42);
  transition: all .4s cubic-bezier(.34,1.56,.64,1);
}
.tour-dot.active {
  width: 24px;
  border-radius: 50px;
  background: var(--accent, #d4ff4d);
}
.tour-dot.done {
  background: rgba(212,255,77,.35);
}

/* ─── FULLSCREEN STEP ─────────────────────────────── */
.tour-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}
.tour-fs-inner {
  text-align: center;
  max-width: 340px;
  opacity: 0;
  transform: scale(.85) translateY(30px);
}
.tour-fs-inner.animate {
  animation: fsPopIn .6s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes fsPopIn {
  0%   { opacity: 0; transform: scale(.85) translateY(30px); }
  60%  { opacity: 1; transform: scale(1.03) translateY(-4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.tour-fs-mascot {
  font-size: 72px;
  display: inline-block;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
}
.tour-fs-mascot.bounce {
  animation: mascotBounce 1s cubic-bezier(.34,1.56,.64,1);
}
@keyframes mascotBounce {
  0%   { transform: scale(0) rotate(-15deg); }
  40%  { transform: scale(1.3) rotate(8deg); }
  65%  { transform: scale(.9) rotate(-3deg); }
  85%  { transform: scale(1.08) rotate(1deg); }
  100% { transform: scale(1) rotate(0); }
}

.tour-fs-title {
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 36px;
  letter-spacing: 3px;
  color: var(--accent, #d4ff4d);
  margin-bottom: 10px;
}
.tour-fs-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted2, #888898);
  margin-bottom: 28px;
}
.tour-fs-text strong {
  color: var(--text, #eeeef5);
}
.tour-btn-fs {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
}
.tour-dots-fs {
  justify-content: center;
  margin-bottom: 22px;
}

/* ─── SKIP BUTTON ─────────────────────────────────── */
.tour-skip {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9004;
  background: var(--card2, #1c1c2a);
  border: 1px solid var(--border2, #2e2e42);
  border-radius: 50px;
  padding: 8px 16px;
  color: var(--muted, #666680);
  font-family: var(--font, 'Barlow', sans-serif);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.tour-skip:hover {
  color: var(--text, #eeeef5);
  border-color: var(--muted, #666680);
}
.tour-skip-btn {
  background: none;
  border: none;
  color: var(--muted, #666680);
  font-family: var(--font, 'Barlow', sans-serif);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
  transition: color .2s;
}
.tour-skip-btn:hover {
  color: var(--text, #eeeef5);
}

/* ─── PULSE ANIMATION (target highlight) ──────────── */
.tour-pulse {
  animation: tourPulse 1.5s ease-in-out infinite !important;
  position: relative;
  z-index: 9001;
}
@keyframes tourPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,255,77,.4); }
  50%      { box-shadow: 0 0 0 10px rgba(212,255,77,0); }
}

/* ─── CONFETTI ────────────────────────────────────── */
.tour-confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9005;
  pointer-events: none;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -12px;
  border-radius: 2px;
  opacity: 0;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
  25%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(100vh) rotate(720deg) scale(.5); }
}

/* ─── PROFILE "ME GUIE" BUTTON ────────────────────── */
.guide-btn {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 8px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(212,255,77,.12), rgba(77,200,255,.08));
  border: 1.5px solid rgba(212,255,77,.25);
  border-radius: var(--r2, 20px);
  color: var(--accent, #d4ff4d);
  font-family: var(--font, 'Barlow', sans-serif);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .25s ease;
  letter-spacing: .3px;
}
.guide-btn:hover {
  background: linear-gradient(135deg, rgba(212,255,77,.2), rgba(77,200,255,.12));
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212,255,77,.12);
}
.guide-btn .guide-icon {
  font-size: 20px;
  animation: guideWiggle 2s ease-in-out infinite;
}
@keyframes guideWiggle {
  0%, 80%, 100% { transform: rotate(0); }
  85%  { transform: rotate(-8deg); }
  90%  { transform: rotate(8deg); }
  95%  { transform: rotate(-4deg); }
}
