/* First-visit welcome modal — feature preview carousel.
   Self-contained: no dependency on style.css variables (works on any page if reused later). */

.wp-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.wp-overlay.show { opacity: 1; pointer-events: auto; }

.wp-modal {
  background: linear-gradient(180deg, #1a1a24 0%, #0f0f17 100%);
  color: #f4f4f5;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.02);
  width: 100%; max-width: 540px;
  max-height: 92vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.wp-overlay.show .wp-modal { transform: translateY(0) scale(1); }

.wp-close {
  position: absolute; top: 12px; right: 14px;
  background: rgba(255,255,255,0.06);
  border: 0; color: #cbd5e1;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.wp-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.wp-stage {
  flex: 1;
  padding: 36px 32px 16px;
  position: relative;
}

.wp-slide {
  display: none;
  animation: wp-fade-in 0.35s ease;
}
.wp-slide.active { display: block; }

@keyframes wp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.wp-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  box-shadow: 0 10px 30px rgba(139, 92, 246, 0.35);
}

.wp-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  text-align: center;
  letter-spacing: -0.01em;
}
.wp-title .wp-new {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #f59e0b);
  color: #fff;
  vertical-align: middle;
  margin-left: 8px;
  transform: translateY(-2px);
}

.wp-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
  text-align: center;
  margin: 0 auto;
  max-width: 420px;
}

.wp-demo {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 18px auto 0;
  max-width: 420px;
  font-family: 'Fira Code', ui-monospace, monospace;
  font-size: 0.82rem;
}
.wp-demo .wp-demo-row { display: flex; align-items: center; gap: 10px; }
.wp-demo .wp-demo-row + .wp-demo-row { margin-top: 8px; }
.wp-demo .wp-arrow { color: #6366f1; }
.wp-demo .wp-long { color: #94a3b8; opacity: 0.85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-demo .wp-short { color: #a78bfa; }
.wp-demo .wp-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(99, 102, 241, 0.18); color: #c7d2fe; font-size: 0.75rem; }
.wp-demo .wp-chip + .wp-chip { margin-left: 6px; }
.wp-demo .wp-safety {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  font-size: 0.78rem;
  font-family: inherit;
}
.wp-demo .wp-safety::before { content: '✓'; font-weight: 700; }

.wp-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 18px 28px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}

.wp-dots {
  display: flex; gap: 7px;
}
.wp-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.wp-dot.active { background: linear-gradient(135deg, #8b5cf6, #ec4899); transform: scale(1.25); }
.wp-dot:hover { background: rgba(255,255,255,0.32); }

.wp-actions { display: flex; gap: 8px; }
.wp-btn {
  border: 0;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, opacity 0.15s ease, background 0.15s ease;
}
.wp-btn:active { transform: translateY(1px); }
.wp-btn-ghost {
  background: transparent;
  color: #94a3b8;
}
.wp-btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.06); }
.wp-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}
.wp-btn-primary:hover { box-shadow: 0 4px 14px rgba(139, 92, 246, 0.55); }

/* Top progress line — visual feedback per slide */
.wp-progress {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.04);
}
.wp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
  width: 20%;
  transition: width 0.3s ease;
}

@media (max-width: 540px) {
  .wp-stage { padding: 32px 20px 12px; }
  .wp-title { font-size: 1.25rem; }
  .wp-controls { padding: 14px 16px 18px; flex-wrap: wrap; }
  .wp-actions { width: 100%; justify-content: flex-end; }
  .wp-icon { width: 56px; height: 56px; font-size: 28px; }
}
