:root {
  --bg: #120d08;
  --panel: rgba(35, 27, 18, 0.76);
  --panel-strong: rgba(48, 36, 24, 0.92);
  --cream: #fff8ef;
  --muted: #b8aa98;
  --gold: #b7793a;
  --gold-2: #d8b074;
  --green: #74c850;
  --red: #ec574c;
  --blue: #4c9af0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Production management modules */
.prod-card,
.prod-row-card,
.prod-form-modal {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(52, 38, 24, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(32, 22, 12, 0.08);
}

.staff-page .prod-card,
.staff-page .prod-row-card,
.staff-page .prod-form-modal {
  background: rgba(255, 252, 246, 0.96);
}

.prod-card {
  padding: 16px;
  margin: 14px 0;
}

.prod-card-head,
.prod-panel-head,
.prod-row-card,
.prod-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.prod-card-head h3,
.prod-panel-head h2,
.prod-card h3 {
  margin: 0;
}

.prod-card-head h3,
.prod-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
}

.prod-panel-head {
  margin-bottom: 16px;
}

.prod-panel-head p {
  margin: 5px 0 0;
}

.prod-badge,
.prod-payment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(120, 81, 42, 0.1);
  color: #6b4624;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.prod-badge.green,
.prod-payment-badge[data-status="paid"] {
  background: rgba(34, 134, 84, 0.12);
  color: #167044;
}

.prod-payment-badge[data-status="partial"] {
  background: rgba(216, 137, 24, 0.14);
  color: #9a5c07;
}

.prod-payment-badge[data-status="unpaid"] {
  background: rgba(192, 57, 43, 0.12);
  color: #a83224;
}

.prod-segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.prod-segmented button {
  border: 1px solid rgba(83, 58, 32, 0.16);
  background: rgba(255, 255, 255, 0.7);
  color: #4d3420;
  border-radius: 8px;
  padding: 10px 8px;
  font-weight: 800;
}

.prod-segmented button.active {
  background: #2f2015;
  color: #fff8ef;
}

.prod-delivery-fields,
.prod-form-grid,
.prod-feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.prod-delivery-fields label,
.prod-form-grid label,
.prod-feedback-grid label,
.prod-option-list label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #61432b;
}

.prod-delivery-fields input,
.prod-delivery-fields textarea,
.prod-form-grid input,
.prod-form-grid select,
.prod-form-grid textarea,
.prod-feedback-grid select,
.prod-card textarea,
.prod-option-list textarea,
.prod-backup-output {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(78, 54, 32, 0.15);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.78);
  color: #2b2118;
  font: inherit;
}

.prod-feedback textarea,
.prod-backup-output {
  margin-top: 10px;
}

.prod-backup-output {
  min-height: 220px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
}

.prod-waiter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.prod-two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.prod-metrics article span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.prod-list {
  display: grid;
  gap: 10px;
}

.prod-list.compact {
  gap: 6px;
}

.prod-list.compact p,
.prod-table p {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(73, 49, 27, 0.08);
}

.prod-list.compact p:last-child,
.prod-table p:last-child {
  border-bottom: 0;
}

.prod-table {
  display: grid;
  gap: 0;
  margin-top: 12px;
}

.prod-table .is-low {
  color: #a83224;
  font-weight: 800;
}

.prod-row-card {
  padding: 12px;
}

.prod-row-card > div {
  min-width: 0;
}

.prod-row-card strong,
.prod-row-card span {
  overflow-wrap: anywhere;
}

.prod-row-card div span {
  display: block;
  margin-top: 4px;
  color: #7a6552;
  font-size: 0.84rem;
}

.prod-modal .order-modal-card {
  max-width: 620px;
}

.prod-form-modal {
  padding: 18px;
}

.prod-form-modal > label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  font-weight: 800;
  color: #61432b;
}

.prod-modal-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.prod-option-list {
  display: grid;
  gap: 12px;
  margin: 12px 0;
}

.prod-option-list fieldset {
  border: 1px solid rgba(75, 53, 34, 0.12);
  border-radius: 8px;
  padding: 10px;
  margin: 0;
}

.prod-option-list legend {
  padding: 0 6px;
  font-weight: 900;
  color: #4d3420;
}

.prod-option-list legend span {
  color: #a83224;
  font-size: 0.75rem;
}

.prod-remove-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-remove-chip {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(168, 50, 36, 0.2);
  background: rgba(255, 255, 255, 0.78);
  color: #61432b;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.prod-remove-chip.active {
  background: #c8322b;
  border-color: #c8322b;
  color: #fff8ef;
  box-shadow: 0 10px 22px rgba(200, 50, 43, 0.24);
}

.prod-remove-chip:active {
  transform: scale(0.96);
}

.prod-choice {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(75, 53, 34, 0.08);
}

.prod-choice:last-child {
  border-bottom: 0;
}

.prod-choice input {
  inline-size: 18px;
  block-size: 18px;
}

.prod-kitchen-filter {
  width: min(360px, 100%);
  margin: 0;
}

.prod-logout {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .prod-panel-head,
  .prod-card-head,
  .prod-row-card,
  .prod-actions-row {
    align-items: stretch;
    flex-direction: column;
  }

  .prod-actions-row .small,
  .prod-row-card .small {
    width: 100%;
  }

  .prod-list.compact p,
  .prod-table p {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media print {
  body * {
    visibility: hidden !important;
  }

  #printArea,
  #printArea * {
    visibility: visible !important;
  }

  #printArea {
    display: block !important;
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    width: 80mm;
    min-height: auto;
    padding: 0;
    margin: 0;
    background: #fff;
    color: #000;
    white-space: normal;
  }

  #printArea[data-print-size="58mm"] {
    width: 58mm;
  }

  .thermal-print {
    box-sizing: border-box;
    width: 100%;
    padding: 4mm;
    font-family: Arial, sans-serif;
    font-size: 11px;
    line-height: 1.35;
    color: #000;
  }

  .thermal-print h1 {
    margin: 0 0 6px;
    text-align: center;
    font-size: 15px;
    color: #000;
  }

  .thermal-print p {
    margin: 0 0 6px;
  }

  .thermal-print hr {
    border: 0;
    border-top: 1px dashed #000;
    margin: 6px 0;
  }

  @page {
    size: auto;
    margin: 0;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 4%, rgba(216, 176, 116, 0.2), transparent 26rem),
    linear-gradient(135deg, #090806 0%, #181208 45%, #22180f 100%);
  color: var(--cream);
}
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; }
a { color: inherit; text-decoration: none; }

.portal-page,
.staff-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 6%, rgba(216, 176, 116, 0.18), transparent 28rem),
    linear-gradient(135deg, #090806 0%, #181208 46%, #25190e 100%);
}

