.introjs-overlay {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 22%),
    radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.12), transparent 18%),
    rgba(15, 23, 42, 0.28) !important;
  opacity: 1 !important;
  z-index: 2147483000 !important;
  backdrop-filter: blur(1.2px) saturate(115%);
}

.introjs-showElement,
.introjs-relativePosition,
tr.introjs-showElement > td,
tr.introjs-showElement > th {
  position: relative !important;
  z-index: 2147483004 !important;
  opacity: 1 !important;
  filter: none !important;
}

.introjs-helperLayer {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.88) !important;
  border-radius: 16px !important;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.22),
    0 0 0 8px rgba(255, 255, 255, 0.08),
    0 20px 45px rgba(2, 6, 23, 0.2),
    0 0 28px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
  z-index: 2147483001 !important;
  transition: all 0.22s ease !important;
}

.introjs-tooltipReferenceLayer {
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 2147483003 !important;
}

.introjs-tooltip {
  direction: rtl;
  text-align: right;
  color: #0f172a !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%) !important;
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.78) !important;
  box-shadow:
    0 26px 70px rgba(15, 23, 42, 0.18),
    0 10px 28px rgba(15, 23, 42, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
  min-width: 300px;
  max-width: 390px;
  z-index: 2147483002 !important;
  visibility: visible !important;
  opacity: 1 !important;
  display: block !important;
  overflow: hidden !important;
}

.introjs-tooltip-header,
.introjs-tooltiptext {
  font-family: inherit;
}

.introjs-tooltip-header {
  padding: 20px 20px 10px !important;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(248, 250, 252, 0.92) 0%, rgba(239, 246, 255, 0.95) 100%) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.75) !important;
}

.introjs-tooltip-title {
  color: #020617 !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
}

.introjs-tooltiptext {
  color: #334155 !important;
  line-height: 2 !important;
  padding: 18px 20px 16px !important;
  font-size: 0.94rem !important;
}

.introjs-tooltipbuttons {
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 14px 16px 16px !important;
  border-top: 1px solid rgba(226, 232, 240, 0.72) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(248, 250, 252, 0.82)) !important;
}

.introjs-button {
  border-radius: 14px !important;
  border: 0 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  padding: 0.56rem 1rem !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, background 0.16s ease !important;
}

.introjs-nextbutton {
  background: linear-gradient(135deg, #0ea5e9, #2563eb 55%, #1d4ed8) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24) !important;
}

.introjs-prevbutton {
  background: rgba(241, 245, 249, 0.95) !important;
  color: #0f172a !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

.introjs-skipbutton,
.introjs-donebutton {
  background: linear-gradient(135deg, #0f172a, #1e293b 60%, #334155) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18) !important;
}

.introjs-button:hover,
.introjs-button:focus {
  transform: translateY(-1px) !important;
}

.introjs-progress {
  height: 6px !important;
  margin: 14px 18px 0 !important;
  border-radius: 999px !important;
  background: rgba(226, 232, 240, 0.82) !important;
}

.introjs-progressbar {
  background: linear-gradient(90deg, #67e8f9, #38bdf8, #2563eb) !important;
  border-radius: 999px !important;
}

.introjs-arrow.top,
.introjs-arrow.top-right,
.introjs-arrow.top-middle {
  border-bottom-color: #eef8ff !important;
}

.introjs-arrow.bottom,
.introjs-arrow.bottom-right,
.introjs-arrow.bottom-middle {
  border-top-color: #fbfdff !important;
}

.introjs-arrow.left,
.introjs-arrow.left-bottom {
  border-right-color: #fbfdff !important;
}

.introjs-arrow.right,
.introjs-arrow.right-bottom {
  border-left-color: #fbfdff !important;
}

@media (max-width: 768px) {
  .introjs-tooltip {
    min-width: 220px;
    max-width: 88vw;
    font-size: 0.85rem;
  }

  #tour-restart-btn {
    position: fixed;
    bottom: 72px;
    left: 12px;
    z-index: 1050;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
  }

  #tour-restart-btn span {
    display: none;
  }
}
