:root {
  /* Design tokens (shared brand primitives) */
  --noc-primary: #D32F2F;
  --noc-primary-rgb: 211, 47, 47;
  --noc-primary-active: #B71C1C;
  --noc-primary-active-rgb: 183, 28, 28;
  --noc-secondary: #181C32;
  --noc-dark: #121212;

  --noc-surface: #FFFFFF;
  --noc-bg: #F5F8FA;
  --noc-ink: #181C32;

  --noc-font-sans: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --noc-font-display: "Fraunces", ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;

  --noc-radius-xxs: 2px;
  --noc-radius-xs: 6px;
  --noc-radius-sm: 10px;
  --noc-radius-md: 14px;
  --noc-radius-lg: 16px;

  --noc-shadow-card: 0 18px 45px rgba(24, 28, 50, 0.06);
  --noc-shadow-float: 0 22px 55px rgba(0, 0, 0, 0.28);

  --noc-space-1: 4px;
  --noc-space-2: 8px;
  --noc-space-3: 12px;
  --noc-space-4: 16px;
  --noc-space-5: 24px;

  /* Backwards-compatible aliases */
  --neuro-primary: var(--noc-primary);
  --neuro-primary-active: var(--noc-primary-active);
  --neuro-secondary: var(--noc-secondary);
  --neuro-dark: var(--noc-dark);
  --neuro-bg: var(--noc-bg);
  --neuro-text: var(--noc-ink);
}

html,
body {
  font-family: var(--noc-font-sans);
}

.noc-display {
  font-family: var(--noc-font-display);
  letter-spacing: -0.02em;
}

.noc-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Subtle "neural pathways" background pattern */
.neuro-bg {
  background-color: var(--neuro-bg);
  background-image:
    linear-gradient(90deg, rgba(24, 28, 50, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24, 28, 50, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(211, 47, 47, 0.06) 0, transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(24, 28, 50, 0.05) 0, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(211, 47, 47, 0.04) 0, transparent 45%);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.neuro-glass-nav {
  background: rgba(24, 28, 50, 0.92);
  border-bottom: 1px solid rgba(245, 248, 250, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.neuro-btn {
  border-radius: var(--noc-radius-xxs);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.neuro-btn:focus-visible,
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(var(--noc-primary-rgb), 0.35);
  outline-offset: 2px;
}

.neuro-btn:hover {
  transform: translateY(-1px);
}

.neuro-btn-primary {
  background: var(--neuro-primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(211, 47, 47, 0.18);
}

.neuro-btn-primary:hover {
  background: var(--neuro-primary-active);
}

.neuro-btn-ghost {
  background: rgba(245, 248, 250, 0.08);
  border: 1px solid rgba(245, 248, 250, 0.18);
  color: #fff;
}

.neuro-btn-ghost:hover {
  background: rgba(245, 248, 250, 0.12);
}

.neuro-btn-outline {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(228, 230, 239, 1);
  color: var(--noc-ink);
  box-shadow: 0 10px 24px rgba(24, 28, 50, 0.08);
}

.neuro-btn-outline:hover {
  background: rgba(255, 255, 255, 0.9);
}

.neuro-card {
  border-radius: var(--noc-radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(228, 230, 239, 0.8);
  box-shadow: var(--noc-shadow-card);
}

.neuro-accent-top {
  position: relative;
  overflow: hidden;
}

.neuro-accent-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--neuro-primary);
}

.neuro-price {
  color: var(--neuro-primary);
}

.neuro-icon {
  color: var(--neuro-primary);
}

.noc-section-bridge {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(24, 28, 50, 1) 0%,
    rgba(24, 28, 50, 0.92) 38%,
    rgba(245, 248, 250, 1) 100%
  );
}

.noc-trustbar {
  max-width: 72rem;
  margin: 0 auto;
  transform: translateY(-22px);
}

.noc-trustbar__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(228, 230, 239, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 45px rgba(24, 28, 50, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (min-width: 640px) {
  .noc-trustbar__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px 18px;
  }
}

.noc-trustbar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(24, 28, 50, 0.92);
}

.noc-trustbar__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.14);
  color: var(--neuro-primary);
  flex: 0 0 auto;
}

.noc-trustbar__title {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
}

.noc-trustbar__desc {
  font-size: 0.82rem;
  color: rgba(24, 28, 50, 0.62);
  margin-top: 2px;
}

.neuro-btn-soft {
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.18);
  color: var(--noc-ink);
  box-shadow: 0 10px 22px rgba(24, 28, 50, 0.06);
}

