/* ── Rex onboarding tour — Driver.js custom skin ───────────────────────── */

.rex-tour-popover {
  background: rgba(12, 7, 24, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.08),
    0 25px 50px -12px rgba(109, 40, 217, 0.35),
    0 0 80px -20px rgba(139, 92, 246, 0.2);
  padding: 1.75rem 1.75rem 1.25rem;
  min-width: 360px;
  max-width: 420px;
  font-family: 'Inter', sans-serif;
  color: white;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}

/* Title */
.rex-tour-popover .driver-popover-title {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  padding-right: 1.75rem;
}

/* Body */
.rex-tour-popover .driver-popover-description {
  color: rgb(148 163 184);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.5rem;
  overflow: visible;
}

.rex-tour-popover .driver-popover-description img {
  display: block;
  max-width: 100%;
}

/* Footer */
.rex-tour-popover .driver-popover-footer {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  gap: 0.5rem;
}

/* Next / Done button */
.rex-tour-popover .driver-popover-next-btn {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  color: white !important;
  font-weight: 700;
  font-size: 0.8125rem;
  border: none !important;
  border-radius: 0.625rem;
  padding: 0.4375rem 0.875rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.4);
  transition: opacity 0.15s;
}
.rex-tour-popover .driver-popover-next-btn:hover {
  opacity: 0.88;
}

/* Prev button — not used, hide it */
.rex-tour-popover .driver-popover-prev-btn {
  display: none !important;
}

/* Close (×) button */
.rex-tour-popover .driver-popover-close-btn {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  color: rgb(100 116 139);
  font-size: 1rem;
  line-height: 1;
  width: 1.5rem;
  height: 1.5rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  padding: 0 !important;
}
.rex-tour-popover .driver-popover-close-btn:hover {
  color: rgb(203 213 225);
  background: rgba(255, 255, 255, 0.09);
}

/* Arrow */
.rex-tour-popover.driver-popover-arrow-side-top    .driver-popover-arrow { border-top-color:    rgba(139, 92, 246, 0.4); }
.rex-tour-popover.driver-popover-arrow-side-bottom .driver-popover-arrow { border-bottom-color: rgba(139, 92, 246, 0.4); }
.rex-tour-popover.driver-popover-arrow-side-left   .driver-popover-arrow { border-left-color:   rgba(139, 92, 246, 0.4); }
.rex-tour-popover.driver-popover-arrow-side-right  .driver-popover-arrow { border-right-color:  rgba(139, 92, 246, 0.4); }

/* Highlighted element — violet ring */
.driver-active-element {
  outline: 2px solid rgba(139, 92, 246, 0.55) !important;
  outline-offset: 4px;
  border-radius: 0.875rem;
}
