/* ===== INTERACTIVE ONBOARDING ===== */

/* --- Base Layout --- */
.ob {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  overflow-x: hidden;
  position: relative;
}

/* --- Progress Bar --- */
.ob-progress-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gray-100);
  z-index: 100;
}
.ob-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #34d399);
  border-radius: 0 3px 3px 0;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Floating Background Icons --- */
.ob-bg-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ob-bg-icon {
  position: absolute;
  opacity: 0.4;
}
.ob-bg-icon--1 { top: 12%; right: 8%; animation: obFloat 8s ease-in-out infinite; }
.ob-bg-icon--2 { top: 55%; left: 5%; animation: obFloat 10s ease-in-out infinite 1s; }
.ob-bg-icon--3 { top: 30%; left: 12%; animation: obFloat 7s ease-in-out infinite 2s; }
.ob-bg-icon--4 { bottom: 15%; right: 10%; animation: obFloat 9s ease-in-out infinite 0.5s; }

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

/* --- Steps --- */
.ob-step {
  display: none;
  width: 100%;
  max-width: 520px;
  padding: 0 20px;
  animation: obFadeInUp 0.5s ease both;
  position: relative;
  z-index: 1;
}
.ob-step.active { display: flex; }
.ob-step.ob-exit {
  animation: obFadeOutLeft 0.35s ease both;
}

.ob-step-inner {
  width: 100%;
  padding: 24px 0 60px;
}
.ob-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100dvh - 48px);
  padding: 24px 0;
}

@keyframes obFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes obFadeOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-50px); }
}

/* --- Coach Avatar (Intro) --- */
.ob-coach-avatar {
  position: relative;
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent), #059669);
  border-radius: 50%;
  margin-bottom: 28px;
}
.ob-coach-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0.4;
  animation: obPulseRing 2s ease-in-out infinite;
}
@keyframes obPulseRing {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.12); opacity: 0.1; }
}

/* --- Coach Mini (In-step) --- */
.ob-coach-mini {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
}
.ob-coach-mini-av {
  width: 34px; height: 34px;
  min-width: 34px;
  background: linear-gradient(135deg, var(--accent), #059669);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* --- Chat Bubbles --- */
.ob-chat-wrap {
  margin-bottom: 28px;
  max-width: 340px;
}
.ob-chat-bubble {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: 18px 18px 18px 4px;
  padding: 14px 20px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--black);
  animation: obBubbleIn 0.3s ease both;
}
.ob-chat-sm {
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 14px 14px 14px 4px;
}
@keyframes obBubbleIn {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Typing cursor */
.ob-cursor {
  display: inline-block;
  animation: obBlink 0.7s step-end infinite;
  color: var(--accent);
  font-weight: 300;
  margin-left: 1px;
}
.ob-cursor.hidden { display: none; }
@keyframes obBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* --- CTA Button --- */
.ob-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: obBounceIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ob-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,.3);
}
.ob-cta-btn:active { transform: scale(0.97); }
@keyframes obBounceIn {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Social Proof --- */
.ob-social-proof {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  animation: obFadeInUp 0.5s ease 0.2s both;
}
.ob-proof-avatars {
  display: flex;
}
.ob-proof-av {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -8px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.ob-proof-av:first-child { margin-left: 0; }
.ob-proof-text {
  font-size: 13px;
  color: var(--gray-500);
}

/* --- Goal Cards Carousel --- */
.ob-goal-carousel {
  margin-top: 8px;
  padding: 6px;
}
.ob-goal-track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ob-goal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 12px 18px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font: inherit;
  color: var(--black);
  transition: all 0.25s ease;
}
.ob-goal-card:hover {
  border-color: var(--gray-300);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.06);
}
.ob-goal-card.selected {
  border-color: var(--accent);
  background: var(--accent-50);
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}
.ob-goal-card.selected .ob-select-ring {
  transform: scale(1);
  opacity: 1;
}
.ob-select-ring {
  position: absolute;
  inset: -2px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

/* Goal card visuals */
.ob-goal-visual {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.ob-goal-svg {
  width: 80px; height: 80px;
}
.ob-goal-title {
  font-size: 15px;
  font-weight: 700;
}
.ob-goal-desc {
  font-size: 12px;
  color: var(--gray-500);
}

/* SVG Animations */
.ob-flame {
  animation: obFlicker 1.5s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.ob-flame--2 { animation-delay: 0.3s; }
@keyframes obFlicker {
  0% { transform: scaleY(0.9) scaleX(1); opacity: 0.5; }
  100% { transform: scaleY(1.15) scaleX(0.85); opacity: 0.8; }
}

.ob-dumbbell {
  animation: obLift 2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes obLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.ob-heartbeat {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: obDraw 2.5s linear infinite;
}
@keyframes obDraw {
  to { stroke-dashoffset: 0; }
}

.ob-speed {
  animation: obDash 1.5s ease-in-out infinite;
}
.ob-speed--2 { animation-delay: 0.3s; }
.ob-speed--3 { animation-delay: 0.6s; }
@keyframes obDash {
  0% { transform: translateX(0); opacity: 0.4; }
  50% { transform: translateX(8px); opacity: 0.1; }
  100% { transform: translateX(0); opacity: 0.4; }
}

/* Goal dots (mobile) */
.ob-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.ob-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all 0.3s;
}
.ob-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

/* Coach response */
.ob-coach-response {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  animation: obFadeInUp 0.4s ease both;
}

/* --- Activity Level --- */
.ob-activity-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-bottom: 20px;
}

.ob-activity-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 180px;
}
.ob-figure-svg {
  width: 100px;
  height: 140px;
  transition: transform 0.4s ease;
}
.ob-activity-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dark);
  transition: color 0.3s;
  min-height: 28px;
}

