.qr-order-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 12%, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(244, 63, 94, 0.16), transparent 28%),
    linear-gradient(135deg, #fff7ed 0%, #f8fafc 48%, #ecfeff 100%);
}

body.dark.qr-order-body {
  background:
    radial-gradient(circle at 16% 8%, rgba(20, 184, 166, 0.22), transparent 30%),
    radial-gradient(circle at 85% 4%, rgba(244, 63, 94, 0.18), transparent 28%),
    linear-gradient(135deg, #08111f 0%, #111827 52%, #052e2b 100%);
}

.qr-order-page {
  max-width: 1380px;
  margin: 0 auto;
  padding: 16px;
}

.qr-hero {
  position: relative;
  min-height: 270px;
  display: grid;
  place-items: end center;
  margin: -16px -16px 14px;
  padding: 54px 16px 20px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.10), rgba(2, 6, 23, 0.58)),
    url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1800&q=80") center/cover;
  overflow: hidden;
}

.qr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(6, 182, 212, 0.38), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(244, 63, 94, 0.26), transparent 30%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.20), transparent 34%, rgba(15, 23, 42, 0.20));
  pointer-events: none;
}

.qr-theme-toggle {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.qr-theme-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

body.dark .qr-theme-toggle {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
}

.qr-hero__glass {
  width: min(100%, 980px);
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.20)),
    rgba(255, 255, 255, 0.08);
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 18px rgba(2, 6, 23, 0.42);
  box-shadow: 0 28px 90px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.qr-hero__content {
  min-width: 0;
  width: min(100%, 820px);
  display: grid;
  justify-items: center;
}

.qr-hero__rail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  flex-wrap: wrap;
}

.qr-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.96;
}

.qr-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(38px, 8vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.qr-hero p {
  margin: 0;
  max-width: 620px;
  font-size: 15px;
  line-height: 1.55;
}

.qr-hero__tableChip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.10)),
    rgba(2, 6, 23, 0.18);
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.22);
  backdrop-filter: blur(14px);
}

.qr-hero__tableLabel {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.84;
}

.qr-hero__tableChip strong {
  max-width: 260px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.qr-hero__status {
  display: inline-flex;
  max-width: min(100%, 720px);
  margin-top: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.34);
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(16px);
}

.qr-ref-form {
  max-width: 520px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.36);
  backdrop-filter: blur(16px);
}

.qr-ref-form label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 900;
}

.qr-ref-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.qr-ref-form input {
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font: inherit;
  font-weight: 800;
}

.qr-ref-form__msg {
  min-height: 18px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.qr-order-top,
.qr-order-page .menu-panel,
.qr-order-page .cart-panel {
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.10);
}

.qr-order-page .qr-admin-action,
.qr-order-page .qr-staff-field,
.qr-order-page #voiceOrderBtn {
  display: none !important;
}

.qr-order-page #createKotBtn {
  min-height: 48px;
  font-weight: 900;
}

.qr-order-page #clearCartBtn {
  min-height: 48px;
}

.qr-order-page .action-bar {
  grid-template-columns: 1fr auto;
}

.qr-order-page #tableNo[readonly] {
  font-weight: 900;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.72);
}

body.dark .qr-order-page #tableNo[readonly] {
  color: rgba(226, 232, 240, 0.96);
  background: rgba(2, 6, 23, 0.28);
}

.qr-otp {
  display: grid;
  gap: 16px;
}

