:root {
  --bg: #090909;
  --panel: rgba(5, 5, 5, .86);
  --panel-2: rgba(17, 17, 17, .92);
  --gold: #ffb72f;
  --gold-2: #c6782c;
  --white: #f8f4ec;
  --muted: #bfb7aa;
  --danger: #ff6b6b;
  --ok: #47d787;
  --line: rgba(255, 183, 47, .32);
  --radius: 16px;
  --shadow: 0 20px 70px rgba(0, 0, 0, .45);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background: #080808;
  min-height: 100vh;
  overflow-x: hidden;
}

.texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 183, 47, .12), transparent 25%),
    radial-gradient(circle at 82% 8%, rgba(198, 120, 44, .1), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.055) 0 1px, transparent 1px 40px),
    linear-gradient(60deg, rgba(255,255,255,.035) 0 1px, transparent 1px 50px),
    #080808;
  opacity: .9;
  z-index: -2;
}
.texture::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent, rgba(255,255,255,.04), transparent),
    radial-gradient(circle, transparent 20%, #050505 78%);
  mix-blend-mode: screen;
  opacity: .42;
}

.hero, .kitchen-header {
  position: relative;
  padding: 34px clamp(18px, 4vw, 64px) 24px;
}

.topbar, .kitchen-header {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 36px);
}
.logo {
  width: clamp(108px, 16vw, 180px);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(255, 183, 47, .14));
}
.logo.small { width: 90px; }

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .74rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 10px;
  font-size: clamp(3.3rem, 10vw, 7.5rem);
  line-height: .84;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 span {
  display: inline-block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  transform: translateY(.08em);
}
.tagline { color: var(--muted); max-width: 760px; font-size: 1.05rem; }
.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  max-width: 420px;
}
.hero-actions .primary-btn,
.hero-actions .secondary-btn {
  width: auto;
  min-width: 150px;
}

.corner { position: absolute; width: 170px; height: 170px; opacity: .8; pointer-events: none; }
.corner::before, .corner::after {
  content: ""; position: absolute; inset: 0; border-color: var(--gold); border-style: solid;
}
.corner::before { border-width: 2px 0 0 2px; }
.corner::after { width: 42px; height: 42px; border: 2px solid var(--gold); border-radius: 50%; top: -7px; left: -7px; }
.corner-tl { top: 28px; left: 36px; transform: rotate(0); }
.corner-tr { top: 28px; right: 36px; transform: scaleX(-1); }

.order-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.order-strip div {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
}
.order-strip strong {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  color: #111; background: var(--gold);
}
.order-strip span { color: var(--white); font-weight: 700; }
.menu-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.menu-highlights article {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px;
}
.menu-highlights small,
.menu-highlights span {
  display: block;
  color: var(--muted);
}
.menu-highlights small {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .72rem;
}
.menu-highlights strong {
  display: block;
  margin: 4px 0;
  font-size: 1.08rem;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 64px) 48px;
}
.catalog-panel, .cart-card, .lane, .dialog {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.catalog-panel { padding: clamp(18px, 3vw, 32px); }
.section-head, .cart-title {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  margin-bottom: 18px;
}
.section-head h2, .cart-title h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.search-box { display: grid; gap: 6px; min-width: min(420px, 100%); color: var(--gold); font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
input, textarea, select {
  width: 100%;
  background: rgba(255,255,255,.07);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  font: inherit;
}
select option { background: #141414; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(255,183,47,.08); }

.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}
.tab-btn, .secondary-btn, .primary-btn, .status-btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.tab-btn { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.12); }
.tab-btn.active { background: var(--gold); color: #111; box-shadow: 0 0 32px rgba(255,183,47,.22); }
.tab-btn:hover, .primary-btn:hover, .secondary-btn:hover, .status-btn:hover { transform: translateY(-1px); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}
.product-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  background: linear-gradient(145deg, rgba(0,0,0,.94), rgba(18,18,18,.92));
  border: 1px solid rgba(255,183,47,.24);
  border-radius: 16px;
  padding: 12px;
  min-height: 420px;
}
.product-media {
  position: relative;
  z-index: 1;
  height: 150px;
  overflow: hidden;
  border-radius: 12px;
  background: #0c0c0c;
  border: 1px solid rgba(255,255,255,.08);
}
.product-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  color: var(--gold);
  font-weight: 950;
  letter-spacing: .08em;
}
.product-copy { padding: 14px 4px 4px; }
.product-card .eyebrow { margin-bottom: 4px; }
.product-name {
  color: var(--gold);
  font-size: 1.22rem;
  margin-bottom: 7px;
  line-height: 1.1;
}
.description { color: var(--white); opacity: .92; min-height: 58px; line-height: 1.34; margin-bottom: 0; }
.price-options { display: grid; gap: 8px; margin: 15px 0; }
.option-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
}
.option-row strong { color: var(--gold); }
.notes-input { margin-top: 8px; }
.add-btn {
  position: relative;
  z-index: 2;
  width: 100%; margin-top: 10px;
  background: var(--white); color: #111;
  border: 0; border-radius: 18px; padding: 13px 14px;
  font-weight: 950; cursor: pointer;
}
.add-btn:hover { background: var(--gold); }