/* Slider track */
.ob-slider-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  max-width: 400px;
  position: relative;
  padding: 0 4px;
}
.ob-slider-track::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: var(--gray-100);
  border-radius: 2px;
  z-index: 0;
}
.ob-slider-fill {
  position: absolute;
  top: 10px;
  left: 20px;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  border-radius: 2px;
  z-index: 1;
  transition: width 0.4s ease;
}
.ob-slider-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  z-index: 2;
  min-width: 52px;
}
.ob-slider-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gray-200);
  transition: all 0.3s ease;
  position: relative;
}
.ob-slider-stop.active .ob-slider-dot {
  border-color: var(--accent);
  background: var(--accent);
  transform: scale(1.25);
  box-shadow: 0 0 0 6px rgba(16,185,129,.15);
}
.ob-slider-stop.passed .ob-slider-dot {
  border-color: var(--accent-light);
  background: var(--accent-light);
}
.ob-slider-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  transition: color 0.3s;
  text-align: center;
}
.ob-slider-stop.active .ob-slider-text {
  color: var(--accent-dark);
}

/* --- Back Link --- */
.ob-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  background: none;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.2s;
  padding: 8px 0;
}
.ob-back-link:hover { color: var(--black); }

/* --- Stats Step --- */
.ob-mini-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 24px;
}
.ob-mini-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: all 0.3s;
}
.ob-mini-dot.active {
  background: var(--accent);
  width: 18px;
  border-radius: 3px;
}
.ob-mini-dot.done { background: var(--accent-light); }

.ob-stats-container { position: relative; width: 100%; }

.ob-sub-step {
  display: none;
  animation: obFadeInUp 0.4s ease both;
}
.ob-sub-step.active { display: block; }

.ob-sub-label {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  text-align: center;
}

/* Gender cards */
.ob-gender-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.ob-gender-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px 14px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  transition: all 0.25s ease;
  width: 100px;
}
.ob-gender-card svg { width: 40px; height: 60px; }
.ob-gender-card:hover {
  border-color: var(--gray-300);
  transform: translateY(-2px);
}
.ob-gender-card.selected {
  border-color: var(--accent);
  background: var(--accent-50);
  box-shadow: 0 0 0 4px rgba(16,185,129,.12);
}

/* Number inputs */
.ob-num-input-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.ob-num-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ob-num-value {
  width: 140px;
  text-align: center;
  font: inherit;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--black);
  border: none;
  border-bottom: 3px solid var(--gray-200);
  background: none;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}
.ob-num-value:focus {
  border-bottom-color: var(--accent);
}
.ob-num-value::placeholder {
  color: var(--gray-300);
}
.ob-num-value::-webkit-inner-spin-button,
.ob-num-value::-webkit-outer-spin-button { -webkit-appearance: none; }
.ob-num-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-400);
  margin-top: 4px;
}

/* Sub-step continue button */
.ob-next-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: var(--black);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.ob-next-sub-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* --- Notes Input --- */
.ob-sub-hint {
  font-size: 13px;
  color: var(--gray-400);
  margin: -4px 0 16px;
  text-align: center;
  line-height: 1.5;
}
.ob-notes-input {
  width: 100%;
  min-height: 80px;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  resize: vertical;
  transition: border-color 0.2s;
  margin-bottom: 20px;
}
.ob-notes-input:focus {
  outline: none;
  border-color: var(--accent);
}
.ob-notes-input::placeholder {
  color: var(--gray-400);
}

