:root {
  --bg: #fff7f0; --card: #fff; --ink: #1f1a17; --muted: #7a6e66; --line: #f1e4d9;
  --brand: #ff5a1f; --brand2: #ff9a3d; --soft: #fff0e6; --ok: #16a34a; --bad: #dc2626;
  --shadow: 0 8px 28px rgba(90, 45, 10, .08);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--ink); }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -.02em; }
code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 1px 5px; border-radius: 6px; }
.small { font-size: 13px; }
.muted { color: var(--muted); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 247, 240, .9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.logo { font-size: 22px; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo b { color: var(--brand); font-weight: 800; }
.mark { background: var(--brand); color: #fff; font-weight: 800; border-radius: 10px; padding: 3px 7px; font-size: 16px; }
.loc { background: var(--soft); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.search { flex: 1; }
.search input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 16px; font: inherit; outline-color: var(--brand); }
.iconbtn { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.badge { position: absolute; top: -6px; right: -6px; background: var(--brand); color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 7px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; text-decoration: none; font-size: 20px; flex: none; }

main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 40px; min-height: 60vh; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* Hero + cards */
.hero { background: linear-gradient(120deg, var(--brand), var(--brand2)); color: #fff; border-radius: 28px; padding: 34px; display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; align-items: center; box-shadow: var(--shadow); }
.hero h1 { font-size: 40px; line-height: 1.08; margin: 12px 0; }
.hero p { opacity: .92; margin: 0 0 18px; }
.hero .big { font-size: 120px; text-align: center; filter: drop-shadow(0 12px 20px rgba(0,0,0,.15)); }
.pill { display: inline-block; background: rgba(255,255,255,.22); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 700; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 20px 0 6px; scrollbar-width: none; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 15px; font-weight: 600; white-space: nowrap; text-decoration: none; font-size: 14px; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.rcard { background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: block; transition: transform .15s, box-shadow .15s; }
.rcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(90,45,10,.13); }
.rimg { height: 130px; display: grid; place-items: center; font-size: 66px; }
.rbody { padding: 14px 16px 16px; }
.rbody h3 { margin: 0 0 4px; font-size: 17px; }
.rbody p { margin: 0 0 10px; }
.meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.rating { background: var(--ok); color: #fff; border-radius: 8px; padding: 1px 7px; font-weight: 700; }

.panel { background: var(--card); border-radius: 22px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel h2 { margin-top: 0; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.back { display: inline-block; text-decoration: none; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.rhead { border-radius: 26px; padding: 26px; display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.rhead .em { font-size: 80px; }
.rhead h1 { margin: 0 0 6px; font-size: 34px; }
.rhead p { margin: 0 0 10px; }

.btn { background: var(--brand); color: #fff; border: 0; border-radius: 12px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; white-space: nowrap; }
.btn:hover { filter: brightness(1.05); }
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.ghost { background: var(--soft); color: var(--brand); }
.btn.dark { background: var(--ink); }
.btn.wide { width: 100%; }
.field { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; background: #fffdfb; font: inherit; margin-bottom: 10px; outline-color: var(--brand); }
label.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }

.alert { border-radius: 14px; padding: 12px 14px; margin: 12px 0; font-weight: 600; }
.alert.bad { background: #fee2e2; color: #991b1b; }
.alert.ok { background: #dcfce7; color: #166534; }
.alert.info { background: var(--soft); color: #9a3412; }
.flag { font-family: var(--mono); background: #0f172a; color: #22d3ee; padding: 3px 8px; border-radius: 8px; user-select: all; word-break: break-all; }
pre.term { background: #0b1020; color: #c7f9cc; padding: 16px; border-radius: 14px; overflow: auto; font: 13px/1.5 var(--mono); white-space: pre-wrap; word-break: break-word; }
pre.term .cmd { color: #94a3b8; }

.mi { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.mi:last-child { border-bottom: 0; }
.mi .em { font-size: 32px; width: 58px; height: 58px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; flex: none; }
.mi .grow { flex: 1; min-width: 0; }
.tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; background: #fef3c7; color: #92400e; border-radius: 6px; padding: 1px 6px; vertical-align: middle; }
.price { font-weight: 800; white-space: nowrap; }
.feature { border: 2px solid #fcd34d; background: #fffbeb; border-radius: 18px; padding: 4px 14px; margin-bottom: 8px; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.review:last-child { border-bottom: 0; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { border: 0; background: var(--soft); width: 32px; height: 32px; font: inherit; font-weight: 800; cursor: pointer; color: var(--brand); }
.qty span { width: 34px; text-align: center; font-weight: 700; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; }
.total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.t th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.status { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: #dcfce7; color: #166534; }
.status.r { background: #e0e7ff; color: #3730a3; }
.list a { display: flex; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.list a:last-child { border-bottom: 0; }
.prof { display: flex; gap: 18px; align-items: center; }
.prof .av { font-size: 64px; width: 100px; height: 100px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; flex: none; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.lock { text-align: center; padding: 50px 20px; }
.lock .big { font-size: 64px; }
.gold { background: linear-gradient(135deg, #1f1a17, #4a3b1a); color: #fde68a; }
.gold h1 { color: #fff; }
details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { font-weight: 700; cursor: pointer; }

/* KitchenOS (a different vendor's product, on purpose) */
.kos { background: #111827; color: #e5e7eb; border-radius: 22px; padding: 30px; max-width: 460px; margin: 20px auto; font-family: var(--mono); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.kos h1 { font-size: 22px; margin: 0; color: #a3e635; }
.kos .field { background: #1f2937; border-color: #374151; color: #fff; font-family: var(--mono); }
.kos .btn { background: #65a30d; width: 100%; }
.kos a { color: #a3e635; }
.kos.wide { max-width: 760px; }
.ticket { background: #1f2937; border-left: 4px solid #a3e635; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }

footer.foot { max-width: 1120px; margin: 0 auto; padding: 22px 16px 100px; color: var(--muted); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--line); }
footer.foot div { margin-right: auto; }
.tabs { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); display: none; justify-content: space-around; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 20; }
.tabs a { text-decoration: none; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; color: var(--muted); gap: 2px; }
.tabs a b { font-size: 20px; }
.tabs a.on { color: var(--brand); }

#toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: grid; place-items: center; z-index: 70; padding: 16px; }
#modal[hidden] { display: none; }
.mbox { background: #fff; border-radius: 22px; padding: 26px; max-width: 460px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.mbox h2 { margin-top: 0; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 26px; }
  .hero h1 { font-size: 30px; }
  .hero .big { display: none; }
  .cols { grid-template-columns: 1fr; }
  .loc, .search, .desk { display: none; }
  .top .in { justify-content: space-between; }
  .tabs { display: flex; }
  .rhead { flex-direction: column; text-align: center; }
  .prof { flex-direction: column; text-align: center; }
  .prof .av { font-size: 48px; width: 80px; height: 80px; }
  .panel h2 .small { display: block; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
}
