/* ============ Yuvaap Food — styled with the app's own design tokens (Poppins, surfaces, brand gradient, light/dark) ============ */
.fd { --fd-sel: color-mix(in srgb, var(--magenta) 10%, var(--surface)); --fd-sel-line: color-mix(in srgb, var(--magenta) 45%, var(--border)); }
.fd-col { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.fd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; }
.fd-back, .fd-iconbtn { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text); background: var(--surface-2); transition: background .15s; }
.fd-back:hover, .fd-iconbtn:hover { background: var(--violet-50); }
.fd-iconbtn:disabled { opacity: .45; }
.fd-head-actions { display: flex; gap: 8px; min-width: 40px; justify-content: flex-end; }
.fd-brand { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; background: var(--grad-soft); color: var(--magenta); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.fd-brand img { width: 16px; height: 16px; }
.fd-badge { padding: 5px 14px; border-radius: 99px; background: var(--violet-50); color: var(--violet); font-size: 12.5px; font-weight: 600; }
:root[data-theme="dark"] .fd-badge, :root[data-theme="dark"] .fd-pill { color: var(--lilac); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fd-badge, :root:not([data-theme="light"]) .fd-pill { color: var(--lilac); } }
.fd-h1 { font-size: 24px; font-weight: 600; color: var(--text); line-height: 1.25; }
.fd-flower { width: 22px; height: 22px; display: inline; vertical-align: -3px; }
.fd-sub { color: var(--text-2); font-size: 14px; margin-top: -8px; }
.fd-intro { color: var(--text-2); font-size: 14.5px; }
.fd-body { display: flex; flex-direction: column; gap: 12px; }
.fd-foot { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 8px; align-items: center; padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); margin-top: 4px; }
@media (max-width: 960px) { .fd-foot { bottom: 64px; } }

.fd-card { display: block; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: inherit; }
.fd-card h3 { font-size: 15.5px; font-weight: 600; color: var(--text); }
.fd-card p { font-size: 13.5px; color: var(--text-2); }
.fd-row { display: flex; align-items: center; gap: 12px; }
.fd-linkrow { transition: border-color .15s, transform .15s; }
.fd-linkrow:hover { border-color: var(--lilac); transform: translateY(-1px); }
.fd-art img, .fd-goal-art { width: 60px; height: 60px; object-fit: contain; }
.fd-art .fd-ic { font-size: 30px; color: var(--magenta); }
.fd-note { color: var(--text-3); font-size: 12.5px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fd-quote { text-align: center; font-style: italic; color: var(--magenta); font-size: 14px; margin: 4px 0; }

.fd-btn { width: 100%; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 15px; background: var(--grad); box-shadow: 0 6px 18px rgba(200, 26, 83, .28); transition: transform .12s, box-shadow .2s, opacity .2s; }
.fd-btn:hover { box-shadow: 0 8px 24px rgba(200, 26, 83, .38); }
.fd-btn:active { transform: scale(.98); }
.fd-btn:disabled { opacity: .5; box-shadow: none; }
.fd-btn-sm { width: auto; min-height: 38px; padding: 0 18px; font-size: 13.5px; }
.fd-link { color: var(--magenta); font-weight: 600; font-size: 13.5px; }
.fd-pill { padding: 3px 10px; border-radius: 99px; background: var(--violet-50); color: var(--violet); font-size: 12px; font-weight: 600; }

/* Options: same language as the app's onboarding .option */
.fd-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.fd-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); cursor: pointer; text-align: left; width: 100%; color: inherit; font: inherit; transition: border-color .15s, background .15s; }
.fd-opt:hover { border-color: var(--lilac); }
.fd-opt input { position: absolute; opacity: 0; pointer-events: none; }
.fd-opt b { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); }
.fd-opt small { font-size: 12.5px; color: var(--text-2); }
.fd-opt.on { border-color: var(--magenta); background: var(--fd-sel); }
.fd-dot, .fd-box { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--lilac); background: var(--surface); transition: all .15s; }
.fd-box { border-radius: 6px; }
.fd-opt.on .fd-dot { border: 6px solid var(--magenta); }
.fd-opt.on .fd-box { background: var(--magenta); border-color: var(--magenta); box-shadow: inset 0 0 0 3px var(--surface); }
.fd-dim { opacity: .5; }

