/* ═══════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — Dark Premium Glassmorphism
═══════════════════════════════════════════════════════════════════════════ */
:root {
  --primary:        #00d4b4;
  --primary-dim:    rgba(0, 212, 180, 0.12);
  --primary-glow:   rgba(0, 212, 180, 0.25);
  --primary-border: rgba(0, 212, 180, 0.30);
  --secondary:      #7c3aed;
  --secondary-dim:  rgba(124, 58, 237, 0.12);
  --success:        #10b981;
  --success-dim:    rgba(16, 185, 129, 0.12);
  --warning:        #f59e0b;
  --warning-dim:    rgba(245, 158, 11, 0.12);
  --danger:         #f43f5e;
  --danger-dim:     rgba(244, 63, 94, 0.12);
  --info:           #60a5fa;

  --card-bg:     rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.10);

  --text:   #e2e8f0;
  --text-2: #94a3b8;
  --text-3: #64748b;
  --text-4: #475569;

  --border:       rgba(255, 255, 255, 0.10);
  --border-light: rgba(255, 255, 255, 0.06);

  --shadow-sm:      0 2px 8px rgba(0,0,0,.4);
  --shadow-md:      0 8px 32px rgba(0,0,0,.4);
  --shadow-lg:      0 16px 48px rgba(0,0,0,.5);
  --shadow-primary: 0 4px 28px rgba(0,212,180,.3);
  --shadow-card:    0 8px 32px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --font: 'Plus Jakarta Sans', sans-serif;
  --header-h: 64px;
  --max-w: 1100px;
  --form-w: 640px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,180,.35) rgba(255,255,255,.04);
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.03); }
::-webkit-scrollbar-thumb { background: rgba(0,212,180,.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,212,180,.55); }

