/* ═══════════════════════════════════════════════════════
   J.A. GREEN PULSE — INTERACTIVE TUTORIAL STYLES
   ═══════════════════════════════════════════════════════ */

/* ── Overlay & spotlight ── */
#tut-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  display: none;
}
#tut-overlay.tut-active {
  display: block;
}

#tut-spotlight {
  position: absolute;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
  border: 2px solid rgba(80, 210, 140, 0.8);
  border-radius: 10px;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* ── Tooltip card ── */
#tut-tooltip {
  position: absolute;
  width: 320px;
  background: #0e1a2e;
  border: 1px solid rgba(80, 210, 140, 0.45);
  border-radius: 14px;
  padding: 20px 20px 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(80, 210, 140, 0.12);
  pointer-events: all;
  animation: tutTooltipIn 0.25s ease both;
  z-index: 99999;
}
#tut-tooltip.tut-centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
}

@keyframes tutTooltipIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#tut-tooltip.tut-centered {
  animation: tutTooltipInCentered 0.25s ease both;
}
@keyframes tutTooltipInCentered {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 10px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* ── Step label ── */
#tut-step-label {
  font-family: 'IBM Plex Mono', 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(80, 210, 140, 0.85);
  margin-bottom: 6px;
}

/* ── Title ── */
#tut-title {
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 9px;
  line-height: 1.3;
}

/* ── Body ── */
#tut-body {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 16px;
}
#tut-body strong {
  color: rgba(80, 210, 140, 0.95);
  font-weight: 600;
}

/* ── Progress dots ── */
#tut-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}
.tut-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.tut-dot.active {
  width: 8px;
  height: 8px;
  background: rgba(80, 210, 140, 0.9);
  box-shadow: 0 0 6px rgba(80, 210, 140, 0.5);
}

/* ── Controls row ── */
#tut-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#tut-skip-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  font-family: Inter, sans-serif;
  transition: color 0.15s;
}
#tut-skip-btn:hover {
  color: rgba(255, 255, 255, 0.65);
}
.tut-btn-group {
  display: flex;
  gap: 7px;
}
.tut-btn-back {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  font-family: Inter, sans-serif;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tut-btn-back:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}
.tut-btn-next {
  background: rgba(80, 210, 140, 0.18);
  border: 1px solid rgba(80, 210, 140, 0.5);
  color: rgba(80, 210, 140, 1);
  font-size: 12.5px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tut-btn-next:hover {
  background: rgba(80, 210, 140, 0.28);
  border-color: rgba(80, 210, 140, 0.75);
  box-shadow: 0 0 12px rgba(80, 210, 140, 0.25);
}

/* ── Fade-out animation ── */
#tut-overlay.tut-fade-out {
  animation: tutFadeOut 0.3s ease forwards;
}
@keyframes tutFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════
   OPT-IN TOAST
   ═══════════════════════════════════════════════════════ */
#tut-optin {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 300px;
  background: #0e1a2e;
  border: 1px solid rgba(80, 210, 140, 0.45);
  border-radius: 14px;
  padding: 18px 18px 14px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(80, 210, 140, 0.1);
  z-index: 99995;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.35s ease;
}
#tut-optin.tut-optin-visible {
  transform: translateY(0);
  opacity: 1;
}
.tut-optin-icon {
  font-size: 26px;
  margin-bottom: 8px;
  line-height: 1;
}
.tut-optin-title {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}
.tut-optin-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  margin-bottom: 14px;
}
.tut-optin-btns {
  display: flex;
  gap: 8px;
}
.tut-optin-yes {
  flex: 1;
  background: rgba(80, 210, 140, 0.18);
  border: 1px solid rgba(80, 210, 140, 0.5);
  color: rgba(80, 210, 140, 1);
  font-size: 12.5px;
  font-family: Inter, sans-serif;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.tut-optin-yes:hover {
  background: rgba(80, 210, 140, 0.28);
  border-color: rgba(80, 210, 140, 0.75);
}
.tut-optin-no {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-family: Inter, sans-serif;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.tut-optin-no:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════
   HELP BUTTON (?)
   ═══════════════════════════════════════════════════════ */
#tut-help-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(80, 210, 140, 0.12);
  border: 1.5px solid rgba(80, 210, 140, 0.5);
  color: rgba(80, 210, 140, 0.9);
  font-size: 17px;
  font-weight: 700;
  font-family: Inter, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99990;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
#tut-help-btn:hover {
  background: rgba(80, 210, 140, 0.22);
  border-color: rgba(80, 210, 140, 0.8);
  transform: scale(1.12);
  box-shadow: 0 4px 18px rgba(80, 210, 140, 0.3);
}

/* ── Mobile adjustments ── */
@media (max-width: 480px) {
  #tut-tooltip,
  #tut-tooltip.tut-centered {
    width: calc(100vw - 24px);
    left: 12px !important;
    right: 12px;
    transform: none !important;
    top: auto !important;
    bottom: 80px;
    position: fixed;
  }
  #tut-optin {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 16px;
  }
}
