/* ═══════════════════════════════════════════════════════════════════════════
   NutriSnap Web — Full Dark Theme, Mobile-First
   All styles for entire app (Sprint 1–3)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg: #0F0F23;
  --bg-card: #1A1A2E;
  --border-card: #2D2D44;
  --accent-green: #34D399;
  --accent-green-dark: #059669;
  --accent-gold: #F59E0B;
  --accent-gold-dark: #D97706;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --radius-card: 14px;
  --radius-btn: 16px;
  --radius-sm: 8px;
  --radius-full: 999px;
  --max-width: 480px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
}

a { color: var(--accent-green); text-decoration: none; }

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  font-size: inherit;
  -webkit-tap-highlight-color: transparent;
}

input[type="range"] { width: 100%; }

/* ─── Layout ───────────────────────────────────────────────────────────────── */
.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

#app {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
  padding-bottom: calc(72px + var(--safe-bottom));
}

/* ─── Utility Classes ──────────────────────────────────────────────────────── */
.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-green     { color: var(--accent-green); }
.text-gold      { color: var(--accent-gold); }
.fw-medium      { font-weight: 600; }
.text-center     { text-align: center; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  transition: all var(--transition);
  line-height: 1.4;
  white-space: nowrap;
}

.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(52, 211, 153, 0.25);
}
.btn-primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.2);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
}
.btn-secondary:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 10px 20px;
  font-size: 14px;
}
.btn-ghost:active { opacity: 0.7; }

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px;
  transition: border-color var(--transition);
}

.card-elevated {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ONBOARDING
   ═══════════════════════════════════════════════════════════════════════════ */

.onboarding-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 40px);
  text-align: center;
  padding: 40px 0;
}

.onboarding-logo {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: auto;
  padding-bottom: 20px;
}

.onboarding-slides {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.onboarding-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(30px);
  transition: all 0.4s ease;
  pointer-events: none;
}
.onboarding-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.onboarding-icon {
  font-size: 72px;
  margin-bottom: 24px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.onboarding-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.onboarding-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

/* Dots */
.onboarding-dots {
  display: flex;
  gap: 8px;
  margin: 32px 0;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-card);
  transition: all 0.3s ease;
  cursor: pointer;
}
.dot.active {
  width: 24px;
  background: var(--accent-green);
}

.onboarding-actions {
  width: 100%;
  padding: 0 0 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   QUIZ
   ═══════════════════════════════════════════════════════════════════════════ */

.quiz-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 40px);
  padding-top: 16px;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  transition: all var(--transition);
}
.back-btn:active { transform: scale(0.9); }

.back-placeholder { width: 40px; }

.quiz-progress-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Progress bar */
.quiz-progress-bar {
  height: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 28px;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), #4ade80);
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(.4,0,.2,1);
  min-width: 0%;
}

/* Quiz body & animations */
.quiz-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation-duration: 0.2s;
  animation-fill-mode: forwards;
}

.quiz-body.slide-out-left {
  animation-name: slideOutLeft;
}
.quiz-body.slide-out-right {
  animation-name: slideOutRight;
}
.quiz-body.slide-in-right {
  animation-name: slideInRight;
}
.quiz-body.slide-in-left {
  animation-name: slideInLeft;
}

@keyframes slideOutLeft {
  to { opacity: 0; transform: translateX(-40px); }
}
@keyframes slideOutRight {
  to { opacity: 0; transform: translateX(40px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

/* ─── Choice Cards ─────────────────────────────────────────────────────────── */
.choice-grid {
  display: grid;
  gap: 12px;
  width: 100%;
}
.choice-grid-2 { grid-template-columns: 1fr 1fr; }
.choice-grid-1 { grid-template-columns: 1fr; }

.choice-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: all var(--transition);
}
.choice-card:active { transform: scale(0.96); }
.choice-card.selected {
  border-color: var(--accent-green);
  background: rgba(52, 211, 153, 0.08);
  box-shadow: 0 0 0 1px var(--accent-green), 0 4px 16px rgba(52, 211, 153, 0.12);
}

.choice-icon { font-size: 32px; }
.choice-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.choice-desc {
  font-size: 12px;
  line-height: 1.3;
}

/* ─── Number Picker ────────────────────────────────────────────────────────── */
.picker-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  justify-content: center;
  gap: 32px;
}

.picker-display {
  display: flex;
  align-items: center;
  gap: 24px;
}

.picker-btn {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all var(--transition);
  flex-shrink: 0;
}
.picker-btn:active {
  transform: scale(0.9);
  background: rgba(52, 211, 153, 0.1);
  border-color: var(--accent-green);
}

.picker-value-wrap {
  text-align: center;
  min-width: 100px;
}
.picker-value {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-green);
}
.picker-unit {
  font-size: 16px;
  font-weight: 500;
  display: block;
  margin-top: 4px;
}