.neuro-btn-soft:hover {
  background: rgba(211, 47, 47, 0.12);
  border-color: rgba(211, 47, 47, 0.26);
}

.noc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(24, 28, 50, 0.75);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(228, 230, 239, 0.9);
  box-shadow: 0 10px 22px rgba(24, 28, 50, 0.06);
}

.noc-chip--accent {
  background: rgba(211, 47, 47, 0.1);
  border-color: rgba(211, 47, 47, 0.18);
  color: rgba(24, 28, 50, 0.9);
}

#menu {
  scroll-margin-top: 96px;
}

.noc-menu-toolbar {
  position: sticky;
  top: 66px;
  z-index: 40;
}

.noc-auth-shell {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 18px 0;
}

.noc-auth-shell__inner {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.noc-auth-shell__bg {
  position: absolute;
  inset: -40px -24px;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(211, 47, 47, 0.14), transparent 48%),
    radial-gradient(circle at 82% 28%, rgba(24, 28, 50, 0.12), transparent 52%),
    radial-gradient(circle at 55% 76%, rgba(24, 28, 50, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(24, 28, 50, 0.1), rgba(245, 248, 250, 0));
  filter: saturate(1.05);
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.82) 36%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.18) 82%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.82) 36%,
    rgba(0, 0, 0, 0.55) 62%,
    rgba(0, 0, 0, 0.18) 82%,
    rgba(0, 0, 0, 0) 100%
  );
}

.noc-auth-card {
  padding: 22px 22px;
  box-shadow: 0 24px 65px rgba(24, 28, 50, 0.12);
  transform: translateY(18px);
}

@media (min-width: 640px) {
  .noc-auth-card {
    padding: 26px 26px;
  }
}

.noc-auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.noc-auth-brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(228, 230, 239, 0.9);
  box-shadow: 0 16px 40px rgba(24, 28, 50, 0.09);
  padding: 8px;
  object-fit: contain;
}

.noc-auth-brand__text {
  min-width: 0;
}

.noc-menu-toolbar__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(228, 230, 239, 0.85);
  background: rgba(245, 248, 250, 0.85);
  box-shadow: 0 16px 40px rgba(24, 28, 50, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 768px) {
  .noc-menu-toolbar__inner {
    padding: 14px;
  }
}

.noc-menu-toolbar__chips {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.noc-menu-toolbar__chips::-webkit-scrollbar {
  height: 6px;
}

.noc-menu-toolbar__chips::-webkit-scrollbar-thumb {
  background: rgba(24, 28, 50, 0.15);
  border-radius: 999px;
}

.noc-chip-btn {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(228, 230, 239, 0.9);
  color: rgba(24, 28, 50, 0.8);
}

.noc-chip-btn:hover {
  border-color: rgba(211, 47, 47, 0.28);
  background: rgba(255, 255, 255, 1);
}

.noc-chip-btn--active {
  background: rgba(24, 28, 50, 0.92);
  border-color: rgba(211, 47, 47, 0.55);
  color: #fff;
}

.noc-chip-btn--active:hover {
  background: rgba(24, 28, 50, 0.92);
  border-color: rgba(211, 47, 47, 0.55);
  color: #fff;
}

.noc-item-card {
  min-height: 108px;
}

.noc-price-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(24, 28, 50, 0.9);
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.16);
}