.cart-card { padding: 20px; }
.sticky { position: sticky; top: 18px; }
.badge { display: grid; place-items: center; min-width: 42px; height: 42px; border-radius: 999px; background: var(--gold); color: #111; font-weight: 950; }
.cart-items { display: grid; gap: 10px; margin: 12px 0; max-height: 280px; overflow: auto; padding-right: 4px; }
.empty-state { color: var(--muted); border: 1px dashed rgba(255,255,255,.16); border-radius: 18px; padding: 18px; }
.cart-line {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 12px;
}
.cart-line-top { display: flex; justify-content: space-between; gap: 10px; }
.cart-line h4 { margin: 0 0 4px; color: var(--gold); }
.cart-line small { color: var(--muted); display: block; line-height: 1.35; }
.qty-actions { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.qty-actions button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--white); cursor: pointer; }
.qty-actions .remove { width: auto; border-radius: 999px; padding: 0 10px; color: var(--danger); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 4px; font-size: 1.2rem; }
.total-row strong { color: var(--gold); font-size: 1.55rem; }
.hint { color: var(--muted); font-size: .9rem; }
.customer-form { display: grid; gap: 10px; margin: 14px 0; }
.customer-form label { display: grid; gap: 6px; color: var(--gold); font-weight: 850; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.primary-btn { width: 100%; background: var(--gold); color: #111; box-shadow: 0 0 30px rgba(255,183,47,.18); }
.secondary-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.13); }
.cart-card .secondary-btn { width: 100%; margin-top: 10px; }
.kitchen-link { display: block; color: var(--gold); font-weight: 900; margin-top: 14px; text-align: center; text-decoration: none; }

.dialog { color: var(--white); max-width: 480px; padding: 24px; }
.dialog::backdrop { background: rgba(0,0,0,.72); }
.dialog h3 { color: var(--gold); font-size: 1.8rem; }
.dialog-actions { display: flex; gap: 10px; }
.dialog-actions .secondary-btn, .dialog-actions .primary-btn { width: 100%; }
.footer { padding: 0 clamp(18px, 4vw, 64px) 36px; color: var(--muted); }