::selection { background: rgba(0,212,180,.28); color: #e2e8f0; }

body {
  font-family: var(--font);
  background: #0a0a0f;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0,212,180,.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(124,58,237,.07) 0%, transparent 60%),
    linear-gradient(160deg, #0a0a0f 0%, #0e0c1a 50%, #12101e 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  opacity: 0;
  animation: body-in 0.4s ease 0.05s forwards;
}

/* Dot grid texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

header, main, footer, .site-header { position: relative; z-index: 1; }

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select { font-family: inherit; }
details summary { cursor: pointer; user-select: none; }
details summary::-webkit-details-marker { display: none; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════════════════ */
@keyframes body-in     { to { opacity: 1; } }
@keyframes blob-float  {
  0%,100% { transform: translate(-50%,-50%) scale(1) rotate(0deg); }
  33%     { transform: translate(-47%,-54%) scale(1.08) rotate(6deg); }
  66%     { transform: translate(-53%,-46%) scale(0.94) rotate(-5deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 var(--primary-glow); }
  70%  { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════════════════ */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ═══════════════════════════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 1rem; }
p  { line-height: 1.7; color: var(--text-2); }
.optional { font-size: 0.78rem; color: var(--text-3); font-weight: 400; }
.label-caps {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 8px 32px rgba(0,212,180,.4), 0 4px 16px rgba(124,58,237,.2);
}
.btn-primary:active { transform: translateY(0) scale(0.99); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
}
.btn-outline:hover { background: var(--primary-dim); }
.btn-sm  { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg  { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; margin-top: 8px; }
.btn-loader { display: none; }
.btn.loading .btn-text   { display: none; }
.btn.loading .btn-loader { display: inline; }

/* ═══════════════════════════════════════════════════════════════════════════
   GLASSMORPHISM MIXIN (applied to cards + form)
═══════════════════════════════════════════════════════════════════════════ */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,212,180,.12);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 12px rgba(0,212,180,.3);
}
.logo-text { font-family: var(--font); font-weight: 800; font-size: 1.1rem; color: var(--text); }
.logo-accent { color: var(--primary); }

/* ═══════════════════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  text-align: center;
}
.hero-blob {
  position: absolute;
  top: 50%; left: 50%;
  width: 700px; height: 500px;
  background: radial-gradient(ellipse,
    rgba(0,212,180,.13) 0%,
    rgba(124,58,237,.08) 45%,
    transparent 70%);
  filter: blur(60px);
  animation: blob-float 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,212,180,.1);
  border: 1px solid rgba(0,212,180,.25);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
/* H1 — SEO keyword carrier, styled as an uppercase kicker label */
.hero-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
  /* Override the gradient so it's legible as plain teal text */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--primary);
  background-clip: unset;
}
/* Visual display headline (below H1, not an H tag) */
.hero-tagline {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  color: var(--text-2);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}
.hero-chips  { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-2);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FORM SECTION
═══════════════════════════════════════════════════════════════════════════ */
.form-section { padding: 0 0 80px; }
.form-card {
  max-width: var(--form-w);
  margin: 0 auto;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08);
}
.form-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,212,180,.2);
}
.form-group { margin-bottom: 22px; }
.form-group > label {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.sub-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.label-row label {
  margin-bottom: 0;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-hint { font-size: 0.76rem; color: var(--text-3); margin-top: 6px; }

/* Input */
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input[type="number"],
.input-wrap input[type="date"] {
  width: 100%;
  padding: 12px 48px 12px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  font-size: 1rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.input-wrap input[type="date"] { padding-right: 14px; color-scheme: dark; }
.input-wrap input::-webkit-outer-spin-button,
.input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input-wrap input::-webkit-calendar-picker-indicator { filter: invert(0.6) opacity(0.7); }
.input-wrap input::placeholder { color: var(--text-4); }
.input-wrap input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,212,180,.15);
}
.input-suffix {
  position: absolute;
  right: 14px;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 500;
  pointer-events: none;
}
.ftin-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.unit-inputs { margin-top: 0; }

/* Toggle groups */
.toggle-group {
  display: flex;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  padding: 4px;
}
.toggle-btn {
  flex: 1;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  transition: all 0.2s;
  text-align: center;
}
.toggle-btn.active {
  background: linear-gradient(135deg, rgba(0,212,180,.25), rgba(124,58,237,.2));
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.toggle-btn:hover:not(.active) { color: var(--text); background: rgba(255,255,255,.06); }

/* Unit toggle (small, label row) */
.unit-toggle-group {
  display: flex;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-sm);
  padding: 2px;
}
.unit-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  transition: all 0.15s;
}
.unit-btn.active {
  background: rgba(0,212,180,.2);
  color: var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* Activity Level Cards */
.activity-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.activity-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 14px 8px;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: var(--r-lg);
  transition: all 0.2s;
  gap: 4px;
}
.activity-card:hover {
  border-color: rgba(0,212,180,.3);
  background: rgba(0,212,180,.06);
}
.activity-card.active {
  border-color: var(--primary);
  background: rgba(0,212,180,.1);
  box-shadow: 0 0 0 3px rgba(0,212,180,.1), 0 4px 16px rgba(0,212,180,.1);
}
.activity-icon { font-size: 1.6rem; line-height: 1; }
.activity-name { font-weight: 700; font-size: 0.78rem; color: var(--text); line-height: 1.2; }
.activity-desc { font-size: 0.7rem; color: var(--text-3); line-height: 1.3; }

/* Form error */
.form-error {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(244,63,94,.25);
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 16px;
}

/* Calculate Button */
#calculate-btn {
  height: 56px;
  border-radius: var(--r-lg) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(0,212,180,.35), 0 2px 8px rgba(124,58,237,.2) !important;
  letter-spacing: 0.01em;
}
#calculate-btn:hover {
  transform: translateY(-1px) scale(1.015) !important;
  box-shadow: 0 8px 36px rgba(0,212,180,.45), 0 4px 16px rgba(124,58,237,.3) !important;
}
#calculate-btn:active { transform: scale(0.99) !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESULTS SECTION
═══════════════════════════════════════════════════════════════════════════ */
.results-section { padding: 48px 0 100px; }
.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.results-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}
.results-subtitle { color: var(--text-3); font-size: 0.88rem; }
.results-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Results Grid — overflow:visible so fixed-position dropdown children are not clipped */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; overflow: visible; }
.card-full-width { grid-column: 1 / -1; }