/* Slider */
.picker-track { width: 100%; padding: 0 8px; }

.picker-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-card);
  outline: none;
}
.picker-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.4);
  cursor: pointer;
}
.picker-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 2px 8px rgba(52, 211, 153, 0.4);
  border: none;
  cursor: pointer;
}

/* Quiz actions */
.quiz-actions {
  padding: 24px 0 20px;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CALCULATING SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */

.calculating-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 40px);
  text-align: center;
  padding: 40px 0;
}

.calculating-screen h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
}

.calc-progress-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 40px;
}
.calc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-green), #4ade80);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.calc-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  width: 100%;
  max-width: 300px;
}

.calc-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
  transition: all 0.3s ease;
}
.calc-step.active {
  color: var(--text-primary);
}
.calc-check {
  font-size: 16px;
  width: 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.calc-step.active .calc-check { color: var(--accent-green); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESULT SCREEN
   ═══════════════════════════════════════════════════════════════════════════ */

.result-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-header {
  text-align: center;
  margin-bottom: 28px;
}
.result-header h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.result-header p {
  font-size: 14px;
  line-height: 1.5;
}

.result-calories-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: center;
  width: 100%;
  margin-bottom: 20px;
}
.result-calories-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.result-calories-value {
  font-size: 52px;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: -0.03em;
  line-height: 1;
}
.result-calories-unit {
  font-size: 16px;
  margin-top: 4px;
}

/* Macros chips */
.result-macros {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 20px;
}
.macro-chip {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px 8px;
  text-align: center;
}
.macro-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 2px;
}
.macro-name { font-size: 12px; }

/* Details rows */
.result-details {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 4px 16px;
  margin-bottom: 28px;
}
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 15px;
}
.result-row + .result-row { border-top: 1px solid var(--border-card); }

.result-actions { width: 100%; }

/* ═══════════════════════════════════════════════════════════════════════════
   PAYWALL
   ═══════════════════════════════════════════════════════════════════════════ */

.paywall-screen {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  animation: fadeInUp 0.5s ease;
}

.paywall-plans {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}
.plan-card {
  flex: 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 20px 12px;
  text-align: center;
  position: relative;
  transition: all var(--transition);
  cursor: pointer;
}
.plan-card:active { transform: scale(0.97); }
.plan-best {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 1px var(--accent-gold), 0 4px 20px rgba(245, 158, 11, 0.15);
}
.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.plan-name {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.plan-price {
  font-size: 24px;
  font-weight: 700;
}
.plan-price span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}
.plan-saving {
  font-size: 12px;
  color: var(--accent-gold);
  font-weight: 600;
  margin-top: 4px;
}

.paywall-disclaimer {
  text-align: center;
  font-size: 11px;
  margin-top: 24px;
  line-height: 1.4;
  padding: 0 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOUR (Sprint 2 placeholder + full styles)
   ═══════════════════════════════════════════════════════════════════════════ */

.tour-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100dvh - 40px);
  padding: 40px 0;
}

.tour-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 32px 20px;
  text-align: center;
  width: 100%;
  margin-bottom: 24px;
}
.tour-card-icon { font-size: 48px; margin-bottom: 16px; }
.tour-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tour-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DASHBOARD (Sprint 2 — full styles prepped)
   ═══════════════════════════════════════════════════════════════════════════ */

.dashboard-screen {
  padding: 20px 0;
}