.noc-add-btn {
  border-radius: 999px;
  background: rgba(211, 47, 47, 0.12);
  border: 1px solid rgba(211, 47, 47, 0.22);
  color: rgba(24, 28, 50, 0.9);
  box-shadow: 0 10px 22px rgba(24, 28, 50, 0.06);
}

.noc-add-btn:hover {
  background: rgba(211, 47, 47, 0.16);
  border-color: rgba(211, 47, 47, 0.28);
}

.noc-qty-btn {
  padding: 8px 12px;
  background: rgba(245, 248, 250, 0.9);
  border: 1px solid rgba(228, 230, 239, 1);
  color: rgba(24, 28, 50, 0.9);
  font-weight: 700;
  line-height: 1;
}

.noc-qty-input {
  width: 72px;
  text-align: center;
  padding: 8px 10px;
  border-top: 1px solid rgba(228, 230, 239, 1);
  border-bottom: 1px solid rgba(228, 230, 239, 1);
  background: rgba(255, 255, 255, 0.95);
}

.noc-qr-order-page {
  --pos-text: #0f172a;
  --pos-muted: #64748b;
  --pos-border: #e2e8f0;
  --pos-bg: #f8fafc;
  --pos-card-bg: #ffffff;
  --pos-primary: #2563eb;
  --pos-primary-weak: rgba(37, 99, 235, 0.10);
  --pos-danger: #dc2626;
  min-height: 100vh;
  background: #EEF2F7;
  color: var(--pos-text);
  font-family: Poppins, Helvetica, "sans-serif";
  font-size: 0.85rem;
  line-height: 1.4;
}

.noc-qr-shell {
  min-height: 100vh;
  max-width: 720px;
  margin: 0 auto;
  background: var(--pos-card-bg);
  color: var(--pos-text);
  box-shadow: 0 22px 70px rgba(24, 28, 50, 0.12);
}

/* Pull-to-refresh indicator, matching /orderpage's implementation (see
   order-page.css and initPullToRefresh in order-page.js): a normal in-flow
   block at the top of .noc-qr-shell whose height is driven directly by touch
   delta, so growing it naturally pushes the header + page body down as the
   user drags — no transforms or absolute positioning needed. */
.noc-ptr-indicator {
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--noc-primary);
  transition: height .15s ease;
}

/* While the finger is actively dragging, track it 1:1 with no easing lag. */
.noc-ptr-indicator.is-dragging {
  transition: none;
}

/* Pulled far enough that releasing now will trigger the refresh. */
.noc-ptr-indicator.is-ready {
  color: #2e7d32;
}

.noc-ptr-indicator-icon {
  font-size: 1.1rem;
  transition: transform .1s linear;
}

.noc-ptr-indicator.is-refreshing .noc-ptr-indicator-icon {
  animation: noc-ptr-spin .6s linear infinite;
  transition: none;
}

@keyframes noc-ptr-spin {
  to {
    transform: rotate(360deg);
  }
}

.noc-qr-header {
  min-height: 36px;
  padding: .55rem .85rem;
  background: var(--noc-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.noc-qr-header__title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  line-height: 1.2;
  font-weight: 500;
}

.noc-qr-header__plus {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1;
  background: transparent;
  color: #93C5FD;
  font-size: 1.05rem;
}

/* Change-table control — the refresh icon in place of the old "+" / "Change" link. */
.noc-qr-header__change {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFFFF;
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
}

.noc-qr-header__badge {
  flex: 0 0 auto;
  padding: .35rem .65rem;
  border-radius: .475rem;
  background: #FFFFFF;
  color: #009EF7;
  font-weight: 500;
  font-size: .75rem;
}

.noc-qr-content {
  padding: 0;
}

.noc-qr-call-row {
  min-height: auto;
  padding: .4rem .6rem;
  background: #F5F8FA;
  border-bottom: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  gap: .6rem;
}

.noc-qr-call-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 0;
  border-radius: 999px;
  padding: .4rem .9rem;
  background: var(--noc-primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: .8rem;
  box-shadow: 0 4px 12px rgba(211, 47, 47, .22);
}

.noc-qr-call-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none;
}