.fd-counter { display: flex; align-items: center; gap: 12px; }
.fd-counter button, .fd-stepper button { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--text); font-size: 18px; font-weight: 600; transition: background .15s; }
.fd-counter button:hover, .fd-stepper button:hover { background: var(--violet-50); }
.fd-counter b { min-width: 76px; text-align: center; color: var(--text); font-weight: 600; }
.fd-yn { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.fd-yn button, .fd-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 500; transition: all .15s; }
.fd-yn button:hover, .fd-chip:hover { border-color: var(--lilac); }
.fd-yn button.on, .fd-chip.on { background: var(--violet); border-color: var(--violet); color: #fff; }
.fd-chip.sm { height: 26px; padding: 0 10px; font-size: 11.5px; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.fd-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.fd-chip-img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.fd-input { width: 100%; height: 44px; margin-top: 10px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font: inherit; outline: none; }
.fd-input:focus { border-color: var(--mauve); box-shadow: 0 0 0 4px rgba(149, 90, 150, .15); }
.fd-results { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fd-selected { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--text-2); }
.fd-strip { padding: 10px 14px; border-radius: 12px; background: var(--grad-soft); color: var(--magenta); font-weight: 600; font-size: 13.5px; }
.fd-rank { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; margin-top: 8px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--text); text-align: left; }
.fd-rank.on { border-color: var(--magenta); background: var(--fd-sel); }
.fd-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12.5px; font-weight: 700; }
.fd-rank:not(.on) .fd-num { background: var(--surface-2); }
.fd-people { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.fd-people button { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid var(--border); background: var(--surface); font-size: 16px; font-weight: 600; color: var(--text); }
.fd-people button.on { background: var(--grad); border-color: transparent; color: #fff; }
.fd-info { display: flex; gap: 12px; align-items: center; }
.fd-info img { width: 70px; }
.fd-falling { width: 60%; max-width: 260px; margin: 0 auto; }
.fd-check { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text-3); font-size: 14.5px; }
.fd-check span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--lilac); }
.fd-check.done { color: var(--text); }
.fd-check.done span { background: var(--magenta); border-color: var(--magenta); box-shadow: inset 0 0 0 3px var(--surface); }

