/* Dixit Kitchens. Built for senior citizens: big text, big buttons, high contrast. */
:root {
  --bg: #fffaf2;
  --card: #ffffff;
  --ink: #1b1b1b;
  --muted: #4a4a4a;
  --line: #d9cfc0;
  --brand: #8a1c1c;       /* deep maroon */
  --brand-ink: #ffffff;
  --go: #146c2e;          /* action green */
  --go-dark: #0e5223;
  --warn: #b3261e;
  --soft: #fbefdc;
  --blue: #0b57d0;
  --radius: 18px;
  --tap: 64px;
}
* { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Devanagari", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }

.app { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: 110px; }
.app.with-total { padding-bottom: 210px; }

/* Header */
.top {
  background: var(--brand); color: var(--brand-ink);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; position: sticky; top: 0; z-index: 5;
}
.top .logo { width: 48px; height: 48px; border-radius: 12px; background: #fff; flex: none; }
.top .title { font-size: 1.15rem; font-weight: 700; flex: 1; line-height: 1.2; }
.top .lang {
  background: #fff; color: var(--brand); border: 0; border-radius: 12px;
  min-height: 48px; padding: 0 14px; font-weight: 700; font-size: 0.9rem;
}

.screen { padding: 16px; }
h1 { font-size: 1.5rem; margin: 8px 0 16px; line-height: 1.25; }
h2 { font-size: 1.25rem; margin: 20px 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 0.85rem; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: var(--tap); padding: 12px 18px;
  border-radius: var(--radius); border: 3px solid transparent;
  font-size: 1.1rem; font-weight: 700; cursor: pointer; text-decoration: none;
  background: var(--go); color: #fff; margin: 12px 0;
}
.btn:active { transform: scale(0.98); }
.btn.big { min-height: 80px; font-size: 1.25rem; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn.ghost { background: transparent; color: var(--blue); border: 0; text-decoration: underline; min-height: 56px; }
.btn.warn { background: #fff; color: var(--warn); border-color: var(--warn); }
.btn.brand { background: var(--brand); }
.btn[disabled] { background: #9a9a9a; color: #fff; border-color: #9a9a9a; }
.btn .ico { font-size: 1.6rem; line-height: 1; }

/* Choice tiles */
.choices { display: grid; gap: 14px; margin: 12px 0; }
.choices.two { grid-template-columns: 1fr 1fr; }
.choice {
  background: var(--card); border: 3px solid var(--line); border-radius: var(--radius);
  min-height: 96px; padding: 14px; display: flex; align-items: center; gap: 14px;
  font-size: 1.15rem; font-weight: 700; text-align: left; cursor: pointer; width: 100%;
}
.choices.two .choice { flex-direction: column; justify-content: center; text-align: center; }
.choice .ico { font-size: 2.2rem; line-height: 1; }
.choice .sub { display: block; font-weight: 500; font-size: 0.9rem; color: var(--muted); }
.choice.on { border-color: var(--go); background: #e9f6ec; box-shadow: 0 0 0 3px var(--go) inset; }
.choice[disabled] { opacity: 0.45; }

/* Inputs */
label.field { display: block; margin: 16px 0; font-weight: 700; }
label.field span { display: block; margin-bottom: 8px; }
input.in, select.in, textarea.in {
  width: 100%; min-height: var(--tap); padding: 12px 16px; font-size: 1.15rem;
  border: 3px solid var(--line); border-radius: 14px; background: #fff;
}
input.in:focus, select.in:focus, textarea.in:focus { outline: none; border-color: var(--blue); }
input.phone { font-size: 1.6rem; letter-spacing: 2px; }
input.otp { font-size: 2rem; letter-spacing: 12px; text-align: center; }
.prefix { display: flex; gap: 10px; align-items: center; }
.prefix b { font-size: 1.4rem; }
.err { color: var(--warn); font-weight: 700; margin: 8px 0; }
.note { background: var(--soft); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }

/* Steps indicator */
.steps { display: flex; gap: 8px; margin: 4px 0 12px; }
.steps i { flex: 1; height: 8px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--go); }

/* Stepper (+/-) */
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--ink); background: #fff;
  font-size: 2rem; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.stepper button.plus { background: var(--go); color: #fff; border-color: var(--go); }
.stepper .qty { min-width: 44px; text-align: center; font-size: 1.6rem; font-weight: 800; }

/* Meal cards on home */
.meal {
  background: var(--card); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin: 14px 0; display: block; width: 100%; text-align: left; cursor: pointer;
}
.meal .when { font-size: 1.25rem; font-weight: 800; }
.meal .cut { color: var(--muted); }
.meal .go { margin-top: 10px; }
.meal.closed { opacity: 0.6; cursor: default; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.pill.open { background: #e9f6ec; color: var(--go-dark); }
.pill.shut { background: #eee; color: #555; }

/* Dish cards */
.dish { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); margin: 14px 0; overflow: hidden; }
.dish img { width: 100%; height: 150px; object-fit: cover; }
.dish .body { padding: 12px 16px 16px; }
.dish .name { font-size: 1.25rem; font-weight: 800; }
.dish .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.dish .row:first-of-type { border-top: 0; }
.dish .lbl { font-size: 1.1rem; font-weight: 700; }
.dish .lbl small { display: block; font-weight: 500; color: var(--muted); font-size: 0.9rem; }

/* Fixed bars */
.totalbar {
  position: fixed; left: 0; right: 0; bottom: 88px; z-index: 6;
  background: #fff; border-top: 3px solid var(--line);
  padding: 10px 16px; display: flex; align-items: center; gap: 12px;
  max-width: 560px; margin: 0 auto;
}
.totalbar .sum { font-size: 1.4rem; font-weight: 800; flex: none; }
.totalbar .btn { margin: 0; }
.helpbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 7;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--brand); max-width: 560px; margin: 0 auto;
}
.helpbar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; border-radius: 14px; background: #fff; color: var(--brand);
  font-weight: 800; text-decoration: none; font-size: 1rem;
}
.helpbar a .ico { font-size: 1.5rem; }

/* Summary table */
.sum-list { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 6px 16px; }
.sum-list .r { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sum-list .r:last-child { border-bottom: 0; }
.sum-list .r.tot { font-size: 1.3rem; font-weight: 800; }

/* Status track */
.order-card { background: #fff; border: 3px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.track { list-style: none; padding: 0; margin: 12px 0; }
.track li { display: flex; align-items: center; gap: 14px; padding: 8px 0; font-size: 1.1rem; color: #888; }
.track li .dot { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #bbb; display: grid; place-items: center; font-size: 1.3rem; flex: none; background: #fff; }
.track li.done { color: var(--ink); }
.track li.done .dot { border-color: var(--go); background: var(--go); color: #fff; }
.track li.now { color: var(--ink); font-weight: 800; }
.track li.now .dot { border-color: var(--go); color: var(--go); box-shadow: 0 0 0 4px #cfe9d6; }
.eta { font-size: 1.3rem; font-weight: 800; background: var(--soft); border-radius: 14px; padding: 12px 16px; margin: 10px 0; }

.big-tick { width: 120px; height: 120px; border-radius: 50%; background: var(--go); color: #fff; font-size: 4.5rem; display: grid; place-items: center; margin: 16px auto; }

/* Install banner */
.install { background: #fff; border: 3px dashed var(--brand); border-radius: var(--radius); padding: 14px 16px; margin: 12px 0; }
.install .btn { margin-bottom: 0; }
.howto ol { padding-left: 1.4rem; margin: 8px 0; }
.howto li { margin: 10px 0; font-size: 1.1rem; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 90vh; overflow: auto; }

.demo-flag { background: #fff3cd; color: #5c4400; text-align: center; font-size: 0.8rem; padding: 4px; font-weight: 700; }
.spinner { text-align: center; padding: 48px 16px; font-size: 1.2rem; }