/* Call Waiter sitting inside the red header (in place of the old "open" badge) */
.noc-qr-call-btn--header {
  padding: .35rem .7rem;
  font-size: .75rem;
  background: #FFFFFF;
  color: var(--noc-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .14);
}

.noc-qr-call-msg {
  min-width: 0;
  font-size: .72rem;
  font-weight: 600;
  color: #64748B;
}

.noc-qr-tabs {
  padding: 3px;
  margin: .5rem .6rem .4rem;
  border-radius: 11px;
  background: #E2E8F0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  overflow: hidden;
}

.noc-qr-tab {
  min-width: 0;
  min-height: auto;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  padding: .4rem .3rem;
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: none;
}

.noc-qr-tab > span:not(.noc-qr-tab__badge) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.noc-qr-tab .fas {
  flex: 0 0 auto;
  font-size: .9em;
}

.noc-qr-tab.is-active {
  background: var(--noc-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 5px rgba(211, 47, 47, .25);
}

.noc-qr-tab__badge {
  flex: 0 0 auto;
  min-width: auto;
  height: auto;
  padding: .1em .45em;
  border-radius: 999px;
  background: #CBD5E1;
  color: #334155;
  display: inline-grid;
  place-items: center;
  font-size: .72em;
  line-height: 1.5;
}

.noc-qr-tab.is-active .noc-qr-tab__badge {
  background: #FFFFFF;
  color: var(--noc-primary);
}

.noc-qr-panel {
  padding: .75rem;
}

.noc-qr-card-stack {
  background: var(--pos-card-bg);
}

.noc-qr-top-row,
.noc-qr-summary-row {
  min-width: 0;
}

.noc-qr-category-bar {
  min-height: auto;
  padding: .5rem;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  background: var(--pos-card-bg);
  display: flex;
  align-items: center;
  gap: .5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.noc-qr-category-button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: .3rem .6rem;
  background: transparent;
  color: #009EF7;
  font-weight: 600;
  font-size: .8rem;
  line-height: 1.4;
}

.noc-qr-category-button.is-active {
  background: var(--noc-primary);
  border-color: var(--noc-primary);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(211, 47, 47, 0.22);
}

/* Header food-type dropdown (veg / non-veg / both), sits next to the table name. */
.noc-qr-food-select {
  position: relative;
  z-index: 1051;
  flex: 0 0 auto;
}

.noc-qr-food-toggle {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .18rem .45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .16);
  color: #FFFFFF;
  font-weight: 600;
  font-size: .68rem;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
}

.noc-qr-food-toggle__caret {
  font-size: .8em;
  transition: transform .15s ease;
}

.noc-qr-food-toggle__caret.is-open {
  transform: rotate(180deg);
}

.noc-qr-food-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
}

.noc-qr-food-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 180px;
  max-width: calc(100vw - 1.5rem);
  display: flex;
  flex-direction: column;
  gap: .12rem;
  padding: .3rem;
  background: #FFFFFF;
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .18);
  z-index: 1;
}

.noc-qr-food-menu__item {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .55rem .65rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  font-weight: 600;
  font-size: .85rem;
  text-align: left;
  cursor: pointer;
}

.noc-qr-food-menu__item:hover,
.noc-qr-food-menu__item.is-active {
  background: #F1F5F9;
}