.dashboard-greeting {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* .dashboard-calorie-ring replaced by .calorie-ring-wrap (see SPRINT 2 — DASHBOARD EXTENDED) */

.dashboard-macros {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-macro-bar {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 12px;
}
.dashboard-macro-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.dashboard-macro-value {
  font-size: 16px;
  font-weight: 700;
}
.dashboard-macro-progress {
  height: 4px;
  background: var(--border-card);
  border-radius: var(--radius-full);
  margin-top: 6px;
  overflow: hidden;
}
.dashboard-macro-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}
.fill-protein { background: #34D399; }
.fill-carbs   { background: #60A5FA; }
.fill-fat     { background: #FBBF24; }

/* .meal-section replaced by .meal-section-card (see SPRINT 2 — DASHBOARD EXTENDED below) */
/* .meal-name, .meal-kcal, .meal-add-btn kept for live usage in dashboard */
.meal-name {
  font-weight: 600;
  font-size: 15px;
}
.meal-kcal {
  font-size: 14px;
  color: var(--text-secondary);
}
.meal-add-btn {
  font-size: 20px;
  color: var(--accent-green);
}

/* Water tracker */
.water-tracker {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-bottom: 20px;
}
.water-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.water-glasses {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.water-glass {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--transition);
  cursor: pointer;
}
.water-glass.filled { background: rgba(52, 211, 153, 0.2); }

/* ═══════════════════════════════════════════════════════════════════════════
   HISTORY (Sprint 3)
   ═══════════════════════════════════════════════════════════════════════════ */

.history-screen {
  padding: 20px 0;
}
.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.history-header h2 {
  font-size: 22px;
  font-weight: 700;
}

/* .history-day-card styles moved to SPRINT 3 — HISTORY section below */

/* ═══════════════════════════════════════════════════════════════════════════
   SETTINGS (Sprint 3)
   ═══════════════════════════════════════════════════════════════════════════ */

.settings-screen {
  padding: 20px 0;
}
.settings-header {
  margin-bottom: 20px;
}
.settings-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.settings-group {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 16px;
}
.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 15px;
  cursor: pointer;
  transition: background var(--transition);
}
.settings-item:active { background: rgba(255,255,255,0.03); }
.settings-item + .settings-item { border-top: 1px solid var(--border-card); }

.settings-item-label { font-weight: 500; }
.settings-item-value {
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.settings-arrow { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   ADD FOOD MODAL / SHEET (Sprint 2)
   ═══════════════════════════════════════════════════════════════════════════ */

.add-food-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: var(--max-width);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + var(--safe-bottom));
  transition: transform 0.35s ease;
  z-index: 100;
}
.add-food-sheet.open { transform: translateX(-50%) translateY(0); }

.sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border-card);
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
}

.add-food-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.add-food-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border-radius: var(--radius-card);
  background: var(--bg);
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.add-food-option:active { transform: scale(0.95); }
.add-food-option-icon { font-size: 28px; }

/* Backdrop */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════
   WEEKLY REPORT (Sprint 2)
   ═══════════════════════════════════════════════════════════════════════════ */

.report-screen {
  padding: 20px 0;
}
.report-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 16px;
  text-align: center;
}
.report-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-green);
}
.report-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BOTTOM NAVIGATION
   ═══════════════════════════════════════════════════════════════════════════ */

#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: calc(64px + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 50;
  border-top: 1px solid var(--border-card);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 16px;
  transition: color var(--transition);
}
.nav-item.active { color: var(--accent-green); }
.nav-icon { font-size: 22px; }

/* ═══════════════════════════════════════════════════════════════════════════
   PLACEHOLDER SCREEN (Sprint 2/3)
   ═══════════════════════════════════════════════════════════════════════════ */

.screen-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100dvh - 140px);
  text-align: center;
  gap: 12px;
}
.placeholder-icon { font-size: 48px; opacity: 0.6; }
.screen-center h2 {
  font-size: 22px;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCROLLBAR
   ═══════════════════════════════════════════════════════════════════════════ */

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-card); border-radius: var(--radius-full); }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 481px) {
  .app-shell { border-left: 1px solid var(--border-card); border-right: 1px solid var(--border-card); }
}

/* Safe area for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
  .app-shell { padding-top: env(safe-area-inset-top); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 2 — PAYWALL EXTENDED
   ═══════════════════════════════════════════════════════════════════════════ */

/* Close / Skip button (top-right of paywall) */
.paywall-close {
  position: absolute;
  top: 16px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, color var(--transition);
  cursor: pointer;
  z-index: 10;
}
.paywall-close:hover { color: var(--text-primary); }