.portal-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.portal-hero {
  min-height: 280px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(216, 176, 116, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(rgba(18, 13, 8, 0.5), rgba(18, 13, 8, 0.8)),
    url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.portal-hero h1 {
  margin: 8px 0;
  color: #f2c98b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 68px);
  letter-spacing: 0;
}

.portal-hero p { margin: 0; color: #f2dfc3; font-size: 18px; }

.portal-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.portal-card {
  min-height: 210px;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(216, 176, 116, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 176, 116, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.portal-card svg { width: 38px; height: 38px; color: #f2c98b; }
.portal-card strong { font-size: 22px; }
.portal-card span { color: var(--muted); line-height: 1.45; }

.login-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  z-index: 30;
  background:
    linear-gradient(rgba(12, 9, 6, 0.78), rgba(12, 9, 6, 0.9)),
    url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(216, 176, 116, 0.2);
  border-radius: 18px;
  background: rgba(27, 20, 13, 0.86);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
}

.login-card h1 {
  margin: 0;
  color: #f2c98b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  letter-spacing: 0;
}

.login-card p { margin: 0 0 6px; color: var(--muted); line-height: 1.45; }
.login-card .form-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 122, 122, 0.35);
  border-radius: 10px;
  background: rgba(120, 24, 24, 0.28);
  color: #ffd8d8;
  font-weight: 800;
}
.login-card label { display: grid; gap: 8px; color: #f6ead7; font-weight: 800; }
.login-card input {
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(216, 176, 116, 0.22);
  border-radius: 10px;
  outline: 0;
  background: rgba(255,255,255,0.08);
  color: white;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: #f2c98b;
  font-weight: 800;
}

.language-switch {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 16px;
}

.language-switch.compact {
  margin: 0;
}

.language-switch button {
  min-height: 38px;
  border: 1px solid rgba(126, 72, 28, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #70401c;
  font-weight: 900;
}

.login-card .language-switch button {
  background: rgba(255, 255, 255, 0.08);
  color: #f6ead7;
  border-color: rgba(216, 176, 116, 0.2);
}

.language-switch button.active {
  background: #7c4318;
  color: white;
}

.page-only { display: none; }
.is-authenticated .login-screen { display: none; }
.is-authenticated .page-only { display: block; }
.staff-page .page-only { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }
.staff-section { margin-top: 24px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 28px; }
.admin-grid > .panel-card:only-child { grid-column: 1 / -1; }
.client-page.is-authenticated { background: #fff8ef; }
.client-page .phone-view.page-only {
  width: min(430px, 100%);
  margin: 0 auto;
  min-height: 100vh;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(390px, 430px) minmax(720px, 1fr);
  min-height: 100vh;
}

.staff-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 34px 22px;
  border-right: 1px solid rgba(216, 176, 116, 0.18);
  background:
    linear-gradient(rgba(18, 13, 8, 0.76), rgba(18, 13, 8, 0.92)),
    url("https://images.unsplash.com/photo-1533900298318-6b8da08a523e?auto=format&fit=crop&w=900&q=75") center/cover;
}

.brand-block { text-align: center; margin-bottom: 40px; }
.brand-logo {
  display: block;
  width: 96px;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

.client-brand .brand-logo {
  width: 64px;
  margin-bottom: 4px;
}

.login-card .brand-logo {
  width: 112px;
}

.brand-mark, .mini-palace {
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  width: 74px;
  height: 56px;
  border: 1px solid rgba(216, 176, 116, 0.55);
  color: var(--gold-2);
  font-weight: 900;
  border-radius: 8px 8px 2px 2px;
  background: rgba(183, 121, 58, 0.12);
}
.brand-block strong, .client-brand strong {
  display: block;
  color: #f2c98b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1.05;
}
.brand-block span, .client-brand span, .muted { color: var(--muted); }
.staff-sidebar nav { display: grid; gap: 12px; }
.side-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 7px;
  color: #e9d2b1;
  background: transparent;
}
.side-link.active { background: linear-gradient(135deg, #8a541e, #6c3e16); color: white; }
.side-link svg, .icon-btn svg, .glass-action svg, .primary-btn svg, .outline-btn svg { width: 22px; height: 22px; }
.location { position: absolute; bottom: 26px; left: 22px; right: 22px; color: #f5e8d5; font-size: 14px; }

.phone-view {
  min-height: 100vh;
  overflow: hidden;
  padding: 20px 16px 98px;
  background:
    radial-gradient(circle at 15% 35%, rgba(183, 121, 58, 0.14), transparent 16rem),
    linear-gradient(180deg, #fffaf4 0%, #f5eee5 100%);
  color: #161311;
}
.mobile-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 78px;
  margin-bottom: 22px;
}
.mobile-header > .icon-btn:first-child {
  position: absolute;
  left: 0;
}
.client-brand { text-align: center; min-width: 0; }
.client-brand .mini-palace { width: 54px; height: 38px; margin-bottom: 4px; color: #7a431b; }
.client-brand strong { color: #643515; font-size: 19px; white-space: nowrap; }
.client-brand span { display: block; color: #6f4325; font-size: 13px; }
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  color: inherit;
}
.client-hero {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  color: white;
  background: #261306;
  box-shadow: 0 18px 40px rgba(75, 43, 17, 0.18);
}
.client-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(32, 15, 4, 0.95), rgba(32, 15, 4, 0.58) 54%, rgba(32, 15, 4, 0.18));
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.82s ease, transform 4.2s ease;
}
.hero-bg.active {
  opacity: 1;
  transform: scale(1);
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-dots {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  gap: 5px;
}
.hero-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.46);
  transition: width 0.28s ease, background 0.28s ease;
}
.hero-dots span.active {
  width: 18px;
  background: #f4c27d;
}
.table-chip, .live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
  color: #ffe2b8;
  font-weight: 800;
  font-size: 13px;
}
.client-hero .table-chip {
  padding: 4px 8px;
  font-size: 11px;
}
.client-hero .table-chip svg { width: 16px; height: 16px; }
.client-hero h1 { margin: 6px 0 2px; font-size: 22px; letter-spacing: 0; }
.client-hero p { max-width: 210px; margin: 0 0 8px; font-size: 13px; line-height: 1.2; }
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #b97431, #744014);
  box-shadow: 0 12px 26px rgba(107, 61, 21, 0.26);
  font-weight: 800;
}
.primary-btn:disabled,
.primary-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  background: rgba(255,255,255,0.12);
  box-shadow: none;
}
.client-hero .primary-btn {
  min-height: 34px;
  padding: 0 13px;
  font-size: 13px;
}
.client-hero .primary-btn svg { width: 17px; height: 17px; }
.primary-btn.small { min-height: 44px; }
.outline-btn.small { min-height: 44px; padding: 0 16px; }
.primary-btn.wide, .outline-btn.wide { width: 100%; }
.outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  border: 1px solid rgba(216, 176, 116, 0.35);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #f6ead7;
  text-decoration: none;
}
.outline-btn.danger-soft {
  border-color: rgba(236, 87, 76, 0.34);
  color: #ffbbb6;
  background: rgba(236, 87, 76, 0.12);
}
.receipt-actions .outline-btn {
  background: #fffdf8;
  border-color: rgba(126, 72, 28, 0.38);
  color: #6f3a16;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(75, 43, 17, 0.08);
}
.receipt-actions .outline-btn:hover,
.receipt-actions .outline-btn:focus-visible {
  background: #f5e0c3;
  color: #2d1708;
}
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0 20px; }
.glass-action {
  position: relative;
  overflow: hidden;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 16px;
  background: rgba(255,255,255,0.72);
  color: #6a3714;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(75, 43, 17, 0.09);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.glass-action > * {
  position: relative;
  z-index: 1;
}
.glass-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(57, 169, 53, 0.22), rgba(244, 194, 125, 0.18));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.glass-action::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at center, rgba(57, 169, 53, 0.2), transparent 58%);
  opacity: 0;
  transform: scale(0.72);
}
.glass-action.is-confirmed {
  color: #1f7b31;
  background: rgba(235, 255, 233, 0.94);
  box-shadow: 0 16px 34px rgba(40, 139, 48, 0.18);
  animation: quick-action-pop 0.56s ease both;
}
.glass-action.is-confirmed::after {
  animation: quick-action-ripple 0.62s ease both;
}
.glass-action.is-confirmed svg {
  animation: sent-pop 0.48s ease both;
}
.glass-action.is-cooling {
  color: #1f7b31;
  background: rgba(244, 255, 240, 0.94);
  box-shadow: 0 16px 34px rgba(40, 139, 48, 0.16);
  cursor: wait;
}
.glass-action.is-cooling::before {
  opacity: 1;
  animation: quick-action-cooldown 10s linear forwards;
}
.glass-action.is-cooling svg {
  animation: quick-action-hold-pulse 1.1s ease-in-out infinite;
}
.glass-action:disabled {
  pointer-events: none;
}
.search-row { display: grid; grid-template-columns: 1fr 60px; gap: 12px; margin-bottom: 26px; }
.search-box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid rgba(126, 72, 28, 0.08);
  border-radius: 16px;
  background: rgba(255,255,255,0.86);
  color: #948d88;
  box-shadow: 0 12px 28px rgba(75, 43, 17, 0.08);
  transition: transform 0.24s ease, background 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}
