/* ================================================================
   NUTRIFLOW — ONBOARDING & ASSESSMENT FLOW
   Cosmic Violet / Dark Liquid Glass Theme
   ================================================================ */

/* ── Container & Shell ────────────────────────────────────────── */
#onboardingContainer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000000;
  color: #FFFFFF;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0;
  margin: 0;
}

.ob-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-sizing: border-box;
  padding: 24px 20px 48px 20px;
  background: #000000;
}

@media (min-width: 600px) {
  #onboardingContainer {
    background: radial-gradient(circle at 50% 10%, #170d2b 0%, #06040a 100%);
    padding: 30px 0 60px 0;
  }
  .ob-shell {
    min-height: 800px;
    height: auto;
    border-radius: 36px;
    background: #090614;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(168, 85, 247, 0.12);
    overflow: visible;
    margin: 20px auto 40px auto;
  }
}

/* ── Top Navigation Bar ──────────────────────────────────────── */
.ob-top-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
  min-height: 36px;
}

.ob-back-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ob-back-btn:hover {
  opacity: 0.8;
  transform: scale(1.08);
}

.ob-back-btn:active {
  transform: scale(0.92);
}

.ob-progress-track {
  flex: 1;
  height: 4px;
  background: #1b152d;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.ob-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #8B5CF6 0%, #C084FC 100%);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
  border-radius: 99px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Headings & Subtitles ────────────────────────────────────── */
.ob-header {
  margin-bottom: 28px;
}

.ob-title {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.ob-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  color: #A39DBB;
}

.ob-note-badge {
  font-size: 13px;
  font-style: italic;
  color: #8E88A8;
  margin-top: 6px;
}

/* ── Step Container & View Transitions ──────────────────────── */
.ob-step-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: obSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes obSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ob-step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Bottom Actions ──────────────────────────────────────────── */
.ob-bottom-actions {
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-btn-primary {
  width: 100%;
  height: 56px;
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%);
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 99px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ob-btn-primary:hover {
  background: linear-gradient(135deg, #A855F7 0%, #8B5CF6 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(168, 85, 247, 0.5);
}

.ob-btn-primary:active {
  transform: scale(0.98);
}

.ob-btn-primary:disabled {
  background: #231d36;
  color: #6b6385;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.ob-btn-link {
  background: none;
  border: none;
  color: #A39DBB;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  padding: 8px;
  transition: color 0.2s ease;
}

.ob-btn-link span {
  color: #C084FC;
  font-weight: 600;
}

.ob-btn-link:hover {
  color: #FFFFFF;
}

/* ── Radio & Selectable Cards (IMG_6862, 6864, 6868, 6871, 6872, etc.) ── */
.ob-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ob-card-option {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  background: #110d22;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  user-select: none;
}

.ob-card-option:hover {
  background: #191430;
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateY(-1px);
}

.ob-card-option.selected {
  background: rgba(139, 92, 246, 0.12);
  border-color: #A855F7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.ob-card-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  flex-shrink: 0;
  color: #C084FC;
}

.ob-card-option.selected .ob-card-icon {
  background: rgba(168, 85, 247, 0.25);
  color: #FFFFFF;
}

.ob-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ob-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #FFFFFF;
}

.ob-card-desc {
  font-size: 13px;
  color: #8E88A8;
  line-height: 1.35;
}

.ob-radio-indicator {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #3d345a;
  margin-left: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.ob-card-option.selected .ob-radio-indicator {
  border-color: #A855F7;
  background: #A855F7;
}

.ob-card-option.selected .ob-radio-indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* Multi-select checkmark */
.ob-card-option.multi.selected .ob-radio-indicator::after {
  content: '✓';
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  width: auto;
  height: auto;
  line-height: 1;
}

/* ── Segmented Unit Switcher (kg/lbs, ft,in/cm) ────────────────── */
.ob-unit-toggle {
  display: inline-flex;
  align-self: center;
  background: #140f26;
  padding: 4px;
  border-radius: 99px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  margin-bottom: 24px;
}

.ob-unit-btn {
  background: none;
  border: none;
  color: #8E88A8;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ob-unit-btn.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(124, 58, 237, 0.6) 100%);
  color: #FFFFFF;
  border: 1px solid rgba(168, 85, 247, 0.5);
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.35);
}

/* ── Interactive Tick Ruler (Weight & Target Weight: IMG_6867, 6869) ── */
.ob-ruler-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0 30px 0;
  width: 100%;
}

.ob-ruler-status-label {
  font-size: 14px;
  font-weight: 500;
  color: #A39DBB;
  margin-bottom: 8px;
  text-transform: capitalize;
}

.ob-ruler-value-display {
  font-size: 46px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: -0.5px;
}

.ob-ruler-value-unit {
  font-size: 20px;
  font-weight: 600;
  color: #8E88A8;
}

.ob-ruler-viewport {
  position: relative;
  width: 100%;
  height: 100px;
  overflow-x: scroll;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
}

.ob-ruler-viewport::-webkit-scrollbar {
  display: none;
}

.ob-ruler-viewport:active {
  cursor: grabbing;
}

.ob-ruler-center-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5px;
  height: 75px;
  background: #C084FC;
  border-radius: 4px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.9);
}

