/* ═══ ONBOARDING TOUR — PREMIUM STYLING ═══ */

.tour-container {
  position: fixed;
  inset: 0;
  z-index: 99990;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-container.active {
  opacity: 1;
  pointer-events: auto;
}

/* ── Backdrop Overlay ── */
.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(1, 3, 12, 0.75);
  backdrop-filter: blur(2px);
  pointer-events: none;
  transition: clip-path 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── Spotlight Cutout ── */
.tour-spotlight {
  position: fixed;
  z-index: 99991;
  pointer-events: none;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(201, 168, 76, 0.6), 
              inset 0 0 10px rgba(201, 168, 76, 0.4);
  border: 2px solid #C9A84C;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  transform-origin: center;
}

/* ── Tooltip Bubble ── */
.tour-tooltip {
  position: absolute;
  z-index: 99992;
  width: 320px;
  background: linear-gradient(135deg, rgba(8, 10, 31, 0.95), rgba(15, 12, 41, 0.95));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 
              0 0 0 1px rgba(255, 255, 255, 0.05),
              inset 0 0 15px rgba(201, 168, 76, 0.05);
  backdrop-filter: blur(12px);
  color: #fff;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  pointer-events: none;
}

.tour-tooltip.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Arrow */
.tour-tooltip::after {
  content: '';
  position: absolute;
  border-width: 8px;
  border-style: solid;
  border-color: transparent;
}

.tour-tooltip[data-placement="bottom"]::after {
  bottom: 100%;
  left: 24px;
  border-bottom-color: rgba(8, 10, 31, 0.95);
}

.tour-tooltip[data-placement="top"]::after {
  top: 100%;
  left: 24px;
  border-top-color: rgba(15, 12, 41, 0.95);
}

.tour-tooltip[data-placement="right"]::after {
  right: 100%;
  top: 24px;
  border-right-color: rgba(8, 10, 31, 0.95);
}

.tour-tooltip[data-placement="left"]::after {
  left: 100%;
  top: 24px;
  border-left-color: rgba(15, 12, 41, 0.95);
}

/* ── Content Elements ── */
.tour-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tour-step-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #C9A84C;
  background: rgba(201, 168, 76, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.tour-skip-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  font-weight: 500;
}

.tour-skip-btn:hover {
  color: #E8C878;
}

.tour-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.tour-body {
  font-size: 13.5px;
  color: rgba(244, 247, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 16px;
}

.tour-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
}

.tour-dots {
  display: flex;
  gap: 6px;
}

.tour-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
}

.tour-dot.active {
  background: #C9A84C;
  transform: scale(1.2);
}

.tour-actions {
  display: flex;
  gap: 8px;
}

.tour-btn {
  all: unset;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}

.tour-btn--back {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.tour-btn--back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.tour-btn--next {
  background: linear-gradient(135deg, #C9A84C, #A48633);
  color: #111;
  box-shadow: 0 4px 10px rgba(201, 168, 76, 0.2);
}

.tour-btn--next:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(201, 168, 76, 0.3);
}

/* Pulse highlight helper */
@keyframes tour-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.4); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(201, 168, 76, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 168, 76, 0); }
}

.tour-highlight-pulse {
  animation: tour-pulse 2s infinite;
}

/* ═══ EMBEDDED MODEL PANEL ═══ */
.embedded-model-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.embedded-model-panel.loading {
  opacity: 0.7;
}

.emb-model-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.emb-model-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

.emb-model-status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.emb-model-status-badge.ready {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.emb-model-status-badge.missing {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.emb-model-status-badge.downloading {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  animation: pulse 1.5s infinite;
}

.emb-model-desc {
  font-size: 12px;
  color: rgba(244, 247, 255, 0.6);
  line-height: 1.4;
  margin-bottom: 8px;
}

.emb-model-specs {
  display: flex;
  gap: 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
}

.emb-model-spec strong {
  color: #E8C878;
}

.emb-model-progress-wrap {
  margin-top: 8px;
  margin-bottom: 8px;
}

.emb-model-progress-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 4px;
}

.emb-model-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #C9A84C, #E8C878);
  width: 0%;
  transition: width 0.1s ease;
}

.emb-model-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.emb-model-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.emb-model-btn {
  all: unset;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

.emb-model-btn--primary {
  background: linear-gradient(135deg, #C9A84C, #A48633);
  color: #111;
  box-shadow: 0 2px 6px rgba(201, 168, 76, 0.2);
}

.emb-model-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(201, 168, 76, 0.3);
}

.emb-model-btn--danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
}

.emb-model-btn--danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
}