/* --- Personal Note (results) --- */
.ob-personal-note {
  background: linear-gradient(135deg, var(--accent-50, #ecfdf5), #f0fdf4);
  border: 1px solid var(--accent-light, #a7f3d0);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.ob-pn-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark, #065f46);
  margin-bottom: 8px;
}
.ob-pn-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 0;
}
.ob-pn-blur {
  display: none;
}
.ob-pn-blur.active {
  display: block;
  position: relative;
  margin-top: 8px;
}
.ob-pn-blur .ob-pn-locked {
  filter: blur(4px);
  user-select: none;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-500);
  margin: 0;
}
.ob-pn-blur.active::after {
  content: '\1F512  Unlock full personalized advice';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark, #065f46);
  background: rgba(255,255,255,0.5);
  border-radius: 8px;
}

/* --- Loading / Generation Step --- */
.ob-gen-ring-wrap {
  position: relative;
  width: 120px; height: 120px;
  margin-bottom: 28px;
}
.ob-gen-ring {
  width: 120px; height: 120px;
}
.ob-gen-pct {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: -1px;
}

.ob-gen-messages {
  margin-bottom: 24px;
  min-height: 48px;
}
.ob-gen-msg {
  display: none;
}
.ob-gen-msg.active { display: block; }

.ob-gen-stats {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.ob-gen-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--gray-500);
  opacity: 0;
  animation: obFadeInUp 0.4s ease forwards;
}
.ob-gen-stat:nth-child(1) { animation-delay: 0.5s; }
.ob-gen-stat:nth-child(2) { animation-delay: 1.5s; }
.ob-gen-stat:nth-child(3) { animation-delay: 2.5s; }

.ob-gen-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  text-align: left;
}
.ob-gen-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-300);
  transition: color 0.4s;
}
.ob-gen-step.active { color: var(--black); font-weight: 500; }
.ob-gen-step.done { color: var(--gray-500); }

/* Check circle */
.ob-check-circle {
  width: 24px; height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s;
}
.ob-gen-step.active .ob-check-circle {
  background: var(--accent);
  animation: obPopIn 0.3s ease;
}
.ob-gen-step.done .ob-check-circle {
  background: var(--accent-light);
}
.ob-checkmark {
  width: 14px; height: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}
.ob-gen-step.done .ob-checkmark {
  opacity: 1;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: obDrawCheck 0.4s ease forwards;
}
@keyframes obDrawCheck {
  to { stroke-dashoffset: 0; }
}
@keyframes obPopIn {
  from { transform: scale(0.5); }
  to { transform: scale(1); }
}

/* --- Results --- */
.ob-results {
  padding-top: 16px;
  position: relative;
}

/* Sparkles */
.ob-sparkles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
}
.ob-sparkle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: obSparkle 1.2s ease-out forwards;
}
@keyframes obSparkle {
  0% { transform: scale(0) translateY(0); opacity: 1; }
  50% { transform: scale(1.2) translateY(-40px); opacity: 0.7; }
  100% { transform: scale(0) translateY(-80px); opacity: 0; }
}

/* Result coach */
.ob-result-coach {
  margin-bottom: 20px;
}

/* Result stats */
.ob-result-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.ob-r-stat {
  flex: 1;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ob-r-stat-icon {
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-100);
  margin-bottom: 2px;
}
.ob-r-stat-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--black);
}
.ob-r-stat-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Summary */
.ob-summary {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Tips */
.ob-tips-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.ob-tip-card {
  flex-shrink: 0;
  min-width: 200px;
  max-width: 260px;
  background: var(--accent-50);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent-dark);
  scroll-snap-align: start;
}

/* Plan sections */
.ob-plan-section {
  margin-bottom: 20px;
}
.ob-plan-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Week scroll (horizontal scrollable day cards) */
.ob-week-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 20px;
}
.ob-week-scroll::-webkit-scrollbar { height: 4px; }
.ob-week-scroll::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

/* Day card */
.ob-day-card {
  flex-shrink: 0;
  width: 260px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  transition: border-color 0.2s;
}
.ob-day-card:first-child { margin-left: 0; }
.ob-day-card.ob-blurred {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.7;
}
.ob-day-card.ob-preview {
  border-color: var(--accent-light);
}

