/* KG guided tours (staff portal + customer site). */
.kgt-shade {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(8, 26, 49, 0.62);
}

.kgt-spot {
  position: fixed;
  z-index: 3001;
  border-radius: 14px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(8, 26, 49, 0.62), 0 0 0 3px #C9A227;
  transition: left 0.2s ease, top 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.kgt-spot.kgt-wait {
  animation: kgt-pulse 1.4s ease-in-out infinite;
}

@keyframes kgt-pulse {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(8, 26, 49, 0.62), 0 0 0 3px #C9A227; }
  50% { box-shadow: 0 0 0 9999px rgba(8, 26, 49, 0.62), 0 0 0 9px rgba(201, 162, 39, 0.55); }
}

.kgt-card {
  position: fixed;
  z-index: 3002;
  width: min(350px, calc(100vw - 24px));
  background: #fff;
  color: #1A3344;
  border-radius: 16px;
  padding: 1.05rem 1.1rem 0.95rem;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-size: 0.95rem;
  line-height: 1.45;
  overflow: hidden;
}

.kgt-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #1F7A96, #2BA3C4, #C9A227);
}

.kgt-card.kgt-center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(430px, calc(100vw - 24px));
  text-align: center;
  padding: 1.75rem 1.5rem 1.4rem;
}

.kgt-card.kgt-sheet {
  left: 12px !important;
  right: 12px;
  width: auto;
}

.kgt-hero {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  color: #fff;
  background: linear-gradient(135deg, #1F7A96, #2BA3C4);
  box-shadow: 0 0 0 8px #e3f3f8;
}

.kgt-step {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1F7A96;
}

.kgt-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: #0b1f3a;
  margin: 0.2rem 0 0.3rem;
}

.kgt-center .kgt-title {
  font-size: 1.35rem;
}

.kgt-hint {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.7rem;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: #fbf3d9;
  color: #6b5310;
  font-weight: 700;
  font-size: 0.87rem;
}

.kgt-lost {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #7a5300;
}

.kgt-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  flex-wrap: wrap;
}

.kgt-center .kgt-actions {
  justify-content: center;
}

.kgt-grow {
  flex: 1;
}

.kgt-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.45rem 0.9rem;
  min-height: 40px;
  font-weight: 700;
  font-size: 0.92rem;
}

.kgt-btn:focus-visible,
.kgt-pill button:focus-visible {
  outline: 3px solid #C9A227;
  outline-offset: 2px;
}

.kgt-next {
  color: #fff;
  background: linear-gradient(135deg, #1F7A96, #2BA3C4);
}

.kgt-back {
  background: #eef3f6;
  color: #1A3344;
}

.kgt-skip {
  background: none;
  color: #5C7080;
  font-weight: 600;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}

.kgt-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 0.15rem;
}

.kgt-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4e3ea;
}

.kgt-dots span.on {
  background: #1F7A96;
}

.kgt-pill {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 3002;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem 0.4rem 0.85rem;
  border-radius: 999px;
  background: #0b1f3a;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.kgt-pill button {
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  min-height: 34px;
  font-weight: 700;
  background: #C9A227;
  color: #0b1f3a;
}

.kgt-pill button[data-act="end"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .kgt-spot { transition: none; }
  .kgt-spot.kgt-wait { animation: none; }
}
