:root {
  --bg: #141311;
  --card: #211f1b;
  --card2: #2c2924;
  --text: #f6efe4;
  --hint: #a39b8f;
  --mustard: #f4b63f;
  --ketchup: #e5482f;
  --line: rgba(255, 255, 255, .08);
  --display: "Oswald", "DejaVu Sans Condensed", "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--text); }
body { font: 16px/1.4 -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; padding-bottom: 100px; }
button, input { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
[hidden] { display: none !important; }

.screen { padding: 16px 16px 0; }
h1, h2, .display { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
h1 { font-size: 30px; line-height: 1.05; }
.hint { color: var(--hint); font-size: 14px; }
.small { font-size: 13px; }
.center { text-align: center; margin-top: 12px; }
.kicker { color: var(--mustard); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.link { color: var(--hint); font-size: 14px; }

.hero { padding: 20px 18px; border-radius: 22px; margin-bottom: 4px; background:
  radial-gradient(circle at 92% 20%, rgba(244, 182, 63, .35), transparent 40%),
  radial-gradient(circle at 100% 100%, rgba(229, 72, 47, .45), transparent 55%), var(--card); }
.hero h1 { font-size: 34px; }
.hero .hint { margin-top: 6px; }

.chips { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; margin: 0 -16px; background: var(--bg); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--card); font-weight: 600; font-size: 14px; }
.chip.on { background: var(--mustard); color: #1a1410; }

.section-title { font-size: 22px; margin: 16px 2px 10px; }
.list { display: grid; gap: 10px; }
.item { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 18px; padding: 10px; }
.pic { width: 92px; height: 92px; flex: none; border-radius: 14px; background: var(--card2); display: grid; place-items: center; }
.pic svg { width: 76%; }
.item .info { flex: 1; min-width: 0; }
.item h3 { font-size: 16px; font-weight: 700; }
.item p { font-size: 13px; color: var(--hint); margin: 2px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--display); font-size: 18px; font-weight: 500; }
.add { background: var(--mustard); color: #1a1410; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 12px; }
.badge { font-size: 12px; color: var(--mustard); }

.stepper { display: flex; align-items: center; background: var(--card2); border-radius: 12px; font-weight: 700; }
.stepper button { width: 34px; height: 34px; font-size: 18px; }
.stepper span { min-width: 20px; text-align: center; }

.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(0, 0, 0, .6); display: flex; align-items: flex-end; animation: fade .2s; }
.sheet-body { width: 100%; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .25s ease-out; }
.sheet-top { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.sheet-pic { width: 96px; height: 96px; flex: none; border-radius: 18px; background: var(--card); display: grid; place-items: center; }
.sheet-pic svg { width: 78%; }
.sheet h2 { font-size: 24px; }
.group { margin-top: 16px; }
.group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--hint); margin-bottom: 8px; }
.opt { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 14px; background: var(--card); border-radius: 14px; margin-bottom: 6px; text-align: left; font-size: 15px; }
.opt .tick { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #4a453d; display: grid; place-items: center; flex: none; margin-left: 10px; }
.opt.on .tick { background: var(--mustard); border-color: var(--mustard); }
.opt.on .tick::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #1a1410; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt small { color: var(--hint); margin-left: auto; }
.sheet-row { display: flex; gap: 10px; margin-top: 18px; }
.sheet-row .stepper button { width: 44px; height: 52px; }
.primary { flex: 1; background: var(--ketchup); color: #fff; border-radius: 14px; font-weight: 700; font-size: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }

.top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.card { background: var(--card); border-radius: 18px; padding: 2px 14px; }
.line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .mini { width: 46px; height: 46px; flex: none; border-radius: 12px; background: var(--card2); display: grid; place-items: center; }
.line .mini svg { width: 80%; }
.line .info { flex: 1; min-width: 0; }
.line b { display: block; font-size: 15px; }
.line span.det { font-size: 12.5px; color: var(--hint); }
.segmented { display: flex; background: var(--card); border-radius: 14px; padding: 4px; gap: 4px; margin-top: 16px; }
.segmented button { flex: 1; padding: 10px 4px; white-space: nowrap; border-radius: 11px; font-weight: 600; font-size: 14px; color: var(--hint); }
.segmented button.on { background: var(--card2); color: var(--text); }
#pickup-hint { margin: 8px 4px 0; }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--hint); margin: 18px 2px 0; font-family: inherit; font-weight: 600; }
.field { display: block; font-size: 13px; color: var(--hint); margin-top: 14px; }
.field input { color: var(--text); display: block; width: 100%; margin-top: 6px; background: var(--card); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 14px; outline: none; font-size: 16px; }
.field input:focus { border-color: var(--mustard); }
.field input.bad { border-color: var(--ketchup); }
.sum { margin-top: 18px; padding: 8px 14px; }
.sum div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; color: var(--hint); }
.sum .grand { color: var(--text); border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-family: var(--display); font-size: 20px; text-transform: uppercase; }

.pay-head { text-align: center; padding: 24px 0 18px; }
.pay-head h1 { font-size: 52px; color: var(--mustard); }
.req div { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.req div:last-child { border-bottom: 0; }
.req .hint { grid-column: 1 / -1; font-size: 12px; }
.req b { font-size: 17px; }
.copy { background: var(--card2); color: var(--mustard); font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px; }
.steps { list-style: none; counter-reset: s; margin-top: 18px; display: grid; gap: 10px; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; font-size: 15px; }
.steps li::before { content: counter(s); width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--card); color: var(--mustard); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; z-index: 30; }
.fallback-btn { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 10; padding: 16px; border-radius: 14px; background: var(--ketchup); color: #fff; font-weight: 700; font-size: 16px; box-shadow: 0 8px 24px rgba(229, 72, 47, .35); }

.pic img, .sheet-pic img, .mini img, .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.pic:has(img) svg, .sheet-pic:has(img) svg { display: none; }
.opt em { font-style: normal; font-size: 12px; color: var(--ketchup); margin-left: 6px; }

.alist { padding: 0 12px; }
.arow { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.arow:last-child { border-bottom: 0; }
.arow.off { opacity: .5; }
.arow .grow { flex: 1; min-width: 0; }
.arow b { display: block; font-size: 15px; }
.arow span { font-size: 13px; color: var(--hint); }
.arow .chev { font-size: 22px; }
.thumb { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--card2); display: grid; place-items: center; overflow: hidden; }
.thumb svg { width: 80%; }
.thumb.big { width: 96px; height: 96px; border-radius: 18px; }
.empty { padding: 14px 0; text-align: center; }
.note-top { margin: 14px 2px 10px; }
#admin-list .section-title { font-size: 18px; }
#tabs { margin-top: 0; }

.switch { position: relative; width: 46px; height: 28px; flex: none; border-radius: 999px; background: #4a453d; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: #3fa35b; }
.switch.on::after { transform: translateX(18px); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; background: var(--card); border-radius: 14px; padding: 12px 14px; margin-top: 14px; font-size: 15px; }

.photo-box { display: flex; align-items: center; gap: 16px; }
.upload { display: inline-block; cursor: pointer; }
.two-fields { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; }
.field textarea, .field select { display: block; width: 100%; margin-top: 6px; background: var(--card); color: var(--text); border: 1.5px solid transparent; border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 16px; outline: none; resize: none; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hint) 50%), linear-gradient(135deg, var(--hint) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.danger { display: block; width: 100%; margin-top: 24px; padding: 13px; border-radius: 14px; background: rgba(229, 72, 47, .12); color: var(--ketchup); font-weight: 700; }