/* ── RESULT CARDS ─────────────────────────────────────────────────────── */
.result-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  /* Entry animation state (JS adds .visible to trigger) */
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.2s ease;
}
/* Colored top accent line */
.result-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,212,180,.5) 30%, rgba(124,58,237,.5) 70%, transparent 100%);
}
.result-card.visible { opacity: 1; transform: translateY(0); }
.result-card.visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,.5), 0 0 0 1px rgba(0,212,180,.08);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.card-icon { font-size: 1.2rem; opacity: .7; }
.card-subtitle { font-size: 0.8rem; color: var(--text-3); font-weight: 400; }
.card-note { font-size: 0.76rem; color: var(--text-3); margin-top: 12px; line-height: 1.5; }

/* ── BMI CARD ─────────────────────────────────────────────────────────── */
.gauge-wrapper { position: relative; }
#bmi-gauge { width: 100%; max-width: 280px; margin: 0 auto; display: block; }
.gauge-bmi-display { text-align: center; margin-top: -8px; margin-bottom: 16px; }
.bmi-number {
  display: block;
  font-family: var(--font);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -2px;
  text-shadow: 0 0 24px rgba(0,212,180,.4);
}
.bmi-label-text {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 4px;
}

.bmi-standards-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 12px;
}
.standard-badge { flex: 1; }
.standard-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 3px;
}
.standard-badge strong { font-size: 0.88rem; }
.standard-divider { width: 1px; height: 32px; background: var(--border); }

.healthy-range-box {
  background: rgba(0,212,180,.07);
  border: 1px solid rgba(0,212,180,.18);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--primary);
  margin-bottom: 14px;
}
.healthy-range-label { display: block; font-size: 0.72rem; margin-bottom: 3px; color: rgba(0,212,180,.7); }

.expandable { border-top: 1px solid var(--border); padding-top: 12px; }
.expandable summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 0;
  list-style: none;
}
.expandable-body {
  padding: 12px 0 4px;
  font-size: 0.83rem;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.expandable-body p { color: var(--text-2); }

/* ── CALORIE TARGETS CARD ─────────────────────────────────────────────── */
.calorie-targets { display: flex; flex-direction: column; gap: 9px; }
.calorie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  transition: all 0.2s;
}
.calorie-row.highlighted {
  border-color: var(--primary-border);
  background: rgba(0,212,180,.07);
  box-shadow: inset 0 0 20px rgba(0,212,180,.03);
}
.calorie-row-left { display: flex; align-items: center; gap: 10px; }
.calorie-row-icon { font-size: 1.1rem; }
.calorie-row-label { font-weight: 600; font-size: 0.87rem; color: var(--text); line-height: 1.3; }
.calorie-row-desc  { font-size: 0.74rem; color: var(--text-3); }
.calorie-row-value {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
}
.calorie-row-unit { font-size: 0.72rem; color: var(--text-3); text-align: right; }
.calorie-goal-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  background: var(--primary);
  color: #0a0a0f;
  border-radius: 100px;
  padding: 2px 7px;
  margin-left: 5px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── ZIGZAG PLAN ──────────────────────────────────────────────────────── */
.zigzag-section { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 14px; }
.zigzag-toggle-btn {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
}
.zigzag-toggle-btn:hover   { background: var(--primary-dim); border-color: var(--primary-border); }
.zigzag-toggle-btn.open    { background: var(--primary-dim); border-color: var(--primary-border); }
.zigzag-content { margin-top: 14px; }
.zigzag-intro {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  font-size: 0.81rem;
  color: var(--warning);
  margin-bottom: 12px;
  line-height: 1.5;
}
.zigzag-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 10px; }
.zigzag-day {
  border-radius: var(--r-sm);
  padding: 10px 4px;
  text-align: center;
  border: 1px solid var(--border);
}
.zigzag-day.high { background: rgba(16,185,129,.1);  border-color: rgba(16,185,129,.25); }
.zigzag-day.low  { background: rgba(0,212,180,.07);  border-color: rgba(0,212,180,.2);  }
.zigzag-day-name { font-size: 0.7rem;  font-weight: 700; color: var(--text-3);  margin-bottom: 3px; }
.zigzag-day-type { font-size: 0.66rem; font-weight: 600; color: var(--text-2);  margin-bottom: 4px; }
.zigzag-day-cal  { font-family: var(--font); font-size: 0.88rem; font-weight: 800; color: var(--text); line-height: 1; }
.zigzag-day-unit { font-size: 0.6rem;  color: var(--text-3); }
.zigzag-avg { text-align: right; font-size: 0.8rem; color: var(--text-3); padding-top: 6px; border-top: 1px solid var(--border); }