/* Startup splash */
.fd-splash { align-items: center; text-align: center; padding-top: 8vh; }
.fd-disc { position: relative; width: 200px; height: 200px; }
.fd-disc svg { position: absolute; inset: 0; animation: spin 1.8s linear infinite; }
.fd-disc circle { fill: none; stroke-width: 6; }
.fd-disc .trk { stroke: var(--border); }
.fd-disc .arc { stroke: var(--magenta); stroke-dasharray: 180 512; stroke-linecap: round; }
.fd-disc-in { position: absolute; inset: 22px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.fd-disc-in b { font-size: 22px; letter-spacing: .1em; color: var(--text); }
.fd-disc-in img { width: 26px; }
.fd-disc-in small { font-size: 12px; letter-spacing: 7px; color: var(--magenta); font-weight: 600; }
.fd-splash h2 { font-size: 21px; }
.fd-tag { font-size: 14px; color: var(--text-2); }
.fd-error { color: var(--danger); margin: 10px 0; }

/* Home */
.fd-level { display: flex; align-items: center; justify-content: space-between; background: var(--grad); color: #fff; border: 0; }
.fd-level small { opacity: .85; }
.fd-level h3 { color: #fff; font-size: 19px; }
.fd-day { padding: 6px 14px; border-radius: 99px; color: var(--magenta); font-weight: 700; background: #fff; }
.fd-meal { display: flex; align-items: center; gap: 14px; padding: 10px; transition: border-color .15s, transform .15s; }
.fd-meal:hover { border-color: var(--lilac); transform: translateY(-1px); }
.fd-meal-img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.fd-meal-type { display: flex; align-items: center; gap: 6px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--magenta); font-weight: 600; }
.fd-meal-type img, .fd-mini { width: 16px; height: 16px; display: inline; }
.fd-meal small { color: var(--text-3); }
.fd-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; width: 100%; }
.fd-qa { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 8px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-align: center; transition: border-color .15s, transform .15s; }
.fd-qa:hover { border-color: var(--lilac); transform: translateY(-1px); }
.fd-qa img { width: 28px; height: 28px; }
.fd-qa b { color: var(--magenta); }
.fd-qa:disabled { opacity: .5; }

/* Meal overview / recipe */
.fd-why { display: flex; gap: 12px; align-items: center; background: var(--grad-soft); }
.fd-why img { width: 32px; }
.fd-comp { display: flex; align-items: center; gap: 10px; padding: 10px; }
.fd-comp a { color: inherit; }
.fd-comp-img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.fd-tick { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--lilac); color: transparent; display: grid; place-items: center; background: var(--surface); }
.fd-tick.on { background: var(--success); border-color: var(--success); color: #fff; }
.fd-hero { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.fd-ing { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--text); }
.fd-ing i { flex: 1; border-bottom: 2px dotted var(--border); transform: translateY(4px); }
.fd-ing b { color: var(--magenta); white-space: nowrap; font-weight: 600; }
.fd-ing-img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.fd-step { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.fd-step h4 { color: var(--text); font-size: 14.5px; font-weight: 600; }
.fd-instr { font-size: 14px; color: var(--text-2); margin-top: 6px; line-height: 1.65; }
.fd-instr img { display: inline; width: 20px; height: 20px; border-radius: 50%; vertical-align: -4px; }
.fd-err-line { color: var(--danger); font-size: 13px; text-align: center; min-height: 1em; }
.fd-swaps { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-top: 10px; }
.fd-swap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 600; color: var(--text); text-align: center; }
.fd-swap small { font-weight: 400; color: var(--text-3); font-size: 11px; }
.fd-swap-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.fd-swap i { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--magenta); color: #fff; display: none; place-items: center; }
.fd-swap.on { border-color: var(--magenta); background: var(--fd-sel); }
.fd-swap.on i { display: grid; }

/* Week grid */
.fd-week { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.fd-wk-row { display: grid; grid-template-columns: 46px repeat(4, 1fr); gap: 6px; align-items: center; padding: 6px 8px; border-top: 1px solid var(--border); }
.fd-wk-head { border-top: 0; background: var(--surface-2); font-size: 11px; text-align: center; color: var(--text-2); font-weight: 600; }
.fd-wk-head img { width: 18px; height: 18px; margin: 0 auto 2px; display: block; }
.fd-wk-row > b { font-size: 13px; color: var(--text); text-align: center; font-weight: 600; }
.fd-wk-cell { display: grid; place-items: center; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); font-size: 10px; text-align: center; color: var(--text); padding: 2px; transition: transform .15s; }
.fd-wk-cell:hover { transform: scale(1.04); }
.fd-wk-cell img { width: 100%; height: 100%; object-fit: cover; }
.fd-wk-empty { text-align: center; color: var(--text-3); }

/* Shopping */
.fd-acc { padding: 6px 12px; }
.fd-acc-h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 2px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.fd-colour { width: 14px; height: 14px; border-radius: 50%; background: var(--c, #ccc); border: 1px solid rgba(0, 0, 0, .12); }
.fd-shop { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text); }
.fd-shop.off { opacity: .5; }
.fd-shop-chk input { width: 18px; height: 18px; accent-color: var(--magenta); }
.fd-stepper { display: flex; align-items: center; gap: 6px; }
.fd-stepper b { min-width: 60px; text-align: center; font-size: 12.5px; font-weight: 600; }

/* Prep sheet & fail-proof */
.fd-prep { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 70%); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.fd-prep-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.fd-prep-card.done { opacity: .7; }
.fd-prep-img { width: 100%; height: 110px; object-fit: cover; border-radius: 12px; background: var(--surface); }
.fd-fail { display: flex; gap: 14px; align-items: center; }
.fd-fail > img { width: 96px; height: 120px; object-fit: cover; border-radius: 14px; }
.fd-fail p { color: var(--text); font-size: 14px; }
.fd-or { color: var(--magenta); font-weight: 700; font-size: 11px; }
.fd-end { font-style: italic; margin-top: 4px; color: var(--text-2) !important; }
@media (max-width: 480px) { .fd-h1 { font-size: 21px; } .fd-wk-row { grid-template-columns: 38px repeat(4, 1fr); gap: 4px; padding: 5px; } }