.ob-ruler-track {
  display: flex;
  align-items: flex-end;
  height: 70px;
  padding: 0 50%;
  box-sizing: content-box;
}

.ob-tick {
  width: 12px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.ob-tick-line {
  width: 1.5px;
  background: #2a2240;
  border-radius: 2px;
}

.ob-tick.major .ob-tick-line {
  height: 48px;
  background: #5d5180;
  width: 2px;
}

.ob-tick.half .ob-tick-line {
  height: 32px;
  background: #3e335e;
}

.ob-tick.minor .ob-tick-line {
  height: 20px;
}

/* ── Interactive Date Wheels (IMG_6863) ───────────────────────── */
.ob-date-wheel-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 12px;
  margin: 30px 0;
  width: 100%;
}

.ob-select-box {
  background: #110d22 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C084FC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  color: #FFFFFF;
  padding: 16px 28px 16px 12px;
  font-size: 15px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ob-select-box:focus {
  border-color: #A855F7;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}

/* ── Height Pickers (IMG_6865, 6866) ─────────────────────────── */
.ob-height-display {
  font-size: 46px;
  font-weight: 800;
  color: #FFFFFF;
  text-align: center;
  margin: 16px 0 28px 0;
  letter-spacing: -0.5px;
}

.ob-height-wheel-row {
  display: flex;
  gap: 14px;
  width: 100%;
  margin-bottom: 20px;
}

/* ── Pace / Speed Slider (IMG_6870) ──────────────────────────── */
.ob-pace-value-wrap {
  text-align: center;
  margin: 20px 0 30px 0;
}

.ob-pace-subhead {
  font-size: 14px;
  color: #8E88A8;
  margin-bottom: 8px;
}

.ob-pace-val {
  font-size: 42px;
  font-weight: 800;
  color: #FFFFFF;
}

.ob-slider-wrap {
  position: relative;
  width: 100%;
  margin: 20px 0 32px 0;
}

.ob-range-input {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 99px;
  background: #1c1533;
  outline: none;
}

.ob-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #A855F7;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
  border: 3px solid #0d091e;
  transition: transform 0.15s ease;
}

.ob-range-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.ob-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: #7A7297;
  font-weight: 500;
}

.ob-feedback-card {
  background: #110d22;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 20px;
  margin-top: 10px;
}

.ob-feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ob-feedback-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.ob-rec-pill {
  font-size: 12px;
  font-weight: 600;
  color: #C084FC;
  background: rgba(168, 85, 247, 0.15);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.ob-feedback-desc {
  font-size: 13.5px;
  color: #A39DBB;
  line-height: 1.45;
}

/* ── Screen 13: High-Tech Circular Calculation Screen (IMG_6875) ── */
.ob-calc-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  text-align: center;
}

.ob-calc-ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 30px;
}

.ob-calc-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.ob-calc-bg-circle {
  stroke: #1c1533;
  stroke-width: 10;
  fill: none;
}

