/* ============================================================
   Forks Down — App components, premium edition
   Extends plateup.css · Oct 15, 2026
   ============================================================ */

/* ---------- Filter pills ---------- */
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pill {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  padding: 12px 22px; border-radius: 26px; border: 2px solid var(--input-border);
  background: var(--white); color: var(--brown-mute); cursor: pointer;
  transition: all .16s; box-shadow: var(--shadow-sm);
}
.pill:hover { border-color: var(--red); color: var(--red); }
.pill:active { transform: scale(.96); }
.pill.active {
  background: linear-gradient(180deg, #E63946, var(--red-rich)); border-color: var(--red-rich); color: #fff;
  box-shadow: 0 6px 16px var(--red-shadow), inset 0 1px 0 rgba(255,255,255,.25);
}

/* ---------- Status badges ---------- */
.badge {
  font-family: var(--sans); font-size: 11px; font-weight: 800;
  padding: 6px 14px; border-radius: 16px; text-transform: uppercase; letter-spacing: .8px;
  display: inline-block; box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.badge.new { background: linear-gradient(180deg, #FFF6DC, #F5E3AC); color: #8A6D00; border: 1px solid #EAD9A0; }
.badge.preparing { background: linear-gradient(180deg, #E8F2FF, #C9DFF7); color: #1D5FA8; border: 1px solid #AFCDF0; }
.badge.ready { background: linear-gradient(180deg, #EAF7EF, #CDEBD8); color: var(--green); border: 1px solid #AED9BE; }
.badge.done { background: #F1EDE8; color: #8A7A6A; border: 1px solid #E0D6C8; }
.badge.repeat { background: var(--red-soft); color: var(--red); }
.badge.lapsed { background: #F3E8E8; color: #8A4B4B; }

/* ---------- Panels ---------- */
.panel {
  background: var(--white); border: 1px solid var(--cream-border);
  border-radius: 24px; padding: 28px 24px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--red-bright), var(--red-rich) 55%, var(--gold));
}
.panel h2 { font-size: 26px; color: var(--brown-dark); margin-bottom: 4px; font-weight: 700; letter-spacing: -.4px; }
.panel .psub { font-family: var(--sans); font-size: 14.5px; color: var(--brown-mute); margin-bottom: 20px; }
.panel.dark { background: linear-gradient(135deg, #2E150E, var(--brown-dark)); border-color: var(--brown-dark); color: #F5E9D8; box-shadow: var(--shadow-lg); }
.panel.dark h2 { color: #fff; }
.panel.dark .psub { color: #D9C3A9; }

/* ---------- Order cards ---------- */
.order-card {
  background: var(--white); border: 1px solid var(--cream-border);
  border-radius: 20px; padding: 20px; margin-bottom: 14px;
  cursor: pointer; transition: all .16s; box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.order-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0; transition: opacity .16s;
}
.order-card:hover { border-color: #E7D3AC; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.order-card:hover::before { opacity: 1; }
.order-card:active { transform: translateY(0) scale(.995); }
.order-card.selected { border: 2px solid var(--red); box-shadow: 0 8px 28px var(--red-shadow); }
.order-card.selected::before { opacity: 1; }
.order-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 10px; }
.order-head .oname { font-weight: 800; font-size: 18px; font-family: var(--sans); color: var(--brown-dark); letter-spacing: -.2px; }
.order-head .otime { font-family: var(--sans); font-size: 13px; color: var(--brown-faint); }
.order-items { font-family: var(--sans); font-size: 14.5px; color: var(--brown-mute); }
.order-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-family: var(--sans); }
.order-foot .oprofit { font-weight: 700; color: var(--green); font-size: 14px; }

/* ---------- Form fields — premium ---------- */
.field { margin-bottom: 20px; }
.field label {
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  color: var(--brown-dark); display: block; margin-bottom: 9px; letter-spacing: .1px;
}
.field label .opt { font-weight: 500; color: var(--brown-faint); font-size: 13px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 17px 18px; border-radius: 16px;
  border: 2px solid var(--input-border); font-size: 17px; line-height: 1.4;
  background: #fff; font-family: var(--sans); color: var(--brown-dark); font-weight: 500;
  box-shadow: inset 0 2px 5px rgba(58, 30, 20, .05);
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: #C9A87F; font-weight: 400; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(193, 39, 45, .13), inset 0 2px 5px rgba(58, 30, 20, .04);
}
.field input:disabled, .field textarea:disabled { background: var(--cream-deep); color: var(--brown-faint); }
.field textarea { min-height: 88px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A31621' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
  padding-right: 48px; cursor: pointer; font-weight: 600;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 420px) { .form-row { grid-template-columns: 1fr; } }
.field-hint { font-family: var(--sans); font-size: 13px; color: var(--brown-faint); margin-top: 7px; }
.btn-small {
  font-family: var(--sans); background: linear-gradient(180deg, #E63946 0%, var(--red) 45%, var(--red-rich) 100%); color: #fff;
  border: none; border-radius: 16px; padding: 14px 24px;
  font-weight: 800; font-size: 15px; cursor: pointer; letter-spacing: .2px;
  box-shadow: 0 6px 16px var(--red-shadow), inset 0 1px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.12);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-small:hover { filter: brightness(1.06); }
.btn-small:active { transform: translateY(2px) scale(.99); box-shadow: 0 2px 8px var(--red-shadow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-small:disabled { opacity: .55; transform: none; }
.btn-small.ghost { background: #fff; border: 2px solid var(--red); color: var(--red); box-shadow: 0 2px 8px rgba(193,39,45,.12); }
.btn-small.ghost:active { background: var(--red-soft); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Notes ---------- */
.note-box {
  background: var(--cream-deep); border: 1px dashed var(--cream-border);
  border-radius: 14px; padding: 14px 16px; margin-top: 12px;
}
.note-box .note-text { font-family: var(--sans); font-size: 14px; color: var(--brown); white-space: pre-wrap; }
.note-box .note-empty { font-family: var(--sans); font-size: 13.5px; color: var(--brown-faint); font-style: italic; }
.note-actions { margin-top: 10px; display: flex; gap: 8px; }
.link-btn {
  font-family: var(--sans); background: none; border: none; cursor: pointer;
  color: var(--red); font-size: 13.5px; font-weight: 700; padding: 0;
}

/* ---------- Dish / list rows ---------- */
.row-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-radius: 14px; background: var(--cream);
  margin-bottom: 10px; border: 1px solid var(--cream-border);
}
.row-item .rname { font-weight: 600; font-size: 15px; font-family: var(--sans); }
.row-item .rsub { font-size: 13px; color: var(--brown-faint); font-family: var(--sans); }
.row-item .rval { font-weight: 700; color: var(--red); font-family: var(--sans); font-size: 15px; text-align: right; }
.row-item .rval .rtag { font-size: 12px; color: var(--green); font-weight: 600; display: block; }
.add-row { display: flex; gap: 10px; margin-top: 14px; }
.add-row input {
  flex: 1; padding: 16px 18px; border-radius: 16px;
  border: 2px solid var(--input-border); font-size: 16px; background: #fff; font-family: var(--sans);
  font-weight: 500; color: var(--brown-dark);
  box-shadow: inset 0 2px 5px rgba(58, 30, 20, .05);
  transition: border-color .18s, box-shadow .18s;
}
.add-row input::placeholder { color: #C9A87F; }
.add-row input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(193,39,45,.13); }

/* ---------- Profit panel ---------- */
.profit-line { display: flex; justify-content: space-between; font-family: var(--sans); font-size: 14.5px; padding: 7px 0; border-bottom: 1px dashed var(--cream-border); }
.profit-line.total { font-weight: 800; font-size: 17px; border-bottom: none; color: var(--brown-dark); }
.margin-pct { font-size: 46px; font-weight: 800; color: var(--green); text-align: center; margin: 10px 0 2px; font-family: var(--sans); letter-spacing: -1px; }
.margin-lbl { font-family: var(--sans); text-align: center; font-size: 12px; font-weight: 700; color: var(--brown-mute); text-transform: uppercase; letter-spacing: 2px; }

/* ---------- Sell Live card ---------- */
.live-card {
  background: linear-gradient(140deg, #3A1A0E 0%, var(--espresso) 60%, #170903 100%); color: #F5E9D8;
  border-radius: var(--radius-lg); padding: 32px 26px; margin-bottom: 26px;
  box-shadow: var(--shadow-xl); border: 1px solid rgba(217,154,31,.25);
  position: relative; overflow: hidden;
}
.live-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--red-bright), var(--gold-bright));
}
.live-card h2 { color: #fff; font-size: 28px; margin-bottom: 4px; font-weight: 900; letter-spacing: -.5px; }
.live-card .psub { font-family: var(--sans); font-size: 14.5px; color: #D9C3A9; margin-bottom: 20px; }
.platform-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.platform-btn {
  font-family: var(--sans); font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 30px; border: none; cursor: pointer;
  background: linear-gradient(180deg, #D63238, var(--red-deep)); color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.3); text-decoration: none; display: inline-block;
}
.platform-btn.alt { background: rgba(245,233,216,.14); color: #fff; border: 2px solid rgba(245,233,216,.3); box-shadow: none; }
.live-steps { font-family: var(--sans); font-size: 14px; color: #D9C3A9; }
.live-steps li { margin-bottom: 8px; list-style: none; padding-left: 26px; position: relative; }
.live-steps li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: bold; }
.qr-placeholder {
  width: 150px; height: 150px; border-radius: 16px; margin: 0 auto 12px;
  background-color: #fff;
  border: 8px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 11px; color: var(--red); font-weight: 700;
}
.qr-placeholder img, .qr-box img { width: 100%; height: 100%; border-radius: 8px; }

/* ---------- Customer rows ---------- */
.cust-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px; background: var(--white); border: 1px solid var(--cream-border);
  border-radius: 20px; margin-bottom: 12px; box-shadow: var(--shadow-md);
  transition: transform .14s, box-shadow .14s;
}
.cust-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.cust-row .cname { font-weight: 800; font-size: 17px; font-family: var(--sans); color: var(--brown-dark); letter-spacing: -.2px; }
.cust-row .cmeta { font-family: var(--sans); font-size: 13.5px; color: var(--brown-mute); }
.cust-row .cspent { font-family: var(--serif); font-weight: 700; color: var(--green); font-size: 20px; text-align: right; }

/* ---------- Alerts ---------- */
.alert-card {
  background: linear-gradient(180deg, #FFFBEB, #FFF6DC); border: 1px solid #F0DFAE; border-radius: 20px;
  padding: 18px; margin-bottom: 14px; font-family: var(--sans); font-size: 14.5px;
  display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-md);
}
.alert-card .aicon { font-size: 26px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.12)); }

/* ---------- Logo upload ---------- */
.logo-upload {
  border: 2px dashed var(--cream-border); border-radius: 18px;
  padding: 28px 20px; text-align: center; font-family: var(--sans);
  color: var(--brown-mute); font-size: 14px; cursor: pointer;
}
.logo-upload .big { font-size: 36px; margin-bottom: 8px; }
.logo-preview {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--red), var(--red-deep)); color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: bold; font-family: var(--serif);
  box-shadow: var(--shadow-md);
}

/* ---------- Savings banner ---------- */
.savings-banner {
  background: linear-gradient(135deg, #D63238, var(--red-deep)); color: #fff; border-radius: var(--radius);
  padding: 28px; text-align: center; margin-bottom: 22px;
  box-shadow: 0 8px 28px var(--red-shadow);
}
.savings-banner .slabel { font-family: var(--sans); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; opacity: .85; }
.savings-banner .samount { font-size: clamp(38px, 6vw, 54px); font-weight: 800; font-family: var(--sans); letter-spacing: -1px; }
.savings-banner .sdetail { font-family: var(--sans); font-size: 15px; opacity: .9; }

/* ---------- Store cards ---------- */
.store-card { border: 2px solid var(--cream-border); border-radius: 18px; padding: 18px; margin-bottom: 14px; position: relative; font-family: var(--sans); background: var(--white); box-shadow: var(--shadow-sm); }
.store-card.best { border-color: var(--green); background: var(--green-soft); }
.store-card .sbadge { position: absolute; top: -12px; right: 16px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 20px; }
.store-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.store-name { font-weight: 700; font-size: 17px; }
.store-total { font-weight: 800; font-size: 20px; color: var(--brown-dark); }
.store-card.best .store-total { color: var(--green); }
.store-meta { font-size: 13px; color: var(--brown-mute); margin-bottom: 8px; }
.item-price-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 5px 0; border-top: 1px dashed var(--cream-border); }
.item-price-row .cheap { color: var(--green); font-weight: 700; }

/* ---------- Macro bars ---------- */
.macro-bar { margin-bottom: 12px; }
.macro-head { font-family: var(--sans); display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.macro-head .g { font-weight: 700; }
.bar-track { height: 12px; background: rgba(74,50,38,.1); border-radius: 8px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 8px; }
.macro-protein .bar-fill { background: var(--red); }
.macro-carbs .bar-fill { background: var(--gold); }
.macro-fat .bar-fill { background: #7BA05B; }

/* ---------- Phone mockup ---------- */
.phone { max-width: 360px; margin: 0 auto; background: #1a1a1a; border-radius: 44px; padding: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.phone-screen { background: var(--cream); border-radius: 32px; overflow: hidden; }
.phone-hero { height: 170px; background: linear-gradient(135deg, var(--red), var(--red-deep)); display: flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; }
.phone-hero .emoji { font-size: 52px; margin-bottom: 4px; }
.phone-hero .meal-name { font-size: 20px; font-weight: bold; }
.phone-hero .seller { font-family: var(--sans); font-size: 12px; opacity: .85; }
.phone-body { padding: 20px 18px 26px; }
.phone-cals { text-align: center; margin-bottom: 14px; }
.phone-cals .n { font-size: 42px; font-weight: 800; color: var(--red); font-family: var(--sans); }
.phone-cals .l { font-family: var(--sans); font-size: 11px; color: var(--brown-faint); text-transform: uppercase; letter-spacing: 2px; }
.phone-macros { font-family: var(--sans); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.pm { background: var(--white); border-radius: 12px; padding: 10px 6px; text-align: center; border: 1px solid var(--cream-border); }
.pm .v { font-size: 18px; font-weight: 800; color: var(--brown-dark); }
.pm .k { font-size: 10px; color: var(--brown-faint); text-transform: uppercase; letter-spacing: 1px; }
.phone-note { font-family: var(--sans); background: var(--cream-deep); border-radius: 12px; padding: 12px; font-size: 13px; color: var(--brown-mute); margin-bottom: 14px; }

/* ---------- Quick actions ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.quick-card {
  background: var(--white); border: 1px solid var(--cream-border); border-radius: 20px;
  padding: 24px 12px; text-align: center; text-decoration: none; color: var(--brown);
  font-family: var(--sans); font-size: 14px; font-weight: 800;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md); transition: transform .14s, box-shadow .14s;
}
.quick-card:active { transform: scale(.95); }
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--input-border); }
.quick-card .qicon { font-size: 36px; filter: drop-shadow(0 3px 6px rgba(58,30,20,.15)); }
.quick-card.hot {
  background: linear-gradient(160deg, #E63946 0%, var(--red-rich) 70%, #7A0F16 100%);
  border-color: var(--red-rich); color: #fff;
  box-shadow: 0 10px 28px var(--red-shadow), inset 0 1px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.15);
}

/* ---------- Misc ---------- */
.hidden { display: none !important; }
.center { text-align: center; }
.mt { margin-top: 18px; }
.kicker-sm {
  font-family: var(--sans); display: inline-block; background: var(--red-soft);
  color: var(--red); padding: 5px 14px; border-radius: 16px;
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 10px;
}
.dish-photo {
  width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cream-deep), var(--cream-border)); display: flex; align-items: center; justify-content: center;
  font-size: 30px; border: 1px solid var(--cream-border);
}

/* ============================================================
   NEW — Rebuild components (Oct 15, 2026)
   ============================================================ */

/* ---------- Dish cards (menu) ---------- */
.cat-head {
  font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--brown-dark); margin: 30px 0 12px;
  display: flex; align-items: center; gap: 12px;
}
.cat-head::before { content: ""; width: 22px; height: 4px; border-radius: 3px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.cat-head::after { content: ""; flex: 1; height: 1px; background: var(--cream-border); }
.dish-card {
  background: var(--white); border: 1px solid var(--cream-border); border-radius: 20px;
  margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow-md);
  transition: box-shadow .16s, transform .16s;
}
.dish-card:hover { box-shadow: var(--shadow-lg); }
.dish-card.soldout { opacity: .62; }
.dish-main { display: flex; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; }
.dish-emoji {
  width: 60px; height: 60px; border-radius: 18px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 30px;
  color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px rgba(58,30,20,.18);
  border: 1px solid rgba(255,255,255,.25);
}
/* Distinct appetizing identity per category — no more chicken-leg-everything */
.dish-emoji.cat-mains    { background: linear-gradient(135deg, #E63946 0%, #A31621 70%, #7A0F16 100%); }
.dish-emoji.cat-sides    { background: linear-gradient(135deg, #F2B93B 0%, #D99A1F 60%, #9A6B0A 100%); }
.dish-emoji.cat-drinks   { background: linear-gradient(135deg, #56B4E9 0%, #2471A3 65%, #154C72 100%); }
.dish-emoji.cat-desserts { background: linear-gradient(135deg, #F08BB4 0%, #C14B82 60%, #8E2F5C 100%); }
.dish-emoji.cat-other    { background: linear-gradient(135deg, #B08D5F 0%, #7A5C3D 65%, #4E3A24 100%); }
.dish-info { flex: 1; min-width: 0; }
.dish-name { font-family: var(--sans); font-weight: 800; font-size: 17px; color: var(--brown-dark); letter-spacing: -.2px; }
.dish-sub { font-family: var(--sans); font-size: 13px; color: var(--brown-faint); margin-top: 3px; }
.dish-price { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--red-rich); letter-spacing: -.3px; }
.dish-expand { border-top: 1px dashed var(--cream-border); padding: 20px 18px; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); }
.dish-expand .field { margin-bottom: 16px; }
.dish-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Sold-out toggle ---------- */
.soldout-toggle {
  font-family: var(--sans); font-size: 12.5px; font-weight: 800; letter-spacing: .4px;
  border: 2px solid var(--green); color: var(--green); background: linear-gradient(180deg, #F2FAF5, var(--green-soft));
  border-radius: 22px; padding: 9px 16px; cursor: pointer; white-space: nowrap;
  transition: all .16s; box-shadow: 0 2px 8px rgba(46,125,79,.15);
}
.soldout-toggle:active { transform: scale(.94); }
.soldout-toggle.off {
  border-color: #C9A227; color: #7A5F00;
  background: linear-gradient(180deg, #FFF9E3, #FBEFC9);
  box-shadow: 0 2px 8px rgba(160,120,10,.18);
}

/* ---------- Bottom sheet modal ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; background: rgba(58, 30, 20, .5); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .18s ease;
}
@media (min-width: 640px) { .sheet-backdrop { align-items: center; } }
.sheet {
  background: linear-gradient(180deg, #FFFEFA 0%, var(--cream) 100%); border-radius: 28px 28px 0 0; width: 100%; max-width: 560px;
  padding: 12px 24px calc(28px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-xl); animation: slideUp .24s cubic-bezier(.2,.9,.3,1.1);
  max-height: 92vh; overflow-y: auto; border-top: 1px solid rgba(255,255,255,.7);
}
@media (min-width: 640px) { .sheet { border-radius: 28px; border: 1px solid var(--cream-border); } }
.sheet-grab { width: 48px; height: 6px; border-radius: 4px; background: #E3CFA8; margin: 8px auto 18px; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
.sheet h2 { font-size: 30px; color: var(--brown-dark); margin-bottom: 4px; font-weight: 900; letter-spacing: -.6px; }
.sheet .psub { font-family: var(--sans); font-size: 15px; color: var(--brown-mute); margin-bottom: 22px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } }

/* ---------- Order item tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
@media (min-width: 560px) { .tile-grid { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--white); border: 2px solid var(--cream-border); border-radius: 20px;
  padding: 18px 12px; text-align: center; cursor: pointer; position: relative;
  transition: all .14s; box-shadow: var(--shadow-md);
  font-family: var(--sans);
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile:active { transform: scale(.95); }
.tile .temoji {
  font-size: 34px; margin-bottom: 8px; width: 64px; height: 64px; margin-left: auto; margin-right: auto;
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px rgba(58,30,20,.16);
  border: 1px solid rgba(255,255,255,.25);
}
.tile .temoji.cat-mains    { background: linear-gradient(135deg, #E63946 0%, #A31621 70%, #7A0F16 100%); }
.tile .temoji.cat-sides    { background: linear-gradient(135deg, #F2B93B 0%, #D99A1F 60%, #9A6B0A 100%); }
.tile .temoji.cat-drinks   { background: linear-gradient(135deg, #56B4E9 0%, #2471A3 65%, #154C72 100%); }
.tile .temoji.cat-desserts { background: linear-gradient(135deg, #F08BB4 0%, #C14B82 60%, #8E2F5C 100%); }
.tile .temoji.cat-other    { background: linear-gradient(135deg, #B08D5F 0%, #7A5C3D 65%, #4E3A24 100%); }
.tile .tname { font-weight: 800; font-size: 14.5px; color: var(--brown-dark); line-height: 1.35; letter-spacing: -.1px; }
.tile .tprice { font-family: var(--serif); font-weight: 700; font-size: 16px; color: var(--red-rich); margin-top: 5px; }
.tile .tqty {
  position: absolute; top: -10px; right: -10px; min-width: 34px; height: 34px;
  background: linear-gradient(180deg, #E63946, var(--red-rich)); color: #fff;
  border-radius: 18px; font-weight: 800; font-size: 15px;
  display: none; align-items: center; justify-content: center; padding: 0 10px;
  box-shadow: 0 6px 14px var(--red-shadow), inset 0 1px 0 rgba(255,255,255,.3);
  border: 2px solid #fff;
}
.tile.picked { border-color: var(--red); background: linear-gradient(180deg, #FFF7F7, var(--red-soft)); box-shadow: 0 8px 22px var(--red-shadow); }
.tile.picked .tqty { display: inline-flex; }
.tile.soldout-tile { opacity: .45; }
.cart-line {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans); font-size: 15px; padding: 11px 0;
  border-bottom: 1px dashed var(--cream-border); font-weight: 500;
}
.cart-line .qty-ctl { display: flex; align-items: center; gap: 12px; }
.qty-btn {
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--input-border);
  background: #fff; font-size: 18px; font-weight: 800; color: var(--brown-dark);
  cursor: pointer; line-height: 1; font-family: var(--sans);
  box-shadow: var(--shadow-sm); transition: all .14s;
}
.qty-btn:hover { border-color: var(--red); color: var(--red); }
.qty-btn:active { transform: scale(.9); background: var(--red-soft); }

/* ---------- Status rail ---------- */
.status-rail { display: flex; gap: 0; margin: 18px 0 8px; font-family: var(--sans); }
.status-step {
  flex: 1; text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: var(--brown-faint); padding-top: 28px; position: relative;
  transition: color .15s;
}
.status-step::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%; background: #EFE0C6;
  border: 2px solid #E0CBA4; transition: all .18s;
}
.status-step::after {
  content: ""; position: absolute; top: 16px; left: calc(-50% + 14px); right: calc(50% + 14px);
  height: 3px; border-radius: 2px; background: #EFE0C6;
}
.status-step:first-child::after { display: none; }
.status-step.done { color: var(--green); }
.status-step.done::before {
  background: linear-gradient(135deg, #3FA060, var(--green)); border-color: var(--green);
  box-shadow: 0 2px 8px rgba(46,125,79,.35);
}
.status-step.done::after { background: var(--green); }
.status-step.now { color: var(--red-rich); }
.status-step.now::before {
  background: linear-gradient(135deg, #E63946, var(--red-rich)); border-color: var(--red-rich);
  box-shadow: 0 0 0 6px rgba(193,39,45,.14), 0 2px 10px rgba(193,39,45,.4);
}
.status-step[data-goto] { cursor: pointer; }
.status-step[data-goto]:hover { color: var(--red); }
.status-step[data-goto]:hover::before { border-color: var(--red); box-shadow: 0 0 0 6px rgba(193,39,45,.10); }

/* ---------- Big action button ---------- */
.btn-block {
  width: 100%; padding: 19px; font-size: 18px; border-radius: 20px;
  font-family: var(--sans); font-weight: 800; border: none; cursor: pointer; letter-spacing: .2px;
  background: linear-gradient(180deg, #E63946 0%, var(--red) 45%, var(--red-rich) 100%); color: #fff;
  box-shadow: 0 8px 24px var(--red-shadow), inset 0 1px 0 rgba(255,255,255,.28), inset 0 -3px 0 rgba(0,0,0,.14);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-block:hover { filter: brightness(1.05); }
.btn-block:active { transform: translateY(2px); box-shadow: 0 3px 10px var(--red-shadow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-block:disabled { opacity: .55; transform: none; }
.btn-block.secondary { background: #fff; color: var(--red); border: 2px solid var(--red); box-shadow: 0 2px 10px rgba(193,39,45,.10); }
.btn-block.secondary:active { background: var(--red-soft); }

/* ---------- More page list ---------- */
.more-list { display: flex; flex-direction: column; gap: 12px; }
.more-item {
  display: flex; align-items: center; gap: 16px; background: var(--white);
  border: 1px solid var(--cream-border); border-radius: 20px; padding: 18px;
  text-decoration: none; color: var(--brown-dark); box-shadow: var(--shadow-md);
  transition: transform .14s, box-shadow .14s;
}
.more-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.more-item:active { transform: scale(.98); }
.more-item .micon {
  width: 54px; height: 54px; border-radius: 17px; flex-shrink: 0;
  background: linear-gradient(135deg, #E63946 0%, var(--red-rich) 70%, #7A0F16 100%);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 4px 12px var(--red-shadow);
}
.more-item .mtitle { font-family: var(--sans); font-weight: 800; font-size: 16.5px; letter-spacing: -.2px; }
.more-item .msub { font-family: var(--sans); font-size: 13.5px; color: var(--brown-mute); }
.more-item .mchev { margin-left: auto; color: var(--brown-faint); font-size: 20px; font-family: var(--sans); }

/* ---------- Toggle switch ---------- */
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; font-family: var(--sans); }
.switch-row .slabel { font-weight: 700; font-size: 15px; color: var(--brown-dark); }
.switch-row .ssub { font-size: 13px; color: var(--brown-mute); }
.switch { position: relative; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 16px; background: #E5D6BE;
  transition: background .18s; cursor: pointer;
}
.switch .track::before {
  content: ""; position: absolute; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px; transition: transform .18s;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.switch input:checked + .track { background: var(--green); }
.switch input:checked + .track::before { transform: translateX(22px); }

/* ---------- Kitchen ticket (print) ---------- */
@media print {
  body * { visibility: hidden; }
  #ticketPrint, #ticketPrint * { visibility: visible; }
  #ticketPrint { position: absolute; top: 0; left: 0; width: 100%; }
  .bottom-nav, .app-header { display: none !important; }
}
.ticket {
  background: #fff; color: #111; font-family: 'Courier New', monospace;
  padding: 24px; max-width: 340px; margin: 0 auto;
}
.ticket h3 { text-align: center; font-size: 20px; margin-bottom: 4px; font-family: var(--sans); }
.ticket .tmeta { text-align: center; font-size: 12px; margin-bottom: 14px; font-family: var(--sans); }
.ticket hr { border: none; border-top: 2px dashed #111; margin: 12px 0; }
.ticket table { width: 100%; font-size: 14px; border-collapse: collapse; }
.ticket td { padding: 4px 0; vertical-align: top; }
.ticket .tqty { width: 44px; font-weight: bold; }
.ticket .ttotal { text-align: right; font-size: 18px; font-weight: bold; }