/* Day header */
.ob-day-head {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ob-day-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ob-day-kcal {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

/* Day body */
.ob-day-body {
  padding: 10px 14px;
  max-height: 300px;
  overflow-y: auto;
}

/* Exercise item */
.ob-ex-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-50);
}
.ob-ex-item:last-child { border-bottom: none; }
.ob-ex-emoji {
  font-size: 18px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.ob-ex-info { flex: 1; min-width: 0; }
.ob-ex-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ob-ex-detail {
  font-size: 12px;
  color: var(--gray-500);
}
.ob-ex-note {
  font-size: 11px;
  color: var(--gray-400);
  font-style: italic;
  margin-top: 2px;
}

/* Day label & description */
.ob-day-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.ob-day-desc {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0 0 8px;
  padding: 0 2px;
}
.ob-rest-msg {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: var(--gray-400);
  font-style: italic;
}

/* Macro bar */
.ob-macro-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ob-macro-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.2px;
}
.ob-macro-p { background: #ede9fe; color: #7c3aed; }
.ob-macro-c { background: #fef3c7; color: #d97706; }
.ob-macro-f { background: #fce7f3; color: #db2777; }

/* Meal item */
.ob-meal-item {
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-50);
}
.ob-meal-item:last-child { border-bottom: none; }
.ob-meal-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-400);
  margin-bottom: 2px;
}
.ob-meal-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--gray-600);
}

/* --- Paywall --- */
.ob-paywall {
  display: none;
  margin-top: -60px;
  padding-top: 80px;
  background: linear-gradient(transparent, rgba(255,255,255,.85) 30%, white 55%);
  position: relative;
}
.ob-paywall.active { display: block; }

.ob-paywall-card {
  background: linear-gradient(160deg, var(--accent-50) 0%, #f0fdf4 40%, white 100%);
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  text-align: center;
}
.ob-pw-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.ob-pw-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 8px;
}
.ob-pw-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  max-width: 380px;
  margin: 0 auto 20px;
}

/* Features list */
.ob-pw-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.ob-pw-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* Unlock button with shimmer */
.ob-pw-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--accent), #059669);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
  margin-bottom: 16px;
}
.ob-pw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16,185,129,.35);
}
.ob-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: obShimmer 2.5s ease-in-out infinite;
}
@keyframes obShimmer {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Trust indicators */
.ob-pw-trust {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
}
.ob-pw-trust span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--gray-400);
}

.ob-pw-skip {
  display: inline-block;
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
}
.ob-pw-skip:hover { color: var(--black); }

/* --- Utility --- */
.hidden { display: none !important; }

/* --- Mobile (<= 520px) --- */
@media (max-width: 520px) {
  .ob-step { padding: 0 16px; }

  /* Goal cards: single column swipeable */
  .ob-goal-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 4px;
  }
  .ob-goal-card {
    min-width: calc(100vw - 64px);
    scroll-snap-align: center;
    padding: 28px 16px 22px;
  }
  .ob-goal-visual { width: 100px; height: 100px; }
  .ob-goal-svg { width: 100px; height: 100px; }
  .ob-dots { display: flex; }

  /* Activity slider text */
  .ob-slider-text { font-size: 10px; }
  .ob-slider-stop { min-width: 44px; }

  /* Stats */
  .ob-num-value { font-size: 36px; }
  .ob-gender-card { width: 90px; padding: 16px 12px 12px; }

  /* Day cards */
  .ob-day-card { width: 220px; }

  /* Result stats */
  .ob-r-stat { padding: 10px 6px; }
  .ob-r-stat-val { font-size: 18px; }

  /* New onboarding fields */
  .ob-chip { padding: 7px 12px; font-size: 13px; }
  .ob-split-card { padding: 12px 14px; }
  .ob-yesno-cards { gap: 10px; }
  .ob-yesno-card { padding: 16px 12px; }
}

/* --- Chip Selection Rows --- */
.ob-field-group {
  margin-bottom: 16px;
}
.ob-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.ob-chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.ob-chip-wrap {
  flex-wrap: wrap;
}
.ob-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.ob-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.ob-chip.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* --- Split Cards --- */
.ob-split-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}
.ob-split-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-family: inherit;
}
.ob-split-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}
.ob-split-card.selected {
  border-color: var(--accent);
  background: var(--accent-50, #ecfdf5);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.15);
}
.ob-split-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}
.ob-split-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}
.ob-split-desc {
  display: block;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
}

/* --- Yes/No Cards --- */
.ob-yesno-cards {
  display: flex;
  gap: 12px;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}
.ob-yesno-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  font-family: inherit;
}
.ob-yesno-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}
.ob-yesno-card.selected {
  border-color: var(--accent);
  background: var(--accent-50, #ecfdf5);
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.15);
}
.ob-yesno-icon {
  font-size: 32px;
}
.ob-yesno-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
}
.ob-yesno-desc {
  font-size: 12px;
  color: var(--gray-500);
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
