/* FCFVA Wallet Onboarding Styles v1.0 */

/* ── Wizard Overlay ── */
.onb-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.9); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; transition: opacity 0.3s ease;
}
.onb-overlay.onb-visible { opacity: 1; }
.onb-overlay.onb-fade-out { opacity: 0; }

.onb-card {
  background: #0f172a; border: 1px solid #1e293b;
  border-radius: 20px; padding: 28px; max-width: 480px; width: 100%;
  max-height: 85vh; overflow-y: auto; position: relative;
  box-shadow: 0 0 60px rgba(59,130,246,0.15), 0 0 120px rgba(139,92,246,0.08);
}

/* Progress */
.onb-progress {
  height: 3px; background: #1e293b; border-radius: 3px;
  margin-bottom: 20px; overflow: hidden;
}
.onb-progress-fill {
  height: 100%; background: linear-gradient(90deg, #3b82f6, #8b5cf6);
  border-radius: 3px; transition: width 0.4s ease;
}

/* Top bar */
.onb-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.onb-step-count {
  font-size: 11px; color: #64748b; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.onb-topbar-btns { display: flex; gap: 8px; }
.onb-snooze, .onb-close {
  background: none; border: 1px solid #334155; color: #94a3b8;
  padding: 4px 10px; border-radius: 8px; font-size: 11px; cursor: pointer;
  transition: all 0.2s;
}
.onb-snooze:hover { border-color: #f59e0b; color: #f59e0b; }
.onb-close { padding: 4px 8px; border: none; font-size: 16px; }
.onb-close:hover { color: #ef4444; }

/* Icon */
.onb-icon {
  font-size: 48px; text-align: center; margin-bottom: 12px;
  animation: onb-bounce 0.6s ease;
}
@keyframes onb-bounce {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Content */
.onb-title {
  font-size: 22px; font-weight: 700; color: #f1f5f9;
  text-align: center; margin-bottom: 12px;
}
.onb-body {
  font-size: 14px; color: #cbd5e1; line-height: 1.6;
  text-align: center; margin-bottom: 16px;
}
.onb-body strong { color: #f1f5f9; }
.onb-body small { color: #64748b; font-size: 11px; }

.onb-tip {
  background: #1e293b; border-radius: 10px; padding: 10px 14px;
  font-size: 12px; color: #94a3b8; margin-bottom: 16px;
  border-left: 3px solid #3b82f6;
}

/* Wallet options (Step 3) */
.onb-wallet-options { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.onb-wallet-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; background: #1e293b; border: 1px solid #334155;
  border-radius: 12px; text-decoration: none; color: #e2e8f0;
  transition: all 0.2s; text-align: left;
}
.onb-wallet-opt:hover { border-color: #3b82f6; background: #1e293b; transform: translateX(4px); }
.onb-wallet-icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}

/* Features (Step 5) */
.onb-features { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; text-align: left; }
.onb-feat {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 12px; background: #1e293b; border-radius: 10px;
}
.onb-feat > span { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.onb-feat strong { color: #e2e8f0; }

/* Connect CTA */
.onb-connect-btn {
  display: block; width: 100%; padding: 14px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border: none; border-radius: 14px; color: white;
  font-size: 16px; font-weight: 600; cursor: pointer;
  margin: 8px 0 16px; transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(59,130,246,0.3);
}
.onb-connect-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(59,130,246,0.4);
}

/* Navigation */
.onb-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}
.onb-prev, .onb-next, .onb-done {
  background: none; border: 1px solid #334155; color: #94a3b8;
  padding: 8px 18px; border-radius: 10px; font-size: 13px;
  cursor: pointer; font-weight: 500; transition: all 0.2s;
}
.onb-prev:hover, .onb-next:hover { border-color: #3b82f6; color: #3b82f6; }
.onb-done {
  background: #3b82f6; border-color: #3b82f6; color: white;
}
.onb-done:hover { background: #2563eb; }

.onb-dots { display: flex; gap: 6px; }
.onb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #334155; transition: all 0.3s;
}
.onb-dot.active { background: #3b82f6; transform: scale(1.3); }

/* ── Contextual Tooltips ── */
.onb-tooltip-dot {
  position: absolute; top: -4px; right: -4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #3b82f6; cursor: pointer; z-index: 100;
  animation: onb-pulse 2s infinite;
  border: 2px solid #0f172a;
}
.onb-tooltip-dot::after {
  content: '?'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700; color: white;
}
@keyframes onb-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(59,130,246,0); }
}

.onb-tooltip-popup {
  position: absolute; z-index: 200; width: 260px;
  background: #1e293b; border: 1px solid #334155;
  border-radius: 12px; padding: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(8px);
  transition: all 0.2s ease;
}
.onb-tooltip-popup.onb-tooltip-visible { opacity: 1; transform: translateY(0); }
.onb-tooltip-below { top: 100%; left: 0; margin-top: 8px; }
.onb-tooltip-above { bottom: 100%; left: 0; margin-bottom: 8px; }

.onb-tooltip-text {
  font-size: 12px; color: #cbd5e1; line-height: 1.5; margin-bottom: 10px;
}
.onb-tooltip-actions { display: flex; gap: 8px; }
.onb-tooltip-dismiss {
  flex: 1; padding: 6px; background: #3b82f6; border: none;
  border-radius: 8px; color: white; font-size: 11px;
  font-weight: 600; cursor: pointer;
}
.onb-tooltip-snooze-all {
  padding: 6px 10px; background: none; border: 1px solid #334155;
  border-radius: 8px; color: #64748b; font-size: 11px; cursor: pointer;
}
.onb-tooltip-snooze-all:hover { border-color: #f59e0b; color: #f59e0b; }

/* ── Mobile responsiveness ── */
@media (max-width: 480px) {
  .onb-card { padding: 20px; border-radius: 16px; }
  .onb-title { font-size: 18px; }
  .onb-body { font-size: 13px; }
  .onb-icon { font-size: 40px; }
  .onb-tooltip-popup { width: 220px; }
}
