/* ── Onboarding Flow ───────────────────────────────── */
.onboarding-wrapper {
  position: absolute;
  inset: 0;
  background: #08080f;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
}

.onboarding-chrome {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px 8px;
  position: relative;
  flex-shrink: 0;
}

.onboarding-skip {
  position: absolute;
  right: 20px;
  top: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  padding: 4px 8px;
}

.onboarding-skip:hover { color: var(--text); }

.onboarding-progress {
  display: flex;
  gap: 8px;
  align-items: center;
}

.onboarding-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
  transition: all 0.3s ease;
}

.onboarding-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

.onboarding-dot.done {
  background: var(--primary);
  opacity: 0.5;
}

.onboarding-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Welcome screen */
.ob-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 24px 40px;
  min-height: 100%;
}

.ob-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 32px;
}

.ob-logo span { color: var(--primary); }

.ob-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.ob-subtitle {
  font-size: 18px;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 8px;
}

.ob-desc {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 300px;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Demo card */
.ob-card-demo {
  width: 100%;
  max-width: 280px;
  margin-bottom: 40px;
  perspective: 600px;
}

.ob-demo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: obCardFloat 3s ease-in-out infinite;
}

@keyframes obCardFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

.ob-demo-img {
  height: 160px;
  background: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 50%, #1a2a4e 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.ob-demo-price {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  padding: 4px 12px;
  border-radius: 8px;
}

.ob-demo-info { padding: 12px 14px 8px; }

.ob-demo-addr {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.ob-demo-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.ob-demo-arrows {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 14px;
}

.ob-arrow-left, .ob-arrow-right {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
}

.ob-arrow-left {
  background: var(--danger-bg);
  color: var(--danger);
}

.ob-arrow-right {
  background: var(--success-bg);
  color: var(--success);
}

/* Step screens */
.ob-step {
  padding: 16px 24px 40px;
  position: relative;
}

.ob-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.ob-back:hover { color: var(--text); }

.ob-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ob-heading {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
}

.ob-sub {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 28px;
}

.ob-cta {
  margin-top: 28px;
}

.ob-cta i { vertical-align: middle; margin-left: 4px; }

.ob-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 12px;
}

.ob-divider::before, .ob-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Location popular chips */
.ob-popular-label, .ob-quick-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  margin-top: 20px;
}

.ob-popular-grid, .ob-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ob-popular-chip, .ob-quick-chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.ob-popular-chip:hover, .ob-quick-chip:hover {
  border-color: var(--primary);
  color: var(--text);
}

.ob-popular-chip.selected, .ob-quick-chip.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary-light);
}

/* Budget */
.ob-budget-display {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 24px;
  font-family: 'Outfit', sans-serif;
}

.ob-slider-group {
  margin-bottom: 16px;
}

.ob-slider-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  display: block;
}

.ob-range {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--surface);
  border-radius: 3px;
  outline: none;
}

.ob-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #08080f;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.ob-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #08080f;
}

/* Pre-approval */
.ob-preapproval {
  margin-top: 24px;
}

.ob-preapproval-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ob-preapproval-options {
  display: flex;
  gap: 8px;
}

.ob-pa-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.ob-pa-btn:hover {
  border-color: var(--primary);
}

.ob-pa-btn.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary-light);
  font-weight: 600;
}

/* Preferences pills */
.ob-pref-section {
  margin-bottom: 24px;
}

.ob-pref-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ob-pref-sublabel {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.ob-pill-row {
  display: flex;
  gap: 8px;
}

.ob-pill {
  flex: 1;
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.ob-pill:hover {
  border-color: var(--primary);
}

.ob-pill.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary-light);
}

.ob-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ob-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Outfit', sans-serif;
}

.ob-type-card:hover {
  border-color: var(--primary);
}

.ob-type-card.selected {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary-light);
}

.ob-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Done screen */
.ob-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 40px;
  min-height: 100%;
}

.ob-done-icon {
  position: relative;
  margin-bottom: 24px;
}

.ob-done-pulse {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--primary-bg);
  animation: obPulse 2s ease-in-out infinite;
}

@keyframes obPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 0; }
}

.ob-tips {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  margin: 32px 0;
  width: 100%;
  max-width: 280px;
}

.ob-tip {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.ob-cta-final {
  margin-top: auto;
  animation: obCtaPulse 2s ease-in-out infinite;
}

@keyframes obCtaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); }
}


/* ═══════════════════════════════════════════════════════
   Onboarding Progress Card (Buyer Feed)
   ═══════════════════════════════════════════════════════ */
.onboarding-progress-card {
  margin: 0 16px 8px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.04));
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-md);
  position: relative;
  animation: fadeSlideIn 0.3s ease;
}
.onboarding-progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.onboarding-progress-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.onboarding-progress-dismiss {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  border-radius: 4px;
  min-width: 28px;
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboarding-progress-dismiss:active {
  background: rgba(255, 255, 255, 0.05);
}
.onboarding-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.onboarding-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.5s ease;
}
.onboarding-steps {
  display: flex;
  gap: 8px;
}
.onboarding-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s;
  min-width: 0;
}
.onboarding-step:active {
  background: rgba(255, 255, 255, 0.05);
}
.onboarding-step-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-tertiary);
  transition: all 0.3s ease;
}
.onboarding-step.completed .onboarding-step-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.onboarding-step.active .onboarding-step-icon {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}
.onboarding-step-label {
  font-size: 10px;
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}
.onboarding-step.completed .onboarding-step-label {
  color: var(--text-secondary);
}
.onboarding-step.active .onboarding-step-label {
  color: var(--primary-light);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════
   Swipe Tutorial Overlay
   ═══════════════════════════════════════════════════════ */
.swipe-tutorial-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  cursor: pointer;
}
.swipe-tutorial-content {
  text-align: center;
  padding: 32px 24px;
  max-width: 320px;
}
.swipe-tutorial-gestures {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 24px;
}
.swipe-tutorial-gesture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.swipe-tutorial-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.swipe-tutorial-arrow.left {
  background: rgba(255, 68, 88, 0.15);
  border: 2px solid rgba(255, 68, 88, 0.4);
  color: var(--danger);
  animation: tutorialPulseLeft 1.5s ease-in-out infinite;
}
.swipe-tutorial-arrow.right {
  background: rgba(0, 212, 138, 0.15);
  border: 2px solid rgba(0, 212, 138, 0.4);
  color: var(--success);
  animation: tutorialPulseRight 1.5s ease-in-out infinite;
}
.swipe-tutorial-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.swipe-tutorial-hint {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}
.swipe-tutorial-dismiss {
  font-size: 12px;
  color: var(--text-tertiary);
}

@keyframes tutorialPulseLeft {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-6px); }
}
@keyframes tutorialPulseRight {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