/* Personal plan summary card */
.paywall-plan-summary {
  width: 100%;
  margin-bottom: 14px;
  text-align: center;
}
.paywall-plan-summary-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.paywall-plan-stats {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.paywall-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.paywall-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}
.paywall-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Feature list */
.paywall-features {
  width: 100%;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}
.paywall-feature-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-secondary);
}
.paywall-feature-icon { font-size: 18px; width: 24px; text-align: center; }

/* Plan cards with radio-style selection */
.plan-card-radio {
  display: block;
  cursor: pointer;
  user-select: none;
}
.plan-selected {
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 0 1px var(--accent-green), 0 4px 20px rgba(52, 211, 153, 0.12) !important;
}
.plan-selected.plan-best {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 0 1px var(--accent-gold), 0 4px 20px rgba(245, 158, 11, 0.15) !important;
}

/* Privacy/Terms links */
.paywall-links {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.paywall-links a { color: var(--text-muted); text-decoration: underline; }
.paywall-links a:hover { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 2 — TOUR EXTENDED
   ═══════════════════════════════════════════════════════════════════════════ */

.tour-topbar {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}
.tour-skip-btn {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
}

.tour-dots {
  display: flex;
  gap: 8px;
  margin: 16px 0 24px;
}
.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-card);
  transition: all 0.3s ease;
}
.tour-dot.active {
  width: 24px;
  background: var(--accent-green);
}

.tour-actions { width: 100%; margin-top: auto; }

/* Animated tour card */
.tour-card {
  flex: 1;
  will-change: transform, opacity;
}
#tour-card { transition: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 2 — DASHBOARD EXTENDED
   ═══════════════════════════════════════════════════════════════════════════ */

/* Calorie ring */
.calorie-ring-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}
.calorie-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.calorie-ring-consumed {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}
.calorie-ring-unit {
  font-size: 13px;
  margin-top: 2px;
}
.calorie-ring-remaining {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}
#calorie-arc { will-change: stroke-dashoffset; }