.noc-qr-food-menu__item .fa-leaf { color: #2e7d32; }
.noc-qr-food-menu__item .fa-drumstick-bite { color: #d32f2f; }

.noc-qr-search {
  margin-top: .5rem;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  border: 1px solid var(--pos-border);
  background: var(--pos-card-bg);
}

.noc-qr-search__icon,
.noc-qr-search__clear {
  display: grid;
  place-items: center;
  color: #98A2B3;
  border: 0;
  background: var(--pos-bg);
  font-size: .85rem;
  height: 38px;
}

.noc-qr-search__icon .fas,
.noc-qr-search__clear .fas {
  font-size: .85rem;
}

.noc-qr-search input {
  min-width: 0;
  border: 0;
  height: 38px;
  padding: .5rem .65rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--pos-text);
}

.noc-qr-search input::placeholder {
  color: #A5AEC0;
}

.noc-qr-search input:focus {
  outline: 0;
}

.noc-qr-menu-list {
  margin-top: .5rem;
  display: grid;
  gap: .5rem;
}

.noc-qr-item-card,
.noc-qr-order-card,
.noc-qr-session-card {
  border: 1px solid var(--pos-border);
  border-radius: 12px;
  background: var(--pos-card-bg);
}

.noc-qr-item-card {
  min-height: 0;
  padding: .6rem .7rem;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: .65rem;
  cursor: pointer;
  transition: border-color .12s ease, background .12s ease, box-shadow .12s ease, transform .1s ease;
}

.noc-qr-item-card:active {
  transform: scale(.99);
}

.noc-qr-item-card.is-selected {
  border-color: var(--noc-primary);
  background: rgba(211, 47, 47, .05);
  box-shadow: inset 0 0 0 1px var(--noc-primary);
}

.noc-qr-item-thumb {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pos-border);
  background: var(--pos-bg);
  color: #009EF7;
  font-size: .95rem;
}

.noc-qr-item-thumb .fas {
  font-size: .95rem;
}

.noc-qr-item-name {
  min-width: 0;
  font-size: .84rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--pos-text);
}

.noc-qr-item-meta {
  display: none;
}

.noc-qr-item-price {
  color: #16A34A;
  font-size: .84rem;
  font-weight: 700;
  white-space: nowrap;
}

.noc-qr-add-circle {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #CBD5E1;
  background: var(--pos-card-bg);
  color: #64748B;
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 600;
}

.noc-qr-add-circle.is-active {
  border-color: var(--noc-primary);
  background: var(--noc-primary);
  color: #FFFFFF;
}

.noc-qr-icon-btn {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--pos-border);
  background: var(--pos-card-bg);
  color: #64748B;
  display: grid;
  place-items: center;
  font-size: .72rem;
}

.noc-qr-icon-btn.has-note {
  border-color: var(--noc-primary);
  background: rgba(211, 47, 47, .07);
  color: var(--noc-primary);
}

.noc-qr-icon-btn--danger {
  color: #94A3B8;
}

.noc-qr-icon-btn--danger:hover {
  border-color: var(--noc-primary);
  color: var(--noc-primary);
}

.noc-qr-order-card,
.noc-qr-session-card {
  padding: .65rem;
}

.noc-qr-order-tag {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: .1rem .5rem;
  font-size: .65rem;
  font-weight: 700;
  white-space: nowrap;
}

.noc-qr-order-tag--mine {
  background: rgba(211, 47, 47, .1);
  color: var(--noc-primary);
}

.noc-qr-order-tag--qr {
  background: #DCFCE7;
  color: #166534;
}

.noc-qr-order-tag--staff {
  background: rgba(0, 158, 247, .12);
  color: #009EF7;
}

.noc-qr-order-card h3,
.noc-qr-session-card h3,
.noc-qr-panel h2 {
  font-size: .9rem;
  line-height: 1.2;
  font-weight: 700;
}

.noc-qr-order-page .text-xs {
  font-size: .68rem;
}

.noc-qr-order-page .text-sm {
  font-size: .76rem;
}

.noc-qr-order-page .text-base {
  font-size: .82rem;
}

.noc-qr-order-page .text-lg {
  font-size: .95rem;
}