.qr-otp__hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(6, 182, 212, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(6, 182, 212, 0.22), transparent 42%),
    radial-gradient(circle at 95% 12%, rgba(244, 63, 94, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.08)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 70px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

body.dark .qr-otp__hero {
  border-color: rgba(148, 163, 184, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(6, 182, 212, 0.20), transparent 42%),
    radial-gradient(circle at 95% 12%, rgba(244, 63, 94, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(99, 102, 241, 0.12)),
    rgba(2, 6, 23, 0.30);
}

.qr-otp__heroText {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.qr-otp__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: rgba(8, 145, 178, 0.94);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

body.dark .qr-otp__eyebrow { color: rgba(103, 232, 249, 0.90); }

.qr-otp__hero h3 {
  margin: 0;
  color: var(--text);
  font-size: 22px;
  line-height: 1.15;
}

.qr-otp__hero p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.qr-otp__badge {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid rgba(6, 182, 212, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
  box-shadow: 0 18px 55px rgba(6, 182, 212, 0.16);
}

body.dark .qr-otp__badge {
  border-color: rgba(103, 232, 249, 0.20);
  background: rgba(2, 6, 23, 0.34);
  color: rgba(226, 232, 240, 0.96);
}

.qr-otp__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.qr-otp__step {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

body.dark .qr-otp__step {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.26);
}

.qr-otp__step.is-active {
  border-color: rgba(6, 182, 212, 0.26);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.14), rgba(34, 197, 94, 0.08));
  color: var(--text);
}

.qr-otp__stepNo {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
  font-size: 11px;
}

.qr-otp__step.is-active .qr-otp__stepNo {
  background: rgba(6, 182, 212, 0.18);
  color: #0891b2;
}

.qr-otp__form {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 55px rgba(15, 23, 42, 0.08);
}

body.dark .qr-otp__form {
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.24);
}

.qr-otp__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.qr-otp__field input {
  min-height: 48px;
  border-radius: 14px;
  font-weight: 800;
}

.qr-otp__inputOtp {
  text-align: center;
  font-size: 22px;
  letter-spacing: 0.18em;
  font-weight: 950;
}

.qr-otp__send,
.qr-otp__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.qr-otp__verify {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.09), rgba(6, 182, 212, 0.06)),
    rgba(255, 255, 255, 0.56);
}

body.dark .qr-otp__verify {
  border-color: rgba(34, 197, 94, 0.22);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.10), rgba(6, 182, 212, 0.07)),
    rgba(2, 6, 23, 0.22);
}

.qr-otp__sent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.qr-otp__sent strong {
  color: var(--text);
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

body.dark .qr-otp__sent strong {
  background: rgba(255, 255, 255, 0.08);
}

.qr-otp__status {
  min-height: 20px;
  padding: 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.qr-otp__primary {
  min-height: 46px;
  padding-inline: 18px;
}

.qr-otp__status.is-error { color: #dc2626; }
.qr-otp__status.is-success { color: #15803d; }
body.dark .qr-otp__status.is-error { color: #fca5a5; }
body.dark .qr-otp__status.is-success { color: #86efac; }

@media (max-width: 760px) {
  .qr-order-page {
    padding: 10px;
  }

  .qr-hero {
    min-height: 280px;
    margin: -10px -10px 10px;
    padding: 62px 10px 12px;
  }

  .qr-theme-toggle {
    top: 12px;
    right: 12px;
  }

  .qr-hero__status {
    border-radius: 14px;
  }

  .qr-hero__glass {
    gap: 12px;
    padding: 14px 12px;
    border-radius: 22px;
  }

  .qr-hero h1 {
    font-size: clamp(34px, 14vw, 58px);
  }

  .qr-hero p {
    font-size: 13px;
  }

  .qr-hero__rail {
    width: 100%;
  }

  .qr-hero__eyebrow,
  .qr-hero__tableChip {
    flex: 1 1 auto;
    justify-content: center;
  }

  .qr-hero__tableChip strong {
    font-size: 16px;
  }

  .qr-order-page .panel__tools {
    grid-template-columns: 1fr 1fr;
  }

  .qr-order-page .tool--search {
    grid-column: 1 / -1;
  }

  .qr-order-page .action-bar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    grid-template-columns: 1fr;
    padding: 10px 0 0;
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.96) 24%);
  }

  body.dark .qr-order-page .action-bar {
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.96) 24%);
  }

  .qr-otp__send .btn,
  .qr-otp__actions .btn {
    width: 100%;
  }

  .qr-otp__hero {
    align-items: flex-start;
    padding: 14px;
  }

  .qr-otp__badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 20px;
  }

  .qr-otp__steps {
    grid-template-columns: 1fr;
  }

  .qr-otp__step {
    justify-content: flex-start;
  }

  .qr-otp__grid {
    grid-template-columns: 1fr;
  }

  .qr-otp__form {
    padding: 12px;
  }
}
