/* ==========================================================================
   ARYM — Interactive Button Spotlight Tour (Apple Liquid Glass + Driver.js style)
   References:
   - kamranahmedse/driver.js (SVG cutout / spotlight ring + popover callout)
   - Apple Liquid Glass specular rim & refraction (deepika-builds/liquid-glass)
   ========================================================================== */

.arym-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  display: none;
  transition: opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s;
}

.arym-tour-overlay.is-active {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.arym-tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  pointer-events: none;
}

.arym-tour-overlay.is-active .arym-tour-backdrop {
  pointer-events: auto;
}

/* 1. Small Banner Wrapping Around the Target Button (.arym-tour-button-banner) */
.arym-tour-button-banner {
  position: fixed;
  z-index: 9992;
  pointer-events: none;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.14),
    0 0 28px rgba(255, 255, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition:
    top 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.arym-tour-button-badge {
  position: absolute;
  top: -11px;
  left: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
}

/* 2. Directional Arrow SVG Connecting Button Banner -> Separate Callout Frame */
.arym-tour-arrow-svg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9993;
  pointer-events: none;
  overflow: visible;
}

.arym-tour-arrow-path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 2;
  stroke-dasharray: 5 4;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.85));
}

.arym-tour-arrow-head {
  fill: #ffffff;
}

/* 3. Separate Callout Frame Explaining the Button's Function */
.arym-tour-callout-frame {
  position: fixed;
  z-index: 9994;
  width: min(360px, calc(100vw - 28px));
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(12, 12, 16, 0.86);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  color: #f5f5f7;
  pointer-events: none;
  transition:
    top 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    left 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.arym-tour-overlay.is-active .arym-tour-callout-frame {
  pointer-events: auto;
}

.arym-tour-callout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.arym-tour-step-counter {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5e5ea;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.arym-tour-target-chip {
  font-size: 11px;
  color: #a1a1aa;
  font-family: 'JetBrains Mono', monospace;
}

.arym-tour-callout-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.arym-tour-callout-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: #d4d4d8;
}

.arym-tour-callout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.arym-tour-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arym-tour-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #f5f5f7;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.arym-tour-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.32);
}

.arym-tour-btn.is-primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.arym-tour-btn.is-primary:hover {
  background: #e5e5ea;
}