.ob-calc-prog-circle {
  stroke: url(#obVioletGrad);
  stroke-width: 10;
  stroke-linecap: round;
  fill: none;
  stroke-dasharray: 471;
  stroke-dashoffset: 471;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.65));
  transition: stroke-dashoffset 0.15s ease-out;
}

.ob-calc-pct-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1px;
}

.ob-calc-checklist-card {
  width: 100%;
  background: #110d22;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 22px 24px;
  text-align: left;
  margin-top: 24px;
}

.ob-calc-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #A39DBB;
  margin-bottom: 16px;
}

.ob-calc-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ob-calc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #554d70;
  transition: color 0.3s ease;
}

.ob-calc-item.active {
  color: #FFFFFF;
}

.ob-calc-item-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #1e1735;
  color: #554d70;
  transition: all 0.3s ease;
}

.ob-calc-item.active .ob-calc-item-icon {
  background: #A855F7;
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

/* ── Screen 14: Final Blueprint Summary (IMG_6876) ───────────── */
.ob-blueprint-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.ob-goal-headline {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  color: #FFFFFF;
}

.ob-goal-headline span {
  color: #C084FC;
}

.ob-chart-card {
  background: #110d22;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 20px;
  position: relative;
}

.ob-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ob-chart-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
}

.ob-chart-badge {
  font-size: 12px;
  font-weight: 600;
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.35);
  padding: 4px 10px;
  border-radius: 99px;
}

.ob-chart-svg-wrap {
  width: 100%;
  height: 110px;
  margin: 10px 0;
}

.ob-chart-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #7A7297;
}

.ob-intake-card {
  background: #110d22;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 22px 20px;
  text-align: center;
}

.ob-intake-sub {
  font-size: 13.5px;
  color: #A39DBB;
  margin-bottom: 6px;
}

.ob-intake-cals {
  font-size: 44px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.ob-intake-cals span {
  font-size: 20px;
  font-weight: 600;
  color: #8E88A8;
}

.ob-macros-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ob-macro-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ob-macro-dot-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #A39DBB;
  font-weight: 500;
}

.ob-macro-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ob-macro-val {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.ob-summary-list-card {
  background: #110d22;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 18px 20px;
}

.ob-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ob-summary-row:last-child {
  border-bottom: none;
}

.ob-summary-key {
  color: #8E88A8;
}

.ob-summary-val {
  color: #FFFFFF;
  font-weight: 600;
}

/* ── Screen 0: Welcome Feature Discovery Carousel (IMG_6859 - 6861) ── */
.ob-carousel-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0 0 0;
  width: 100%;
  overflow: hidden;
}

.ob-carousel-track-wrap {
  overflow: hidden;
  width: 100%;
  flex: 1;
  position: relative;
  display: block;
}

.ob-carousel-track {
  display: flex;
  width: 300%;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.ob-carousel-slide {
  width: 33.333333%;
  flex: 0 0 33.333333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
  box-sizing: border-box;
}

.ob-mockup-frame {
  width: 100%;
  max-width: 320px;
  height: 280px;
  background: radial-gradient(circle at 50% 30%, #1e1538 0%, #0c0817 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.2);
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(168, 85, 247, 0.12);
  position: relative;
  overflow: hidden;
}

.ob-slide-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.28;
  color: #FFFFFF;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.ob-slide-desc {
  font-size: 14.5px;
  color: #A39DBB;
  line-height: 1.45;
  max-width: 320px;
}

.ob-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 8px 0;
}

.ob-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #251e38;
  transition: all 0.3s ease;
  cursor: pointer;
}

.ob-dot.active {
  width: 24px;
  background: linear-gradient(90deg, #8B5CF6 0%, #C084FC 100%);
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* ── Signup Form Embedded on Final Step ────────────────────────── */
.ob-signup-box {
  background: #110d22;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 20px;
  margin-top: 10px;
}

.ob-input-field {
  width: 100%;
  background: #18122d;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  color: #FFFFFF;
  font-size: 15px;
  margin-bottom: 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ob-input-field:focus {
  border-color: #A855F7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.3);
}

.ob-error-msg {
  color: #ff5e7e;
  font-size: 13px;
  text-align: center;
  margin-top: 8px;
}