/* ── BMR BREAKDOWN CARD ───────────────────────────────────────────────── */
.bmr-breakdown { display: flex; flex-direction: column; gap: 14px; }
.bmr-row { display: flex; flex-direction: column; gap: 4px; }
.bmr-row-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px; }
.bmr-row-label { font-weight: 600; font-size: 0.88rem; color: var(--text); flex: 1; min-width: 120px; }
.bmr-row-value { font-family: var(--font); font-weight: 800; font-size: 1.4rem; color: var(--primary); }
.bmr-row-unit { font-size: 0.72rem; color: var(--text-3); }
.bmr-row-desc { font-size: 0.79rem; color: var(--text-3); }
.bmr-multiplier {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 0.81rem;
  color: var(--warning);
  font-weight: 500;
}
.bmr-divider { height: 1px; background: var(--border); }

/* ── MACROS CARD ──────────────────────────────────────────────────────── */
.macro-preset-tabs {
  display: flex;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 4px;
  margin-bottom: 24px;
}
.macro-tab {
  flex: 1;
  padding: 9px;
  border-radius: var(--r-sm);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-3);
  background: transparent;
  transition: all 0.2s;
  text-align: center;
}
.macro-tab.active {
  background: linear-gradient(135deg, rgba(0,212,180,.2), rgba(124,58,237,.15));
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.macro-layout { display: flex; align-items: center; gap: 28px; }
.macro-chart-wrap { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
#macro-chart { width: 160px !important; height: 160px !important; }
.macro-chart-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.macro-chart-center span {
  display: block;
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1;
}
.macro-chart-center small { font-size: 0.68rem; color: var(--text-3); }
.macro-bars { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.macro-bar-item {}
.macro-bar-header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.macro-bar-label  { font-size: 0.84rem; font-weight: 700; }
.macro-bar-values { font-size: 0.79rem; color: var(--text-3); }
.macro-bar-track  { height: 7px; background: rgba(255,255,255,.07); border-radius: 100px; overflow: hidden; }
.macro-bar-fill   { height: 100%; border-radius: 100px; transition: width 0.8s ease; }
.macro-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.legend-item  { display: flex; align-items: center; gap: 6px; font-size: 0.81rem; color: var(--text-2); font-weight: 500; }
.legend-dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── WATER INTAKE CARD ────────────────────────────────────────────────── */
.water-display { text-align: center; margin-bottom: 14px; }
.water-amount {
  font-family: var(--font);
  font-size: 3.2rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 0 20px rgba(56,189,248,.3);
}
.water-unit { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.water-bar-track { height: 12px; background: rgba(56,189,248,.1); border-radius: 100px; overflow: hidden; margin-bottom: 6px; }
.water-bar-fill  { height: 100%; background: linear-gradient(90deg, #0ea5e9, #38bdf8, #00d4b4); border-radius: 100px; transition: width 1s ease; }
.water-bar-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-3); margin-bottom: 14px; }
.water-details { display: flex; flex-direction: column; gap: 7px; }
.water-detail-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.83rem; color: var(--text-2);
  background: rgba(56,189,248,.05);
  border: 1px solid rgba(56,189,248,.1);
  border-radius: var(--r-sm);
  padding: 8px 12px;
}
.water-detail-icon { font-size: 1rem; flex-shrink: 0; }

/* ── IDEAL WEIGHT CARD ────────────────────────────────────────────────── */
.ideal-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.ideal-method {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
}
.ideal-method-name { font-size: 0.8rem; font-weight: 700; color: var(--text-2); margin-bottom: 6px; line-height: 1.3; }
.ideal-method-tag {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  background: rgba(0,212,180,.15);
  color: var(--primary);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}
.ideal-method-value { font-family: var(--font); font-size: 1.3rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.ideal-method-desc { font-size: 0.73rem; color: var(--text-3); line-height: 1.4; }
.ideal-average {
  background: linear-gradient(135deg, rgba(0,212,180,.1), rgba(124,58,237,.08));
  border: 1px solid rgba(0,212,180,.2);
  border-radius: var(--r-md);
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.ideal-average-label { font-size: 0.85rem; color: var(--text-2); }
.ideal-average-value { font-family: var(--font); font-size: 1.4rem; font-weight: 800; color: var(--primary); }

/* ── GOAL DATE CARD ───────────────────────────────────────────────────── */
.goal-prompt { text-align: center; padding: 32px; color: var(--text-3); }
.goal-prompt p { margin-bottom: 16px; color: var(--text-3); }
.goal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.goal-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
}
.goal-stat-value { display: block; font-family: var(--font); font-weight: 800; font-size: 1.6rem; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.goal-stat-label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; color: var(--text-3); text-transform: uppercase; }
.goal-alert { border-radius: var(--r-md); padding: 12px 16px; font-size: 0.87rem; font-weight: 500; line-height: 1.5; margin-top: 4px; }
.goal-alert.warning { background: rgba(245,158,11,.1);  color: var(--warning);  border: 1px solid rgba(245,158,11,.25); }
.goal-alert.success { background: rgba(16,185,129,.1);  color: var(--success);  border: 1px solid rgba(16,185,129,.25); }
.goal-alert.danger  { background: rgba(244,63,94,.1);   color: var(--danger);   border: 1px solid rgba(244,63,94,.25);  }
.goal-daily-target {
  background: linear-gradient(135deg, rgba(0,212,180,.15), rgba(124,58,237,.12));
  border: 1px solid rgba(0,212,180,.25);
  border-radius: var(--r-lg);
  padding: 20px;
  text-align: center;
  margin-bottom: 16px;
}
.goal-daily-label { font-size: 0.83rem; color: var(--text-2); margin-bottom: 6px; }
.goal-daily-value { font-family: var(--font); font-weight: 800; font-size: 2.6rem; letter-spacing: -1px; line-height: 1; color: var(--primary); }
.goal-daily-unit  { font-size: 0.83rem; color: var(--text-2); }

/* ── FOOD & MEAL CARD ─────────────────────────────────────────────────── */
.meal-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.meal-item {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px;
}
.meal-time   { font-size: 0.68rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.meal-name   { font-weight: 700; font-size: 0.88rem; color: var(--text); margin-bottom: 2px; }
.meal-detail { font-size: 0.75rem; color: var(--text-3); margin-bottom: 6px; line-height: 1.4; }
.meal-cal    { font-family: var(--font); font-weight: 700; font-size: 1rem; color: var(--warning); }
.meal-total {
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--r-md);
  padding: 11px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.88rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 12px;
}
.meal-total-val { color: var(--warning); font-family: var(--font); font-size: 1.05rem; font-weight: 800; }
.meal-disclaimer { font-size: 0.75rem; color: var(--text-3); margin-bottom: 20px; font-style: italic; }

.food-search-section { border-top: 1px solid var(--border); padding-top: 20px; }
.food-search-title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }

/* ── STACKING FIX ───────────────────────────────────────────────────────────
   #card-food must have an explicit z-index so its stacking context ranks
   above the Psychology/Share cards that follow it in the DOM. Without this,
   those later cards (which also have backdrop-filter stacking contexts) paint
   on top of our absolute-positioned dropdown.
   overflow:visible is required so the dropdown can extend below the card edge.
─────────────────────────────────────────────────────────────────────────── */
#card-food {
  overflow: visible !important;
  isolation: isolate;
  z-index: 10;
}

/* ── SEARCH INPUT WRAPPER ── position:relative is the anchor for the dropdown */
#food-search-wrapper {
  position: relative;
  width: 100%;
}

#food-search {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
#food-search::placeholder { color: var(--text-4); }
#food-search:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,212,180,.15);
}

