/* Formforge — Theme CSS */
/* Design tokens match the landing page design language */
:root {
  --bg: #0D0D0D;
  --surface: #141414;
  --surface-2: #1E1E1E;
  --border: #2A2A2A;
  --accent: #B4FF00;
  --accent-dim: rgba(180,255,0,0.08);
  --text: #FFFFFF;
  --text-muted: #888888;
  --text-dim: #555555;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5%;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-icon {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  background: var(--accent); color: #000;
  font-family: var(--font-display); font-size: 14px; letter-spacing: 0;
}
.brand-name { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.15em; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 5% 5rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 60%; height: 80%;
  background: radial-gradient(ellipse at center, rgba(180,255,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(180,255,0,0.2);
  color: var(--accent);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-trust { display: flex; gap: 0.75rem; align-items: center; font-size: 0.8rem; color: var(--text-dim); }
.dot { color: var(--text-dim); }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600; font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center;
  background: transparent;
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); }
.btn-large { padding: 1rem 2rem; font-size: 1.05rem; }

/* SECTIONS */
.section-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}

/* FEATURES */
.features { padding: 6rem 5%; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(180,255,0,0.3); }
.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(180,255,0,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* PROGRAM PREVIEW */
.program-preview {
  padding: 6rem 5%;
  border-top: 1px solid var(--border);
  text-align: center;
}
.program-days {
  display: flex; justify-content: center; gap: 1rem;
  flex-wrap: wrap; margin-bottom: 2rem;
}
.program-day {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  min-width: 160px;
  text-align: center;
}
.program-day-more { border-style: dashed; opacity: 0.7; }
.day-label { font-size: 0.7rem; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.day-title { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 0.25rem; }
.day-muscles { font-size: 0.8rem; color: var(--text-muted); }
.program-note { color: var(--text-muted); font-size: 0.9rem; max-width: 500px; margin: 0 auto; }

/* CTA SECTION */
.cta-section {
  position: relative; overflow: hidden;
  padding: 8rem 5%;
  text-align: center;
  border-top: 1px solid var(--border);
}
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(180,255,0,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; margin-bottom: 1.5rem; }
.cta-sub { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }

/* FOOTER */
.footer {
  padding: 3rem 5%;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; }
.footer-sub { color: var(--text-dim); font-size: 0.85rem; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ===================== APP SPA STYLES ===================== */
.app-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

.app-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,13,13,0.95); backdrop-filter: blur(12px);
}
.app-nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.app-nav-brand .brand-icon { width: 28px; height: 28px; background: var(--accent); color: #000; font-family: var(--font-display); font-size: 13px; display: flex; align-items: center; justify-content: center; border-radius: 4px; }
.app-nav-brand span { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.1em; }

.app-container { max-width: 680px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* AUTH SCREENS */
.screen { display: none; }
.screen.active { display: block; }

.screen-title { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; letter-spacing: 0.02em; margin-bottom: 0.5rem; }
.screen-sub { color: var(--text-muted); margin-bottom: 2rem; font-size: 0.95rem; }

/* FORM ELEMENTS */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-textarea { resize: vertical; min-height: 80px; }

/* RADIO / TOGGLE GROUPS */
.toggle-group { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.toggle-option {
  flex: 1; min-width: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: center;
  font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.toggle-option.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.toggle-option input { display: none; }

/* EQUIPMENT CHECKBOXES */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.equip-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  text-align: center;
  transition: border-color 0.2s;
  user-select: none;
}
.equip-item.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.equip-item input { display: none; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: opacity 0.2s, transform 0.15s; border: none; text-decoration: none; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { opacity: 0.85; }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* SPINNER */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(0,0,0,0.3); border-top-color: #000; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ERROR / SUCCESS */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; }
.alert-error { background: rgba(255,80,80,0.1); border: 1px solid rgba(255,80,80,0.3); color: #ff6b6b; }
.alert-success { background: var(--accent-dim); border: 1px solid rgba(180,255,0,0.3); color: var(--accent); }

/* WORKOUT LIST */
.workout-list { display: flex; flex-direction: column; gap: 0.75rem; }
.workout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.workout-card:hover { border-color: rgba(180,255,0,0.4); transform: translateY(-1px); }
.workout-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.workout-card-title { font-weight: 600; font-size: 1rem; }
.workout-card-badge { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 4px; }
.badge-pending { background: var(--accent-dim); color: var(--accent); }
.badge-done { background: rgba(80,255,120,0.1); color: #50ff78; }
.badge-active { background: rgba(100,150,255,0.1); color: #64aaff; }
.workout-card-sub { color: var(--text-muted); font-size: 0.8rem; }
.workout-card-muscles { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 0.5rem; }
.muscle-tag { background: var(--surface-2); border-radius: 4px; padding: 0.15rem 0.5rem; font-size: 0.7rem; color: var(--text-dim); }

/* EXERCISE LIST */
.exercise-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.exercise-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.exercise-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.exercise-name { font-weight: 600; font-size: 0.95rem; }
.exercise-target { color: var(--accent); font-size: 0.8rem; font-weight: 600; }
.exercise-meta { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--text-muted); }
.exercise-muscle { font-size: 0.75rem; color: var(--text-dim); }

/* SET LOGGER */
.set-grid { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.set-row { display: grid; grid-template-columns: 40px 1fr 1fr 50px; gap: 0.5rem; align-items: center; }
.set-num { font-size: 0.75rem; color: var(--text-dim); text-align: center; }
.set-input { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); font-family: var(--font-body); font-size: 0.85rem; padding: 0.5rem; text-align: center; width: 100%; outline: none; }
.set-input:focus { border-color: var(--accent); }
.check-btn { width: 40px; height: 36px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-dim); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all 0.2s; }
.check-btn.done { background: var(--accent); color: #000; border-color: var(--accent); }

/* LOG COMPLETE */
.log-summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.log-summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.log-summary-label { color: var(--text-muted); font-size: 0.85rem; }
.log-summary-val { font-weight: 600; font-size: 1.1rem; }
.energy-row { display: flex; gap: 0.4rem; }
.energy-dot { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.energy-dot.selected { background: var(--accent); color: #000; border-color: var(--accent); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text); }
.empty-state p { font-size: 0.9rem; }

/* PROGRESS BAR */
.progress-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 1rem; }
.progress-fill { height: 100%; background: var(--accent); transition: width 0.3s; }

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* BACK BUTTON */
.back-btn { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-muted); text-decoration: none; font-size: 0.875rem; margin-bottom: 1.5rem; transition: color 0.2s; cursor: pointer; }
.back-btn:hover { color: var(--text); }
.back-btn::before { content: '←'; }

/* TOAST */
.toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%); background: var(--accent); color: #000; padding: 0.75rem 1.5rem; border-radius: 6px; font-size: 0.875rem; font-weight: 600; opacity: 0; transition: opacity 0.3s; z-index: 200; }
.toast.show { opacity: 1; }

/* REGENERATE BANNER */
.regen-banner {
  background: var(--accent-dim);
  border: 1px solid rgba(180,255,0,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.regen-banner-text { font-size: 0.875rem; color: var(--accent); font-weight: 500; }

/* ===================== NUTRITION STYLES ===================== */

/* App tabs */
.app-tabs {
  display: flex; gap: 0.25rem; margin-bottom: 1.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.25rem;
}
.app-tab {
  flex: 1; padding: 0.6rem 1rem; border-radius: 6px;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  cursor: pointer; border: none; background: none;
  transition: all 0.2s; text-align: center; font-family: var(--font-body);
}
.app-tab:hover { color: var(--text); }
.app-tab.active {
  background: var(--accent); color: #000;
}

/* Macro dashboard */
.macro-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.macro-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-align: center;
}
.macro-card.protein-card { border-color: rgba(180,255,0,0.4); }
.macro-card.calorie-card { border-color: rgba(255,180,80,0.4); }
.macro-value { font-size: 2rem; font-weight: 700; line-height: 1; font-family: var(--font-display); }
.macro-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.25rem; }
.macro-value.accent { color: var(--accent); }
.macro-value.calorie { color: #ffb450; }
.macro-value.carbs { color: #64aaff; }
.macro-value.fat { color: #ff8080; }

/* Progress bars in macro cards */
.macro-progress { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 0.5rem; }
.macro-progress-fill { height: 100%; border-radius: 2px; transition: width 0.4s; }
.macro-progress-fill.accent { background: var(--accent); }
.macro-progress-fill.calorie { background: #ffb450; }
.macro-progress-fill.carbs { background: #64aaff; }
.macro-progress-fill.fat { background: #ff8080; }

/* Macro row (full width 4-col) */
.macro-row-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1rem;
}
.macro-mini { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.6rem 0.5rem; text-align: center; }
.macro-mini-val { font-size: 1.1rem; font-weight: 700; font-family: var(--font-display); }
.macro-mini-lbl { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* Food search */
.search-bar-wrap { position: relative; margin-bottom: 1rem; }
.search-bar-wrap .search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 1rem; pointer-events: none; }
.search-bar {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font-family: var(--font-body);
  font-size: 0.95rem; padding: 0.75rem 1rem 0.75rem 2.5rem;
  transition: border-color 0.2s; outline: none; box-sizing: border-box;
}
.search-bar:focus { border-color: var(--accent); }
.search-bar::placeholder { color: var(--text-dim); }

/* Search results */
.search-results { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; max-height: 300px; overflow-y: auto; }
.search-result-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem;
  cursor: pointer; transition: border-color 0.2s;
  display: flex; align-items: center; gap: 0.75rem;
}
.search-result-item:hover { border-color: rgba(180,255,0,0.4); }
.search-result-img { width: 40px; height: 40px; border-radius: 6px; background: var(--surface-2); object-fit: cover; flex-shrink: 0; }
.search-result-img-placeholder { width: 40px; height: 40px; border-radius: 6px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.search-result-info { flex: 1; min-width: 0; }
.search-result-name { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-brand { font-size: 0.75rem; color: var(--text-dim); }
.search-result-macros { font-size: 0.75rem; color: var(--text-muted); }
.search-result-add { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }

/* Add food panel */
.add-food-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem;
}
.add-food-panel h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 1rem; }
.food-macro-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1rem; }
.food-macro-field { }
.food-macro-field label { display: block; font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.35rem; }
.meal-type-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.meal-type-btn {
  flex: 1; min-width: 70px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.5rem; font-size: 0.75rem; color: var(--text-muted);
  cursor: pointer; text-align: center; font-family: var(--font-body); font-weight: 500; transition: all 0.2s;
}
.meal-type-btn.selected { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.meal-type-btn input { display: none; }

/* Food entry row */
.food-entry {
  display: flex; align-items: center; gap: 0.75rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.85rem 1rem; margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}
.food-entry:hover { border-color: rgba(180,255,0,0.3); }
.food-entry-info { flex: 1; min-width: 0; }
.food-entry-name { font-size: 0.9rem; font-weight: 600; }
.food-entry-meta { font-size: 0.75rem; color: var(--text-muted); }
.food-entry-macros { text-align: right; flex-shrink: 0; }
.food-entry-cal { font-size: 0.85rem; font-weight: 600; }
.food-entry-pcf { font-size: 0.7rem; color: var(--text-dim); }
.delete-entry-btn {
  background: none; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 0.85rem; padding: 0.25rem 0.5rem; border-radius: 4px;
  transition: color 0.2s, background 0.2s; flex-shrink: 0;
}
.delete-entry-btn:hover { color: #ff6b6b; background: rgba(255,80,80,0.1); }

/* Barcode scan button */
.barcode-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem 1rem;
  color: var(--text-muted); font-family: var(--font-body); font-size: 0.875rem;
  cursor: pointer; width: 100%; margin-bottom: 1rem;
  transition: border-color 0.2s, color 0.2s; font-weight: 500;
}
.barcode-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Loading state */
.search-loading { text-align: center; padding: 1rem; color: var(--text-dim); font-size: 0.875rem; }
.no-results { text-align: center; padding: 1.5rem; color: var(--text-dim); font-size: 0.875rem; }

/* ===================== ONBOARDING STEP STYLES ===================== */

/* Goal cards */
.goal-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.goal-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}
.goal-card:hover { border-color: rgba(180,255,0,0.3); }
.goal-card.selected { border-color: var(--accent); background: var(--accent-dim); }
.goal-card-icon { font-size: 1.5rem; flex-shrink: 0; width: 32px; text-align: center; }
.goal-card-text { flex: 1; }
.goal-card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.15rem; }
.goal-card-sub { font-size: 0.8rem; color: var(--text-muted); }
.goal-card-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: transparent;
  flex-shrink: 0;
  transition: all 0.2s;
}
.goal-card.selected .goal-card-check {
  background: var(--accent); color: #000; border-color: var(--accent);
}

/* Equipment toggle for step 2 */
.equip-item.on-selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }
.equip-item.on-selected input:checked + * { }

/* Experience options */
.exp-option { padding: 1rem 1.25rem; text-align: left; }
.exp-option.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }

/* Frequency options */
.freq-opt.selected { border-color: var(--accent); background: var(--accent-dim); color: var(--accent); }

/* Onboarding step containers */
#step-goal, #step-equipment, #step-experience { animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }