:root {
  --bg: #0f172a;
  --bg-elev: #1e293b;
  --bg-elev2: #273449;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --border: #334155;
  --nav-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  /* App de comenzi: dezactivam pull-to-refresh / bounce la tras in jos. */
  overscroll-behavior: none;
}

.hidden { display: none !important; }

/* ---------- Ecrane centrate (gate / nume) ---------- */
.screen.center {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.card {
  width: 100%;
  max-width: 360px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}
.card h1 { margin: 0 0 .25rem; font-size: 1.4rem; }
.muted { color: var(--muted); font-size: .9rem; }
.error { color: var(--red); font-size: .85rem; min-height: 1.2em; margin: .5rem 0 0; }

form { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
input[type="text"], input[type="password"], input[type="number"] {
  width: 100%;
  padding: .8rem .9rem;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elev2);
  color: var(--text);
}
input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

button {
  font-size: 1rem;
  padding: .8rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #04283a;
  font-weight: 700;
  cursor: pointer;
}
button:active { transform: translateY(1px); }
button.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 500; }
button.small { padding: .4rem .6rem; font-size: .85rem; }
button.danger { background: transparent; color: var(--red); border: 1px solid var(--red); }

/* ---------- App ---------- */
/* Ecran principal = coloana pe toata inaltimea: header/bara sus (fix),
   continut scrollabil in mijloc, nav lipit de fund (fara position:fixed). */
#screen-app {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}
.app-header {
  flex: none; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  padding-top: max(.75rem, env(safe-area-inset-top));
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.app-title { font-weight: 700; }
.header-right { display: flex; align-items: center; gap: .5rem; }
.badge {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .04em;
  padding: .15rem .5rem; border-radius: 999px; background: var(--bg-elev2); color: var(--muted);
}
.badge.admin { background: #422006; color: var(--amber); }
.badge.guest { background: #082f49; color: var(--accent); }

/* ---------- Bara admin: restaurant + reset ---------- */
.admin-bar {
  flex: none; z-index: 4;
  display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
  padding: .5rem 1rem;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.admin-actions { display: flex; gap: .5rem; }
.admin-actions button { flex: 1; white-space: nowrap; }
.restaurant-picker { display: flex; align-items: center; gap: .4rem; width: 100%; min-width: 0; }
.restaurant-picker .rp-label { font-size: 1rem; }
.admin-bar select {
  flex: 1; min-width: 0;
  padding: .45rem .6rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-elev2); color: var(--text);
  font-size: .9rem; font-weight: 600;
}
.admin-bar select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.admin-bar .danger { white-space: nowrap; }

.modal-actions.three { flex-wrap: wrap; }
.modal-actions.three button { flex: 1 1 30%; }

.page {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 1rem;
  padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
  width: 100%; max-width: 640px;
  margin: 0 auto;
}

h2.section-title { font-size: 1rem; margin: 1.25rem 0 .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
h2.section-title:first-child { margin-top: 0; }

.total-hero {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white; border-radius: 16px; padding: 1.1rem 1.25rem;
  display: flex; flex-direction: column; gap: .15rem;
}
.total-hero .hero-main { display: flex; align-items: baseline; justify-content: space-between; }
.total-hero .label { font-size: .9rem; opacity: .9; }
.total-hero .value { font-size: 1.6rem; font-weight: 800; }
.total-hero .hero-tip { font-size: .82rem; color: rgba(255, 255, 255, .8); text-align: right; }

.list { display: flex; flex-direction: column; gap: .5rem; }
.row {
  display: flex; align-items: center; gap: .6rem;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: .7rem .8rem;
}
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; }
.row .sub { color: var(--muted); font-size: .82rem; }
.row .price { font-weight: 700; white-space: nowrap; }
.qty-pill { background: #fff; color: #0f172a; border-radius: 8px; padding: .1rem .45rem; font-size: .8rem; font-weight: 800; }

.person-row .avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-elev2); font-weight: 700; font-size: .9rem; flex: none;
}

.cat-title { font-weight: 700; margin: 1.1rem 0 .4rem; color: var(--accent); }
.cat-title:first-child { margin-top: 0; }

.menu-item { cursor: pointer; }
.menu-item .add {
  width: 40px; height: 40px; padding: 0; border-radius: 10px; background: var(--accent-strong);
  color: #04283a; font-size: 1.5rem; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}

.status-badge { font-size: .68rem; padding: .1rem .4rem; border-radius: 6px; text-transform: uppercase; font-weight: 700; }
.status-pending { background: #422006; color: var(--amber); }
.status-ordered { background: #0c4a6e; color: var(--accent); }
.status-delivered { background: #052e16; color: var(--green); }

.icon-btn {
  width: 36px; height: 36px; padding: 0; border-radius: 9px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); color: var(--text); font-size: 1rem; font-weight: 500; flex: none;
}
.icon-btn.del { color: var(--red); border-color: #7f1d1d; }

/* qty-pill ca buton (admin) — reset padding de la regula globala button */
button.qty-pill { line-height: 1; }
/* pretul ca buton editabil (admin) */
.price-btn {
  background: transparent; border: 1px dashed var(--accent); color: var(--text);
  font-weight: 700; padding: .2rem .4rem; border-radius: 8px; white-space: nowrap; line-height: 1;
}

.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; }
.empty .emoji { font-size: 2.5rem; display: block; margin-bottom: .5rem; }

/* Dropdown persoana (Acasa) */
.person-cell { display: flex; flex-direction: column; gap: 0; }
.person-row.clickable { cursor: pointer; }
.chevron { color: var(--muted); font-size: .8rem; flex: none; }
.person-orders {
  display: flex; flex-direction: column; gap: .35rem;
  margin: .35rem 0 .2rem .5rem; padding-left: .6rem; border-left: 2px solid var(--border);
}
.subrow { background: var(--bg-elev2); padding: .5rem .6rem; }
.subcell {
  background: var(--bg-elev2); border: 1px solid var(--border);
  border-radius: 10px; padding: .5rem .6rem;
  display: flex; flex-direction: column; gap: .4rem;
}

/* Buton produs personalizat */
.custom-cta {
  width: 100%; margin-bottom: 1rem; background: var(--bg-elev); color: var(--text);
  border: 1px dashed var(--green); font-weight: 600;
}

/* Buton admin: adauga produs in meniu / pe cineva */
.custom-cta.admin-add { border-style: solid; border-color: var(--accent-strong); }

/* Modal "adauga pe cineva" */
.af-label { display: block; text-align: left; font-size: .8rem; color: var(--muted); margin: .5rem 0 .2rem; }
.af-select { width: 100%; }

/* Restaurant nou din poze (review) */
.modal-card.modal-wide > #newrest-setup,
.modal-card.modal-wide > #newrest-review {
  flex: 1 1 auto; min-height: 0; max-height: 72dvh;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; text-align: left;
}
.newrest-items { display: flex; flex-direction: column; gap: .35rem; margin: .4rem 0; text-align: left; }
.nr-row { display: grid; grid-template-columns: 1fr 1.4fr 64px 36px; gap: .3rem; align-items: center; }
.nr-row input { width: 100%; padding: .35rem .4rem; font-size: .85rem; }
.nr-price { text-align: right; }
.newrest-review-actions { display: flex; gap: .5rem; margin: .3rem 0; }
.newrest-morephotos-lbl { display: inline-flex; align-items: center; cursor: pointer; }
.newrest-thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.nr-thumb { position: relative; width: 76px; height: 76px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.nr-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.nr-thumb-x {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; padding: 0;
  border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; border: none; font-size: .8rem; line-height: 1; cursor: pointer;
}
.img-lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out;
}
.img-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.newrest-active-lbl { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); margin: .4rem 0; text-align: left; }

/* Istoric note (admin) */
.modal-card.modal-wide {
  max-width: 560px;
  max-height: calc(100dvh - 2rem);
  display: flex; flex-direction: column; overflow: hidden;
}
.modal-card.modal-wide > h2 { flex: none; }
.modal-card.modal-wide > .modal-actions { flex: none; }
.history-body {
  flex: 1 1 auto; min-height: 0;
  max-height: 62dvh; /* inaltime definita: iOS nu deruleaza un copil flex fara ea */
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 .75rem; text-align: left;
}
.bill-cell { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.bill-items { display: flex; flex-direction: column; gap: .4rem; padding: .5rem; background: var(--bg-elev2); }

/* Detaliu nota (ca pe Home) */
.bill-detail { display: flex; flex-direction: column; gap: .3rem; }
.bill-total { font-size: .95rem; padding: .1rem .2rem .3rem; }
.bill-sec { font-weight: 700; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-top: .4rem; }
.bill-person { border: 1px solid var(--border); border-radius: 10px; padding: .4rem .5rem; background: var(--bg-elev); }
.bill-person-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .2rem; }
.bill-line { display: flex; align-items: center; gap: .4rem; padding: .15rem 0; font-size: .85rem; }
.bill-line-name { flex: 1; min-width: 0; }
.bill-line .price { white-space: nowrap; }

.order-cell { display: flex; flex-direction: column; gap: .4rem; }
.move-actions { display: flex; gap: .4rem; padding-left: .2rem; }
.move-actions button { flex: 1; }
.move-actions button { padding: .45rem .6rem; font-size: .82rem; }
.btn-move { background: var(--accent-strong); color: #04283a; }
.btn-back { background: var(--bg-elev2); color: var(--text); }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  flex: none; z-index: 10;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  display: flex; background: var(--bg-elev); border-top: 1px solid var(--border);
}
.nav-btn {
  flex: 1; background: transparent; border: none; color: var(--muted);
  font-size: 1.35rem; font-weight: 400; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .4rem 0; border-radius: 0; position: relative;
}
.nav-btn span { font-size: .66rem; position: relative; }
.nav-btn.active { color: var(--accent); }
.nav-badge {
  position: absolute; top: -2px; right: -14px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--red); color: white; border-radius: 999px; font-size: .62rem; font-style: normal;
  display: none; align-items: center; justify-content: center; line-height: 16px;
}
.nav-badge.show { display: inline-flex; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px);
  background: #0f172a; border: 1px solid var(--border); color: var(--text);
  padding: .6rem 1rem; border-radius: 10px; font-size: .9rem; z-index: 20;
  transition: opacity .2s; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.toast.hidden { opacity: 0; pointer-events: none; }

/* ---------- QR ---------- */
.qr-cta {
  width: 100%; margin-top: .75rem; background: var(--bg-elev); color: var(--text);
  border: 1px dashed var(--accent); font-weight: 600;
}
.modal {
  position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.6);
  display: grid; place-items: center; padding: 1rem;
}
.modal-card {
  width: 100%; max-width: 340px; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.25rem; text-align: center;
}
.modal-card h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
.modal-actions { display: flex; gap: .5rem; margin-top: .25rem; }
.modal-actions button { flex: 1; }

/* Searchbar meniu */
.menu-search-wrap { position: sticky; top: 0; z-index: 4; padding: .1rem 0 .6rem; background: var(--bg); }
.menu-search { position: relative; }
.menu-search input { width: 100%; padding-left: 2.2rem; }
.menu-search .ico { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.menu-search .clear {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; padding: 0; border-radius: 8px; background: transparent;
  color: var(--muted); font-size: 1.1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.qr-box {
  background: #fff; border-radius: 12px; padding: 12px; margin: 1rem auto; width: 240px; height: 240px;
  display: grid; place-items: center;
}
.qr-box svg { width: 100%; height: 100%; }
.qr-url { font-size: .7rem; color: var(--muted); word-break: break-all; margin: 0 0 1rem; }

/* ---------- Offline ---------- */
.offline-banner {
  flex: none; z-index: 6;
  background: #7c2d12; color: #fed7aa; text-align: center;
  padding: .4rem; font-size: .85rem;
}

.conn-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 4px; }
.conn-dot.off { background: var(--red); }

/* ---------- Split (impartire) + Tips ---------- */
/* Notificare cerere de split */
.split-notice { flex: none; padding: .5rem 1rem 0; display: flex; flex-direction: column; gap: .4rem; }
.split-req {
  display: flex; align-items: center; gap: .5rem;
  background: #082f49; border: 1px solid var(--accent); color: var(--text);
  border-radius: 12px; padding: .55rem .7rem; font-size: .9rem;
}
.split-req .grow { flex: 1; min-width: 0; }
.req-actions { display: flex; gap: .35rem; flex-shrink: 0; }
.req-actions button { padding: .35rem .6rem; font-size: .82rem; }

/* Tag + participanti pe un produs impartit */
.split-info { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .1rem .1rem .2rem; }
.split-tag {
  font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px;
  background: #1e293b; color: var(--accent); border: 1px solid var(--accent);
}
.split-chip {
  font-size: .72rem; padding: .15rem .5rem; border-radius: 999px;
  background: var(--bg-elev2); color: var(--muted); border: 1px solid var(--border);
  display: inline-flex; align-items: center; gap: .3rem;
}
.split-chip.owner { color: var(--text); }
.split-chip.st-approved { color: var(--green); border-color: var(--green); }
.split-chip.st-pending { color: var(--amber); border-color: var(--amber); }
.split-chip.st-declined { color: var(--red); border-color: var(--red); text-decoration: line-through; }
.split-chip select {
  background: var(--bg); color: var(--text); border: 1px solid var(--border);
  border-radius: 6px; font-size: .7rem; padding: .05rem .2rem;
}
.split-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 36px; height: 36px; padding: 0; border-radius: 9px; line-height: 1;
  background: transparent; border: 1px solid var(--accent); color: var(--accent);
}
.split-btn .ico-split { display: block; }
.split-btn:active { background: rgba(56, 189, 248, .12); }

/* Iconita de split in locul cantitatii (produs impartit) */
.split-badge {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 28px; border-radius: 8px;
  background: #0c4a6e; color: var(--accent);
}
.split-badge .ico-split { width: 16px; height: 16px; }

/* Layout rand produs: nume cu spatiu, status sus-dreapta, pret+actiuni jos */
.order-cell2 {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: .6rem .7rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.oc-head { display: flex; align-items: center; gap: .55rem; }
.oc-head .oc-title { flex: 1; min-width: 0; font-weight: 600; line-height: 1.2; }
.oc-body { display: flex; align-items: center; gap: .6rem; }
.oc-body .oc-sub { flex: 1; min-width: 0; color: var(--muted); font-size: .82rem; }
.oc-right { display: flex; align-items: center; gap: .4rem; flex: none; }
.oc-right .price { font-weight: 700; white-space: nowrap; }

/* Modal split: lista de persoane */
.split-people { display: flex; flex-direction: column; gap: .1rem; margin: .5rem 0; max-height: 45vh; overflow-y: auto; text-align: left; }
.split-check { display: flex; align-items: center; gap: .55rem; padding: .5rem .4rem; border-radius: 10px; }
.split-check:hover { background: var(--bg-elev2); }
.split-check input { width: 18px; height: 18px; }

/* Grupare pe paginile de status: fiecare produs = un card clar delimitat */
.status-group {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-strong);
  border-radius: 14px;
  padding: .75rem .85rem;
  display: flex; flex-direction: column; gap: .55rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.group-head { display: flex; align-items: center; gap: .6rem; }
.group-head .grow { flex: 1; min-width: 0; }
.group-head .title { font-weight: 700; font-size: 1.02rem; }
.group-head .sub { color: var(--muted); font-size: .8rem; }
.group-head .price { font-weight: 700; white-space: nowrap; }

.group-owners { display: flex; flex-direction: column; gap: .35rem; padding-top: .55rem; border-top: 1px solid var(--border); }
.owner-line {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .88rem;
  background: var(--bg-elev2); border-radius: 9px; padding: .45rem .6rem;
}
.owner-line .who { color: var(--text); }
.owner-line .spacer { flex: 1; }
.owner-line .split-info { width: 100%; margin: 0; }

/* Tips */
.hero-sub { display: block; font-size: .78rem; color: var(--muted); margin-top: .15rem; }
.tip-bar { display: flex; align-items: center; gap: .5rem; margin: .25rem 0 .5rem; }
.tip-label { font-weight: 600; font-size: .9rem; }
.tip-bar select {
  flex: 1; padding: .45rem .6rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-elev2); color: var(--text); font-weight: 600;
}
.price-col { display: flex; flex-direction: column; align-items: flex-end; }
.tip-line { font-size: .72rem; color: var(--accent); white-space: nowrap; }

/* ---------- Rafinari UI (runda 2) ---------- */
/* Dropdown de tips inline in hero (text alb pe fundal albastru) */
.inline-select {
  background: rgba(255, 255, 255, .18); color: #fff;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 6px;
  padding: .02rem .2rem; font-size: .82rem; font-weight: 800; cursor: pointer;
}
.inline-select option { color: #0f172a; }

/* URL QR: clickabil pentru copiere */
.qr-url { cursor: pointer; text-decoration: underline; word-break: break-all; }
.qr-url:active { opacity: .7; }

/* Spatiere mai stransa */
.page { padding: .8rem 1rem; padding-bottom: calc(env(safe-area-inset-bottom) + .8rem); }
.menu-search-wrap { padding: 0 0 .5rem; }

/* ---------- Plati / finalizare ---------- */
.finalize-cta {
  width: 100%; margin: .1rem 0 .6rem; font-weight: 700;
  background: var(--bg-elev); color: var(--green); border: 1px solid var(--green);
}
.finalize-cta.on { color: var(--amber); border-color: var(--amber); }
.pay-summary {
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px;
  padding: .55rem .8rem; margin-bottom: .6rem; font-size: .92rem; text-align: center;
}
.pay-summary .rem { color: var(--amber); }
.archive-cta {
  width: 100%; margin: 0 0 .6rem; font-weight: 700; border-radius: 12px; padding: .7rem;
  background: var(--bg-elev); color: var(--green); border: 1px solid var(--green);
}
.archive-cta.ready {
  background: var(--green); color: #04241a; border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(34,197,94,.35), 0 0 16px rgba(34,197,94,.35);
}
.paid-check {
  width: 30px; height: 30px; padding: 0; flex: none; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 2px solid var(--border); color: var(--green);
  font-size: 1rem; font-weight: 900;
}
.paid-check.on { background: var(--green); border-color: var(--green); color: #04283a; }
.paid-badge { font-size: .72rem; color: var(--green); font-weight: 700; white-space: nowrap; }
.person-row.is-paid { opacity: .6; }
.person-row.is-paid .price { text-decoration: line-through; }

/* ---------- Feedback la adaugare produs (animatie click) ---------- */
.menu-item { transition: background .12s ease; }
.menu-item:active { background: rgba(56, 189, 248, .16); }
.menu-item .add { transition: transform .1s ease, background .1s ease; }
.menu-item .add:active { transform: scale(.82); background: var(--green); color: #04283a; }
@keyframes addFlash { 0% { background: rgba(34,197,94,.35); } 100% { background: transparent; } }
.menu-item.flash { animation: addFlash .45s ease; }

/* Sume in chip-urile de split (editabile la owner/admin) */
.split-amt {
  font-size: .72rem; font-weight: 800; padding: .02rem .3rem; border-radius: 6px;
  background: rgba(255, 255, 255, .06); color: inherit;
}
button.split-amt { cursor: pointer; border: 1px dashed currentColor; }
.split-amt.custom { background: rgba(56, 189, 248, .22); }