/* ── DROPDOWN ───────────────────────────────────────────────────────────────
   position:absolute relative to #food-search-wrapper.
   width:100% = exactly the same width as the input — no JS sizing needed.
   display:none / display:block toggled by .visible class via JS.
─────────────────────────────────────────────────────────────────────────── */
#food-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;
  max-height: 260px;
  overflow-y: auto;
  background: rgba(15, 15, 28, 0.98);
  border: 1px solid rgba(0, 212, 180, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  z-index: 99999;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,180,.35) transparent;
}
#food-dropdown.visible { display: block; }
#food-dropdown::-webkit-scrollbar        { width: 4px; }
#food-dropdown::-webkit-scrollbar-track  { background: transparent; }
#food-dropdown::-webkit-scrollbar-thumb  { background: rgba(0,212,180,.35); border-radius: 2px; }
#food-dropdown::-webkit-scrollbar-thumb:hover { background: rgba(0,212,180,.6); }

.food-dropdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: #e2e8f0;
  font-size: 14px;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.food-dropdown-item:last-child { border-bottom: none; }
.food-dropdown-item:hover,
.food-dropdown-item:active {
  background: rgba(0, 212, 180, 0.15);
  color: #00d4b4;
}
.food-dropdown-item .food-name { flex: 1; min-width: 0; }
.food-dropdown-item .food-cal  {
  color: #00d4b4;
  font-weight: 600;
  margin-left: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
/* Highlighted matching text */
.food-match { color: #00d4b4; font-weight: 700; }

.food-dropdown-no-result {
  padding: 14px 16px;
  color: #94a3b8;
  font-size: 14px;
  text-align: center;
}

.food-selected {
  margin-top: 10px;
  background: rgba(0,212,180,.07);
  border: 1px solid rgba(0,212,180,.18);
  border-radius: var(--r-md);
  padding: 12px 16px;
}
.food-selected-name   { font-weight: 700; font-size: 0.93rem; color: var(--text); margin-bottom: 4px; }
.food-selected-detail { font-size: 0.8rem; color: var(--text-2); }
.food-selected-macros { margin-top: 8px; display: flex; gap: 14px; flex-wrap: wrap; }
.food-macro           { font-size: 0.76rem; color: var(--text-2); }
.food-macro strong    { color: var(--text); }

/* ── PSYCHOLOGY CARD ──────────────────────────────────────────────────── */
.card-psych {
  background: linear-gradient(135deg, rgba(124,58,237,.18) 0%, rgba(0,212,180,.1) 100%);
  border-color: rgba(124,58,237,.25);
}
.card-psych::before { background: linear-gradient(90deg, transparent, rgba(124,58,237,.6), rgba(0,212,180,.5), transparent); }
.psych-title  { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--primary); margin-bottom: 10px; line-height: 1.3; }
.psych-body   { font-size: 0.88rem; line-height: 1.7; color: var(--text-2); }
.psych-source { margin-top: 12px; font-size: 0.75rem; color: var(--text-3); }

/* ── SHARE CARD ───────────────────────────────────────────────────────── */
.card-share { text-align: center; }
.share-card-preview { margin: 0 auto 16px; max-width: 360px; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 16px 48px rgba(0,0,0,.5); }
.share-card-inner {
  background: linear-gradient(135deg, #060d1a 0%, #0d0a22 40%, #080e1e 100%);
  padding: 32px 24px;
  color: white;
  text-align: center;
  border: 1px solid rgba(0,212,180,.15);
  position: relative;
  overflow: hidden;
}
.share-card-inner::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,212,180,.15), transparent 70%);
  border-radius: 50%;
}
.share-card-inner::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(124,58,237,.15), transparent 70%);
  border-radius: 50%;
}
.share-site-name  { font-family: var(--font); font-weight: 800; font-size: 0.82rem; opacity: .5; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; position: relative; z-index: 1; }
.share-headline   { font-family: var(--font); font-weight: 800; font-size: 1.5rem; margin-bottom: 22px; position: relative; z-index: 1; }
.share-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; position: relative; z-index: 1; }
.share-stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md); padding: 12px; }
.share-stat-value { display: block; font-family: var(--font); font-weight: 800; font-size: 1.4rem; line-height: 1; margin-bottom: 4px; color: var(--primary); }
.share-stat-label { font-size: 0.72rem; opacity: .6; text-transform: uppercase; letter-spacing: .05em; }
.share-url        { font-size: 0.75rem; opacity: .4; position: relative; z-index: 1; }
.share-caption    { font-size: 0.8rem; color: var(--text-3); margin-bottom: 16px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════════════════════════════════ */
.faq-section {
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border);
  padding: 72px 0;
}
.section-title { text-align: center; margin-bottom: 44px; color: var(--text); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  padding: 18px 0;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  list-style: none;
}
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--primary); flex-shrink: 0; transition: transform .2s; }
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.7;
  display: flex; flex-direction: column; gap: 8px;
}
.faq-answer p { color: var(--text-2); }

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════════════════ */
.site-footer {
  background: rgba(0,0,0,.3);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.site-footer .logo-text { color: var(--text); font-family: var(--font); font-weight: 700; font-size: 1.05rem; }
.site-footer .logo-accent { color: var(--primary); }
.footer-tagline    { font-size: 0.83rem; color: var(--text-3); }
.footer-links      { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-link       { color: var(--text-3); font-size: 0.83rem; transition: color .2s; }
.footer-link:hover { color: var(--primary); text-decoration: none; }
.footer-sep        { color: var(--text-4); }
.footer-copy       { font-size: 0.8rem; color: var(--text-4); }
.footer-disclaimer { font-size: 0.76rem; color: var(--text-4); max-width: 560px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════════════════════
   AD SLOTS
═══════════════════════════════════════════════════════════════════════════ */
.ad-slot { text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT ONLY ELEMENTS
═══════════════════════════════════════════════════════════════════════════ */
.no-screen { display: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .activity-grid { grid-template-columns: repeat(3, 1fr); }
  .results-grid  { grid-template-columns: 1fr; }
  .card-full-width { grid-column: 1; }
}

@media (max-width: 640px) {
  .form-card { padding: 24px 18px; border-radius: var(--r-lg); }
  .form-row.two-col { grid-template-columns: 1fr; gap: 0; }
  .activity-grid { grid-template-columns: 1fr 1fr; }
  .activity-grid .activity-card:last-child { grid-column: 1 / -1; }
  .macro-layout { flex-direction: column; align-items: center; }
  .goal-grid { grid-template-columns: 1fr 1fr; }
  .share-card-preview { max-width: 100%; }
  .results-header { flex-direction: column; align-items: flex-start; }
  .hero { padding: 64px 0 56px; }
  .result-card { padding: 20px 16px; }
  .ideal-methods { grid-template-columns: 1fr; }
  .zigzag-grid { grid-template-columns: repeat(4, 1fr); }
  .results-actions { gap: 8px; }
}

@media (max-width: 400px) {
  .activity-grid { grid-template-columns: 1fr; }
  .activity-grid .activity-card:last-child { grid-column: 1; }
  .toggle-group.three { flex-direction: column; }
  .ftin-row { grid-template-columns: 1fr 1fr; }
  .zigzag-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRINT STYLES
═══════════════════════════════════════════════════════════════════════════ */
@media print {
  body { background: white !important; color: #1a1a1a !important; animation: none !important; opacity: 1 !important; }
  body::before { display: none !important; }

  .site-header, .hero, .form-section, .faq-section, .site-footer,
  .ad-slot, .food-search-section, .zigzag-toggle-btn,
  .no-print, #share-btn, .share-caption, .results-subtitle,
  .results-header .results-actions { display: none !important; }

  .result-card {
    opacity: 1 !important; transform: none !important;
    background: #fff !important; border: 1px solid #e0e0e0 !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    color: #1a1a1a !important;
    break-inside: avoid; page-break-inside: avoid;
  }
  .result-card::before { display: none !important; }
  .result-card:hover { transform: none !important; }

  .results-section { padding: 0 !important; }
  .results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-full-width { grid-column: 1 / -1; }
  .results-title { color: #1a1a1a !important; -webkit-text-fill-color: #1a1a1a !important; }

  .card-title, .card-note, .card-subtitle { color: #6b7280 !important; }
  .bmi-number { color: #0a7060 !important; text-shadow: none !important; -webkit-text-fill-color: #0a7060 !important; }
  .calorie-row-value, .bmr-row-value, .goal-stat-value, .goal-daily-value,
  .water-amount, .ideal-method-value, .ideal-average-value { color: #0a7060 !important; -webkit-text-fill-color: #0a7060 !important; }
  .calorie-row-label, .bmr-row-label, .bmi-standards-row, .standard-label { color: #374151 !important; }
  .bmr-row-desc, .calorie-row-desc, .text-3, .text-2 { color: #6b7280 !important; }

  .bmi-standards-row { background: #f9fafb !important; border: 1px solid #e5e7eb !important; }
  .healthy-range-box { background: #f0fdf4 !important; border: 1px solid #bbf7d0 !important; }
  .calorie-row { background: #fff !important; border: 1px solid #e5e7eb !important; }
  .calorie-row.highlighted { background: #f0fdfa !important; border-color: #5eead4 !important; }
  .goal-stat { background: #f9fafb !important; border: 1px solid #e5e7eb !important; }
  .goal-daily-target { background: #f0fdfa !important; border: 1px solid #5eead4 !important; }
  .meal-item { background: #f9fafb !important; border: 1px solid #e5e7eb !important; }
  .meal-total { background: #fef3c7 !important; border: 1px solid #fde68a !important; }
  .ideal-method { background: #f9fafb !important; border: 1px solid #e5e7eb !important; }
  .ideal-average { background: #f0fdfa !important; border: 1px solid #5eead4 !important; }
  .bmr-multiplier { background: #fffbeb !important; border: 1px solid #fde68a !important; color: #b45309 !important; }
  .goal-alert.success { background: #f0fdf4 !important; border-color: #bbf7d0 !important; color: #065f46 !important; }
  .goal-alert.warning { background: #fffbeb !important; border-color: #fde68a !important; color: #b45309 !important; }
  .goal-alert.danger  { background: #fff1f2 !important; border-color: #fecdd3 !important; color: #9f1239 !important; }
  .card-psych { background: #f5f3ff !important; border: 1px solid #ddd6fe !important; }
  .psych-title { color: #6d28d9 !important; -webkit-text-fill-color: #6d28d9 !important; }
  .psych-body, .psych-source { color: #4b5563 !important; }
  .share-card-inner { background: #f0fdfa !important; color: #1a1a1a !important; }
  .share-site-name, .share-headline, .share-url, .share-stat-label { color: #1a1a1a !important; }
  .share-stat { background: #f9fafb !important; border: 1px solid #e5e7eb !important; }
  .share-stat-value { color: #0a7060 !important; -webkit-text-fill-color: #0a7060 !important; }
  .macro-chart-center span { color: #1a1a1a !important; }
  .macro-bar-track { background: #e5e7eb !important; }
  .water-bar-track { background: #e0f2fe !important; }
  .water-detail-item { background: #f0f9ff !important; border-color: #bae6fd !important; }
  .water-amount { color: #0369a1 !important; text-shadow: none !important; -webkit-text-fill-color: #0369a1 !important; }
  .zigzag-content { display: block !important; }
  .zigzag-day.high { background: #dcfce7 !important; border-color: #86efac !important; }
  .zigzag-day.low  { background: #dbeafe !important; border-color: #93c5fd !important; }
  .zigzag-day-cal, .zigzag-day-name, .zigzag-day-type, .zigzag-day-unit { color: #1a1a1a !important; }
  .zigzag-avg, .zigzag-intro { color: #6b7280 !important; }
  .zigzag-intro { background: #fffbeb !important; border-color: #fde68a !important; }

  #bmi-gauge { max-width: 200px; }
  #macro-chart { width: 120px !important; height: 120px !important; }
  .macro-chart-wrap { width: 120px; height: 120px; }
  .ideal-methods { grid-template-columns: repeat(3, 1fr); }

  .no-screen { display: block !important; }
  .print-footer { text-align: center; padding: 16px 0 0; font-size: 0.78rem; color: #6b7280; border-top: 1px solid #e5e7eb; margin-top: 16px; }
}

@media print and (max-width: 600px) {
  .results-grid  { grid-template-columns: 1fr; }
  .ideal-methods { grid-template-columns: 1fr; }
  .zigzag-grid   { grid-template-columns: repeat(4, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════════════════════════════ */
.text-primary { color: var(--primary)  !important; }
.text-warning { color: var(--warning)  !important; }
.text-danger  { color: var(--danger)   !important; }
.text-success { color: var(--success)  !important; }
.text-muted   { color: var(--text-3)   !important; }
