/* ══ ONBOARDING OVERLAY ══ */

.ob-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 8, 12, 0.88);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(6px);
}
.ob-overlay.open { opacity: 1; pointer-events: auto; }

.ob-card {
  background: #141820;
  border: 1px solid #2a3040;
  border-radius: 18px;
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 48px);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.ob-overlay.open .ob-card { transform: translateY(0); }

/* Top bar */
.ob-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 0;
  flex-shrink: 0;
}
.ob-progress-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #3d4a5c;
}
.ob-skip-btn {
  background: none; border: none; cursor: pointer;
  color: #3d4a5c; font-family: 'Barlow', sans-serif;
  font-size: 12px; padding: 4px 8px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.ob-skip-btn:hover { color: #7a8a9b; background: #1a2030; }

/* Progress bar */
.ob-progress-bar-wrap {
  padding: 10px 20px 0;
  flex-shrink: 0;
}
.ob-progress-bar-track {
  height: 3px; background: #1a2030; border-radius: 2px; overflow: hidden;
}
.ob-progress-bar-fill {
  height: 100%; background: #c8f031; border-radius: 2px;
  transition: width 0.3s ease;
}

/* Step content */
.ob-step {
  display: none; flex-direction: column; align-items: center;
  padding: 32px 32px 24px; text-align: center; gap: 0;
  overflow-y: auto;
}
.ob-step.active { display: flex; }
.ob-step::-webkit-scrollbar { width: 4px; }
.ob-step::-webkit-scrollbar-thumb { background: #1f2530; border-radius: 2px; }

.ob-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  background: #1a2030; display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; flex-shrink: 0;
}
.ob-icon-wrap .material-symbols-outlined {
  font-size: 30px; color: #c8f031;
}
.ob-icon-wrap.green .material-symbols-outlined { color: #4ade80; }
.ob-icon-wrap.blue .material-symbols-outlined  { color: #60a5fa; }
.ob-icon-wrap.amber .material-symbols-outlined { color: #fbbf24; }

.ob-step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 900; letter-spacing: 0.5px;
  color: #dce3ed; margin: 0 0 10px; line-height: 1.15;
}
.ob-step-subtitle {
  font-size: 14px; color: #5a6678; margin: 0 0 22px;
  line-height: 1.6; max-width: 380px;
}

/* Feature list */
.ob-feature-list {
  list-style: none; margin: 0 0 22px; padding: 0;
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 8px;
}
.ob-feature-list li {
  display: flex; align-items: flex-start; gap: 10px;
  background: #0e1118; border: 1px solid #1a2030; border-radius: 8px;
  padding: 10px 14px; font-size: 13px; color: #8a9ab0; line-height: 1.45;
}
.ob-feature-list li .material-symbols-outlined {
  font-size: 16px; color: #c8f031; flex-shrink: 0; margin-top: 1px;
}
.ob-feature-list li strong { color: #dce3ed; font-weight: 600; }

/* CSV columns preview */
.ob-csv-cols {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 20px; justify-content: center;
}
.ob-csv-col {
  font-family: 'Barlow Condensed', monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  background: #0e1118; border: 1px solid #2a3040; border-radius: 5px;
  padding: 3px 8px; color: #7a8a9b;
}
.ob-csv-col.required { color: #c8f031; border-color: #c8f03133; }

/* CTA buttons */
.ob-cta-group {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%;
}
.ob-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #c8f031; color: #0d1017; border: none;
  font-family: 'Barlow Condensed', sans-serif; font-size: 14px; font-weight: 800;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 11px 28px; border-radius: 9px; cursor: pointer; width: 100%;
  transition: background 0.15s, opacity 0.15s;
}
.ob-btn-primary:hover { background: var(--accent); }
.ob-btn-primary .material-symbols-outlined { font-size: 17px; }

.ob-btn-secondary {
  background: none; border: none; cursor: pointer;
  color: #3d4a5c; font-family: 'Barlow', sans-serif; font-size: 13px;
  padding: 6px 12px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.ob-btn-secondary:hover { color: #7a8a9b; background: #1a2030; }

/* Tip box */
.ob-tip {
  background: #0e1118; border: 1px solid #1a2030; border-radius: 8px;
  padding: 10px 14px; font-size: 12px; color: #5a6678;
  line-height: 1.5; margin-bottom: 20px; text-align: left; width: 100%;
}
.ob-tip strong { color: #7a8a9b; }

/* Done step checkmarks */
.ob-done-list {
  list-style: none; margin: 0 0 24px; padding: 0;
  width: 100%; text-align: left; display: flex; flex-direction: column; gap: 6px;
}
.ob-done-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #7a8a9b; padding: 2px 0;
}
.ob-done-list li .material-symbols-outlined {
  font-size: 16px; color: #4ade80; flex-shrink: 0;
}

/* Footer */
.ob-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px 18px; border-top: 1px solid #1a2030;
  flex-shrink: 0;
}
.ob-dots {
  display: flex; gap: 6px; align-items: center;
}
.ob-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #1f2530; transition: background 0.2s, width 0.2s;
}
.ob-dot.active { background: #c8f031; width: 18px; border-radius: 3px; }

.ob-nav-btns {
  display: flex; gap: 8px;
}
.ob-btn-back {
  background: none; border: 1px solid #2a3040;
  color: #7a8a9b; font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 7px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.ob-btn-back:hover { border-color: #3d4a5c; color: #dce3ed; }
.ob-btn-next {
  background: #1a2030; border: 1px solid #2a3040;
  color: #dce3ed; font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 7px 16px; border-radius: 7px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ob-btn-next:hover { background: #232d3f; border-color: #3d4a5c; }

/* Responsive */
@media (max-width: 560px) {
  .ob-card { border-radius: 14px 14px 0 0; position: fixed; bottom: 0; width: 100%; max-height: calc(90dvh / var(--zoom-scale, 1)); }
  .ob-overlay { align-items: flex-end; }
  .ob-step { padding: 24px 20px 16px; }
  .ob-step-title { font-size: 22px; }
}
