.tour-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7); /* Dark blue/grey tint */
  z-index: 9998;
  transition: opacity 0.3s ease;
}

/* Prevent absolute/fixed elements from shifting when highlighted */
.dropmenu.tour-highlight,
.profile_details .tour-highlight,
.vas-dropmenu.tour-highlight,
.settings-panel.tour-highlight,
.vas-document-container.tour-highlight,
.create-a-service.tour-highlight {
  background-color: #ffffff !important;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.dropmenu.tour-highlight,
.profile_details .tour-highlight,
.vas-dropmenu.tour-highlight {
  position: absolute !important;
}

.settings-panel.tour-highlight,
.vas-document-container.tour-highlight,
.create-a-service.tour-highlight {
  position: relative !important;
  margin-top: 20px !important;
}

.vas-dropmenu.tour-highlight-context .vas-menu-items-wrapper,
.vas-dropmenu.tour-highlight .vas-menu-items-wrapper {
  overflow: visible !important;
}

/* --- Highlighted Element --- */
.tour-highlight {
  position: relative;
  z-index: 10002 !important;
  border-radius: 12px;
  pointer-events: auto;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.45), 0 20px 50px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  opacity: 1 !important;
  filter: none !important;
}

/* Brighten wallets during tour */
.tour-highlight .wallet-badge {
  background-color: #ffffff !important;
  color: #142a4a !important;
  opacity: 1 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.tour-highlight .active-wallet-card {
  background-color: #142a4a !important;
  color: #ffffff !important;
}

.tour-highlight .wallet-label, 
.tour-highlight .wallet-name {
  opacity: 1 !important;
  color: inherit !important;
}

/* Step-specific "plain" highlight for the wallet creation card. */
.tour-highlight.tour-highlight-plain {
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.55), 0 10px 24px rgba(20, 42, 74, 0.18);
}

.tour-highlight-context {
  z-index: 10001 !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Temporarily disable clashing backgrounds when tour is active */
body.tour-active .wallet-cards-container {
  background: transparent !important;
  box-shadow: none !important;
}

/* Tighten wallets-only highlight */
.operation_container.tour-highlight-wallets-only {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin-bottom: 20px !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
}

.operation_container.tour-highlight-wallets-only .wallet-badge {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.operation_container.tour-highlight-wallets-only .wallet-badge:last-child {
  margin-right: 0 !important;
}

/* Tighten analytics/stats highlight */
#home-stats-graph-section.tour-highlight-stats-tight {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin-top: 20px !important;
  height: auto !important;
  min-height: 0 !important;
}

#home-stats-graph-section.tour-highlight-stats-tight .transactionactivities {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#home-stats-graph-section.tour-highlight-stats-tight .transactionactivities:last-child {
  margin-right: 0 !important;
}

/* Temporary forced side-menu states used by tour steps. */
.side_menu.tour-highlight-context .menu-item {
  width: 205px !important;
  max-width: calc(100% - 12px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.side_menu.tour-highlight-context .menu-item span {
  white-space: nowrap !important;
}

.menu-item.tour-force-inactive {
  background: transparent !important;
  color: #adb4bf !important;
}

.menu-item.tour-force-inactive .menu-item-icon.hm {
  background-position: -20px 0 !important;
}

.menu-item.tour-force-active {
  background: #ffffff !important;
  color: #142a4a !important;
}

.menu-item.tour-force-active .menu-item-icon.hm {
  background-position: 0 0 !important;
}

/* --- Tour Tooltip Box --- */
.tour-tooltip {
  position: fixed;
  width: 320px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.25);
  z-index: 10005;
  transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', sans-serif;
}

.tour-tooltip.tour-tooltip-navsafe {
  border-left: 4px solid #facc15;
}

.tour-tooltip-centered {
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  transition: none !important;
}

.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tour-header h3 { margin: 0; font-size: 16px; color: #1e293b; }
#tour-step-indicator { font-size: 12px; color: #64748b; }
#tour-text { font-size: 14px; color: #475569; line-height: 1.5; margin-bottom: 20px; }

.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-tooltip button {
  cursor: pointer;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
}
.btn-skip { background: transparent; color: #64748b; }
.btn-prev { background: #f1f5f9; color: #1e293b; margin-right: 8px; }
.btn-next { background: #facc15; color: #1e293b; } /* Moolre Yellow */

.tour-launch-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10001;
  border: none;
  border-radius: 999px;
  background: #1e293b;
  color: #fff;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.tour-launch-btn:hover {
  opacity: 0.92;
}

.hidden { display: none !important; opacity: 0; }