.kitchen-body h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: 0; line-height: .92; }
.kitchen-header { justify-content: space-between; flex-wrap: wrap; padding-bottom: 12px; }
.kitchen-title { min-width: min(520px, 100%); }
.kitchen-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kitchen-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 16px;
  padding: 20px clamp(18px, 4vw, 64px) 50px;
  overflow-x: auto;
}
.kitchen-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  min-width: min(100%, 980px);
}
.kitchen-summary article {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px 14px;
}
.kitchen-summary span {
  display: block;
  color: var(--gold);
  font-weight: 950;
  font-size: 1.9rem;
  line-height: 1;
}
.kitchen-summary small { color: var(--muted); font-weight: 800; text-transform: uppercase; font-size: .72rem; }
.handoff-panel {
  grid-column: 1 / -1;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: min(100%, 980px);
}
.handoff-head, .handoff-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.handoff-head h2 { margin: 0; color: var(--white); }
.handoff-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(440px, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.handoff-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}
.handoff-item {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,.06);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
}
.handoff-item.active {
  border-color: var(--gold);
  background: rgba(255,183,47,.12);
}
.handoff-item strong, .handoff-item span, .handoff-item small { display: block; }
.handoff-item span { color: var(--muted); margin-top: 4px; }
.handoff-item small { color: var(--gold); margin-top: 8px; }
.handoff-detail {
  min-height: 280px;
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px;
}
.handoff-detail h3 { margin: 0 0 4px; color: var(--white); }
.chat-thread {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding: 10px 2px;
}
.chat-bubble {
  width: min(82%, 620px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,.07);
}
.chat-bubble.outbound {
  justify-self: end;
  background: rgba(255,183,47,.14);
  border-color: rgba(255,183,47,.32);
}
.chat-bubble small { color: var(--muted); }
.chat-bubble p { margin: 4px 0 0; line-height: 1.35; }
.operator-reply {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.lane {
  display: flex;
  flex-direction: column;
  padding: 12px;
  min-height: 520px;
  max-height: calc(100vh - 220px);
  border-radius: 14px;
}
.lane h2 { color: var(--gold); margin: 0; font-size: 1.1rem; text-transform: uppercase; }
.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.lane > h2 { margin-bottom: 12px; }
.lane-head-link,
.lane-more {
  color: var(--gold);
  border: 1px solid var(--line);
  background: rgba(255,183,47,.08);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}
.lane-content {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}
.lane-more {
  display: block;
  text-align: center;
  margin-top: 2px;
}
.kitchen-order {
  background: var(--panel-2);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px;
}
.order-card-head, .order-card-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.order-card-foot { align-items: center; margin-top: 12px; }
.kitchen-order h3 { color: var(--white); margin-bottom: 4px; font-size: 1rem; letter-spacing: 0; }
.kitchen-order .meta { color: var(--muted); font-size: .88rem; }
.order-pill {
  color: #111;
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: .7rem;
  font-weight: 950;
  white-space: nowrap;
}
.order-customer { margin: 12px 0 8px; }
.order-customer span { display: block; color: var(--muted); font-size: .86rem; margin-top: 2px; }
.order-items-mini {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}
.order-items-mini li { line-height: 1.3; }
.order-items-mini span { color: var(--muted); }
.status-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.status-btn { padding: 9px 10px; background: rgba(255,183,47,.12); color: var(--gold); border: 1px solid var(--line); }
.status-btn.danger { color: var(--danger); border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.08); }
.no-orders { color: var(--muted); border: 1px dashed rgba(255,255,255,.16); padding: 14px; border-radius: 16px; }
.order-modal {
  width: min(94vw, 760px);
  max-width: 760px;
  border-radius: 14px;
}
.whatsapp-modal {
  width: min(94vw, 880px);
  max-width: 880px;
  border-radius: 14px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.modal-head h3 { margin: 0; color: var(--white); font-size: 1.8rem; }
.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
}
.order-modal-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px;
}
.order-modal-grid section, .order-lines {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px;
}
.order-modal h4 { margin: 0 0 10px; color: var(--gold); text-transform: uppercase; font-size: .78rem; }
.order-total { color: var(--gold); font-weight: 950; font-size: 1.2rem; }
.order-lines { margin-top: 12px; }
.order-lines ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.order-lines li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.order-lines li:last-child { border-bottom: 0; padding-bottom: 0; }
.order-lines span, .order-lines small { color: var(--muted); }
.modal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.whatsapp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 14px;
}
.whatsapp-actions .primary-btn,
.whatsapp-actions .status-btn {
  width: 100%;
}
.qr-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  background: #0b0b0b;
}
.delivered-shell {
  display: grid;
  gap: 14px;
  padding: 20px clamp(18px, 4vw, 64px) 50px;
}
.delivered-toolbar,
.delivered-table-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.delivered-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
}
.delivered-toolbar strong {
  color: var(--gold);
  font-size: 2.1rem;
  line-height: 1;
}
.search-box.compact { min-width: min(460px, 100%); }
.delivered-table-card { padding: 0; overflow: hidden; }
.table-scroll {
  overflow: auto;
  max-height: calc(100vh - 250px);
}
.delivered-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}
.delivered-table th,
.delivered-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.09);
  text-align: left;
  vertical-align: top;
}
.delivered-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #111;
  color: var(--gold);
  font-size: .76rem;
  text-transform: uppercase;
}
.delivered-table td { color: var(--white); }
.table-products {
  max-width: 360px;
  color: var(--muted);
}
.empty-cell {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .section-head { align-items: stretch; flex-direction: column; }
  .order-strip { grid-template-columns: 1fr; }
  .menu-highlights { grid-template-columns: 1fr; }
  .kitchen-board { grid-template-columns: repeat(4, 280px); }
  .lane { min-height: 500px; max-height: 68vh; }
  .kitchen-summary { grid-template-columns: repeat(4, 160px); }
  .handoff-layout { grid-template-columns: 1fr; }
  .handoff-panel { min-width: 280px; }
  .order-modal-grid { grid-template-columns: 1fr; }
  .delivered-toolbar { align-items: stretch; flex-direction: column; }
}
@media (max-width: 560px) {
  .topbar { align-items: flex-start; }
  .logo { width: 92px; }
  h1 { font-size: 3rem; }
  .hero-actions .primary-btn { width: 100%; }
  .layout { padding-inline: 12px; }
  .catalog-panel, .cart-card { border-radius: 12px; padding: 14px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card {
    min-height: 0;
    padding: 10px;
  }
  .product-media { height: 180px; }
  .option-row {
    padding: 11px 12px;
    border-radius: 12px;
  }
  .add-btn { padding: 15px 14px; }
  .corner { display: none; }
  .whatsapp-actions { grid-template-columns: 1fr; }
  .qr-frame { min-height: 420px; }
}
