/* Mijoz oynasi: telefon uchun, yirik tugmalar, oddiy ro'yxatlar */
:root {
  --bg: #f5f3ee; --card: #ffffff; --fg: #1d2420; --muted: #6b736d; --line: #e4e1d8;
  --brand: #1f4aad; --brand-fg: #ffffff; --brand-soft: #e4ebfa; --accent: #f0a21a; --danger: #c0392b; --closed: #9aa19c;
  --r: 14px;
  font-family: "Segoe UI", Roboto, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font-size: 16px; line-height: 1.4; }
body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

.top { position: sticky; top: 0; z-index: 5; background: var(--brand); color: var(--brand-fg); padding: 14px 16px 12px; display: flex; align-items: center; gap: 12px; }
.top .logo { width: 42px; height: 42px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.top h1 { margin: 0; font-size: 1.25rem; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top .sub { font-size: .8125rem; opacity: .85; font-weight: 400; display: block; }
.top .tbtn { color: var(--brand-fg); background: rgba(255,255,255,.16); border-radius: 10px; padding: 8px 12px; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.back { font-size: 1.4rem; line-height: 1; padding: 4px 8px 4px 0; color: var(--brand-fg); }

.wrap { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.banner { background: #fff4dc; color: #7a4d00; border-radius: var(--r); padding: 12px 14px; font-size: .9375rem; }
.banner.err { background: #fde7e4; color: var(--danger); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .9375rem; }
.chip.on { background: var(--fg); color: #fff; border-color: var(--fg); }

.errand { display: flex; gap: 14px; align-items: center; background: var(--accent); color: #2b1d00; border-radius: var(--r); padding: 14px; text-align: left; width: 100%; }
.errand b { display: block; font-size: 1.0625rem; }
.errand span { font-size: .875rem; }
.errand .ico { font-size: 2rem; }

.plist { display: flex; flex-direction: column; gap: 10px; }
.pcard { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--r); padding: 10px; text-align: left; width: 100%; border: 1px solid var(--line); }
.pcard.off { opacity: .55; }
.thumb { flex: none; width: 64px; height: 64px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; object-fit: cover; overflow: hidden; }
.pcard .info { min-width: 0; flex: 1; }
.pcard .name { font-weight: 600; font-size: 1.0625rem; }
.pcard .meta { color: var(--muted); font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 6px; padding: 2px 7px; margin-top: 3px; }
.badge.open { background: var(--brand-soft); color: var(--brand); }
.badge.closed { background: #eceae4; color: var(--muted); }

.cat { font-weight: 700; font-size: 1.0625rem; margin: 8px 0 0; }
.item { display: flex; gap: 12px; background: var(--card); border-radius: var(--r); padding: 10px; border: 1px solid var(--line); align-items: center; }
.item .thumb { width: 76px; height: 76px; }
.item .info { flex: 1; min-width: 0; }
.item .name { font-weight: 600; }
.item .desc { color: var(--muted); font-size: .8125rem; }
.item .price { font-weight: 700; margin-top: 4px; }
.qty { display: flex; align-items: center; gap: 4px; flex: none; }
.qty button { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 1.25rem; font-weight: 700; }
.qty .n { min-width: 24px; text-align: center; font-weight: 700; }
.add { background: var(--brand); color: var(--brand-fg); border-radius: 10px; padding: 9px 14px; font-weight: 600; flex: none; }

.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 30%); }
.big { width: 100%; background: var(--brand); color: var(--brand-fg); border-radius: var(--r); padding: 15px 16px; font-weight: 700; font-size: 1.0625rem; display: flex; justify-content: space-between; gap: 10px; }
.big[disabled] { background: var(--closed); }
.big.center { justify-content: center; }

.box { background: var(--card); border-radius: var(--r); padding: 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.box h3 { margin: 0; font-size: 1rem; }
label.f { display: flex; flex-direction: column; gap: 5px; font-size: .875rem; color: var(--muted); }
.in { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; color: var(--fg); font-size: 1rem; }
textarea.in { min-height: 110px; resize: vertical; }
.row { display: flex; justify-content: space-between; gap: 10px; }
.row.total { font-weight: 700; font-size: 1.125rem; border-top: 1px dashed var(--line); padding-top: 8px; }
.muted { color: var(--muted); font-size: .875rem; }
.pay { display: flex; gap: 8px; }
.pay button { flex: 1; border: 2px solid var(--line); border-radius: 12px; padding: 12px 8px; background: #fff; font-weight: 600; }
.pay button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.loc { border: 1px dashed var(--brand); color: var(--brand); border-radius: 10px; padding: 11px; font-weight: 600; }
.loc.ok { border-style: solid; background: var(--brand-soft); }
.cline { display: flex; gap: 8px; align-items: center; }
.cline .nm { flex: 1; min-width: 0; }

.done { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.done .ico { font-size: 3.5rem; }
.done h2 { margin: 0; }

.ocard { background: var(--card); border-radius: var(--r); padding: 12px 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.ocard .st { font-weight: 600; color: var(--brand); }
.ocard .st.x { color: var(--danger); }
.link { color: var(--danger); font-weight: 600; align-self: flex-start; padding: 4px 0; }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* ---------- Brauzer (mobil dastur) ---------- */
.center { text-align: center; }
.top .tbtn.ic { padding: 8px 10px; }
.banner.ok { background: var(--brand-soft); color: var(--brand); }
.login { max-width: 440px; margin: 0 auto; padding: 28px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.biglogo { width: 128px; height: 128px; align-self: center; filter: drop-shadow(0 6px 16px rgba(19, 46, 120, .25)); }
.login p { margin: 0; }
.langsw { display: flex; gap: 8px; justify-content: center; }
.langsw button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .9375rem; }
.langsw button.on { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.phone { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.phone span { padding: 12px 10px 12px 12px; color: var(--fg); font-size: 1rem; background: var(--brand-soft); }
.phone .in { border: 0; border-radius: 0; }
.in.pin { letter-spacing: .5em; font-size: 1.25rem; text-align: center; }
.who { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.link2 { color: var(--brand); font-weight: 600; padding: 6px 0; align-self: center; }
.tglink { text-align: center; color: var(--brand); font-weight: 600; text-decoration: none; padding: 8px; }

.banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.bn { flex: none; width: 86%; max-width: 420px; aspect-ratio: 2 / 1; border-radius: var(--r); overflow: hidden; position: relative; scroll-snap-align: start; background: var(--brand-soft); padding: 0; }
.bn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bn span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-weight: 700; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.banners .bn:only-child { width: 100%; }

.oacts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.oacts .pill { background: var(--brand-soft); color: var(--brand); border-radius: 10px; padding: 7px 12px; font-weight: 600; font-size: .875rem; }
.rate { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.star { font-size: 1.5rem; line-height: 1; color: #d6d3cb; padding: 2px; }
.star.on { color: #f0a21a; }
.star[disabled] { cursor: default; }
.map { height: 58vh; min-height: 300px; border-radius: var(--r); overflow: hidden; background: var(--brand-soft); border: 1px solid var(--line); }
a { color: var(--brand); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .875rem; color: var(--muted); }
.legend i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); vertical-align: -1px; }