/* Meal section card (dashboard) */
.meal-section-card {
  margin-bottom: 10px;
}
.meal-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meal-section-left {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.meal-items {
  margin-top: 10px;
  border-top: 1px solid var(--border-card);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.meal-item-name {
  color: var(--text-secondary);
}
.meal-item-kcal {
  font-size: 13px;
  flex-shrink: 0;
  margin-left: 8px;
}

/* Water controls */
.water-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.water-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--border-card);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.water-btn:active { background: var(--accent-green); color: #fff; transform: scale(0.9); }
.water-btn-add { background: rgba(52, 211, 153, 0.15); color: var(--accent-green); }
#water-count { font-size: 16px; font-weight: 700; min-width: 16px; text-align: center; }

/* Meal sections container */
.meal-sections { margin-bottom: 16px; }

/* Weekly report link */
.weekly-report-link {
  text-align: center;
  font-size: 14px;
  padding: 8px 0 24px;
}

/* FAB — Add Food */
.fab {
  position: fixed;
  bottom: calc(80px + var(--safe-bottom));
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(52, 211, 153, 0.45);
  z-index: 40;
  transition: transform var(--transition), box-shadow var(--transition);
}
.fab:active { transform: scale(0.92); box-shadow: 0 2px 10px rgba(52, 211, 153, 0.3); }

/* On wider screens, keep FAB inside max-width container */
@media (min-width: 481px) {
  .fab { right: calc(50% - 220px); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 2 — ADD FOOD SHEET EXTENDED
   ═══════════════════════════════════════════════════════════════════════════ */

.sheet-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

/* Analyzing state */
.analyzing-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
  gap: 12px;
  text-align: center;
}
.analyzing-spinner {
  font-size: 48px;
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.analyzing-text {
  font-size: 16px;
  color: var(--text-secondary);
}

/* AI result card */
.ai-result-card { padding: 16px; }

/* Manual entry form */
.manual-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
  padding-bottom: 8px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-field label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-input {
  background: var(--bg);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  font-family: var(--font);
  padding: 10px 12px;
  width: 100%;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
}
.form-input:focus { border-color: var(--accent-green); }
.form-select {
  background: var(--bg);
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font);
  padding: 10px 12px;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.form-select:focus { border-color: var(--accent-green); }

/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 3 — HISTORY
   ═══════════════════════════════════════════════════════════════════════════ */

.history-day-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.history-day-today {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 1px var(--accent-green), 0 4px 20px rgba(52, 211, 153, 0.1);
}

.history-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.history-day-info { flex: 1; min-width: 0; }

.history-day-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.history-day-date-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.history-day-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.history-day-kcal {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.history-kcal-unit { font-size: 12px; font-weight: 400; }

.history-day-count {
  font-size: 12px;
}

.history-empty-day {
  font-size: 13px;
  font-style: italic;
}

.history-expand-arrow {
  font-size: 18px;
  color: var(--text-muted);
  margin-left: 4px;
  transition: transform var(--transition);
  display: inline-block;
  align-self: center;
  line-height: 1;
}
.history-expand-arrow.arrow-open { transform: rotate(90deg); }

/* Expandable details */
.history-day-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1);
}
.history-day-expanded .history-day-details {
  max-height: 600px;
}
.history-day-expanded .history-day-header {
  margin-bottom: 12px;
}

.history-day-macros {
  display: flex;
  gap: 16px;
  padding: 10px 0 10px;
  border-top: 1px solid var(--border-card);
  margin-top: 8px;
}

.history-macro {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.macro-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.protein-dot { background: #34D399; }
.carbs-dot   { background: #60A5FA; }
.fat-dot     { background: #FBBF24; }

.history-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 4px;
}

.history-food-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(45, 45, 68, 0.6);
}
.history-food-item:last-child { border-bottom: none; }

.history-food-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.history-food-meta {
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 3 — SETTINGS
   ═══════════════════════════════════════════════════════════════════════════ */

.settings-version {
  text-align: center;
  font-size: 12px;
  margin-top: 8px;
  padding-bottom: 32px;
}

/* Language Picker Overlay */
.lang-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.lang-picker-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.lang-picker-card {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + var(--safe-bottom));
  animation: slideUpSheet 0.3s ease;
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.lang-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
  color: var(--text-primary);
}
.lang-option:hover,
.lang-option:active { background: rgba(255, 255, 255, 0.05); }

.lang-option-active {
  color: var(--accent-green);
  font-weight: 700;
}

.lang-option-name { flex: 1; }

.lang-check {
  color: var(--accent-green);
  font-size: 16px;
  font-weight: 700;
}

/* Settings links (anchor elements styled like items) */
a.settings-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text-primary);
  text-decoration: none;
  transition: background var(--transition);
}
a.settings-item:active { background: rgba(255, 255, 255, 0.03); }
a.settings-item + .settings-item,
.settings-item + a.settings-item { border-top: 1px solid var(--border-card); }

/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 3 — CAMERA VIEW
   ═══════════════════════════════════════════════════════════════════════════ */

.camera-view {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 12px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.camera-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.camera-back-btn {
  flex-shrink: 0;
  padding: 12px 16px;
  font-size: 14px;
}

.camera-capture-btn {
  flex: 1;
  padding: 14px;
}

.camera-message {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 12px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 100, 100, 0.08);
  border: 1px solid rgba(255, 100, 100, 0.2);
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SPRINT 3 — FOOD DELETION (Dashboard)
   ═══════════════════════════════════════════════════════════════════════════ */

/* .meal-item base styles defined above in SPRINT 2 — DASHBOARD EXTENDED */

.meal-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.meal-item-delete {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
  cursor: pointer;
}
.meal-item-delete:active {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(0.88);
}

/* ── Search Food ──────────────────────────────────────────────────────────── */
.search-wrapper { padding: 0 4px; }
.search-wrapper .form-input { margin-bottom: 12px; }
.search-results { max-height: 50vh; overflow-y: auto; }
.search-result-item {
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color var(--transition);
}
.search-result-item:active,
.search-result-item:hover { border-color: var(--accent-green); }
.search-result-name { font-weight: 600; font-size: 14px; margin-bottom: 3px; }
.search-result-meta { font-size: 12px; }

/* ── Barcode Scanner ──────────────────────────────────────────────────────── */
.barcode-wrapper { padding: 0 4px; }
.barcode-input-row { display: flex; align-items: center; margin-bottom: 12px; }
.barcode-divider {
  text-align: center;
  margin: 12px 0;
  font-size: 13px;
}
.barcode-divider::before,
.barcode-divider::after {
  content: '';
  display: inline-block;
  width: 30%;
  height: 1px;
  background: var(--border-card);
  vertical-align: middle;
  margin: 0 8px;
}

/* ── Processing Spinner ───────────────────────────────────────────────────── */
.processing-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
/* @keyframes spin already defined above (analyzing-spinner section) */

/* ── Payment Popups ───────────────────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.popup-overlay.open { opacity: 1; }
.popup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 28px 24px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}
.popup-overlay.open .popup-card { transform: scale(1); }
.popup-icon { font-size: 48px; margin-bottom: 12px; }
.popup-title { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--text-primary); }
.popup-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 4px; }
.popup-plan {
  background: var(--bg);
  border: 1px solid var(--accent-green);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-green);
  margin: 12px 0;
}
.popup-actions { margin-top: 16px; }
.popup-actions .btn { margin-bottom: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   SALES-DRIVEN FUNNEL — Social Proof, Trust Signals, Animations
   ═══════════════════════════════════════════════════════════════════════════ */

/* Pulse animation for CTA buttons */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 28px rgba(52, 211, 153, 0.55);
    transform: scale(1.025);
  }
}

.pulse-btn {
  animation: pulse-glow 2.2s ease-in-out infinite;
}

/* Trust nudge — quiz social proof badge (auto fade-in/out) */
.trust-nudge {
  display: block;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-green);
  text-align: center;
  margin: 12px auto 0;
  width: fit-content;
  max-width: 100%;
  animation: nudge-lifecycle 3s ease forwards;
  pointer-events: none;
}

@keyframes nudge-lifecycle {
  0%   { opacity: 0; transform: translateY(10px); }
  15%  { opacity: 1; transform: translateY(0); }
  70%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* Social proof mini card (inline reviews) */
.social-proof-mini {
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: var(--radius-card);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.social-proof-mini-stars {
  color: var(--accent-gold);
  font-size: 12px;
  margin-bottom: 4px;
  letter-spacing: 1px;
}
.social-proof-mini-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.45;
  margin-bottom: 5px;
}
.social-proof-mini-name {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Guarantee badge */
.guarantee-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: var(--radius-card);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  width: 100%;
  margin-bottom: 12px;
}
.guarantee-badge-icon { font-size: 20px; }

/* Live counter — fake viewer count */
.live-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #f87171;
  margin-bottom: 10px;
}
.live-counter::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: live-blink 1.5s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

/* ── Onboarding social proof elements ─────────────────────────────────────── */

.ob-review-card {
  display: inline-block;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: var(--radius-card);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 16px auto 0;
  max-width: 290px;
  text-align: center;
  line-height: 1.4;
  animation: fadeInUp 0.6s ease;
}

.ob-stats-bar {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 16px auto 0;
  letter-spacing: 0.02em;
  text-align: center;
  animation: fadeInUp 0.6s ease;
}

.ob-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  margin-top: 16px;
  animation: fadeInUp 0.6s ease;
}

/* Counter spans inside stats bar */
.ob-counter {
  color: var(--accent-green);
  font-weight: 700;
}

/* ── Paywall social proof section ─────────────────────────────────────────── */

.paywall-social-section {
  width: 100%;
  margin-bottom: 20px;
}
.paywall-social-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 10px;
}

/* Feature item with green circle checkmark */
.paywall-feature-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-green);
  font-size: 11px;
  font-weight: 700;
}

/* ── Calculating plan-ready card ──────────────────────────────────────────── */

.calc-ready-card {
  margin-top: 28px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--radius-card);
  padding: 20px 16px;
  text-align: center;
  width: 100%;
  animation: calc-ready-glow 0.7s ease forwards;
}

@keyframes calc-ready-glow {
  from { opacity: 0; transform: scale(0.95); box-shadow: none; }
  to   { opacity: 1; transform: scale(1); box-shadow: 0 0 28px rgba(52, 211, 153, 0.18); }
}

.calc-ready-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 8px;
}
.calc-ready-testimonial {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ── Result screen additions ──────────────────────────────────────────────── */

.result-rating {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}
