/* tour.css — Makay App Tour
   Spotlight-style guided walkthrough. Loaded once, alongside styles.css.
   Uses the same brand blue (#19378C) and rounded-card language as the
   rest of the app (see .mk-cfm-sheet in ui.js) so it doesn't look bolted on. */

#mkTourClickCatcher {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

/* The "hole" — a box-shadow that covers the entire viewport except a
   cutout the size/shape of the target element. When there's no target
   (fallback / final step) it collapses to a point, dimming everything. */
#mkTourHole {
  position: fixed;
  z-index: 1000001;
  border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(8, 12, 28, 0.64);
  border: 2px solid rgba(255, 255, 255, 0.92);
  outline: 2px solid rgba(25, 55, 140, 0.55);
  outline-offset: 3px;
  pointer-events: none;
  opacity: 0;
  transition:
    top .32s cubic-bezier(.4,0,.2,1),
    left .32s cubic-bezier(.4,0,.2,1),
    width .32s cubic-bezier(.4,0,.2,1),
    height .32s cubic-bezier(.4,0,.2,1),
    border-radius .32s ease,
    opacity .25s ease;
}
#mkTourHole.mk-tour-visible { opacity: 1; }

@keyframes mkTourPulse {
  0%, 100% { outline-color: rgba(25, 55, 140, 0.55); }
  50%      { outline-color: rgba(25, 55, 140, 0.12); }
}
#mkTourHole.mk-pulse { animation: mkTourPulse 1.7s ease-in-out infinite; }

/* Card */
#mkTourCard {
  position: fixed;
  z-index: 1000002;
  width: 92vw;
  max-width: 340px;
  background: #fff;
  border-radius: 20px;
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  font-family: 'Inter', sans-serif;
  color: #222;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity .28s ease,
    transform .28s ease,
    top .32s cubic-bezier(.4,0,.2,1),
    left .32s cubic-bezier(.4,0,.2,1);
}
#mkTourCard.mk-tour-in { opacity: 1; transform: translateY(0); }

/* Centered mode — used for the fallback (no target found) and the
   closing "start selling & buying" card */
#mkTourCard.mk-tour-center {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center;
  max-width: 320px;
}
#mkTourCard.mk-tour-center.mk-tour-in {
  transform: translate(-50%, -50%) !important;
}

.mk-tour-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f2f4f9;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.mk-tour-close:hover { background: #e6e9f3; }

.mk-tour-eyebrow {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #19378C;
  margin: 0 0 0.3rem 0;
}

.mk-tour-title {
  font-family: 'Nunito', 'Fredoka One', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #19378C;
  margin: 0 0 0.35rem 0;
  padding-right: 20px;
}

.mk-tour-body {
  font-size: 0.87rem;
  line-height: 1.45;
  color: #444;
  margin: 0 0 0.9rem 0;
}

.mk-tour-icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef1f9, #d0d8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.65rem;
}
.mk-tour-icon-badge .material-symbols-rounded { color: #19378C; font-size: 24px; }

.mk-tour-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 0.85rem;
}
.mk-tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dfe3ee;
  transition: all .25s ease;
}
.mk-tour-dot.active { width: 16px; border-radius: 4px; background: #19378C; }

.mk-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.mk-tour-skip {
  background: none;
  border: none;
  color: #999;
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
}
.mk-tour-skip:hover { color: #666; }

.mk-tour-btns { display: flex; gap: 0.5rem; margin-left: auto; }

.mk-tour-back {
  background: #f2f4f9;
  color: #19378C;
  border: none;
  border-radius: 22px;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.mk-tour-next {
  background: #19378C;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(25, 55, 140, 0.35);
}
.mk-tour-next:active, .mk-tour-back:active { transform: scale(0.97); }

.mk-tour-cta-btn {
  background: #19378C;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.75rem 1.4rem;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 6px 18px rgba(25, 55, 140, 0.35);
  margin-top: 0.2rem;
}
.mk-tour-cta-secondary {
  background: none;
  border: none;
  color: #19378C;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  padding: 0.6rem 0;
}

@media (prefers-reduced-motion: reduce) {
  #mkTourHole, #mkTourCard { transition: none !important; }
  #mkTourHole.mk-pulse { animation: none !important; }
}
