/* ==========================================================================
   Мъдра количка — дизайн система
   Модел: „Лёгкость“ — светъл лилаво-сив фон, бели карти, оранжев акцент,
   една мобилна колона. Всички размери, цветове и радиуси идват от токените долу.
   ========================================================================== */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/onest-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/onest-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  /* цветове */
  --bg: #f1f2f8;
  --surface: #ffffff;
  --soft: #f5f6fa;
  --ink: #15172a;
  --ink-2: #43475c;
  --muted: #6b7085;          /* 4.9:1 върху бяло */
  --line: #e8eaf2;
  --line-2: #d7dae6;
  --accent: #f0652a;          /* запълване: бутони, пръстени, отметки */
  --accent-ink: #d9531a;      /* оранжев текст: цени, връзки */
  --accent-soft: #fff1e9;
  --accent-soft-2: #ffe3d3;
  --grad: linear-gradient(105deg, #ec5f22 0%, #f5853f 100%);
  --ok: #24b263;
  --ok-ink: #1a8a4a;
  --ok-soft: #e6f6ec;
  --bad: #d93a3f;
  --bad-soft: #fdecec;
  --kaufland: #e10915; --lidl: #0050aa; --billa: #f3c300; --ebag: #2f9a4a; --fantastico: #c8102e;

  /* типография */
  --font: "Onest", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 15px;
  --fs-lg: 17px;
  --fs-xl: 21px;
  --fs-2xl: 28px;
  --fs-3xl: 44px;

  /* форма */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --r-xs: 8px;
  --pill: 999px;
  --gap: 12px;
  --pad: 16px;
  --tap: 44px;
  --shadow: 0 1px 2px rgba(21, 23, 42, .04), 0 6px 18px rgba(21, 23, 42, .05);
  --shadow-up: 0 10px 26px rgba(236, 95, 34, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; color: var(--ink); }
body {
  font-family: var(--font); font-size: var(--fs-md); line-height: 1.4; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background: var(--bg) linear-gradient(180deg, #f4f0fc 0, var(--bg) 360px) no-repeat; min-height: 100vh; min-height: 100dvh;
  font-variant-numeric: tabular-nums;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; text-align: inherit; padding: 0; touch-action: manipulation; }
input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
a { color: var(--accent-ink); }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

#app { max-width: 480px; margin: 0 auto; padding: 0 var(--pad) calc(40px + env(safe-area-inset-bottom)); min-height: 100vh; min-height: 100dvh; }
.view { animation: viewIn .28s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- текст ---------- */
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: var(--gap); }
.price { font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.h-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin: 22px 4px 10px; }
.h-sec span + span { letter-spacing: 0; text-transform: none; font-weight: 600; }

/* ---------- горна лента (еднаква на всички екрани) ---------- */
.hdr { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: var(--tap) 1fr var(--tap); grid-template-rows: var(--tap); align-items: center; gap: 8px;
  margin: 0 calc(-1 * var(--pad)); padding: calc(10px + env(safe-area-inset-top)) var(--pad) 10px;
  background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.hdr-c { text-align: center; min-width: 0; }
.hdr-c b { display: block; font-size: var(--fs-lg); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-c small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; }
.hdr .brand { color: var(--accent-ink); letter-spacing: -.01em; }
.icon-btn { width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink);
  transition: transform .15s var(--ease); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.ava { background: var(--grad); color: #fff; font-weight: 800; font-size: var(--fs-lg); box-shadow: 0 4px 12px rgba(236, 95, 34, .25); }
.hdr-r { justify-self: end; }

/* ---------- карти и бутони ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: var(--pad); margin-bottom: var(--gap); }
.tap { transition: transform .15s var(--ease); }
.tap:active { transform: scale(.985); }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 14px 18px; border-radius: var(--r-md);
  font-weight: 700; font-size: var(--fs-md); text-align: center; color: #fff; background: var(--grad); box-shadow: var(--shadow-up); transition: transform .15s var(--ease), opacity .2s; }
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .4; box-shadow: none; cursor: default; }
.btn-2 { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: var(--tap); padding: 10px 16px; border-radius: var(--r-md);
  font-weight: 650; font-size: var(--fs-md); color: var(--accent-ink); text-align: center; }
.btn-2.boxed { background: var(--surface); box-shadow: var(--shadow); }
.btn-2:active { opacity: .7; }
.btn-2 svg.i { width: 18px; height: 18px; }
.link { color: var(--accent-ink); font-weight: 650; font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 2px; min-height: 32px; }
.link svg.i { width: 16px; height: 16px; }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-ink); letter-spacing: 0; text-transform: none; }
.ph-empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--accent-soft) 0%, #f6eefc 100%); }
.footer { position: sticky; bottom: 0; z-index: 4; margin: 8px calc(-1 * var(--pad)) 0; padding: 18px var(--pad) calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 34%); }

/* ---------- начален екран ---------- */
.hello { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 4px; }
.lead { color: var(--muted); font-size: var(--fs-md); margin: 0 0 18px; }
.cta { position: relative; display: block; width: 100%; color: #fff; background: var(--grad); border-radius: var(--r-lg); padding: 16px 60px 16px 18px; margin-bottom: var(--gap);
  box-shadow: var(--shadow-up); overflow: hidden; text-align: left; }
.cta small { display: block; font-size: var(--fs-sm); font-weight: 600; opacity: .92; margin-bottom: 2px; }
.cta b { display: block; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em; }
.cta .chev { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.cta-bar { height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .28); margin-top: 12px; overflow: hidden; }
.cta-bar i { display: block; height: 100%; background: #fff; border-radius: 5px; transition: width .4s var(--ease); }
.plan { display: flex; align-items: center; gap: 16px; }
.plan-t { display: block; font-size: var(--fs-lg); font-weight: 700; margin-bottom: 2px; }
.status { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--fs-sm); margin-top: 8px; color: var(--ok-ink); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.status.over { color: var(--bad); }
.ring { width: 88px; height: 88px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); width: 88px; height: 88px; display: block; }
.ring circle { transition: stroke-dasharray .6s var(--ease); }
.ring .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring .val b { font-size: var(--fs-lg); font-weight: 800; }
.ring .val small { font-size: 11px; color: var(--muted); font-weight: 600; }
.day { display: flex; gap: var(--gap); width: 100%; align-items: center; text-align: left; }
.day-l { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dname { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); white-space: nowrap; }
.day.today .dname { color: var(--accent-ink); }
.thumbs { display: flex; }
.thumb { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--surface); margin-left: -10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .12); font-size: 20px; flex: none; }
.thumb:first-child { margin-left: 0; }
.dishes { font-size: var(--fs-sm); color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.amt { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.amt .price { font-size: var(--fs-lg); }
.amt small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.chev-s { color: var(--line-2); margin-right: -4px; }

/* ---------- ден ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 2px 0 14px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 0 8px; border-radius: var(--r-sm); background: var(--surface); box-shadow: var(--shadow);
  font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; text-align: center; }
.wd b { font-size: var(--fs-lg); color: var(--ink); }
.wd.on { background: var(--grad); color: rgba(255, 255, 255, .92); box-shadow: 0 6px 14px rgba(236, 95, 34, .25); }
.wd.on b { color: #fff; }
.wd.today:not(.on), .wd.today:not(.on) b { color: var(--accent-ink); }
.daytot { display: flex; align-items: center; gap: var(--gap); }
.daytot b { font-size: var(--fs-md); }
.slot-h { font-weight: 700; font-size: var(--fs-md); margin: 20px 4px 10px; display: flex; align-items: center; gap: 8px; }
.slot-h .pill { margin-left: auto; }
.note .link { min-height: 0; vertical-align: baseline; }
.dish { padding: 0; overflow: hidden; }
.dish-row { display: flex; align-items: center; gap: var(--gap); width: 100%; padding: 12px 14px 12px 12px; min-height: 88px; text-align: left; }
.dish-ph { width: 64px; height: 64px; border-radius: var(--r-md); object-fit: cover; flex: none; font-size: 28px; }
.dish-row b { display: block; font-size: var(--fs-md); font-weight: 700; line-height: 1.25; margin-bottom: 4px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: var(--fs-sm); color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.meta svg.i { width: 14px; height: 14px; }
.dish .tog { color: var(--line-2); transition: transform .2s var(--ease); }
.dish.open .tog { transform: rotate(90deg); color: var(--accent); }
.dish-more { padding: 0 14px 18px; animation: viewIn .22s var(--ease) both; }
.dish-big { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); font-size: 52px; background: var(--soft) center / cover no-repeat; }
.credit { display: block; font-size: 11px; color: var(--muted); text-align: right; margin: 6px 2px 0; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish-ctl { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 4px; }
.portions { display: inline-flex; align-items: center; gap: 4px; background: var(--soft); border-radius: var(--pill); padding: 4px; }
.portions button { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--accent-ink); display: grid; place-items: center; }
.portions button:disabled { color: var(--line-2); box-shadow: none; }
.portions span { font-size: var(--fs-sm); color: var(--ink-2); min-width: 84px; text-align: center; }
.portions b { font-size: var(--fs-lg); color: var(--ink); }
.swap { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 650; font-size: var(--fs-sm); padding: 10px 4px; min-height: var(--tap); }
.swap svg.i { width: 16px; height: 16px; }
.sub-h { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 18px 0 4px; }
.ings { list-style: none; padding: 0; margin: 0; }
.ings li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; font-size: var(--fs-md); border-bottom: 1px solid var(--line); }
.ings li:last-child { border-bottom: 0; }
.ings li > span:last-child { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; }
.steps-l { list-style: none; padding: 0; margin: 4px 0 0; counter-reset: st; }
.steps-l li { position: relative; padding: 7px 0 7px 36px; counter-increment: st; font-size: var(--fs-md); line-height: 1.5; }
.steps-l li::before { content: counter(st); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 800; font-size: var(--fs-xs); display: grid; place-items: center; }
.fineprint { font-size: var(--fs-sm); color: var(--muted); margin-top: 10px; }
.empty { text-align: center; padding: 22px var(--pad); }
.empty b { display: block; font-size: var(--fs-md); margin-bottom: 4px; }
.empty p { margin: 0 0 8px; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- списък ---------- */
.sum { display: flex; align-items: center; gap: 14px; }
.sum b { font-size: var(--fs-lg); }
.mini-ring { transform: rotate(-90deg); flex: none; display: block; }
.mini-ring circle { transition: stroke-dasharray .4s var(--ease); }
.list { padding: 2px 14px; }
.item { display: flex; align-items: center; gap: var(--gap); width: 100%; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--line); transition: opacity .2s; text-align: left; }
.item:last-child { border-bottom: 0; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: background .15s, border-color .15s; }
.check svg.i { width: 15px; height: 15px; stroke-width: 3; }
.check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.ing { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex: none; font-size: 20px; }
.item .grow b { display: block; font-size: var(--fs-md); font-weight: 650; }
.item .grow small { display: block; font-size: var(--fs-sm); color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.item .price { font-size: var(--fs-md); color: var(--ink); }
.item.done { opacity: .45; }
.item.done b { text-decoration: line-through; }
.done-card { text-align: center; padding: 22px var(--pad); }
.done-card .big { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.done-card b { display: block; font-size: var(--fs-lg); margin-bottom: 4px; }
.done-card p { margin: 0 0 6px; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- eBag ---------- */
.eb { display: flex; align-items: center; gap: var(--gap); flex-wrap: wrap; }
.eb .grow b { display: block; font-size: var(--fs-md); }
.eb .grow small { display: block; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.eb-logo { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(21, 23, 42, .08); flex: none; }
.eb-logo img { max-width: 80%; max-height: 80%; }
.eb .grow { flex: 1 1 calc(100% - 60px); }
.eb-btn { width: 100%; min-height: 46px; padding: 10px 16px; text-decoration: none; }
.eb-prog { display: flex; align-items: center; gap: var(--gap); flex: 1; min-width: 0; }
.eb-bar { height: 5px; border-radius: 5px; background: var(--line); margin-top: 6px; overflow: hidden; }
.eb-bar i { display: block; height: 100%; background: var(--ok); transition: width .3s var(--ease); }

/* ---------- въпросник ---------- */
.view-ob { display: flex; flex-direction: column; min-height: calc(100vh - 40px); min-height: calc(100dvh - 40px - env(safe-area-inset-bottom)); }
.view-ob .footer { margin-top: auto; }
.progress { display: flex; gap: 5px; margin: 2px 0 8px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .25s; }
.progress span.on { background: var(--accent); }
.stepnum { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-align: right; }
h1.title { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; margin: 10px 0 6px; line-height: 1.15; }
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); border: 2px solid transparent; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.opt:active { transform: scale(.98); }
.opt.on { border-color: var(--accent); background: #fffaf7; }
.opt .tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: none; place-items: center; }
.opt .tick svg.i { width: 13px; height: 13px; stroke-width: 3; }
.opt.on .tick { display: grid; }
.store { padding: 18px 10px 16px; text-align: center; }
.store .logo { width: 100%; max-width: 124px; height: 58px; border-radius: var(--r-sm); margin: 0 auto 8px; display: grid; place-items: center; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(21, 23, 42, .06); }
.store .logo.sl-k, .store .logo.sl-e { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.logo img { display: block; width: auto; height: auto; max-width: min(104px, calc(100% - 14px)); max-height: 40px; object-fit: contain; }
.logo.sl-k img, .logo.sl-l img, .logo.sl-e img { max-height: 50px; }
.logo.sl-f img { max-width: min(118px, calc(100% - 8px)); max-height: 50px; }
.store-tag { display: inline-grid; place-items: center; width: 30px; height: 18px; border-radius: 5px; margin-left: 6px; vertical-align: -3px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(21, 23, 42, .08); }
.store-tag img { display: block; max-width: 26px; max-height: 14px; object-fit: contain; }
.store-tag.sl-f img { max-width: 30px; max-height: 18px; }
.hdr-logo { display: inline-grid; place-items: center; width: 22px; height: 14px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; overflow: hidden; }
.hdr-logo img { display: block; max-width: 20px; max-height: 12px; object-fit: contain; }
.store .nm { font-weight: 700; }
.st-badge { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px; font-size: 10.5px; font-weight: 700; line-height: 1.2; padding: 3px 8px; border-radius: var(--pill); background: #e3f3f1; color: #0f6f6f; }
.eb-info { margin: var(--gap) 0 0; padding: 14px 16px; flex-wrap: nowrap; background: #f1f9f8; box-shadow: inset 0 0 0 1px #cfe9e5; }
.eb-info .eb-logo { background: #fff; }
.line-opt { display: flex; align-items: center; gap: var(--gap); width: 100%; padding: 14px 16px; margin-top: var(--gap); text-align: left; }
.line-opt .ic { font-size: 22px; width: 28px; text-align: center; }
.line-opt b { display: block; }
.line-opt small { display: block; font-size: var(--fs-sm); color: var(--muted); }
.stepper { display: flex; align-items: center; justify-content: space-between; }
.stepper .lbl { font-size: var(--fs-lg); font-weight: 700; }
.stepper .ctl { display: flex; align-items: center; gap: 14px; }
.stepper button { width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; }
.stepper button:disabled { background: var(--soft); color: var(--line-2); }
.stepper .num { font-size: var(--fs-xl); font-weight: 800; min-width: 28px; text-align: center; color: var(--ink); }
.toggle { display: flex; align-items: center; gap: var(--gap); width: 100%; min-height: 56px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.toggle:last-child { border-bottom: 0; }
.toggle .ic { font-size: 22px; width: 28px; text-align: center; }
.toggle b { font-weight: 650; }
.box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: background .15s, border-color .15s; }
.box svg.i { width: 15px; height: 15px; stroke-width: 3; }
.box.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.bigsum { display: flex; justify-content: center; align-items: baseline; gap: 6px; font-size: var(--fs-3xl); font-weight: 800; color: var(--accent-ink); margin: 4px 0 0; letter-spacing: -.02em; cursor: text; }
.bigsum-in { width: 3ch; min-width: 1.3ch; font: inherit; color: inherit; letter-spacing: inherit; text-align: right; background: transparent; border: 0; border-bottom: 2px dashed var(--accent-soft-2); padding: 0; border-radius: 0; outline: none; -moz-appearance: textfield; appearance: textfield; }
.bigsum-in:focus { border-bottom-style: solid; border-bottom-color: var(--accent); }
.bigsum-in::-webkit-outer-spin-button, .bigsum-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.range { --p: 50%; width: 100%; height: 32px; margin: 14px 0 2px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line) var(--p)); }
.range::-moz-range-track { height: 6px; border-radius: 6px; background: var(--line); }
.range::-moz-range-progress { height: 6px; border-radius: 6px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--surface); border: 0; box-shadow: 0 2px 8px rgba(21, 23, 42, .22), 0 0 0 1px rgba(21, 23, 42, .04); }
.range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 0; box-shadow: 0 2px 8px rgba(21, 23, 42, .22); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 2px 8px rgba(21, 23, 42, .22); }
.presets { display: flex; gap: 8px; margin-top: 12px; }
.presets .chip { flex: 1; flex-direction: column; gap: 0; justify-content: center; padding: 8px 4px; border-radius: var(--r-sm); line-height: 1.2; }
.presets .chip b { font-size: var(--fs-md); }
.presets .chip small { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: var(--pill); background: var(--surface); box-shadow: var(--shadow); font-size: var(--fs-md);
  font-weight: 600; border: 2px solid transparent; transition: border-color .15s, background .15s, color .15s; }
.chip.on { border-color: var(--accent); color: var(--accent-ink); background: #fffaf7; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { padding: 14px 6px; text-align: center; font-size: var(--fs-sm); font-weight: 650; }
.tile .ic { font-size: 26px; display: block; margin-bottom: 4px; }
.tile.st { text-align: left; padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.tile.st b { font-size: var(--fs-md); }
.tile.st small { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
/* цел и кухня: ясен списък — иконка, име и обяснение, отметка вдясно */
.styles.rows { grid-template-columns: 1fr; gap: 8px; }
.styles.rows .tile.st { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
.styles.rows .tile.st .ic { margin: 0; flex: 0 0 auto; width: 34px; text-align: center; }
.styles.rows .tx { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.styles.rows .rd { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); }
.styles.rows .on .rd { border: 7px solid var(--accent); }
.note { font-size: var(--fs-sm); color: var(--ink-2); background: var(--accent-soft); border-radius: var(--r-md); padding: 12px 14px; margin: var(--gap) 0; line-height: 1.45; }

/* ---------- зареждане ---------- */
.loadcard { display: flex; align-items: center; gap: 14px; }
.spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--accent-soft-2); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lsteps div { display: flex; gap: var(--gap); align-items: center; padding: 9px 0; font-size: var(--fs-md); color: var(--muted); transition: color .2s; }
.lsteps div.now { color: var(--accent-ink); font-weight: 650; }
.lsteps div.done { color: var(--ink); }
.lsteps i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; color: #fff; flex: none; }
.lsteps i svg.i { width: 13px; height: 13px; stroke-width: 3; }
.lsteps div.now i { border-color: var(--accent); }
.lsteps div.done i { background: var(--ok); border-color: var(--ok); }

/* ---------- съобщение долу ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 12px;
  width: max-content; max-width: calc(100vw - 32px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--pill); font-size: var(--fs-sm); font-weight: 600;
  box-shadow: 0 10px 30px rgba(21, 23, 42, .25); animation: toastIn .25s var(--ease) both; }
.toast.has-act { padding: 6px 6px 6px 18px; }
.toast button { color: #ffb48f; font-weight: 700; padding: 8px 12px; border-radius: var(--pill); min-height: 36px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- профил ---------- */
.pf-head { display: flex; align-items: center; gap: 14px; }
.pf-ava { width: 58px; height: 58px; flex: none; border-radius: 50%; background: var(--grad); color: #fff; font-size: 24px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(236, 95, 34, .25); }
.pf-name { width: 100%; font-size: var(--fs-xl); font-weight: 800; color: var(--ink); border: 0; border-bottom: 2px dashed var(--line-2); background: transparent; padding: 2px 0 4px; margin-bottom: 4px; outline: none; border-radius: 0; }
.pf-name:focus { border-bottom: 2px solid var(--accent); }
.pf-name::placeholder { color: var(--muted); font-weight: 700; }
.pf-card { padding: 2px 16px; }
.pf-item { border-bottom: 1px solid var(--line); }
.pf-item:last-child { border-bottom: 0; }
.pf-row { display: flex; align-items: center; gap: var(--gap); width: 100%; min-height: 64px; padding: 10px 0; text-align: left; }
.pf-card > .pf-row + .pf-row { border-top: 1px solid var(--line); }
.pf-row b { display: block; font-size: var(--fs-md); font-weight: 650; color: var(--ink); }
.pf-val { display: block; font-size: var(--fs-sm); color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-ic { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); background: var(--accent-soft); display: grid; place-items: center; font-size: 19px; }
.pf-chev { color: var(--line-2); transition: transform .2s var(--ease); }
.pf-item.open .pf-chev { transform: rotate(90deg); color: var(--accent); }
.pf-item.open .pf-val { color: var(--accent-ink); }
.pf-edit { padding: 0 0 16px; animation: viewIn .2s var(--ease) both; }
.pf-edit .card { box-shadow: none; border: 1px solid var(--line); margin-bottom: 8px; }
.pf-edit .opt, .pf-edit .chip { box-shadow: none; border-color: var(--line); }
.pf-edit .opt.on, .pf-edit .chip.on { border-color: var(--accent); }
.pf-edit .note { margin: 10px 0 0; }
.pf-hint { margin: 0 0 12px; font-size: var(--fs-sm); color: var(--muted); }
.pf-row.danger b { color: var(--bad); }
.pf-row.danger .pf-ic { background: var(--bad-soft); }
.pf-bar[hidden] { display: none; }
.pf-wrap { display: flex; flex-direction: column; }
.pf-side { display: contents; }
.pf-head { order: 0; }
.pf-acct { order: 1; }
.pf-main { order: 2; }
.pf-more { order: 3; }
.pf-nav { display: none; }
.about { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; padding: 0 0 14px; }
.about p { margin: 0 0 8px; }
.ver { text-align: center; font-size: var(--fs-xs); color: var(--muted); margin-top: 18px; }

/* ---------- грешка ---------- */
.err { text-align: center; padding-top: 18vh; }
.err .big { font-size: 48px; margin-bottom: 10px; }
.err h1 { font-size: var(--fs-xl); margin: 0 0 6px; }
.err p { color: var(--muted); margin: 0 0 22px; }

/* ---------- табло за компютър (≥ 1100 px): горна лента · седмица в ред · ден | списък ---------- */
@media (min-width: 1100px) {
  body { background: var(--bg) linear-gradient(180deg, #f4f0fc 0, var(--bg) 480px) no-repeat; }
  #app.wide { max-width: 1440px; padding: 0 32px 40px; }
  .dk-top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 22px; padding: 16px 0 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .dk-top .brand { font-size: var(--fs-xl); font-weight: 800; color: var(--accent-ink); letter-spacing: -.01em; white-space: nowrap; }
  .dk-hello { display: flex; flex-direction: column; min-width: 0; padding-left: 22px; border-left: 1px solid var(--line-2); }
  .dk-hello b { font-size: var(--fs-lg); font-weight: 800; }
  .dk-hello span { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
  .dk-budget { margin-left: auto; width: 260px; display: grid; gap: 5px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 10px 14px; }
  .dk-bl { display: flex; align-items: baseline; gap: 6px; }
  .dk-bl b { font-size: var(--fs-lg); font-weight: 800; }
  .dk-bl span { font-size: var(--fs-sm); color: var(--muted); }
  .dk-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
  .dk-bar i { display: block; height: 100%; background: var(--ok); border-radius: 6px; }
  .dk-budget.over .dk-bar i { background: var(--bad); }
  .dk-budget small { font-size: var(--fs-xs); color: var(--ok-ink); font-weight: 650; }
  .dk-budget .link { min-height: 0; font-size: var(--fs-xs); color: var(--bad); }
  .dk-regen { width: auto; white-space: nowrap; padding: 0 16px; background: var(--surface); box-shadow: var(--shadow); }
  .dk-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin: 6px 0 22px; }
  .dk-d { display: grid; gap: 8px; justify-items: start; padding: 12px 12px 12px 14px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); border: 2px solid transparent; text-align: left; transition: border-color .15s, transform .15s var(--ease); min-width: 0; }
  .dk-d:hover { border-color: var(--accent-soft-2); transform: translateY(-1px); }
  .dk-d.on { border-color: var(--accent); background: #fffaf7; }
  .dk-dn { display: flex; align-items: baseline; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--muted); text-transform: uppercase; }
  .dk-dn b { font-size: var(--fs-xl); color: var(--ink); text-transform: none; }
  .dk-d.on .dk-dn, .dk-d.on .dk-dn b { color: var(--accent-ink); }
  .dk-dn .pill { align-self: center; }
  .dk-d .thumb { width: 34px; height: 34px; margin-left: -8px; font-size: 16px; }
  .dk-d .thumb:first-child { margin-left: 0; }
  .dk-d .price { font-size: var(--fs-md); }
  .dk-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
  .dk-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface); border-radius: var(--pill); box-shadow: var(--shadow); }
  .dk-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 18px; border-radius: var(--pill); font-weight: 700; color: var(--ink-2); transition: background .15s, color .15s; }
  .dk-tabs button:hover { color: var(--accent-ink); }
  .dk-tabs button.on { background: var(--accent); color: #fff; }
  .dk-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
  .dk-tabs button.on .dk-n { background: rgba(255, 255, 255, .25); color: #fff; }
  .dk-side { position: sticky; top: 96px; display: grid; gap: 14px; }
  .dk-lc { display: grid; gap: 14px; margin: 0; }
  .dk-lct { display: flex; align-items: center; gap: 12px; }
  .dk-lci { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--accent-soft); display: grid; place-items: center; font-size: 22px; flex: none; }
  .dk-lct b { display: block; font-size: var(--fs-lg); font-weight: 800; }
  .dk-lct small { display: block; color: var(--muted); font-size: var(--fs-sm); }
  .dk-lcs { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md); background: var(--soft); }
  .dk-lcs b { display: block; font-size: var(--fs-lg); }
  .dk-lcs small { display: block; color: var(--muted); font-size: var(--fs-xs); }
  .dk-newwin { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: var(--fs-sm); font-weight: 650; color: var(--accent-ink); text-decoration: none; margin-top: -4px; }
  .dk-newwin svg.i, .dk-lact svg.i { width: 16px; height: 16px; }
  .dk-side .card.eb { margin: 0; }
  .dk-side .eb .btn { background: var(--surface); color: #0f6f6f; box-shadow: inset 0 0 0 2px #bfe3de; }
  .dk-side .eb .btn:hover { background: #f1f9f8; }
  .dk-lh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 8px 2px 18px; }
  .dk-lh .title { margin: 0 0 4px; font-size: 34px; }
  .dk-lh .lead { margin: 0; }
  .dk-lact { display: flex; gap: 10px; }
  .dk-lact .btn-2 { width: auto; padding: 0 18px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); white-space: nowrap; }
  .dk-lbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 22px; align-items: start; }
  .dk-lbody > .card.eb, .dk-lbody > .card.sum, .dk-lbody > .done-card { margin: 0; }
  .dk-lbody .cats { grid-column: 1 / -1; columns: 3 300px; column-gap: 22px; }
  .dk-lbody .cat { break-inside: avoid; padding-top: 4px; }
  .dk-lbody .cat .h-sec { margin-top: 10px; }
  .dk-lbody .done-card { grid-column: 1 / -1; }
  .dk-dh { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 2px 16px; }
  .dk-dh .title { margin: 0 0 2px; font-size: 34px; }
  .dk-dh .lead { margin: 0; }
  .dk-dt { text-align: right; }
  .dk-dt .price { font-size: var(--fs-xl); }
  .dk-dt small { display: block; color: var(--muted); font-size: var(--fs-sm); }
  .dk-day .daytot { display: none; }
  .dk-day .meals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; align-items: start; }
  .dk-day .meal-s.is-open { grid-column: 1 / -1; order: 10; }
  .dk-day .slot-h { margin-top: 0; font-size: var(--fs-lg); }
  .dk-day .meal-s:not(.is-open) .card.dish { margin: 0; overflow: hidden; transition: transform .15s var(--ease), box-shadow .15s; }
  .dk-day .meal-s:not(.is-open) .card.dish:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(21, 23, 42, .1); }
  .dk-day .meal-s:not(.is-open) .dish-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "ph ph" "tx amt"; gap: 12px 10px; padding: 0 0 16px; align-items: start; }
  .dk-day .meal-s:not(.is-open) .dish-ph { grid-area: ph; width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; font-size: 56px; }
  .dk-day .meal-s:not(.is-open) .dish-row .grow { grid-area: tx; padding-left: 16px; }
  .dk-day .meal-s:not(.is-open) .dish-row .amt { grid-area: amt; padding-right: 16px; }
  .dk-day .meal-s:not(.is-open) .dish-row b { font-size: var(--fs-lg); line-height: 1.25; }
  .dk-day .meal-s.is-open .dish-row { padding: 14px 18px 14px 14px; }
  .dk-day .meal-s.is-open .dish-ph { width: 88px; height: 88px; }
  .dk-day .dish-more { padding: 0 18px 22px; }
  .dk-day .dish-big { aspect-ratio: 16 / 9; max-height: 440px; }
  .dk-list { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; padding: 0 6px 24px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  .d-listhead { display: flex; flex-direction: column; gap: 2px; margin: 4px 4px 14px; }
  .d-listhead b { font-size: var(--fs-xl); font-weight: 800; }
  .d-listhead small { color: var(--muted); font-size: var(--fs-sm); }
  .dk-list .h-sec { margin-top: 18px; }
  .dk-list .item { min-height: 56px; }
  #app:not(.wide) { max-width: 600px; padding-top: 12px; }
  /* профил на компютър: отляво кой си и бързи връзки, отдясно настройките */
  #app.pfw { max-width: 1440px; padding: 0 32px 48px; }
  #app.pfw .pf-wrap { grid-template-columns: 340px minmax(0, 1fr); }
  .pf-h1 { margin: 6px 0 14px; font-size: 34px; }
  .icon-btn.ava.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent); }
  .dk-side .card.eb { flex-wrap: wrap; }
  .dk-side .eb .grow { flex: 1 1 calc(100% - 56px); }
  .dk-side .eb .eb-btn { width: 100%; }
  #app.pfw .hdr { grid-template-columns: var(--tap) 1fr var(--tap); }
  .pf-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 8px; }
  .pf-side { display: block; position: sticky; top: calc(var(--tap) + 28px); }
  .pf-head { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px; }
  .pf-ava { width: 64px; height: 64px; }
  .pf-nav { display: grid; gap: 4px; margin: 4px 0 6px; }
  .pf-nav-i { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--r-md); font-weight: 650; color: var(--ink); transition: background .15s; }
  .pf-nav-i span { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--accent-soft); display: grid; place-items: center; font-size: 16px; }
  .pf-nav-i:hover { background: var(--surface); box-shadow: var(--shadow); }
  .pf-more .h-sec, .pf-acct .h-sec { margin-top: 18px; }
  .pf-main > .h-sec:first-child { margin-top: 0; }
  .pf-main .h-sec { scroll-margin-top: calc(var(--tap) + 28px); }
  .pf-main .pf-card { padding: 4px 24px; }
  .pf-main .pf-row { min-height: 72px; }
  .pf-main .pf-row:hover b { color: var(--accent-ink); }
  .pf-main .pf-edit { padding: 2px 0 24px 56px; }
  .pf-main .stores { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pf-main .store { padding: 16px 5px 14px; }
  .pf-main .st-badge { padding: 3px 6px; }
  .pf-main .styles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pf-main .styles.rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-main .grid3 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pf-main .line-opt, .pf-main .eb-info { max-width: 560px; }
  .pf-main .card.stepper { max-width: 560px; }
  .pf-main .pf-bar { display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: center; gap: 12px; margin: 8px 0 0; padding: 18px 0 20px; }
  .pf-main .pf-bar .btn { width: auto; min-width: 260px; }
  .pf-main .pf-bar .btn-2 { width: auto; padding: 0 18px; }
}
@media (min-width: 1100px) and (max-width: 1319px) {
  #app.wide { padding: 0 20px 40px; }
  .dk-main { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
  .dk-hello span { display: none; }
  .dk-budget { width: 220px; }
  .dk-day .meals { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- вход и абонамент ---------- */
.acf { display: grid; gap: 12px; margin-top: 6px; }
.inp { width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--r-md); border: 2px solid var(--line-2); background: var(--surface); font-size: var(--fs-lg); color: var(--ink); outline: none; transition: border-color .15s; }
.inp:focus { border-color: var(--accent); }
.inp.code { font-size: 30px; font-weight: 800; letter-spacing: .4em; text-align: center; padding-left: .4em; }
.form-err { color: var(--bad); font-size: var(--fs-sm); font-weight: 650; background: var(--bad-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.ac-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ac-legal { text-align: center; margin-top: 18px; }
.ac-legal a { color: var(--accent-ink); font-weight: 650; }
.view-acct .footer .btn-2 { margin-top: 10px; }
.view-ob .footer .btn-2 { margin-top: 10px; }
.pw { padding: 20px 20px 18px; }
.pw-l { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.pw-l li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-md); font-weight: 600; color: var(--ink); line-height: 1.35; }
.pw-l li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ok-soft); color: var(--ok-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.pw-price { font-size: var(--fs-2xl); font-weight: 800; color: var(--accent-ink); margin: 6px 0 4px; }
@media (min-width: 1100px) { #app:not(.wide):not(.pfw) .view-acct { max-width: 480px; margin: 0 auto; } }

/* ---------- екран „Менюто ти е готово“ (абонамент) ---------- */
.view-pay { padding-bottom: 24px; }
.pw-wrap { display: grid; gap: 18px; }
.pw-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 8px; border-radius: var(--pill); background: var(--ok-soft); color: var(--ok-ink); font-weight: 700; font-size: var(--fs-sm); }
.pw-badge svg.i { width: 16px; height: 16px; stroke-width: 3; }
.pw-h { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 12px 0 14px; }
.pw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.pw-stats > div { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 10px 8px; text-align: center; min-width: 0; }
.pw-stats b { display: block; font-size: var(--fs-lg); font-weight: 800; color: var(--ink); white-space: nowrap; }
.pw-stats small { display: block; font-size: 11px; color: var(--muted); line-height: 1.25; margin-top: 2px; }
.pw-stats .ok b { color: var(--ok-ink); }
.pw-stats .bad b { color: var(--bad); }
.pw-days { position: relative; display: grid; gap: 10px; }
.pw-day { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 14px; display: grid; gap: 10px; }
.pw-dn { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; font-size: var(--fs-md); color: var(--accent-ink); }
.pw-dn span { font-weight: 650; font-size: var(--fs-xs); color: var(--muted); }
.pw-m { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pw-m small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pw-m b { display: block; font-size: var(--fs-md); font-weight: 650; line-height: 1.25; }
.pw-ph { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; flex: none; font-size: 26px; }
.pw-day.locked { filter: blur(5px); opacity: .7; pointer-events: none; user-select: none; }
.pw-day.locked:last-of-type { opacity: .45; }
.pw-lock { position: absolute; left: 50%; bottom: 22%; transform: translateX(-50%); width: min(300px, 86%); background: rgba(255, 255, 255, .96); border-radius: var(--r-lg); box-shadow: 0 14px 34px rgba(21, 23, 42, .16); padding: 16px 18px; text-align: center; display: grid; justify-items: center; gap: 2px; }
.pw-lock svg.i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 4px; }
.pw-lock b { font-size: var(--fs-md); }
.pw-lock small { color: var(--muted); font-size: var(--fs-sm); }
.pw-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 20px; display: grid; gap: 14px; align-content: start; }
.pw-ct { margin: 0; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em; }
.pw-card .pw-l { margin: 0; gap: 14px; }
.pw-card .pw-l li { align-items: center; }
.pw-card .pw-l li::before { display: none; }
.pw-i { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); background: var(--accent-soft); display: grid; place-items: center; font-size: 19px; }
.pw-l li span:last-child b { display: block; font-size: var(--fs-md); font-weight: 700; }
.pw-l li span:last-child small { display: block; font-size: var(--fs-sm); color: var(--muted); font-weight: 500; }
.pw-price { font-size: var(--fs-2xl); font-weight: 800; color: var(--ink); margin: 0; }
.pw-trial { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); background: var(--ok-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.pw-btn { width: 100%; }
.pw-fine { margin: 0; text-align: center; font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 899px) {
  .pw-card { position: sticky; bottom: 0; z-index: 3; margin: 0 calc(-1 * var(--pad)); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -8px 30px rgba(21, 23, 42, .1); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .pw-card .pw-l, .pw-card .pw-ct { display: none; }
  .pw-stats small { font-size: 10.5px; }
}
@media (min-width: 900px) {
  #app.payw { max-width: 1060px; }
  .pw-wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 6px; }
  .pw-card { position: sticky; top: 76px; padding: 26px; }
  .pw-h { font-size: 34px; }
}

/* принтиране на списъка */
@media print {
  body { background: #fff; }
  .dk-top, .dk-lact, .card.eb, .hdr, .toast, .done-card { display: none !important; }
  #app, #app.wide { max-width: none; padding: 0; }
  .dk-lbody .cats { columns: 2; }
  .card { box-shadow: none !important; border: 1px solid #ddd; }
  .item { break-inside: avoid; }
}

/* ---------- изчистване на дизайна (17.11.2026) ---------- */
/* отворено ястие: голямата снимка заменя малката */
.dish.open .dish-row .dish-ph:not(.ph-empty) { display: none; }
/* магазинът при продукта в рецептата — тих текст, не лого */
.ing-st { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 650; color: var(--muted); background: var(--soft); border-radius: 6px; padding: 1px 6px; vertical-align: 1px; }
/* eBag: компактна карта под напредъка */
.card.eb { flex-wrap: nowrap; padding: 12px 14px; }
.eb .grow { flex: 1 1 auto; min-width: 0; }
.eb .grow small { white-space: normal; }
.eb .eb-btn { width: auto; flex: none; min-height: 42px; padding: 8px 16px; font-size: var(--fs-sm); box-shadow: none; }
.eb-logo { width: 40px; height: 40px; }
.icon-btn.ava svg.i { width: 22px; height: 22px; }
.pf-ava svg.i { width: 28px; height: 28px; stroke: #fff; }

/* рецепта като прозорец (компютър) */
html.modal-open { overflow: hidden; }
.rmodal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 28px; }
.rm-back { position: absolute; inset: 0; background: rgba(21, 23, 42, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .2s ease both; }
.rm-box { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 56px); overflow: auto; background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 30px 80px rgba(21, 23, 42, .3);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 26px; animation: viewIn .25s var(--ease) both; }
.rm-x { position: absolute; top: 14px; right: 14px; z-index: 2; background: var(--surface); box-shadow: var(--shadow); }
.rm-left { display: grid; gap: 12px; align-content: start; position: sticky; top: 0; }
.rm-left .dish-big { aspect-ratio: 4 / 3; border-radius: var(--r-md); display: grid; place-items: center; }
.rm-slot { font-size: var(--fs-sm); font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 8px; }
.rm-t { margin: -4px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.rm-left .meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: var(--fs-sm); color: var(--muted); }
.rm-left .meta span { display: inline-flex; align-items: center; gap: 5px; }
.rm-left .meta .price { font-size: var(--fs-lg); }
.rm-right { padding-top: 6px; }
.rm-right .sub-h:first-child { margin-top: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1099px) { .rmodal { display: none; } }
.pf-hn { display: block; font-size: var(--fs-xl); font-weight: 800; color: var(--ink); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-mail { font-size: var(--fs-sm); color: var(--ink-2); margin: 2px 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-head .grow { min-width: 0; }
.pw-price { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; white-space: nowrap; }
.pw-old { font-size: var(--fs-lg); font-weight: 700; color: var(--muted); text-decoration-thickness: 2px; }
.pw-off { align-self: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--bad); border-radius: var(--pill); padding: 3px 10px; }
@media (max-width: 899px) { .pw-price { font-size: 24px; gap: 8px; } .pw-old { font-size: var(--fs-md); } }

/* вход с парола: поле с „Покажи“, подсказка, съгласие с условията */
.pw-field { position: relative; }
.pw-field .inp { width: 100%; padding-right: 84px; }
.pw-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; font-size: var(--fs-sm); font-weight: 700; color: var(--accent-ink); padding: 8px 10px; cursor: pointer; }
.pw-hint { margin: -4px 2px 0; font-size: var(--fs-sm); color: var(--muted); }
.ac-terms { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; cursor: pointer; margin: 2px 0; }
.ac-terms input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.ac-terms a { color: var(--accent-ink); font-weight: 650; }
.ac-links span { color: var(--muted); }
.ac-links:has(span) { justify-content: center; gap: 6px; }

/* вход: регистрацията — голям, ясно видим бутон */
.ac-or { display: flex; align-items: center; gap: 12px; margin: 26px 0 12px; color: var(--muted); font-size: var(--fs-sm); font-weight: 600; }
.ac-or::before, .ac-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.ac-new { width: 100%; min-height: 52px; border: 2px solid var(--accent); color: var(--accent-ink); font-weight: 750; font-size: var(--fs-md); background: var(--surface); border-radius: var(--r-md); cursor: pointer; }
.ac-new-hint { text-align: center; margin-top: 8px; font-size: var(--fs-sm); color: var(--muted); }

/* изтриване на профила */
.del-form { display: grid; gap: 10px; }
.danger-btn { background: #c0352b !important; box-shadow: none; }

/* подробни рецепти: съдове, заглавия на стъпките, „Ако нещо не стане“ */
.tools-l { margin: 2px 0 6px; font-size: var(--fs-md); line-height: 1.5; color: var(--ink-2); }
.steps-l .st-t { color: var(--ink); }
.tips-l { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 8px; }
.tips-l li { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; font-size: var(--fs-sm); line-height: 1.5; }

/* махнато хранене или ден („ям навън“) */
.card.skipped { display: flex; align-items: center; gap: var(--gap); background: transparent; border: 1.5px dashed var(--line, #d7dae6); box-shadow: none; }
.card.skipped b { font-size: var(--fs-md); }
.card.skipped p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.45; }
.btn-2.sm { min-height: 40px; padding: 0 14px; font-size: var(--fs-sm); white-space: nowrap; flex: none; width: auto; margin: 0; }
.skip-b, .skip-day { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm); padding: 8px 2px; min-height: 40px; background: none; border: 0; cursor: pointer; }
.skip-b:hover, .skip-day:hover { color: var(--accent-ink); }
.skip-b svg.i, .skip-day svg.i { width: 15px; height: 15px; }
.skip-day { margin-top: 2px; padding-bottom: 0; }
.dk-dt .skip-day { display: flex; margin-left: auto; }