.noc-qr-qty {
  display: inline-grid;
  grid-template-columns: auto 44px auto;
  align-items: center;
}

.noc-qr-qty button,
.noc-qr-qty input {
  height: auto;
  border: 1px solid var(--pos-border);
  background: var(--pos-card-bg);
  text-align: center;
  font-weight: 700;
  font-size: .8rem;
  padding: .25rem .5rem;
}

.noc-qr-qty button:first-child {
  border-radius: 10px 0 0 10px;
}

.noc-qr-qty button:last-child {
  border-radius: 0 10px 10px 0;
}

.noc-qr-qty input {
  border-left: 0;
  border-right: 0;
}

.noc-qr-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: #94A3B8;
  border: 1px dashed #CBD5E1;
  border-radius: 12px;
  background: var(--pos-bg);
}

.noc-qr-order-page .neuro-btn-primary {
  font-size: .9rem;
  font-weight: 700;
  padding: .6rem .9rem;
  border-radius: 12px;
}

.noc-qr-order-page .font-semibold {
  font-weight: 500 !important;
}

.noc-qr-order-page .font-bold {
  font-weight: 600 !important;
}

.noc-qr-order-page .font-extrabold {
  font-weight: 700 !important;
}

.noc-qr-order-page .form-control-sm,
.noc-qr-order-page .form-select-sm,
.noc-qr-order-page textarea,
.noc-qr-order-page input {
  font-size: .85rem;
}

@media (min-width: 768px) {
  .noc-qr-order-page {
    padding: 24px;
  }

  .noc-qr-shell {
    min-height: calc(100vh - 48px);
    max-width: none;
    border: 1px solid rgba(221, 228, 238, 0.9);
    display: flex;
    flex-direction: column;
  }

  .noc-qr-content {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .noc-qr-tabs {
    display: flex;
    flex: 0 0 auto;
  }

  .noc-qr-tab {
    flex: 1 1 0;
  }

  .noc-qr-tab:first-child {
    display: none;
  }

  .noc-qr-tabs[data-active-panel="menu"] .noc-qr-tab:nth-child(2) {
    background: var(--noc-primary);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(211, 47, 47, .25);
  }

  .noc-qr-card-stack {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    border: 2px solid var(--noc-primary);
    border-radius: 14px;
    margin: 0 .6rem .6rem;
    overflow: hidden;
  }

  .noc-qr-top-row,
  .noc-qr-summary-row {
    flex: 1 1 auto;
    min-height: 0;
  }

  .noc-qr-top-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  }

  .noc-qr-summary-row {
    display: block;
  }

  .noc-qr-card-stack[data-active-panel="summary"] .noc-qr-top-row {
    display: none;
  }

  .noc-qr-card-stack[data-active-panel="menu"] .noc-qr-summary-row,
  .noc-qr-card-stack[data-active-panel="order"] .noc-qr-summary-row {
    display: none;
  }

  .noc-qr-menu-panel,
  .noc-qr-order-panel,
  .noc-qr-summary-panel {
    min-height: 0;
    height: 100%;
    overflow-y: auto;
  }

  .noc-qr-order-panel {
    border-left: 2px solid var(--noc-primary);
  }

  .noc-qr-menu-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: flex-start;
    overflow-y: auto;
  }

  .noc-qr-item-card {
    min-height: 152px;
    padding: 1rem .9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .35rem;
    position: relative;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  }

  .noc-qr-item-card:hover {
    transform: translateY(-1px);
    border-color: #CBD5E1;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  }

  .noc-qr-item-card:active {
    transform: scale(.96);
    transition: transform .08s ease;
  }

  .noc-qr-item-thumb {
    width: auto;
    height: auto;
    border: 0;
    background: transparent;
    color: #009EF7;
  }

  .noc-qr-item-name {
    margin: .35rem 0 .25rem;
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
  }

  .noc-qr-item-meta {
    display: none;
  }

  .noc-qr-item-price {
    font-size: .9rem;
  }

  .noc-qr-add-circle {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    display: none;
    background: var(--noc-primary);
    border-color: var(--noc-primary);
    color: #FFFFFF;
    font-size: .75rem;
    box-shadow: 0 4px 10px rgba(211, 47, 47, 0.35);
  }

  .noc-qr-add-circle.is-active {
    display: grid;
  }

  .noc-qr-order-panel .grid,
  .noc-qr-summary-panel .grid {
    gap: .5rem;
  }

}

