/* Dovis — aplicațiile (client și pizzerie). Aceleași culori și același font ca site-ul. */
:root {
  --flour: #F1EEE8; --paper: #FAF8F4; --char: #231A15; --ash: #6E645C; --red: #D91712; --red-deep: #B3110D;
  --line: rgba(35, 26, 21, .14); --open: #2F7D4F; --amber: #B86E0A;
  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --bar: 64px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar) + 60px + env(safe-area-inset-top, 0px)); }
body { margin: 0; background: var(--flour); color: var(--char); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; font-weight: 850; line-height: .95; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
[hidden] { display: none !important; }
.shell { max-width: 620px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--flour); position: relative; }
@media (min-width: 700px) { body { background: #E6E0D6; } .shell { box-shadow: 0 0 0 1px var(--line); } }

/* bară de sus */
.abar { position: sticky; top: 0; z-index: 30; height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px;
  background: rgba(241, 238, 232, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.abar img { width: 84px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; font-stretch: 90%; color: var(--ash); text-decoration: none; background: none; border: 0; padding: 6px 0; cursor: pointer; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ash); }
.chip.on { color: var(--char); }
.chip.on::before { background: var(--open); box-shadow: 0 0 0 4px rgba(47, 125, 79, .16); }
.chip.nodot::before { display: none; }

/* butoane */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 22px; border-radius: 6px; border: 2px solid transparent;
  font-weight: 700; font-size: 16px; font-stretch: 90%; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-deep); }
.btn-dark { background: var(--char); color: var(--flour); }
.btn-green { background: var(--open); color: #fff; }
.btn-line { border-color: var(--char); background: transparent; }
.btn-block { width: 100%; }
.btn-split { justify-content: space-between; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- aplicația clientului ---------- */
.hello { padding: 28px 18px 20px; }
.hello h1 { font-size: 64px; font-stretch: 62%; line-height: .86; margin-bottom: 12px; }
.hello p { color: var(--ash); font-size: 16px; }
.notice { margin: 0 18px 18px; padding: 12px 16px; border-left: 3px solid var(--red); background: var(--paper); font-size: 15px; font-weight: 600; }
.notice.soft { border-left-color: var(--char); font-weight: 500; }
.cats { position: sticky; top: var(--bar); z-index: 20; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 18px;
  background: rgba(241, 238, 232, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; padding: 8px 14px; border-radius: 6px; font-size: 15px; font-weight: 600; font-stretch: 88%; text-decoration: none; color: var(--ash); }
.cats a[aria-current] { background: var(--char); color: var(--flour); }
.menu { padding: 8px 18px calc(110px + env(safe-area-inset-bottom, 0px)); }
.cat { padding-top: 26px; scroll-margin-top: calc(var(--bar) + 64px); }
.cat h2 { font-size: 38px; font-stretch: 66%; color: var(--red); margin-bottom: 4px; }
.cat-note { font-size: 14px; color: var(--ash); }
.cat ul { list-style: none; margin: 8px 0 0; padding: 0; }
.cat li { display: flex; gap: 14px; align-items: center; padding: 14px 0; }
.cat li + li { border-top: 1px solid rgba(35, 26, 21, .08); }
.cat li > div { flex: 1; min-width: 0; }
.row { display: flex; align-items: baseline; gap: 8px; }
.row .n { min-width: 0; font-size: 18px; font-weight: 700; font-stretch: 84%; line-height: 1.2; }
.row .dots { flex: 1; min-width: 12px; border-bottom: 1.5px dotted rgba(35, 26, 21, .28); transform: translateY(-4px); }
.row .w { font-size: 13px; color: var(--ash); white-space: nowrap; }
.row .p { font-weight: 700; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cat li p { font-size: 14px; color: var(--ash); margin-top: 3px; line-height: 1.45; }
.add { flex: none; width: 44px; height: 44px; border-radius: 6px; border: 0; background: var(--red); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.add:active { transform: scale(.95); }
.add.done { background: var(--open); font-size: 20px; }

.cartbar { position: fixed; left: 50%; transform: translateX(-50%); width: calc(100% - 24px); max-width: 596px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  min-height: 58px; padding: 8px 18px; border: 0; border-radius: 8px; background: var(--char); color: var(--flour); cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; box-shadow: 0 10px 30px rgba(35, 26, 21, .35); font-weight: 700; font-stretch: 90%; }
.cartbar small { display: block; font-weight: 500; font-size: 13px; opacity: .75; }
.cartbar .n { display: inline-block; min-width: 24px; margin-right: 10px; padding: 1px 7px; border-radius: 4px; background: var(--red); color: #fff; font-size: 14px; text-align: center; }

/* ferestre */
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(35, 26, 21, .5); display: flex; align-items: flex-end; justify-content: center; }
.sheet-box { background: var(--flour); width: 100%; max-width: 620px; max-height: 92vh; max-height: 92dvh; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; overflow: hidden; }
.sh { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 18px 8px; }
.sh h2 { font-size: 34px; font-stretch: 66%; color: var(--red); }
.x { width: 40px; height: 40px; flex: none; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); font-size: 18px; cursor: pointer; }
.sb { overflow-y: auto; padding: 4px 18px 16px; }
.sf { padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--paper); }
.hint { font-size: 14px; color: var(--ash); line-height: 1.5; margin-bottom: 12px; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; }
legend { font-weight: 700; font-stretch: 88%; font-size: 17px; margin-bottom: 10px; padding: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 10px 14px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); font-size: 15px; font-weight: 600; font-stretch: 90%; cursor: pointer; }
.opt em { font-style: normal; font-weight: 500; color: var(--ash); margin-left: 6px; }
.opt[aria-pressed="true"] { border-color: var(--red); background: rgba(217, 23, 18, .07); color: var(--red); }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.lines li:first-child { border-top: 0; }
.ln { font-weight: 700; font-stretch: 88%; line-height: 1.3; }
.ld { font-size: 13px; color: var(--ash); }
.lp { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; cursor: pointer; }
.qty span { min-width: 18px; text-align: center; font-weight: 600; }
.sum { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1.5px solid var(--char); font-weight: 800; font-size: 19px; font-stretch: 88%; }
.minbar { margin: 12px 0 4px; }
.minbar div { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.minbar i { display: block; height: 100%; background: var(--red); }
.minbar p { font-size: 14px; margin-top: 8px; color: var(--ash); }
.minbar.ok i { background: var(--open); }
.fl { display: block; font-weight: 700; font-stretch: 88%; font-size: 15px; margin: 14px 0 6px; }
.fi { width: 100%; padding: 13px 14px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); color: var(--char); font: inherit; font-size: 16px; }
.fi:focus { border-color: var(--char); outline: none; }
textarea.fi { min-height: 76px; resize: vertical; }
.err { color: var(--red); font-size: 14px; font-weight: 600; margin-top: 8px; }
.small { font-size: 13px; color: var(--ash); margin-top: 14px; line-height: 1.5; }

/* status comandă */
.status { padding: 28px 18px 48px; }
.status h1 { font-size: 56px; font-stretch: 62%; line-height: .88; margin-bottom: 14px; }
.status .lead { color: var(--ash); margin-bottom: 22px; }
.eta { background: var(--char); color: var(--flour); border-radius: 6px; padding: 18px 20px; margin-bottom: 22px; }
.eta b { display: block; font-size: 48px; font-stretch: 62%; font-weight: 850; line-height: 1; }
.eta span { font-size: 15px; opacity: .8; }
.steps { list-style: none; margin: 0 0 22px; padding: 0; }
.steps li { display: flex; gap: 14px; padding: 9px 0; color: var(--ash); }
.steps i { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; margin-top: 1px; }
.steps b { display: block; font-stretch: 90%; }
.steps small { font-size: 13px; }
.steps .done { color: var(--char); }
.steps .done i { background: var(--open); border-color: var(--open); }
.steps .now { color: var(--char); }
.steps .now i { border-color: var(--amber); animation: pulse 1.3s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(184, 110, 10, .22); } }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 16px; font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.box.bad { border-left: 3px solid var(--red); }
.install { margin: 0 18px 18px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; display: flex; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; }
.install b { display: block; font-size: 15px; }
.install .btn { min-height: 42px; padding: 0 14px; font-size: 14px; flex: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.cat li.off .n, .cat li.off .p, .cat li.off p { color: var(--ash); }
.cat li.off .n { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cat li .off-tag { color: var(--red); font-weight: 700; font-size: 13px; }
.add[disabled] { background: var(--line); color: var(--ash); cursor: not-allowed; }
.line-bad { color: var(--red); font-weight: 700; font-size: 13px; margin-top: 2px; }
.line-note { color: var(--amber); font-weight: 600; font-size: 13px; margin-top: 2px; }
.qty .rm { width: auto; padding: 0 10px; color: var(--red); border-color: var(--red); }

/* ---------- v10 ---------- */
.abar-r { display: flex; align-items: center; gap: 12px; }
.hist-btn { min-height: 40px; padding: 0 12px; border-radius: 6px; border: 1.5px solid var(--char); background: transparent; font-weight: 700; font-stretch: 88%; font-size: 14px; cursor: pointer; }
@media (max-width: 380px) { .abar-r .chip { display: none; } }
.linkinfo { margin-top: 12px; padding: 0; background: none; border: 0; color: var(--red); font-weight: 700; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; text-align: left; }
.active-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: calc(100% - 36px); margin: 0 18px 18px; padding: 14px 16px; border: 0; border-radius: 6px; background: var(--char); color: var(--flour); font-size: 15px; cursor: pointer; text-align: left; }
.active-order b { font-stretch: 88%; margin-right: 6px; }
.cat-note.pack { color: var(--char); font-weight: 600; }
.subh { font-size: 20px; font-stretch: 80%; font-weight: 800; margin: 18px 0 6px; }
.zone-grp { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.zone-grp b { font-stretch: 88%; }
.costs { margin: 14px 0 4px; border-top: 1.5px solid var(--char); }
.costs > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.costs > div span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.costs em { display: block; font-style: normal; font-size: 13px; color: var(--ash); }
.costs .free { color: var(--open); }
.costs .tot { border-bottom: 0; font-weight: 800; font-size: 19px; font-stretch: 88%; padding-top: 10px; }
.deliver-to { padding: 4px 0 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.deliver-to .fl { margin-top: 4px; }
.opt-l { font-weight: 500; color: var(--ash); }
.back-link { background: none; border: 0; padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 15px; color: var(--ash); cursor: pointer; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.mini { list-style: none; margin: 0; padding: 0; }
.mini li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.mini small { display: block; color: var(--ash); font-size: 13px; }
.mini li span:last-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
.addr { margin-top: 12px; color: var(--ash); font-size: 14px; }
.hist { padding: 24px 18px 48px; }
.hist h1 { font-size: 56px; font-stretch: 62%; line-height: .88; margin-bottom: 10px; }
.hist .lead { color: var(--ash); margin-bottom: 18px; }
.hlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hlist button { width: 100%; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; cursor: pointer; }
.hrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hrow b { font-size: 20px; font-stretch: 72%; font-weight: 850; }
.hmeta { font-size: 14px; color: var(--ash); margin-top: 2px; }
.hitems { font-size: 14px; margin-top: 6px; line-height: 1.4; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 4px; background: var(--line); white-space: nowrap; }
.t-noua { background: rgba(217, 23, 18, .1); color: var(--red); }
.t-acceptata, .t-livrare { background: rgba(184, 110, 10, .14); color: var(--amber); }
.t-livrata { background: rgba(47, 125, 79, .14); color: var(--open); }
.t-refuzata { background: var(--line); color: var(--ash); }
.hist .empty { color: var(--ash); padding: 24px 0; }
.linkdel { margin-top: 22px; background: none; border: 0; padding: 0; color: var(--ash); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.abar-r .chip, .hist-btn { white-space: nowrap; }
.abar-r .chip { font-size: 13px; }

fieldset.dep { padding: 14px 14px 12px; margin: -4px 0 18px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 6px; }
fieldset.dep legend { float: left; width: 100%; margin-bottom: 10px; }
fieldset.dep .opts { clear: both; }

/* ---------- v12: livrare / ridicare ---------- */
.otype { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.otype button { text-align: left; padding: 12px 14px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; }
.otype b { display: block; font-size: 17px; font-stretch: 85%; }
.otype span { display: block; font-size: 13px; color: var(--ash); margin-top: 2px; }
.otype [aria-checked="true"] { border-color: var(--red); background: rgba(217, 23, 18, .07); }
.otype [aria-checked="true"] b { color: var(--red); }
.pickup-box { margin-top: 16px; padding: 14px 16px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.pickup-box b { font-size: 17px; font-stretch: 85%; }
.pickup-box a { color: var(--red); font-weight: 700; margin-top: 4px; }
.req { font-weight: 600; color: var(--red); font-size: 13px; }
.hello-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* ---------- v13: voucher ---------- */
.vbox { margin: 14px 0 0; }
.vbox .fl { margin-top: 0; }
.vrow { display: flex; gap: 8px; }
.vrow .fi { text-transform: uppercase; letter-spacing: .04em; }
.vrow .btn { min-height: 48px; flex: none; }
.vbox.on { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 6px; background: rgba(47, 125, 79, .1); border: 1.5px solid var(--open); font-size: 15px; }
.vbox.on b { color: var(--open); letter-spacing: .04em; }
.linkbtn2 { background: none; border: 0; color: var(--ash); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; padding: 0; }
.costs .disc span:last-child { color: var(--open); }

/* ---------- v14 ---------- */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 18px 18px; padding: 14px 16px; border-radius: 6px; background: var(--red); color: #fff; }
.promo b { display: block; font-size: 19px; font-stretch: 82%; line-height: 1.15; }
.promo span { font-size: 14px; opacity: .95; }
.promo strong { letter-spacing: .05em; background: rgba(255, 255, 255, .18); padding: 1px 6px; border-radius: 4px; }
.promo .btn { background: #fff; color: var(--red); min-height: 42px; padding: 0 16px; flex: none; }
fieldset.multi .opt.chk[aria-pressed="true"]::before { content: "✓ "; }
.mcount { font-size: 13px; font-weight: 700; color: var(--red); margin-left: 6px; }

/* sugestii în coș + confirmare 18+ */
.sugg { margin-top: 6px; padding: 14px 0 6px; border-top: 1px solid var(--line); }
.sugg-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sugg-h b { font-size: 18px; font-stretch: 80%; font-weight: 800; }
.newtag { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; }
.sugg-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.sg { flex: none; width: 136px; min-height: 112px; padding: 12px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); display: flex; flex-direction: column; justify-content: space-between; scroll-snap-align: start; }
.sg b { display: block; font-weight: 700; font-stretch: 86%; font-size: 16px; line-height: 1.2; }
.sg span { font-size: 13px; color: var(--ash); }
.sg-f { display: flex; align-items: center; justify-content: space-between; }
.sg-f em { font-style: normal; font-weight: 700; font-size: 15px; }
.sg-add { width: 40px; height: 40px; border-radius: 6px; border: 0; background: var(--red); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.agecheck { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 15px; }
.agecheck input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--red); }

/* v20: sos la pizza, notificări, rezervări */
.sauces { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.sauce { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 104px; padding: 14px; border-radius: 6px; border: 1.5px solid var(--line); background: var(--paper); text-align: left; cursor: pointer; }
.sauce b { font-size: 19px; font-stretch: 82%; font-weight: 800; }
.sauce span { font-size: 14px; color: var(--ash); }
.sauce em { margin-top: auto; font-style: normal; font-weight: 700; font-size: 14px; color: var(--red); }
.sauce.on { border-color: var(--open); background: rgba(47, 125, 79, .06); }
.sauce.on em { color: var(--open); }
.pushbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--char); font-size: 14px; }
.pushbox .btn { min-height: 40px; padding: 0 12px; font-size: 14px; flex: none; }
.resv .subh { margin-top: 22px; }
.rlist { margin-bottom: 16px; }
.rcard { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rgrid .fi { min-width: 0; }
@media (max-width: 380px) { .pushbox { flex-direction: column; align-items: stretch; } }