.search-box::after {
  content: "";
  position: absolute;
  inset: -45%;
  background: radial-gradient(circle, rgba(183, 121, 58, 0.22), transparent 58%);
  opacity: 0;
  transform: scale(0.55);
  pointer-events: none;
}
.search-box:focus-within {
  transform: translateY(-2px);
  border-color: rgba(183, 121, 58, 0.34);
  background: rgba(255,255,255,0.96);
  color: #7a431b;
  box-shadow: 0 18px 36px rgba(126, 72, 28, 0.16);
}
.search-box.is-clicked {
  animation: search-box-pop 0.48s ease both;
}
.search-box.is-clicked::after {
  animation: search-box-ripple 0.66s ease both;
}
.search-box.is-clicked svg {
  animation: sent-pop 0.42s ease both;
}
.search-box svg {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  transition: color 0.22s ease, transform 0.22s ease;
}
.search-box input {
  position: relative;
  z-index: 1;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1c1713;
  font-size: 16px;
}
.search-box input::placeholder { color: #7f8a96; }
.filter-btn {
  border-radius: 16px;
  background: #7c4318;
  color: white;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}
.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.is-active {
  transform: translateY(-2px) rotate(-3deg);
  background: #9b5a22;
  box-shadow: 0 16px 30px rgba(126, 72, 28, 0.24);
}
.filter-btn.is-active svg {
  animation: filter-twist 0.42s ease both;
}
.filter-panel {
  display: none;
  gap: 14px;
  margin: -12px 0 22px;
  padding: 14px;
  border: 1px solid rgba(126, 72, 28, 0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 18px 36px rgba(75, 43, 17, 0.12);
  transform-origin: top right;
}
.filters-open .filter-panel {
  display: grid;
  animation: filter-panel-in 0.32s ease both;
}
.filter-head,
.filter-range span,
.filter-sort-row,
.filter-chip-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-head {
  justify-content: space-between;
}
.filter-head strong {
  color: #1c1713;
  font-size: 16px;
}
.filter-head button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(126, 72, 28, 0.08);
  color: #7a431b;
  font-weight: 900;
}
.filter-chip-row,
.filter-sort-row {
  flex-wrap: wrap;
}
.filter-chip-row button,
.filter-sort-row button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(126, 72, 28, 0.08);
  color: #6f3a16;
  font-weight: 900;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.filter-chip-row button.active,
.filter-sort-row button.active {
  transform: translateY(-1px);
  background: #7c4318;
  color: white;
}
.filter-range {
  display: grid;
  gap: 8px;
  color: #6f3a16;
  font-weight: 900;
}
.filter-range span {
  justify-content: space-between;
}
.filter-range input {
  width: 100%;
  accent-color: #7c4318;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}
.section-head h2 { margin: 0; font-size: 25px; letter-spacing: 0; }
.section-head button { background: none; color: #7a431b; font-weight: 800; }
.section-head.tight { margin-top: 0; }
.menu-products-head h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.menu-products-head h2 svg {
  width: 25px;
  height: 25px;
  color: #8a501d;
}
.menu-products-head button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(126, 72, 28, 0.1);
}
.menu-products-head button svg {
  width: 21px;
  height: 21px;
}
.full-menu-bar {
  display: none;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 16px 34px rgba(75, 43, 17, 0.1);
}
.full-menu-bar > div {
  min-width: 0;
  text-align: center;
}
.full-menu-bar span {
  display: block;
  color: #7a431b;
  font-size: 13px;
  font-weight: 900;
}
.full-menu-bar strong {
  display: block;
  margin-top: 3px;
  color: #1c1713;
  font-size: 18px;
}
.full-menu-cart-btn {
  position: relative;
}
.mini-cart-count {
  position: absolute;
  right: -4px;
  top: -4px;
  display: grid !important;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #1f7b31;
  color: white !important;
  font-size: 11px !important;
  line-height: 1;
}
.category-row, .product-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 26px;
  scrollbar-width: none;
}
.product-row {
  grid-auto-columns: 186px;
  scroll-behavior: smooth;
}
.client-page .menu-products-head,
.client-page .product-row {
  display: none;
}
.client-page.category-products-open .menu-products-head,
.client-page.category-products-open .product-row {
  display: grid;
}
.client-page.category-products-open .menu-products-head {
  display: flex;
  animation: menu-reveal 0.34s ease both;
}
.client-page:not(.category-products-open):not(.full-menu-mode) .category-row {
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-columns: unset;
  overflow: visible;
  gap: 12px;
  padding: 2px 0 28px;
  animation: category-grid-rise 0.44s ease both;
}
.client-page:not(.category-products-open):not(.full-menu-mode) .category-card {
  min-height: 144px;
}
.client-page.category-products-open .category-row {
  animation: category-row-settle 0.42s ease both;
}
.client-page.full-menu-mode .phone-view.page-only {
  padding-top: 16px;
  padding-bottom: 22px;
}
.client-page.full-menu-mode .mobile-header,
.client-page.full-menu-mode .phone-view > .language-switch,
.client-page.full-menu-mode .client-hero,
.client-page.full-menu-mode .quick-actions,
.client-page.full-menu-mode .search-row,
.client-page.full-menu-mode #menu,
.client-page.full-menu-mode #categoryRow,
.client-page.full-menu-mode .cart-panel,
.client-page.full-menu-mode .tracking-panel,
.client-page.full-menu-mode .bottom-nav {
  display: none;
}
.client-page.full-menu-mode .full-menu-bar {
  display: grid;
  position: sticky;
  top: 12px;
  z-index: 12;
}
.client-page.full-menu-mode .menu-products-head {
  display: none;
}
.client-page.full-menu-mode .product-row {
  display: grid;
  grid-auto-flow: row;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-columns: unset;
  overflow: visible;
  gap: 12px;
  padding: 6px 0 26px;
}
.client-page.full-menu-mode .product-img {
  height: 112px;
}
.category-card {
  min-height: 132px;
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  align-content: center;
  gap: 9px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  color: #1c1713;
  text-align: center;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.menu-category-image {
  display: block;
  width: min(100%, 82px);
  height: 62px;
  object-fit: cover;
  border-radius: 16px;
  background: #f6efe5;
  box-shadow: 0 10px 22px rgba(70,37,13,0.16);
}
.client-page:not(.category-products-open):not(.full-menu-mode) .menu-category-image {
  width: min(84%, 126px);
  height: 76px;
}
.category-card span {
  max-width: 100%;
  line-height: 1.18;
  overflow-wrap: anywhere;
}
.category-card.active {
  outline: 2px solid rgba(183, 121, 58, 0.3);
  color: #7a431b;
  box-shadow: 0 14px 30px rgba(126, 72, 28, 0.14);
}
.all-menu-card {
  background: rgba(126, 72, 28, 0.1);
  color: #6f3a16;
  border: 1px solid rgba(126, 72, 28, 0.16);
}
.all-menu-card:hover,
.all-menu-card:focus-visible {
  transform: translateY(-3px);
  background: rgba(126, 72, 28, 0.16);
  box-shadow: 0 16px 30px rgba(126, 72, 28, 0.14);
}
.category-card.is-clicked {
  animation: category-pop 0.46s ease both;
}
.category-card.is-clicked svg {
  animation: sent-pop 0.42s ease both;
}
.category-card.is-clicked .menu-category-image {
  animation: sent-pop 0.42s ease both;
}
.category-card svg { color: #7a431b; width: 34px; height: 34px; }
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 30px rgba(75, 43, 17, 0.12);
  transform: translateZ(0);
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, border-color 0.24s ease, filter 0.24s ease;
  animation: product-card-enter 0.44s ease both;
  animation-delay: var(--product-delay, 0s);
}
.product-card::after {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(circle, rgba(57, 169, 53, 0.18), transparent 58%);
  opacity: 0;
  transform: scale(0.55);
  pointer-events: none;
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-5px);
  border-color: rgba(183, 121, 58, 0.28);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 18px 38px rgba(75, 43, 17, 0.18);
}
.product-card.is-added {
  border-color: rgba(57, 169, 53, 0.38);
  box-shadow: 0 20px 42px rgba(40, 139, 48, 0.18), 0 12px 30px rgba(75, 43, 17, 0.1);
  animation: product-add-pop 0.58s ease both;
}
.product-card.is-added::after {
  animation: product-add-ripple 0.68s ease both;
}
.product-img { height: 126px; background: var(--img) center/cover; }
.product-card > .menu-product-image { display: none !important; }
.product-body { padding: 14px; }
.product-body h3 { margin: 0 0 6px; font-size: 17px; }
.product-body p { min-height: 40px; margin: 0 0 12px; color: #5d5955; line-height: 1.35; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.price { color: #7a431b; font-weight: 900; font-size: 19px; }
.add-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #8a501d;
  color: white;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.add-btn:hover,
.add-btn:focus-visible {
  transform: scale(1.08);
  background: #6f3a16;
  box-shadow: 0 10px 22px rgba(126, 72, 28, 0.22);
}
.add-btn:active {
  transform: scale(0.92);
}
.product-card.is-added .add-btn {
  background: #1f7b31;
  animation: sent-pop 0.48s ease both;
}
.cart-panel, .tracking-panel {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.76);
  box-shadow: 0 14px 32px rgba(75, 43, 17, 0.1);
  scroll-margin-top: 18px;
}
.live-order-btn { margin-top: 14px; color: #7a431b; background: rgba(126, 72, 28, 0.08); }
.cart-items { display: grid; gap: 10px; min-height: 42px; }
.cart-line {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(126, 72, 28, 0.08);
}
.qty-control { display: inline-flex; align-items: center; gap: 8px; }
.qty-control button { width: 28px; height: 28px; border-radius: 50%; background: #8a501d; color: white; }
.note-box { display: grid; gap: 8px; margin: 14px 0; font-weight: 800; }
.note-box textarea {
  min-height: 66px;
  resize: vertical;
  padding: 12px;
  border: 1px solid rgba(126, 72, 28, 0.18);
  border-radius: 12px;
  background: rgba(255,255,255,0.62);
  outline: 0;
}
.order-note-choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.order-note-choice-list button {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 72, 28, 0.14);
  background: rgba(255,255,255,0.72);
  color: #6f3a16;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.order-note-choice-list button.active {
  background: #c8322b;
  border-color: #c8322b;
  color: #fff8ef;
  box-shadow: 0 10px 22px rgba(200, 50, 43, 0.22);
}
.order-note-choice-list button:active {
  transform: scale(0.96);
}
.total-row { display: flex; justify-content: space-between; margin: 12px 0 16px; font-size: 20px; }
.send-order-btn { transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease; }
.send-order-btn.is-reviewing,
.send-order-btn.is-sent {
  background: linear-gradient(135deg, #39a935, #1f7b31);
  box-shadow: 0 14px 30px rgba(40, 139, 48, 0.26);
}
.send-order-btn.is-reviewing svg,
.send-order-btn.is-sent svg,
.confirm-send-btn svg {
  animation: sent-pop 0.48s ease both;
}
.send-order-btn.is-sent {
  animation: sent-pulse 0.75s ease both;
}
.send-order-btn.is-shaking {
  animation: button-shake 0.34s ease both;
}
.order-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(21, 13, 7, 0.58);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 30;
}
.order-modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.order-modal-card {
  width: min(430px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: #fff8ef;
  color: #1c1713;
  box-shadow: 0 28px 80px rgba(23, 14, 8, 0.38);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s ease;
}
.order-modal.show .order-modal-card {
  transform: translateY(0) scale(1);
}
.declaration-card {
  width: min(560px, 100%);
}
.declaration-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.declaration-form label {
  display: grid;
  gap: 8px;
  color: #6f3a16;
  font-weight: 900;
}
.declaration-form select,
.declaration-form input,
.declaration-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 72, 28, 0.18);
  border-radius: 8px;
  background: #fffdf8;
  color: #1c1713;
  outline: 0;
}
.declaration-form textarea {
  resize: vertical;
  line-height: 1.45;
}
.receipt-brand {
  display: grid;
  grid-template-columns: 58px 1fr 44px;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(126, 72, 28, 0.14);
}
.receipt-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.receipt-brand strong { display: block; color: #6f3a16; font-size: 17px; }
.receipt-brand span { color: #71675c; font-size: 13px; }
.close-modal {
  background: rgba(126, 72, 28, 0.1);
  color: #7a431b;
}
.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}
.receipt-head span {
  color: #8a501d;
  font-size: 13px;
  font-weight: 900;
}
.receipt-head h2 {
  margin: 4px 0 0;
  font-size: 24px;
}
.receipt-head > strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(57, 169, 53, 0.12);
  color: #247b2e;
}
.receipt-lines { display: grid; gap: 10px; }
.service-request-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(126, 72, 28, 0.08);
}
.service-request-card > svg {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 50%;
  background: #8a501d;
  color: white;
}
.service-request-card strong {
  color: #6f3a16;
  font-size: 16px;
}
.service-request-card p {
  margin: 4px 0 0;
  color: #5d5955;
  line-height: 1.35;
}
.order-modal-card.is-service-request .receipt-summary {
  display: none;
}
.receipt-line {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(126, 72, 28, 0.08);
}
.receipt-line > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #8a501d;
  color: white;
  font-weight: 900;
}
.receipt-line small {
  display: block;
  margin-top: 3px;
  color: #74695d;
}
.receipt-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 14px;
}
.receipt-meta p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(126, 72, 28, 0.08);
  color: #6f3a16;
  font-weight: 900;
}
.receipt-meta svg { width: 18px; height: 18px; }
.receipt-note {
  margin: 12px 0;
  padding: 12px;
  border: 1px dashed rgba(126, 72, 28, 0.22);
  border-radius: 12px;
  background: rgba(255,255,255,0.56);
}
.receipt-note strong { color: #7a431b; }
.receipt-note p { margin: 6px 0 0; color: #5d5955; }
.receipt-summary {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(126, 72, 28, 0.14);
}
.receipt-summary p {
  display: flex;
  justify-content: space-between;
  margin: 0;
}
.receipt-summary .grand {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(126, 72, 28, 0.12);
  font-size: 20px;
  font-weight: 900;
}
.receipt-summary .grand strong { color: #247b2e; }
.receipt-actions {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 10px;
  margin-top: 16px;
}
.receipt-actions.single { grid-template-columns: 1fr; }
.confirm-send-btn {
  background: linear-gradient(135deg, #39a935, #1f7b31);
  box-shadow: 0 14px 30px rgba(40, 139, 48, 0.24);
}
@keyframes sent-pop {
  0% { transform: scale(0.45) rotate(-12deg); opacity: 0.25; }
  60% { transform: scale(1.18) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes sent-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
@keyframes button-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}
@keyframes quick-action-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes quick-action-ripple {
  0% { opacity: 0; transform: scale(0.68); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.32); }
}
@keyframes quick-action-cooldown {
  0% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@keyframes quick-action-hold-pulse {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.12); }
}
@keyframes category-pop {
  0% { transform: scale(1); }
  45% { transform: scale(0.94); }
  100% { transform: scale(1); }
}
@keyframes category-grid-rise {
  0% { opacity: 0.2; transform: translateY(12px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes category-row-settle {
  0% { opacity: 0.9; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes menu-reveal {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes product-card-enter {
  0% { opacity: 0; transform: translateY(14px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes product-add-pop {
  0% { transform: scale(1); }
  42% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes product-add-ripple {
  0% { opacity: 0; transform: scale(0.55); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes search-box-pop {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-2px) scale(1.015); }
  100% { transform: translateY(-2px) scale(1); }
}
@keyframes search-box-ripple {
  0% { opacity: 0; transform: scale(0.55); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1); }
}
@keyframes filter-panel-in {
  0% { opacity: 0; transform: translateY(-8px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes filter-twist {
  0% { transform: rotate(0) scale(1); }
  45% { transform: rotate(-18deg) scale(1.12); }
  100% { transform: rotate(0) scale(1); }
}
@keyframes nav-icon-bounce {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-6px) scale(1.12); }
  100% { transform: translateY(-2px) scale(1.08); }
}
@keyframes nav-label-pop {
  0% { transform: translateY(0); }
  45% { transform: translateY(-3px); }
  100% { transform: translateY(-1px); }
}
@keyframes nav-indicator-glow {
  0% { opacity: 0.72; }
  45% { opacity: 1; box-shadow: inset 0 0 0 1px rgba(57, 169, 53, 0.24), 0 12px 26px rgba(40, 139, 48, 0.16); }
  100% { opacity: 1; }
}
.timeline { display: grid; gap: 12px; }
.timeline-step {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #726a62;
}
.timeline-step span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eee5db;
}
.timeline-step.done { color: #1a1714; font-weight: 800; }
.timeline-step.done span { background: #70ba4b; color: white; }
.bottom-nav {
  position: fixed;
  left: calc(260px + 16px);
  bottom: 0;
  width: min(430px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 10px 14px;
  border-radius: 22px 22px 0 0;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 -18px 36px rgba(70, 45, 25, 0.12);
  overflow: visible;
  isolation: isolate;
  backdrop-filter: blur(18px);
  transition: box-shadow 0.24s ease, background 0.24s ease;
}
.bottom-nav.no-profile {
  grid-template-columns: repeat(4, 1fr);
}
.nav-indicator {
  position: absolute;
  top: 8px;
  left: 0;
  bottom: 10px;
  width: 64px;
  border-radius: 18px;
  background: rgba(126, 72, 28, 0.1);
  box-shadow: inset 0 0 0 1px rgba(126, 72, 28, 0.08), 0 12px 26px rgba(126, 72, 28, 0.08);
  pointer-events: none;
  transform: translateX(10px);
  transition: transform 0.34s cubic-bezier(.2,.8,.2,1), width 0.34s ease, opacity 0.2s ease;
  z-index: 0;
}
.bottom-nav.is-moving {
  box-shadow: 0 -22px 42px rgba(70, 45, 25, 0.16);
}
.bottom-nav.is-moving .nav-indicator {
  animation: nav-indicator-glow 0.56s ease both;
}
.bottom-nav button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 54px;
  border-radius: 16px;
  background: transparent;
  color: #4c443e;
  font-size: 12px;
  transition: color 0.22s ease, background 0.22s ease;
}
.bottom-nav button svg,
.bottom-nav button span {
  transition: transform 0.22s ease, color 0.22s ease;
}
.bottom-nav button:hover,
.bottom-nav button:focus-visible {
  color: #7a431b;
}
.bottom-nav .active { color: #8a501d; font-weight: 900; }
.bottom-nav .active svg {
  transform: translateY(-2px) scale(1.08);
}
.bottom-nav .active span {
  transform: translateY(-1px);
}
.bottom-nav button.is-nav-clicked svg {
  animation: nav-icon-bounce 0.46s ease both;
}
.bottom-nav button.is-nav-clicked span {
  animation: nav-label-pop 0.42s ease both;
}
.cart-fab {
  transform: translateY(-22px);
  min-height: 66px;
  border-radius: 999px !important;
  color: white !important;
  background: linear-gradient(135deg, #b97431, #744014) !important;
  box-shadow: 0 12px 24px rgba(107, 61, 21, 0.3);
}
.cart-fab svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}
.cart-fab.active svg {
  transform: translateY(-1px) scale(1.02);
}
.cart-fab.active span {
  transform: translateY(0);
}

.staff-view { padding: 34px; min-width: 0; }
.staff-topbar {
  display: grid;
  grid-template-columns: 1fr auto 54px 54px;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 0 18px;
  border: 1px solid rgba(216, 176, 116, 0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(18px);
}

.staff-page .staff-topbar {
  grid-template-columns: 54px 1fr auto 54px;
}

.staff-page .staff-topbar.no-home {
  grid-template-columns: 1fr auto 54px;
}

.staff-page .staff-topbar.no-home > div:first-child {
  text-align: left;
}

.staff-page .staff-topbar > div:nth-child(2) {
  text-align: center;
}
.staff-topbar p { margin: 0 0 6px; font-weight: 800; }
.staff-topbar span { color: var(--muted); }
.staff-clock { text-align: center; }
.staff-clock strong { display: block; font-size: 26px; }
.avatar-btn { width: 54px; height: 54px; border-radius: 50%; background: #f1c78a; color: #2b1608; font-weight: 900; }
.staff-grid {
  display: none;
  grid-template-columns: minmax(520px, 1fr) 390px;
  gap: 22px;
  margin-top: 28px;
}
.staff-grid.active { display: grid; }
.span-2 { grid-column: 1 / -1; }
.staff-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.staff-title h2, .panel-card h2 { margin: 0; font-size: 26px; }
.staff-actions-row { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.history-filter {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(216, 176, 116, 0.18);
  border-radius: 8px;
}
.history-filter button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  background: transparent;
  color: #d8c6ad;
  font-weight: 800;
}
.history-filter button.active {
  background: #754719;
  color: white;
}
.segmented {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid rgba(216, 176, 116, 0.18);
  border-radius: 8px;
}
.segmented button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  background: transparent;
  color: #d8c6ad;
}
.segmented .active { background: #754719; color: white; }
.table-groups { display: grid; gap: 24px; }
.zone-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.table-grid { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 14px; }
.table-card {
  position: relative;
  min-height: 118px;
  padding: 14px;
  border: 1px solid rgba(216, 176, 116, 0.16);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}
.table-card strong { display: block; font-size: 20px; margin-bottom: 4px; }
.table-card p { margin: 0 0 10px; color: #d2c2aa; font-size: 13px; }
.table-card .amount { color: white; font-weight: 900; }
.table-card .time { color: var(--muted); }
.table-card.free .amount { color: #ece2d2; }
.table-card.busy { background: linear-gradient(135deg, rgba(74, 130, 39, 0.76), rgba(45, 83, 26, 0.62)); }
.table-card.wait { background: linear-gradient(135deg, rgba(128, 78, 24, 0.7), rgba(48, 36, 24, 0.8)); }
.table-card.alert { background: linear-gradient(135deg, rgba(151, 42, 34, 0.75), rgba(48, 28, 24, 0.8)); }
.table-card.pool { background: linear-gradient(135deg, rgba(35, 94, 150, 0.72), rgba(24, 43, 62, 0.84)); }
.table-card.selected {
  border-color: rgba(242, 201, 139, 0.92);
  box-shadow: 0 0 0 3px rgba(242, 201, 139, 0.16), 0 16px 34px rgba(0, 0, 0, 0.2);
}
.status-dot { position: absolute; top: 14px; right: 14px; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.7); }
.status-dot.green { background: var(--green); }
.status-dot.red { background: var(--red); }
.status-dot.blue { background: var(--blue); }
.current-order, .panel-card {
  padding: 26px;
  border: 1px solid rgba(216, 176, 116, 0.16);
  border-radius: 16px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(18px);
}
.current-order h3 { color: var(--green); }
.current-order > .wide + .wide { margin-top: 10px; }
.staff-actions,
.ticket-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

.ticket-actions button {
  width: 100%;
}

.alert-row {
  border: 1px solid rgba(236, 87, 76, 0.22);
}

.rtl .client-brand,
.rtl .client-hero,
.rtl .section-head,
.rtl .cart-line,
.rtl .timeline-step,
.rtl .note-box {
  direction: rtl;
}

.rtl .primary-btn svg[data-lucide="arrow-right"] {
  transform: rotate(180deg);
}
.current-order-state {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 9px;
  background: rgba(216,176,116,0.08);
}
.current-order-state .pill { justify-self: start; }
.current-order-state small { color: var(--muted); line-height: 1.35; }
.staff-order-line, .order-row {
  display: grid;
  grid-template-columns: 38px 1fr auto auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 14px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: rgba(255,255,255,0.055);
}
.staff-order-line span,
.order-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.bill-summary { margin: 80px 0 18px; border-top: 1px solid rgba(216, 176, 116, 0.25); padding-top: 22px; }
.bill-summary p { display: flex; justify-content: space-between; font-size: 18px; }
.bill-summary .grand strong { color: #88dc56; }
.orders-list { display: grid; gap: 10px; }
.order-row { grid-template-columns: 70px minmax(160px, 1.35fr) minmax(180px, 1.1fr) 100px 90px 150px; margin: 0; }
.order-row-head {
  min-height: 42px;
  color: #f7dfbc;
  font-size: 13px;
  font-weight: 900;
  background: rgba(216,176,116,0.1);
}
.pill { justify-self: end; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 900; }
.pill.green { background: rgba(116, 200, 80, 0.18); color: #9bed75; }
.pill.red { background: rgba(236, 87, 76, 0.18); color: #ff948c; }
.pill.blue { background: rgba(76, 154, 240, 0.18); color: #8fc5ff; }
.kitchen-workflow { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 16px; align-items: start; }
.kitchen-lane {
  min-height: 220px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(216,176,116,0.12);
}
.ready-lane { border-color: rgba(76, 154, 240, 0.28); background: rgba(76, 154, 240, 0.08); }
.lane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.lane-head h3 { margin: 0; font-size: 18px; }
.lane-head span {
  min-width: 34px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(216,176,116,0.14);
  color: #f7dfbc;
  font-weight: 900;
}
.kitchen-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kitchen-workflow .kitchen-board { grid-template-columns: 1fr; }
.kitchen-ticket {
  padding: 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(216,176,116,0.14);
}
.kitchen-ticket.is-ready { border-color: rgba(76, 154, 240, 0.38); background: rgba(76, 154, 240, 0.12); }
.kitchen-ticket h3 { margin: 0 0 10px; }
.ticket-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: rgba(216, 176, 116, 0.1); color: #f7dfbc; }
.kitchen-ticket ul { margin: 0 0 18px; padding-left: 20px; color: #e6d6bf; }
.kitchen-ticket button { width: 100%; min-height: 42px; padding: 8px 10px; border-radius: 8px; background: #7c4318; color: white; font-weight: 800; font-size: 13px; line-height: 1.15; white-space: normal; }
.kitchen-ticket .ticket-actions { grid-template-columns: repeat(2, 1fr); }
.kitchen-ticket .ticket-actions.has-print-ticket {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kitchen-ticket.is-ready .ticket-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kitchen-ticket.is-ready .ticket-actions.has-print-ticket {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kitchen-ticket.is-ready button { background: #2367a4; }
.kitchen-ticket.is-ready .secondary-ticket-btn { border: 1px solid rgba(143, 197, 255, 0.45); background: rgba(35, 103, 164, 0.38); }
.kitchen-page .kitchen-control-panel { margin-bottom: 16px; }
.kitchen-page .kitchen-status-workflow {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}
.kitchen-page .kitchen-lane {
  border-radius: 12px;
}
.kitchen-page .kitchen-board {
  grid-template-columns: 1fr;
}
.kitchen-page .kitchen-status-filters {
  margin-top: 14px;
}
.kitchen-page .kitchen-ticket {
  position: relative;
  display: grid;
  gap: 12px;
}
.kitchen-page .kitchen-ticket.priority-warning {
  border-color: rgba(216,176,116,0.42);
  background: rgba(216,176,116,0.1);
}
.kitchen-page .kitchen-ticket.priority-urgent {
  border-color: rgba(236,87,76,0.5);
  background: rgba(236,87,76,0.1);
}
.kitchen-page .kitchen-ticket-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.kitchen-page .kitchen-ticket-head > div {
  min-width: 0;
}
.kitchen-page .kitchen-ticket-head h3 {
  margin: 3px 0 4px;
  overflow-wrap: anywhere;
}
.kitchen-page .kitchen-order-number {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(216,176,116,0.12);
  color: #f7dfbc;
  font-size: 12px;
  font-weight: 900;
}
.kitchen-page .kitchen-ticket-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.kitchen-page .kitchen-ticket-meta span {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.13);
  color: #e6d6bf;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.kitchen-page .kitchen-ticket-meta strong {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
}
.kitchen-page .kitchen-items {
  display: grid;
  gap: 8px;
  padding-left: 0;
  list-style: none;
}
.kitchen-page .kitchen-items li {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}
.kitchen-page .kitchen-items span {
  overflow-wrap: anywhere;
}
.kitchen-page .kitchen-items small {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.kitchen-page .ticket-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.kitchen-page .kitchen-ticket .ticket-actions.has-print-ticket,
.kitchen-page .kitchen-ticket.is-ready .ticket-actions.has-print-ticket {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.kitchen-page .ticket-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.kitchen-page .ticket-actions button:only-child {
  grid-column: 1 / -1;
}
.kitchen-page .ticket-actions .danger-soft {
  border: 1px solid rgba(236,87,76,0.35);
  background: rgba(236,87,76,0.16);
  color: #ffd4d1;
}
.rtl.kitchen-page .kitchen-ticket,
.rtl.kitchen-page .kitchen-ticket-meta,
.rtl.kitchen-page .kitchen-items {
  direction: rtl;
}
.archive-total { color: #9bed75; font-size: 16px; }
.kitchen-archive { display: grid; gap: 10px; }
.archive-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px 110px 120px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  border-radius: 9px;
  background: rgba(255,255,255,0.055);
}
.archive-row strong { color: #f7dfbc; }
.archive-row span:nth-child(2) { color: #e6d6bf; }
.metric-grid, .shortcut-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.metric-grid article, .shortcut-grid button {
  min-height: 100px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--cream);
}
.metric-grid article span { display: block; color: var(--muted); margin-bottom: 12px; }
.metric-grid article strong { font-size: 24px; }
.shortcut-grid button { display: grid; place-items: center; gap: 8px; }
.admin-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-section-head p {
  margin: 6px 0 0;
}
.shortcut-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.shortcut-category-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(216, 176, 116, 0.13);
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}
.shortcut-category-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.shortcut-category-head h3 {
  margin: 0;
  color: #fff4df;
  font-size: 17px;
}
.shortcut-category-head span {
  color: var(--muted);
}
.shortcut-category-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(216, 176, 116, 0.12);
  color: #f2c98b;
}
.shortcut-category-card .shortcut-grid {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
}
.shortcut-category-card .shortcut-grid button {
  min-height: 72px;
  padding: 12px 10px;
  border-radius: 10px;
  line-height: 1.2;
}
.expense-spotlight-card {
  grid-column: 1 / -1;
  grid-template-columns: minmax(230px, 1fr) minmax(360px, 1.35fr) minmax(210px, 0.7fr);
  align-items: center;
  border-color: rgba(216,176,116,0.32);
  background:
    radial-gradient(circle at 90% 10%, rgba(216,176,116,0.18), transparent 15rem),
    rgba(255,255,255,0.055);
}
.expense-spotlight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.expense-spotlight-stats span {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 64px;
  align-content: center;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(0,0,0,0.16);
  color: #cdbc9f;
  font-size: 12px;
}
.expense-spotlight-stats strong {
  color: #fff4df;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.expense-spotlight-button {
  min-height: 62px;
}
.expense-report-head-actions,
.expense-results-head,
.expense-search-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.expense-report-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.expense-report-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}
.expense-search-card,
.expense-results-card {
  color: #2b2118;
}
.expense-search-title p,
.expense-results-head p {
  margin: 5px 0 0;
  color: #7a6552;
  font-size: 0.84rem;
}
.expense-filter-grid {
  grid-template-columns: minmax(210px, 1.6fr) repeat(4, minmax(135px, 1fr));
  margin-top: 14px;
}
.expense-filter-actions {
  justify-content: flex-start;
  margin-top: 12px;
}
.expense-results-head {
  margin-bottom: 12px;
}
.expense-results-head strong {
  flex: 0 0 auto;
  color: #8a4b18;
  font-size: 1.25rem;
}
.expense-report-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}
.expense-report-row {
  display: grid;
  grid-template-columns: minmax(135px, 0.9fr) minmax(190px, 1.6fr) minmax(110px, 0.8fr) minmax(100px, 0.75fr) minmax(130px, 0.9fr) minmax(105px, 0.7fr);
  gap: 12px;
  align-items: center;
  min-width: 900px;
  min-height: 54px;
  padding: 11px 12px;
  border: 1px solid rgba(78,54,32,0.08);
  border-radius: 8px;
  background: rgba(120,81,42,0.045);
}
.expense-report-table-head {
  min-height: 42px;
  background: #2f2015;
  color: #fff8ef;
  font-size: 12px;
  font-weight: 900;
}
.expense-report-row span,
.expense-report-row strong,
.expense-report-row b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.expense-report-row span {
  color: #6f5b49;
}
.expense-report-row b {
  color: #187447;
  text-align: right;
  white-space: nowrap;
}
.expense-empty-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 180px;
  align-content: center;
  color: #7a6552;
  text-align: center;
}
.expense-empty-state svg {
  width: 34px;
  height: 34px;
  color: #a16a36;
}
.admin-grid > .panel-card:only-child .shortcut-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.admin-grid > .panel-card:only-child .shortcut-grid button {
  min-height: 76px;
  padding: 12px 14px;
  border-radius: 10px;
}
.admin-grid > .panel-card:only-child .shortcut-category-card .shortcut-grid {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
}
.admin-grid > .panel-card:only-child .shortcut-category-card .shortcut-grid button {
  min-height: 72px;
  padding: 12px 10px;
  overflow-wrap: anywhere;
}
.staff-title [data-clear-live],
[data-clear-live] {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  background: rgba(236, 87, 76, 0.18);
  color: #ffbbb6;
  font-weight: 900;
  border: 1px solid rgba(236, 87, 76, 0.24);
}
.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.admin-form label {
  display: grid;
  gap: 8px;
  color: #f6ead7;
  font-weight: 800;
}
.admin-form input,
.admin-form select,
.admin-product-media input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(216, 176, 116, 0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: white;
}
.admin-form select option {
  color: #1c140c;
}
.admin-product-tool {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
.admin-product-media {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.admin-product-media label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #f6ead7;
  font-weight: 800;
}
.admin-product-preview {
  position: relative;
  width: 100%;
  min-height: 170px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(216,176,116,0.22);
  background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  background-position: center;
  background-size: cover;
}
.admin-product-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,13,8,0.05), rgba(20,13,8,0.72));
}
.admin-product-preview span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(20,13,8,0.58);
  color: #ffe0ad;
  font-weight: 900;
}
.file-pick {
  min-height: 46px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(216,176,116,0.24);
  background: rgba(255,255,255,0.07);
  cursor: pointer;
}
.file-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.file-pick-title {
  color: #f7e6ce;
  font-size: 0.95rem;
  font-weight: 900;
}
.file-pick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(135deg, #f4b44b, #c46b24);
  color: #21150a;
  box-shadow: 0 12px 24px rgba(0,0,0,0.22);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.file-pick:hover .file-pick-button,
.file-pick:focus-within .file-pick-button {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(0,0,0,0.28);
  filter: brightness(1.05);
}
.product-form {
  margin-top: 0;
  min-width: 0;
}
.product-manager {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(216,176,116,0.16);
}
.product-manager-list {
  display: grid;
  gap: 10px;
}
.product-manager-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(216,176,116,0.14);
}
.product-manager-thumb {
  width: 86px;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--img) center/cover, rgba(255,255,255,0.08);
}
.product-manager-info {
  min-width: 0;
}
.product-manager-info strong,
.product-manager-info span,
.product-manager-info small {
  display: block;
}
.product-manager-info strong {
  color: #fff4df;
  font-size: 1rem;
}
.product-manager-info span {
  margin-top: 4px;
  color: #d9cab0;
  overflow-wrap: anywhere;
}
.product-manager-info small {
  margin-top: 6px;
  color: #9de37d;
  font-weight: 900;
}
.product-manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.new-category-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(216,176,116,0.18);
}
.new-category-box[hidden] {
  display: none;
}
.compact-title h3 {
  margin: 0;
  color: var(--cream);
  font-size: 22px;
}
.category-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.category-image-editor,
.category-save-actions {
  grid-column: 1 / -1;
}
.category-manager {
  margin-top: 18px;
}
.category-manager-list {
  display: grid;
  gap: 10px;
}
.category-manager-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(216,176,116,0.16);
  background: rgba(255,255,255,0.055);
}
.category-manager-thumb {
  width: 76px;
  height: 56px;
  border-radius: 12px;
  background: var(--img) center/cover, rgba(255,255,255,0.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}
.category-manager-info {
  min-width: 0;
}
.category-manager-info strong,
.category-manager-info span {
  display: block;
}
.category-manager-info strong {
  color: #fff4df;
  overflow-wrap: anywhere;
}
.category-manager-info span {
  margin-top: 4px;
  color: #d9cab0;
  font-size: 0.9rem;
}
.category-icon-search,
.icon-picker,
.category-form [data-save-category] {
  grid-column: 1 / -1;
}
.icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding: 8px;
  border-radius: 12px;
  background: rgba(0,0,0,0.14);
  border: 1px solid rgba(216,176,116,0.14);
}
.icon-picker button {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 10px;
  color: #f6ddba;
  background: rgba(255,255,255,0.07);
  border: 1px solid transparent;
}
.icon-picker button.active,
.icon-picker button:hover {
  color: #1b120b;
  background: #f4c27d;
  border-color: rgba(255,255,255,0.28);
}
.icon-picker svg {
  width: 22px;
  height: 22px;
}
.qr-tool {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
  margin-top: 16px;
}
.qr-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.qr-form label:first-child,
.qr-form .admin-actions-row {
  grid-column: 1 / -1;
}
.admin-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ghost-danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(255, 118, 102, 0.3);
  border-radius: 8px;
  background: rgba(160, 42, 32, 0.14);
  color: #ffd3ca;
  cursor: pointer;
  font-weight: 900;
}
.ghost-danger-btn:hover {
  background: rgba(160, 42, 32, 0.24);
  border-color: rgba(255, 118, 102, 0.48);
}
.tiny {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}
.table-manager {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(216,176,116,0.16);
}
.staff-title.compact {
  margin-bottom: 0;
}
.table-manager-zone {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(216,176,116,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}
.table-manager-zone-head,
.table-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.table-manager-zone-head h3 {
  margin: 0;
  color: #fff4df;
  font-size: 1rem;
}
.table-manager-list {
  display: grid;
  gap: 8px;
}
.table-manager-row {
  min-height: 54px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}
.table-manager-row strong,
.table-manager-row span {
  display: block;
}
.table-manager-row span {
  color: #cfbea5;
  font-size: 0.86rem;
}
.table-manager-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.expense-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.expense-summary article {
  min-height: 90px;
  padding: 16px;
  border: 1px solid rgba(216,176,116,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
}
.expense-summary span,
.expense-row span {
  display: block;
  color: #cdbc9f;
}
.expense-summary strong {
  display: block;
  margin-top: 10px;
  color: #fff7e8;
  font-size: 1.45rem;
}
.expense-form {
  margin-top: 0;
}
.expense-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.expense-list h3 {
  margin: 0;
  color: #fff4df;
}
.expense-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 62px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.expense-row b {
  color: #9de37d;
  white-space: nowrap;
}
.stock-alerts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.stock-alert,
.stock-ok {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  min-height: 68px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(216,176,116,0.18);
}
.stock-alert { border-color: rgba(255, 118, 102, 0.38); }
.stock-alert svg { color: #ffb0a4; }
.stock-ok svg { color: #9de37d; }
.stock-alert span,
.stock-ok span {
  grid-column: 2;
  color: #cdbc9f;
}
.stock-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.stock-block {
  min-width: 0;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(216,176,116,0.16);
}
.stock-block h3 {
  margin: 0 0 12px;
  color: #fff4df;
}
.stock-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.stock-block-head h3 {
  margin-bottom: 4px;
}
.stock-block-head span {
  color: #cdbc9f;
  font-weight: 800;
}
.stock-wide {
  grid-column: 1 / -1;
}
.stock-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}
.stock-row {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(72px, 0.72fr) minmax(72px, 0.72fr) minmax(104px, 1fr) minmax(108px, 0.8fr);
  gap: 10px;
  align-items: center;
  min-width: 520px;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.stock-head {
  color: #f2c98b;
  background: rgba(216,176,116,0.08);
}
.stock-row span {
  color: #dbcab0;
}
.stock-row.is-low {
  border: 1px solid rgba(255, 118, 102, 0.28);
}
.stock-item-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
}
.stock-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stock-form button,
.stock-form label:first-child,
.stock-form label:last-of-type:nth-child(9) {
  grid-column: 1 / -1;
}
.stock-form-actions {
  grid-column: 1 / -1;
}
.stock-purchase-table {
  display: grid;
  gap: 8px;
  overflow-x: auto;
}
.stock-purchase-row {
  display: grid;
  grid-template-columns: minmax(86px, 0.7fr) minmax(150px, 1.2fr) minmax(110px, 0.8fr) minmax(90px, 0.7fr) minmax(96px, 0.7fr) minmax(90px, 0.7fr) minmax(190px, auto);
  gap: 10px;
  align-items: center;
  min-width: 920px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.stock-purchase-row span {
  color: #dbcab0;
}
.stock-purchase-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.stock-profit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.stock-profit-grid article {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}
.stock-profit-grid strong { color: #fff4df; }
.stock-profit-grid span { color: #cdbc9f; }
.stock-profit-grid b { color: #9de37d; }
.qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(216,176,116,0.18);
}
.qr-flow {
  display: grid;
  gap: 12px;
  width: 100%;
}
.qr-step-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  min-width: 0;
  padding: 14px 12px 12px;
  border: 1px solid rgba(216,176,116,0.16);
  border-radius: 10px;
  background: rgba(0,0,0,0.12);
}
.qr-step-card b {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #c27a2c;
  color: white;
  font-size: 15px;
  font-weight: 900;
}
.qr-card img {
  width: min(240px, 100%);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 12px;
  background: white;
}
.qr-card strong {
  color: #f2c98b;
  font-size: 26px;
}
.qr-step-card strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 18px;
  line-height: 1.15;
}
.qr-card span {
  color: var(--muted);
  font-weight: 800;
}
.qr-empty {
  display: grid;
  place-items: center;
  width: min(240px, 100%);
  aspect-ratio: 1;
  padding: 10px;
  border: 2px dashed rgba(216,176,116,0.5);
  border-radius: 12px;
  color: #f2c98b;
  background: rgba(0,0,0,0.16);
  font-weight: 900;
}
.qr-card input {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(216,176,116,0.18);
  border-radius: 8px;
  background: rgba(0,0,0,0.16);
  color: #f6ead7;
}
.qr-preview {
  display: grid;
  place-items: center;
  width: 130px;
  height: 130px;
  margin: 18px 0;
  border: 2px dashed rgba(216,176,116,0.55);
  border-radius: 12px;
  color: #f2c98b;
  font-weight: 900;
  text-align: center;
}
.print-area {
  display: none;
  white-space: pre-wrap;
  color: #111;
  background: white;
  padding: 24px;
  font: 16px/1.5 ui-monospace, Consolas, monospace;
}
.settings-row { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.settings-row label { padding: 16px; border-radius: 10px; background: rgba(255,255,255,0.06); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 120px);
  padding: 14px 18px;
  border-radius: 12px;
  background: #1c140c;
  color: white;
  box-shadow: 0 20px 50px rgba(0,0,0,0.38);
  transition: transform 0.24s ease;
  z-index: 20;
}
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1320px) {
  .app-shell { grid-template-columns: minmax(390px, 430px) minmax(620px, 1fr); }
  .staff-sidebar { display: none; }
  .bottom-nav { left: 16px; }
  .staff-view { padding: 24px; }
  .staff-grid { grid-template-columns: minmax(520px, 1fr) 340px; }
  .table-grid { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .kitchen-board { grid-template-columns: repeat(2, 1fr); }
  .kitchen-workflow .kitchen-board { grid-template-columns: 1fr; }
}

@media (max-width: 1240px) {
  body { background: #fff8ef; }
  .app-shell { display: block; }
  .phone-view { width: 100%; min-height: 100vh; }
  .staff-view { display: none; }
  .bottom-nav { left: 0; width: 100%; border-radius: 20px 20px 0 0; }
}

.client-page.is-authenticated .phone-view.page-only {
  display: block;
  width: min(430px, 100%);
  margin: 0 auto;
}

.client-page .bottom-nav.single-page {
  left: 50%;
  width: min(430px, 100%);
  transform: translateX(-50%);
}

.client-page .cart-fab {
  transform: translateY(-22px);
}

.staff-page.is-authenticated .staff-view.page-only {
  display: block;
}

.staff-page .staff-grid.active {
  display: grid;
}

@media (max-width: 980px) {
  .portal-links,
  .admin-grid {
    grid-template-columns: 1fr 1fr;
  }

  .shortcut-category-grid {
    grid-template-columns: 1fr;
  }

  .expense-spotlight-card {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .expense-filter-grid,
  .expense-report-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-product-tool,
  .qr-tool,
  .stock-layout {
    grid-template-columns: 1fr;
  }

  .category-form {
    grid-template-columns: 1fr;
  }

  .category-manager-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .category-manager-row > button {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .staff-page .staff-grid.active {
    grid-template-columns: 1fr;
  }

  .kitchen-workflow {
    grid-template-columns: 1fr;
  }

  .kitchen-page .kitchen-status-workflow {
    grid-template-columns: 1fr;
  }

  .current-order {
    order: -1;
  }

  .staff-page .staff-view {
    padding: 18px 0 24px;
  }

  .staff-page .staff-grid.active {
    gap: 16px;
  }

  .segmented {
    width: 100%;
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .segmented button {
    min-width: 0;
    padding: 0 10px;
  }
}

@media (max-width: 680px) {
  .portal-shell {
    width: min(100% - 24px, 460px);
    padding: 24px 0;
  }

  .portal-links,
  .admin-grid,
  .metric-grid,
  .expense-summary,
  .shortcut-grid,
  .qr-tool,
  .qr-form,
  .settings-row,
  .stock-form,
  .kitchen-board {
    grid-template-columns: 1fr;
  }

  .stock-row,
  .stock-purchase-row {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .stock-block-head,
  .stock-item-actions,
  .stock-purchase-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .product-manager-row {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .product-manager-thumb {
    width: 70px;
  }

  .product-manager-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .product-manager-actions button {
    flex: 1 1 130px;
  }

  .kitchen-page .kitchen-ticket-meta,
  .kitchen-page .ticket-actions,
  .kitchen-page .kitchen-ticket .ticket-actions.has-print-ticket,
  .kitchen-page .kitchen-ticket.is-ready .ticket-actions.has-print-ticket {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 150px;
  }

  .staff-page .page-only {
    width: min(100% - 16px, 100%);
  }

  .staff-page .staff-topbar {
    grid-template-columns: 48px 1fr;
    gap: 10px;
    min-height: 66px;
    padding: 0 12px;
    border-radius: 12px;
  }

  .staff-page .staff-topbar.no-home {
    grid-template-columns: 1fr;
  }

  .staff-clock,
  .avatar-btn,
  .staff-topbar > .icon-btn:last-child {
    display: none;
  }

  .staff-page .staff-topbar > div:nth-child(2) {
    text-align: left;
    min-width: 0;
  }

  .staff-topbar p,
  .staff-topbar span {
    overflow-wrap: anywhere;
  }

  .staff-title h2,
  .panel-card h2 {
    font-size: 21px;
  }

  .current-order,
  .panel-card {
    padding: 16px;
    border-radius: 12px;
  }

  .admin-section-head {
    margin-bottom: 14px;
  }

  .shortcut-category-card {
    padding: 14px;
  }

  .expense-spotlight-stats,
  .expense-filter-grid,
  .expense-report-metrics {
    grid-template-columns: 1fr;
  }

  .expense-report-head-actions,
  .expense-results-head,
  .expense-search-title,
  .expense-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .expense-report-head-actions .small,
  .expense-filter-actions .small {
    width: 100%;
  }

  .expense-report-row {
    grid-template-columns: 1fr;
    min-width: 0;
    gap: 6px;
  }

  .expense-report-table-head {
    display: none;
  }

  .expense-report-row [data-label] {
    display: grid;
    grid-template-columns: minmax(105px, 0.7fr) minmax(0, 1fr);
    gap: 10px;
    text-align: left;
    white-space: normal;
  }

  .expense-report-row [data-label]::before {
    content: attr(data-label);
    color: #9a8068;
    font-size: 12px;
    font-weight: 800;
  }

  .shortcut-category-card .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid > .panel-card:only-child .shortcut-category-card .shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bill-summary {
    margin: 24px 0 16px;
  }

  .bill-summary p {
    gap: 12px;
    font-size: 16px;
  }

  .segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .table-card {
    min-height: 104px;
    padding: 12px;
  }

  .order-row {
    grid-template-columns: 54px 1fr;
    gap: 6px 10px;
    padding: 12px;
  }

  .order-row-head {
    display: none;
  }

  .staff-order-line {
    grid-template-columns: 32px minmax(0, 1fr) auto;
  }

  .staff-order-line svg {
    display: none;
  }

  .receipt-actions {
    grid-template-columns: 1fr;
  }

  .archive-row {
    grid-template-columns: 54px 1fr;
    gap: 6px 10px;
    padding: 12px;
  }

  .pill {
    justify-self: start;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #printArea,
  #printArea * {
    display: block;
    visibility: visible;
  }

  #printArea img {
    width: 240px;
    height: 240px;
    margin: 0 auto 18px;
  }

  .qr-print-card {
    text-align: center;
  }

  #printArea .qr-print-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    margin-top: 14px;
  }

  #printArea .qr-print-step {
    display: grid;
    justify-items: center;
    gap: 6px;
  }

  #printArea .qr-print-step strong {
    color: #111;
    font-size: 22px;
  }

  .qr-print-card h1,
  .qr-print-card h2,
  .qr-print-card p {
    color: #111;
    margin: 8px 0;
  }

  #printArea {
    position: fixed;
    inset: 0;
  }
}

@media print {
  #printArea[data-print-size="a4"] {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 100vh !important;
    padding: 14mm !important;
    background: #fff !important;
    color: #111 !important;
  }

  #printArea[data-print-size="a4"] * {
    color: #111 !important;
  }

  .stock-print-sheet {
    display: block !important;
    width: 100% !important;
    font-family: Arial, sans-serif !important;
  }

  .stock-print-sheet h1,
  .stock-print-sheet h2,
  .stock-print-sheet p {
    margin: 0 0 8px !important;
  }

  .stock-print-row {
    display: grid !important;
    grid-template-columns: 24mm 1.4fr 28mm 28mm 28mm 30mm !important;
    gap: 4mm !important;
    padding: 3mm 0 !important;
    border-bottom: 1px solid #ddd !important;
    font-size: 11px !important;
  }

  .stock-print-head {
    border-top: 2px solid #111 !important;
    border-bottom: 2px solid #111 !important;
    font-weight: 800 !important;
  }

  .stock-print-total {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 12mm !important;
    padding-top: 5mm !important;
    font-size: 14px !important;
  }
}