@media (max-width: 767.98px) {
  .noc-qr-card-stack [data-pos-card] {
    display: none;
  }

  .noc-qr-card-stack[data-active-panel="menu"] [data-pos-card="menu"],
  .noc-qr-card-stack[data-active-panel="order"] [data-pos-card="order"],
  .noc-qr-card-stack[data-active-panel="summary"] [data-pos-card="summary"] {
    display: block;
  }

  .noc-qr-summary-row,
  .noc-qr-top-row {
    display: block;
  }
}

@media (min-width: 1200px) {
  .noc-qr-menu-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .noc-qr-item-card {
    grid-template-columns: 44px minmax(0, 1fr) auto 30px;
    gap: .8rem;
    padding: .8rem .9rem;
  }

  .noc-qr-item-card .noc-qr-add-circle {
    grid-column: auto;
  }

  .noc-qr-item-price {
    grid-column: auto;
    justify-self: auto;
  }
}

@media (max-width: 420px) {
  .noc-qr-header {
    padding-inline: 14px;
  }

  .noc-qr-header__title {
    font-size: .92rem;
  }

  .noc-qr-header__badge {
    padding: .3rem .55rem;
    font-size: .7rem;
  }

  .noc-qr-tab {
    min-height: auto;
    gap: .25rem;
    font-size: .78rem;
  }

  .noc-qr-category-button {
    padding: .3rem .6rem;
  }

  .noc-qr-item-card {
    grid-template-columns: 38px minmax(0, 1fr) auto 26px;
    gap: .6rem;
  }

  .noc-qr-item-thumb {
    width: 38px;
    height: 38px;
  }

  .noc-qr-add-circle {
    width: 26px;
    height: 26px;
  }
}

/* SweetAlert2 (confirmation buttons should look like buttons) */
.swal2-popup {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  border-radius: 16px !important;
}

.swal2-actions {
  gap: 10px;
}

.swal2-styled {
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 24px rgba(24, 28, 50, 0.12) !important;
}

.swal2-styled:focus {
  box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.22) !important;
}

.swal2-styled.swal2-confirm {
  background: #D32F2F !important;
}

.swal2-styled.swal2-confirm:hover {
  background: #B71C1C !important;
}

.swal2-styled.swal2-cancel {
  background: rgba(228, 230, 239, 0.9) !important;
  color: #181C32 !important;
}

.swal2-styled.swal2-cancel:hover {
  background: rgba(228, 230, 239, 1) !important;
}

/* Accessible helpers */
.noc-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Fullscreen app loader */
.noc-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 280ms ease, visibility 0s linear 280ms;
  pointer-events: all;
}

.noc-loader--fadeout {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.noc-offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(211, 47, 47, 0.95);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 12px;
  text-align: center;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: transform 180ms ease, opacity 180ms ease;
}

.noc-offline-banner.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.noc-loader__inner {
  display: grid;
  place-items: center;
}

.noc-loader__logo {
  width: 128px;
  height: 128px;
  max-width: 60vw;
  max-height: 60vw;
  will-change: transform, opacity;
  transform-origin: center;
  animation: nocLogoPulse 1.35s ease-in-out infinite;
}

@keyframes nocLogoPulse {
  0% {
    transform: scale(0.96);
    opacity: 0.88;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
  100% {
    transform: scale(0.96);
    opacity: 0.88;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noc-loader__logo {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
