/* FoodEasy — stiluri aplicație
   Paletă: vânătă (fundal), prună (suprafețe), muștar (accent), castravete (încadrare calorii), boia (aprecieri). */
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('/fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Lora'; src: url('/fonts/Lora-Variable.ttf') format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --vanata: #2A1733; --pruna: #43264F; --pruna-2: #5A3A68; --mustar: #E9B824; --mustar-ink: #2A1733;
  --castravete: #6FAE57; --boia: #E0483E; --lapte: #F6EFF8;
  --bg: #FBF8FC; --ink: #24132C; --muted: #77677F; --line: #E8DEEC; --card: #FFFFFF; --soft: #F3ECF5;
  --sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --tabbar: 62px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --r-sm: 10px; --r: 16px; --r-lg: 24px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); font-size: 15px; line-height: 1.5; color: var(--ink); background: #1c0f22; -webkit-font-smoothing: antialiased; }
#view { max-width: 520px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; }
body.on-feed #view { background: var(--vanata); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
:focus-visible { outline: 3px solid var(--mustar); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.big { width: 48px; height: 48px; stroke-width: 1.5; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .pad { padding: 32px 16px; }
.row { display: flex; align-items: center; } .gap { gap: 10px; } .gap-s { gap: 8px; } .wrap { flex-wrap: wrap; } .grow { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.danger { color: var(--boia) !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ---------- Butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--mustar); color: var(--mustar-ink); }
.btn-dark { background: var(--vanata); color: var(--lapte); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-soft { background: var(--soft); color: var(--ink); white-space: normal; text-align: left; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
.btn-danger { background: var(--boia); color: #fff; }
.btn-link { min-height: 36px; padding: 0 4px; color: var(--pruna-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; background: none; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 54px; font-size: 16px; }
.btn.block { display: flex; width: 100%; }
.btn .ic { width: 18px; height: 18px; }
.btn-timer { background: var(--vanata); color: var(--mustar); min-height: 38px; padding: 0 14px; border-radius: 999px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; }
.btn-timer .ic { width: 18px; height: 18px; }
.btn-timer.on { background: var(--boia); color: #fff; animation: tpulse 1.6s ease-in-out infinite; }
.cook .btn-timer.on { background: var(--boia); color: #fff; }
@keyframes tpulse { 50% { opacity: .82; } }
@media (prefers-reduced-motion: reduce) { .btn-timer.on { animation: none; } }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; position: relative; text-decoration: none; flex: none; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--boia); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* ---------- Chip-uri ---------- */
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,.16); color: inherit; white-space: nowrap; border: 0; }
.chip .ic { width: 15px; height: 15px; }
.chip-kcal { background: var(--mustar); color: var(--mustar-ink); }
.chip-fit { background: var(--castravete); color: #fff; }
.chip-ai { background: #7d6bd8; color: #fff; }
.chip-soft { background: var(--soft); color: var(--ink); }
.cat-tag { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; padding: 4px 10px 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--cat) 22%, transparent); color: inherit; }

/* ---------- Bara de navigare ---------- */
#tabbar { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: flex; justify-content: space-around; align-items: center; background: var(--card); border-top: 1px solid var(--line); }
body.on-feed #tabbar { background: var(--vanata); border-top-color: rgba(255,255,255,.08); color: var(--lapte); }
body.no-tabbar #tabbar { display: none; }
#tabbar a { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 11px; font-weight: 500; text-decoration: none; opacity: .62; min-width: 56px; padding: 6px 0; }
#tabbar a.active { opacity: 1; }
#tabbar a.active .ic { stroke-width: 2.4; }
#tabbar .nav-add { opacity: 1; width: 52px; height: 38px; min-width: 0; border-radius: 12px; background: var(--mustar); color: var(--mustar-ink); display: grid; place-items: center; padding: 0; }
#tabbar .nav-add .ic { stroke-width: 2.6; }

/* ---------- Feed ---------- */
.feed-wrap { position: relative; height: 100dvh; color: var(--lapte); background: var(--vanata); }
.feed { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.feed::-webkit-scrollbar { display: none; }
.feed-top { position: absolute; z-index: 10; top: 0; left: 0; right: 0; padding: calc(10px + var(--safe-t)) 10px 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; pointer-events: none; }
.feed-top > * { pointer-events: auto; }
.ft-right { display: flex; justify-content: flex-end; }
.feed-top .icon-btn { color: var(--lapte); filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.seg { display: flex; padding: 4px; border-radius: 999px; background: rgba(42,23,51,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.seg button { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: rgba(246,239,248,.7); }
.seg button .ic { width: 18px; height: 18px; }
.seg button[aria-selected="true"] { background: var(--mustar); color: var(--mustar-ink); }
.modes { position: absolute; z-index: 10; top: calc(62px + var(--safe-t)); left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: 0 10px; overflow-x: auto; scrollbar-width: none; }
.modes button { flex: none; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; color: rgba(246,239,248,.8); background: rgba(42,23,51,.45); display: inline-flex; align-items: center; gap: 4px; backdrop-filter: blur(6px); }
.modes button .ic { width: 14px; height: 14px; }
.modes button[aria-pressed="true"] { color: var(--vanata); background: var(--lapte); }
.fit-note { position: absolute; z-index: 10; top: calc(98px + var(--safe-t)); left: 50%; transform: translateX(-50%); margin: 0; width: max-content; max-width: 92%; font-size: 12px; padding: 4px 12px; border-radius: 999px; background: var(--castravete); color: #fff; text-align: center; }

.kcal-ring { position: relative; width: 44px; height: 44px; display: grid; place-items: center; text-decoration: none; color: var(--lapte); }
.kcal-ring svg:not(.ic) { position: absolute; inset: 0; }
.kcal-ring .ic { width: 22px; height: 22px; display: block; margin: auto; }
.kcal-ring span { font-size: 11px; font-weight: 700; z-index: 1; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.kcal-ring.empty { border-radius: 50%; background: rgba(42,23,51,.6); }
.ring-bg { fill: rgba(42,23,51,.55); stroke: rgba(255,255,255,.2); stroke-width: 4; }
.ring-fg { fill: none; stroke: var(--castravete); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset .6s; }
.kcal-ring.over .ring-fg, .kcal-hero.over .ring-fg { stroke: var(--boia); }

.item { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }
.item-video { background: #000; }
.item-video .vid, .vposter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-video .vid { background: transparent; }
.tap-zone { position: absolute; inset: 0; z-index: 1; }
.play-ind { position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.8); width: 76px; height: 76px; border-radius: 50%; background: rgba(0,0,0,.4); display: grid; place-items: center; opacity: 0; transition: .2s; pointer-events: none; }
.play-ind .ic { width: 36px; height: 36px; margin-left: 4px; }
.item.paused .play-ind { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 22%, transparent 50%, rgba(20,8,26,.85)); }
.vprog { position: absolute; left: 0; right: 0; bottom: calc(var(--tabbar) + var(--safe-b)); height: 3px; background: rgba(255,255,255,.18); z-index: 3; }
.vprog i { display: block; height: 100%; background: var(--mustar); transform-origin: left; transform: scaleX(0); }
.mute-btn { position: absolute; z-index: 11; right: 12px; top: calc(100px + var(--safe-t)); width: 40px; height: 40px; border-radius: 50%; background: rgba(42,23,51,.6); display: grid; place-items: center; color: var(--lapte); }

.rail { position: absolute; z-index: 4; right: 8px; bottom: calc(var(--tabbar) + var(--safe-b) + 18px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rail-author { position: relative; margin-bottom: 6px; }
.rail-author .avatar { border: 2px solid var(--lapte); }
.follow-dot { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--boia); color: #fff; display: grid; place-items: center; }
.follow-dot .ic { width: 14px; height: 14px; stroke-width: 3; }
.rail-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--lapte); text-shadow: 0 1px 3px rgba(0,0,0,.6); min-width: 48px; }
.rail-btn .ic { width: 32px; height: 32px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.5)); }
.rail-btn.small .ic { width: 26px; height: 26px; }
.rail-btn.on .heart, .act.on .heart { fill: var(--boia); stroke: var(--boia); }
.rail-btn.on .bm, .act.on .bm { fill: var(--mustar); stroke: var(--mustar); }
.rail-btn.on .heart { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.3); } }

.item-info { position: absolute; z-index: 3; left: 14px; right: 80px; bottom: calc(var(--tabbar) + var(--safe-b) + 16px); display: flex; flex-direction: column; gap: 6px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.author-line { font-weight: 600; text-decoration: none; font-size: 15px; }
.item-title { font-size: 19px; font-weight: 700; }
.item-desc { margin: 0; font-size: 14px; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-desc.clamp3 { -webkit-line-clamp: 3; }
.item-info .chip { background: rgba(42,23,51,.65); text-shadow: none; }
.item-info .chip-kcal { background: var(--mustar); }
.item-info .chip-fit { background: var(--castravete); }
.item-info .chip-ai { background: #7d6bd8; }
.recipe-pill { align-self: flex-start; margin-top: 4px; display: inline-flex; gap: 6px; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--lapte); color: var(--vanata); font-weight: 700; text-shadow: none; }
.recipe-pill .ic { width: 18px; height: 18px; }

/* Rețetă scrisă în feed: jumătate imagine, jumătate fișă */
.item-text { display: flex; flex-direction: column; background: var(--vanata); }
.text-media { flex: 1 1 46%; min-height: 0; position: relative; cursor: pointer; }
.text-media .cover { width: 100%; height: 100%; object-fit: cover; }
.text-card { position: relative; z-index: 2; flex: 0 0 auto; margin-top: -28px; padding: 22px 82px calc(var(--tabbar) + var(--safe-b) + 18px) 18px; background: var(--vanata); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; gap: 10px; }
.text-card .cat-tag { align-self: flex-start; background: color-mix(in srgb, var(--cat) 40%, var(--vanata)); }
.text-title { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.12; cursor: pointer; letter-spacing: -.01em; }
.text-card .author-line { font-size: 14px; opacity: .75; font-weight: 500; }
.text-card .chip { background: var(--pruna); }
.text-card .chip-kcal { background: var(--mustar); }
.text-card .chip-fit { background: var(--castravete); }
.cook-btn { align-self: flex-start; margin-top: 4px; }
.item-text .rail { bottom: calc(var(--tabbar) + var(--safe-b) + 18px); }
.item-text .rail-btn { text-shadow: none; }
.item-text .rail-btn .ic { filter: none; }

.cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; background: var(--cat);
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0 2px, transparent 3px), radial-gradient(circle at 70% 60%, rgba(255,255,255,.14) 0 2px, transparent 3px);
  background-size: 34px 34px, 46px 46px; }
.cover-fallback span { font-size: clamp(64px, 26vw, 120px); line-height: 1; filter: drop-shadow(0 8px 20px rgba(0,0,0,.25)); }
.cover-fallback span .ic { width: 64px; height: 64px; color: #fff; }

.feed-loader { height: 100dvh; display: grid; place-items: center; scroll-snap-align: start; }
.feed-empty, .feed-end { min-height: 100dvh; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 120px 32px calc(var(--tabbar) + 40px); text-align: center; }
.feed-empty p, .feed-end p { max-width: 300px; margin: 0; opacity: .85; }
.feed-empty .btn-ghost { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.burst { position: fixed; z-index: 60; pointer-events: none; transform: translate(-50%,-50%); color: var(--boia); animation: burst .9s ease-out forwards; }
.burst .ic { width: 96px; height: 96px; fill: var(--boia); stroke: none; }
@keyframes burst { 0% { transform: translate(-50%,-50%) scale(.3) rotate(-12deg); opacity: 0; } 25% { transform: translate(-50%,-50%) scale(1.15) rotate(6deg); opacity: 1; } 100% { transform: translate(-50%,-160%) scale(.9); opacity: 0; } }

.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(128,100,140,.3); border-top-color: var(--mustar); display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pagini luminoase ---------- */
.page { overflow-x: clip; min-height: 100dvh; padding-bottom: calc(var(--tabbar) + var(--safe-b) + 24px); }
body.no-tabbar .page { padding-bottom: 24px; }
.page-light { background: var(--bg); color: var(--ink); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: var(--safe-t) 8px 0; background: rgba(251,248,252,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar h1 { font-size: 18px; font-weight: 700; padding-left: 8px; }
.empty-page { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 80px 28px; min-height: 70dvh; }
.empty-page.small { min-height: 0; padding: 40px 20px; }
.empty-page p { max-width: 320px; margin: 0; color: var(--muted); }
.empty-page .ic.big { color: var(--pruna-2); }
.empty-page h2 { font-family: var(--serif); font-size: 26px; }
.card { background: var(--card); border-radius: var(--r-lg); padding: 18px; margin: 12px 14px; border: 1px solid var(--line); }
.card h2 { font-size: 17px; }
.h-sec { font-size: 15px; font-weight: 700; margin: 22px 0 10px; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; border: 0; padding: 0; margin: 0; min-width: 0; }
.field > span, fieldset legend { font-weight: 600; font-size: 14px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
fieldset legend { margin-bottom: 8px; display: flex; gap: 8px; width: 100%; }
fieldset legend output { margin-left: auto; font-weight: 500; color: var(--muted); }
legend small, .field > span small { font-weight: 400; color: var(--muted); }
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-size: 16px; outline: none; transition: border-color .15s; }
textarea { resize: vertical; min-height: 0; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--pruna-2); }
.invalid input, .invalid textarea, .invalid select, .invalid .cat-grid { border-color: var(--boia) !important; }
.field-error { color: var(--boia); font-size: 13px; margin: 2px 0 0; font-weight: 500; }
input[type=range] { width: 100%; accent-color: var(--pruna-2); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.check input { width: 22px; height: 22px; accent-color: var(--pruna-2); flex: none; margin: 1px 0 0; }
.hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px; background: var(--soft); font-size: 14px; font-weight: 500; cursor: pointer; border: 1.5px solid transparent; }
.pick input:checked + span { background: var(--vanata); color: var(--lapte); }
.pick input:focus-visible + span { outline: 3px solid var(--mustar); }
.seg-light { display: flex; padding: 4px; background: var(--soft); border-radius: 14px; gap: 2px; }
.seg-light label { flex: 1; }
.seg-light input { position: absolute; opacity: 0; }
.seg-light span { display: flex; justify-content: center; align-items: center; min-height: 40px; border-radius: 10px; font-weight: 600; font-size: 14px; cursor: pointer; text-align: center; padding: 0 6px; }
.seg-light input:checked + span { background: var(--card); box-shadow: 0 1px 4px rgba(42,23,51,.15); }
.seg-light input:focus-visible + span { outline: 3px solid var(--mustar); }
.seg-light.small span { min-height: 34px; font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 .span2 { grid-column: 1 / -1; order: 9; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid3 label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; }
.stepper { display: inline-flex; align-items: center; background: var(--soft); border-radius: 999px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; font-size: 20px; font-weight: 600; }
.stepper output { min-width: 82px; text-align: center; font-weight: 600; font-size: 14px; }
.stepper.wide { display: flex; border-radius: 14px; }
.stepper.wide input { text-align: center; border: 0 !important; background: transparent !important; min-height: 44px !important; padding: 0 !important; }
.stepper.big { align-self: center; } .stepper.big output { min-width: 120px; font-size: 16px; } .stepper.big button { width: 48px; height: 48px; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin-top: 12px; }
.switch-row input { width: 24px; height: 24px; accent-color: var(--pruna-2); flex: none; margin: 0; }
.switch-row span { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.switch-row small { font-weight: 400; color: var(--muted); font-size: 13px; }
.switch-row.invalid { border-color: var(--boia); }
.radio-list { display: flex; flex-direction: column; gap: 4px; }
.radio-list label { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; background: var(--soft); }
.radio-list input { width: 20px; height: 20px; accent-color: var(--pruna-2); }
.sticky-actions { position: sticky; bottom: -1px; display: flex; gap: 10px; padding: 12px 0 calc(4px + var(--safe-b)); background: var(--card); }

/* ---------- Sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(20,8,26,0); display: flex; align-items: flex-end; justify-content: center; transition: background .25s; }
.sheet-backdrop.open { background: rgba(20,8,26,.55); }
.sheet { width: 100%; max-width: 520px; max-height: 88dvh; display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-radius: 24px 24px 0 0; transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); }
.sheet-backdrop.open .sheet { transform: none; }
.sheet-tall { height: 86dvh; }
.sheet-full { height: 100dvh; max-height: none; border-radius: 0; }
.sheet-head { position: relative; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 52px 0; flex: none; }
.sheet-head h2 { font-size: 16px; font-weight: 700; }
.sheet-grip { position: absolute; top: 8px; width: 40px; height: 4px; border-radius: 2px; background: var(--line); }
.sheet-x { position: absolute; right: 6px; top: 6px; }
.sheet-full .sheet-head { justify-content: flex-start; padding-left: 4px; }
.sheet-body { overflow-y: auto; padding: 8px 18px calc(18px + var(--safe-b)); overscroll-behavior: contain; flex: 1; }
.menu { display: flex; flex-direction: column; }
.menu > * { display: flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 6px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); text-align: left; }
.menu > *:last-child { border-bottom: 0; }
.confirm-text { font-size: 16px; margin: 4px 0 20px; }
.login-prompt { display: flex; flex-direction: column; gap: 10px; padding-bottom: 8px; }
.login-prompt p { font-size: 16px; margin: 0 0 8px; text-align: center; }

/* Comentarii */
.sheet-comments .sheet-body { padding-bottom: 8px; }
.c-item { display: flex; gap: 10px; padding: 10px 0; }
.c-body { flex: 1; min-width: 0; }
.c-body p { margin: 2px 0 0; overflow-wrap: anywhere; }
.c-author { font-weight: 600; font-size: 14px; text-decoration: none; }
.c-time { font-size: 12px; color: var(--muted); margin-left: 8px; }
.c-more { width: 36px; height: 36px; color: var(--muted); }
.c-form { display: flex; align-items: center; gap: 8px; padding: 10px 14px calc(10px + var(--safe-b)); border-top: 1px solid var(--line); flex: none; }
.c-form input { min-height: 42px !important; border-radius: 999px !important; }

.avatar { border-radius: 50%; object-fit: cover; flex: none; background: var(--pruna); }
.avatar-letter { display: inline-grid; place-items: center; color: var(--lapte); font-weight: 700; background: var(--pruna-2); }

/* ---------- Toast & cronometre ---------- */
#toasts { position: fixed; z-index: 70; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); width: min(92vw, 420px); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 14px; background: var(--vanata); color: var(--lapte); font-weight: 500; font-size: 14px; box-shadow: 0 8px 24px rgba(20,8,26,.3); opacity: 0; transform: translateY(-8px); transition: .25s; }
.toast.show { opacity: 1; transform: none; }
.toast-error { background: var(--boia); color: #fff; }
.toast-success { background: var(--castravete); color: #fff; }
#timers { position: fixed; z-index: 45; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + var(--safe-b) + 10px); display: flex; flex-direction: column; gap: 6px; width: min(92vw, 420px); pointer-events: none; }
body.no-tabbar #timers { bottom: calc(90px + var(--safe-b)); }
.timer-pill { pointer-events: auto; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--vanata); color: var(--lapte); box-shadow: 0 6px 20px rgba(20,8,26,.35); }
.timer-pill .tl { flex: 1; font-size: 13px; opacity: .8; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.timer-pill b { font-variant-numeric: tabular-nums; font-size: 17px; color: var(--mustar); }
.timer-pill button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.timer-pill.done { background: var(--boia); animation: pulse 1s infinite; } .timer-pill.done b { color: #fff; }
@keyframes pulse { 50% { transform: scale(1.03); } }

/* ---------- Pagina rețetei ---------- */
.recipe-page { padding-bottom: calc(110px + var(--safe-b)); }
.recipe-page .topbar { position: fixed; width: 100%; max-width: 520px; background: transparent; backdrop-filter: none; }
.recipe-page .topbar .icon-btn { background: rgba(251,248,252,.9); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.rp-media { aspect-ratio: 4/3.4; background: var(--vanata); overflow: hidden; }
.rp-media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.recipe-page .rp-media:has(video) { aspect-ratio: 9/14; max-height: 78dvh; }
.rp-media .cover { width: 100%; height: 100%; object-fit: cover; }
.rp-head { position: relative; margin-top: -26px; padding: 22px 18px 6px; background: var(--bg); border-radius: 26px 26px 0 0; display: flex; flex-direction: column; gap: 12px; }
.rp-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.rp-title { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
.rp-author { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rp-author a { text-decoration: none; }
.rp-author span { display: flex; flex-direction: column; line-height: 1.25; font-size: 14px; }
.rp-author small { color: var(--muted); }
.rp-desc { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.6; color: #3d2a46; }
.rp-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 18px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.rp-stats div { padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.rp-stats div + div { border-left: 1px solid var(--line); }
.rp-stats b { font-size: 18px; }
.rp-stats span { font-size: 12px; color: var(--muted); }
.macros { margin: 12px 18px 0; }
.macro-bar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--soft); }
.macro-bar i { width: var(--w); }
.m-p { background: var(--pruna-2); } .m-c { background: var(--mustar); } .m-f { background: var(--castravete); }
.macros ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.macros li { display: flex; align-items: center; gap: 6px; } .macros li b { color: var(--ink); }
.macros li i { width: 10px; height: 10px; border-radius: 3px; }
.budget-line { margin: 12px 18px 0; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--castravete) 14%, white); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.budget-line .ic { color: var(--castravete); width: 18px; height: 18px; }
.allergens { margin: 10px 18px 0; font-size: 13px; color: var(--muted); }
.allergens.warn { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--boia) 12%, white); color: #8c2019; }
.rp-actions { display: grid; grid-template-columns: repeat(4, 1fr); margin: 16px 18px 0; gap: 8px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: 14px; background: var(--soft); font-size: 12px; font-weight: 600; }
.rp-section { padding: 26px 18px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.sec-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; }
.ingr-list { list-style: none; padding: 0; margin: 8px 0 14px; }
.ingr-list li { border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.ingr-list label { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 0; cursor: pointer; }
.ingr-list input[type=checkbox] { position: absolute; opacity: 0; }
.box { width: 26px; height: 26px; flex: none; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: transparent; transition: .15s; }
.box .ic { width: 16px; height: 16px; stroke-width: 3; }
.ingr-list input:checked + .box { background: var(--castravete); border-color: var(--castravete); color: #fff; }
.ingr-list input:focus-visible + .box { outline: 3px solid var(--mustar); }
.ingr-list .q { min-width: 82px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ingr-list .n { flex: 1; display: flex; flex-direction: column; }
.ingr-list .n small { color: var(--muted); font-size: 13px; }
.ingr-list .got .q, .ingr-list .got .n, .shop-list .got .n { opacity: .45; text-decoration: line-through; }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 14px; }
.step-num { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--vanata); color: var(--mustar); font-family: var(--serif); font-weight: 700; font-size: 18px; display: grid; place-items: center; }
.steps li.done .step-num { background: var(--castravete); color: #fff; }
.steps li.done p { color: var(--muted); }
.steps p { margin: 6px 0 0; font-size: 16px; line-height: 1.6; }
.rp-foot { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cook-cta { position: fixed; z-index: 30; bottom: 0; width: 100%; max-width: 520px; padding: 12px 18px calc(12px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.status-banner { margin: 12px 18px 0; padding: 12px 14px; border-radius: 14px; background: var(--soft); font-size: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.status-banner.st-pending { background: color-mix(in srgb, var(--mustar) 22%, white); }
.status-banner.st-rejected, .status-banner.st-hidden { background: color-mix(in srgb, var(--boia) 14%, white); }
.status-banner p { margin: 0; }
.ingr-plain { padding-left: 18px; } .ingr-plain li { margin: 6px 0; }
.log-meal { text-align: center; align-items: stretch; }
.lm-title { font-family: var(--serif); font-size: 20px; margin: 0; }
.lm-kcal { margin: 0; font-size: 15px; } .lm-kcal b { font-size: 34px; }
.lm-after { margin: -6px 0 0; }
.log-meal .picks { justify-content: center; }

/* Modul gătit */
.cook { position: fixed; inset: 0; z-index: 55; background: var(--vanata); color: var(--lapte); display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; }
.cook header { display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--safe-t)) 10px 8px; }
.cook header .btn-ghost { color: var(--lapte); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }
.cook-prog { flex: 1; display: flex; gap: 4px; }
.cook-prog i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); }
.cook-prog i.done { background: var(--castravete); } .cook-prog i.cur { background: var(--mustar); }
.cook-step { flex: 1; overflow-y: auto; padding: 24px 24px; display: flex; flex-direction: column; justify-content: center; }
.cs-num { color: var(--mustar); font-weight: 600; margin: 0 0 12px; }
.cs-text { font-family: var(--serif); font-size: clamp(24px, 6.4vw, 32px); line-height: 1.35; margin: 0 0 20px; }
.cook .btn-timer { background: var(--mustar); color: var(--mustar-ink); min-height: 50px; padding: 0 20px; align-self: flex-start; }
.cook footer { display: flex; gap: 10px; padding: 12px 16px calc(16px + var(--safe-b)); }
.cook footer .btn-ghost { color: var(--lapte); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); }

/* ---------- Editor ---------- */
.editor .topbar { gap: 10px; }
.ed-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.ed-progress i { display: block; height: 100%; background: var(--mustar); transition: width .3s; }
.ed-body { padding: 8px 18px 120px; display: flex; flex-direction: column; gap: 16px; }
.ed-title { font-family: var(--serif); font-size: 28px; font-weight: 600; margin-top: 8px; }
.ed-foot { position: fixed; bottom: 0; z-index: 30; width: 100%; max-width: 520px; display: flex; gap: 10px; padding: 12px 18px calc(12px + var(--safe-b)); background: var(--bg); border-top: 1px solid var(--line); }
.type-cards { display: grid; gap: 12px; }
.type-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1.5px solid var(--line); text-align: left; }
.type-card .ic.big { width: 40px; height: 40px; color: var(--pruna-2); }
.type-card b { font-size: 18px; } .type-card span { color: var(--muted); font-size: 14px; }
.type-card:hover, .type-card:focus-visible { border-color: var(--vanata); }
.rules { padding: 16px; border-radius: var(--r); background: color-mix(in srgb, var(--mustar) 18%, white); }
.rules h3 { font-size: 15px; margin-bottom: 4px; } .rules p { margin: 0; font-size: 14px; }
.video-drop, .cover-drop { border-radius: var(--r-lg); background: var(--soft); border: 2px dashed var(--line); overflow: hidden; display: grid; place-items: center; min-height: 220px; }
.video-drop.has { border: 0; background: #000; }
.vprev { width: 100%; max-height: 56dvh; }
.cover-drop img { width: 100%; max-height: 50dvh; object-fit: cover; }
.vd-empty { text-align: center; color: var(--muted); padding: 24px; } .vd-empty .ic { color: var(--pruna-2); } .vd-empty p { margin: 8px 0 0; font-size: 14px; }
.up-status .ok { color: #3d7a2a; font-weight: 600; display: flex; gap: 6px; align-items: center; margin: 0; }
.bar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; margin: 6px 0; }
.bar i { display: block; height: 100%; background: var(--castravete); transition: width .2s; }
.bar.indet i { width: 40%; animation: indet 1s infinite linear; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.thumb-field .thumb-canvas { max-width: 140px; border-radius: 12px; margin-top: 6px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-radius: 14px; border: 1.5px solid transparent; }
.cat-pick input { position: absolute; opacity: 0; }
.cat-pick span { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 12px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); font-weight: 500; font-size: 14px; cursor: pointer; }
.cat-pick i { font-style: normal; font-size: 22px; }
.cat-pick input:checked + span { border-color: var(--cat); background: color-mix(in srgb, var(--cat) 16%, white); font-weight: 700; }
.cat-pick input:focus-visible + span { outline: 3px solid var(--mustar); }
.quick-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.quick-add .btn { width: 48px; padding: 0; min-height: 48px; }
.quick-add .qa-preview, .quick-add .field-error { grid-column: 1 / -1; margin: 0; min-height: 1em; }
.ingr-edit-list, .step-edit-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ingr-edit { display: grid; grid-template-columns: 70px 112px 1fr auto auto; gap: 6px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.ingr-edit .ne { grid-column: 1 / -1; font-weight: 600; }
.reorder.h { flex-direction: row; } .reorder.h button { width: 34px; height: 36px; }
.ingr-edit input, .ingr-edit select { min-height: 42px !important; padding: 8px 10px !important; font-size: 15px !important; border-radius: 10px !important; }
.reorder { display: flex; flex-direction: column; }
.reorder button { width: 30px; height: 21px; display: grid; place-items: center; color: var(--muted); }
.reorder .ic { width: 16px; height: 16px; }
.ingr-edit .icon-btn, .step-edit .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.step-edit { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.step-edit .sn { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--vanata); color: var(--mustar); display: grid; place-items: center; font-weight: 700; font-family: var(--serif); }
.step-edit textarea { border: 0 !important; padding: 4px 0 !important; min-height: 0 !important; }
.step-tools { margin-top: 4px; }
.timer-in { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.timer-in input { width: 56px !important; min-height: 34px !important; padding: 4px 8px !important; text-align: center; border-radius: 8px !important; font-size: 14px !important; }
.timer-in .ic { width: 18px; height: 18px; }
.new-step { display: flex; flex-direction: column; gap: 8px; }
.kcal-box { padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); gap: 10px; }
.kcal-box label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.kcal-box .row { align-items: flex-end; }
.kcal-box .est-note { margin: 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
details .grid3 { margin-top: 8px; }
.problems { padding: 14px 16px; border-radius: var(--r); background: color-mix(in srgb, var(--boia) 12%, white); }
.problems ul { margin: 6px 0 0; padding-left: 18px; }
.preview { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; padding-bottom: 12px; }
.preview > *:not(.pv-media) { margin-left: 16px; margin-right: 16px; }
.preview h3 { font-size: 15px; margin-top: 16px; }
.pv-media { aspect-ratio: 16/10; overflow: hidden; margin-bottom: 14px; background: var(--vanata); }
.pv-media img, .pv-media .cover { width: 100%; height: 100%; object-fit: cover; }
.pv-steps { padding-left: 20px; } .pv-steps li { margin: 6px 0; }
.done-page .ic.big { color: var(--castravete); }

/* ---------- Căutare ---------- */
.search-bar { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; align-items: center; padding: calc(10px + var(--safe-t)) 10px 10px 14px; background: var(--bg); }
.search-input { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--soft); }
.search-input input { border: 0 !important; background: transparent !important; padding: 0 !important; }
.type-seg { margin: 0 14px; }
.search-results { padding: 0 14px; }
.cat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-tile { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 14px; border-radius: var(--r); background: color-mix(in srgb, var(--cat) 18%, white); font-weight: 600; font-size: 14px; text-align: left; }
.cat-tile i { font-style: normal; font-size: 26px; }
.rrows { display: flex; flex-direction: column; }
.rrow { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.rrow-img { position: relative; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; flex: none; }
.rrow-img .cover { width: 100%; height: 100%; object-fit: cover; }
.rrow-img .cover-fallback span { font-size: 38px; }
.rrow-img i { position: absolute; left: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; }
.rrow-img i .ic { width: 12px; height: 12px; }
.rrow-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rrow-body b { font-family: var(--serif); font-size: 17px; line-height: 1.25; }
.rrow-body small { color: var(--muted); }

/* ---------- Grile / profil ---------- */
.grid-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; }
.grid-tiles > .empty-page, .grid-tiles > .center, .grid-tiles > p { grid-column: 1 / -1; }
.tile { position: relative; aspect-ratio: 3/4; overflow: hidden; text-decoration: none; color: #fff; background: var(--vanata); }
.tile .cover { width: 100%; height: 100%; object-fit: cover; }
.tile .cover-fallback span { font-size: 44px; }
.tile-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 8px 7px; background: linear-gradient(transparent, rgba(20,8,26,.85)); display: flex; flex-direction: column; }
.tile-meta b { font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-meta small { font-size: 11px; opacity: .85; }
.tile-ic { position: absolute; top: 6px; right: 6px; } .tile-ic .ic { width: 16px; height: 16px; }
.tile-status { position: absolute; top: 6px; left: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--mustar); color: var(--mustar-ink); }
.tile-status.st-rejected, .tile-status.st-hidden { background: var(--boia); color: #fff; }
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.hscroll .tile { border-radius: 14px; }
.prof-head { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 18px 18px; text-align: center; }
.prof-head h2 { font-size: 20px; }
.role-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--mustar); color: var(--mustar-ink); vertical-align: middle; }
.bio { margin: 0; color: #4d3a56; max-width: 360px; }
.prof-stats { display: flex; gap: 22px; margin: 4px 0; }
.prof-stats div { display: flex; flex-direction: column; } .prof-stats b { font-size: 18px; } .prof-stats span { font-size: 12px; color: var(--muted); }
.ptabs { display: flex; border-bottom: 1px solid var(--line); position: sticky; top: 56px; background: var(--bg); z-index: 10; }
.ptabs button { flex: 1; height: 46px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2.5px solid transparent; }
.ptabs button[aria-selected="true"] { color: var(--ink); border-color: var(--vanata); }

/* ---------- Calorii ---------- */
.kcal-hero { display: flex; align-items: center; gap: 18px; margin: 6px 14px 0; padding: 18px; border-radius: var(--r-lg); background: var(--vanata); color: var(--lapte); }
.kcal-hero .ring-bg { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 10; }
.kcal-hero .ring-fg { stroke-width: 10; }
.rt-big { font-size: 30px; font-weight: 700; fill: var(--lapte); font-family: var(--sans); }
.rt-small { font-size: 11px; fill: rgba(246,239,248,.75); font-family: var(--sans); }
.kh-text { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.kh-text p { margin: 0; } .kh-text .muted { color: rgba(246,239,248,.75); font-size: 13px; }
.setup-intro { padding: 4px 18px; } .setup-intro h2 { font-family: var(--serif); font-size: 26px; margin-bottom: 6px; } .setup-intro p { margin: 0; }
.setup-form { display: flex; flex-direction: column; gap: 14px; }
.calc-out p { margin: 0; } .big-num { font-size: 20px; color: var(--pruna-2); }
.meal-h { font-size: 14px; margin: 14px 0 4px; display: flex; justify-content: space-between; color: var(--muted); font-weight: 600; }
.meal-list { list-style: none; padding: 0; margin: 0; }
.meal-list li { display: flex; align-items: center; gap: 8px; min-height: 48px; border-bottom: 1px solid var(--line); }
.meal-list li > a, .meal-list li > :first-child { flex: 1; }
.meal-list small { color: var(--muted); white-space: nowrap; }
.meal-list .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.week { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding-top: 18px; }
.week-plot { position: absolute; left: 0; right: 0; top: 18px; height: 120px; pointer-events: none; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wd-bar { position: relative; height: 120px; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.wd-bar i { width: 100%; max-width: 34px; min-height: 2px; border-radius: 8px 8px 3px 3px; background: var(--castravete); }
.wd-bar i.over { background: var(--boia); }
.wd-bar b { position: absolute; margin-bottom: 2px; font-size: 10px; color: var(--muted); font-weight: 500; }
.wd small { color: var(--muted); font-size: 11px; }
.target-line { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--pruna-2); }
.target-line em { position: absolute; right: 0; top: -17px; font-size: 10px; font-style: normal; color: var(--pruna-2); font-weight: 600; background: var(--bg); padding-left: 4px; }
.disclaimer { margin: 26px 18px 0; font-size: 12px; color: var(--muted); }

/* ---------- Listă cumpărături, setări, notificări, autentificare ---------- */
.shop-page .shop-add { margin: 4px 14px 0; }
.shop-page .ingr-list, .shop-page .sec-head, .shop-page > .btn-link { margin-left: 14px; margin-right: 14px; }
.shop-list .n b { margin-right: 4px; }
.shop-list li .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.av-slot { display: inline-flex; }
.notif-list { list-style: none; padding: 0; margin: 0; }
.notif-list li { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-list li.unread { background: color-mix(in srgb, var(--mustar) 12%, white); }
.notif-list a { text-decoration: none; }
.notif-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.n-ic { width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--pruna-2); }
.n-ic .ic { width: 18px; height: 18px; }
.auth-page { background: var(--vanata); color: var(--lapte); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 16px; }
.auth-brand { text-align: center; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 54px; color: var(--mustar); letter-spacing: -.02em; line-height: 1; }
.auth-brand p { margin: 6px 0 0; opacity: .8; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.auth-page > .btn-link { color: var(--lapte); }
.prose-page .prose { padding: 4px 20px 40px; font-family: var(--serif); font-size: 16px; line-height: 1.65; max-width: 68ch; }
.prose h2 { font-family: var(--sans); font-size: 17px; margin: 24px 0 6px; }
.prose li { margin: 6px 0; }

/* Ecrane mari: aplicația rămâne o coloană de telefon, centrată */
@media (min-width: 560px) {
  body { background: #1c0f22; }
  #view { box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.4); }
}

/* ---------- Limbă ---------- */
.lang-btn { width: auto; padding: 0 6px; gap: 3px; display: inline-flex; }
.lang-code { font-size: 11px; font-weight: 700; }
.lang-list { display: flex; flex-direction: column; margin-bottom: 12px; }
.lang-list button { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; text-align: left; }
.lang-list button[aria-checked="true"] { font-weight: 700; color: var(--pruna-2); }
.translated-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font-size: 13px; color: var(--muted); }
.translated-note .ic { width: 16px; height: 16px; }
.translated-note .btn-link { min-height: 28px; font-size: 13px; }
.auth-page .lang-inline { color: var(--lapte); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; vertical-align: -2px; }

/* ---------- Bucătării (țări) și subtitrări pe clipuri ---------- */
.cuisine-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(246,239,248,.14); color: inherit; text-decoration: none; text-shadow: none; align-self: flex-start; }
.item-info .cuisine-tag { background: rgba(42,23,51,.65); }
.page-light .cuisine-tag { background: color-mix(in srgb, var(--pruna) 10%, white); color: var(--vanata); }
.tag-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag-line .cat-tag { align-self: auto; }
.cuisine-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.cuisine-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--r); background: color-mix(in srgb, var(--pruna) 7%, white); font-weight: 600; font-size: 13px; text-align: center; }
.cuisine-tile i { font-style: normal; font-size: 30px; line-height: 1.1; }
.cuisine-tile small { font-weight: 500; opacity: .6; font-size: 11px; }
.prof-country { font-size: 14px; opacity: .75; margin: -4px 0 0; }
.vcap { position: absolute; z-index: 4; left: 14px; right: 80px; top: calc(150px + var(--safe-t)); padding: 8px 12px; border-radius: 12px;
  background: rgba(20,10,26,.72); color: #fff; font-size: 15px; line-height: 1.35; font-weight: 500; pointer-events: none; animation: capIn .25s ease; }
.vcap b { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--mustar); color: var(--mustar-ink); font-size: 12px; }
@keyframes capIn { from { opacity: 0; transform: translateY(-4px); } }
.rp-media { position: relative; }
.rp-media .vcap { top: auto; bottom: 56px; right: 12px; left: 12px; }
.cc-btn { position: absolute; z-index: 11; right: 12px; top: calc(148px + var(--safe-t)); width: 40px; height: 40px; border-radius: 50%; background: rgba(42,23,51,.6);
  color: var(--lapte); font-weight: 800; font-size: 12px; letter-spacing: .5px; opacity: .55; }
.cc-btn.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .vcap { animation: none; } }
