/* ────────────────────────────────────────────────────────────────────
   Dinelax — Customer self-order page (premium)
   Mirrors the Flutter waiter app: pure black, neon-green accent,
   glass surfaces, soft glows, breath/pulse micro-animations.
   ──────────────────────────────────────────────────────────────────── */

:root {
  /* UAE light theme — mirrors the Flutter app (white surfaces, dark text,
     teal #1E9189 brand accent). India dark theme retired for this page. */
  --bg: #ffffff;
  --surface: #f4f6f8;
  --surface-2: #eaedf1;
  --surface-3: #dde2e8;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.14);
  --text: #14181f;
  --text-muted: rgba(0, 0, 0, 0.55);
  --text-faint: rgba(0, 0, 0, 0.38);
  --accent: #1e9189;
  --accent-2: #167c73;
  --accent-glow: rgba(30, 145, 137, 0.20);
  --accent-soft: rgba(30, 145, 137, 0.1);
  --accent-border: rgba(30, 145, 137, 0.4);
  --danger: #ef4444;
  --warn: #c77c00;
  --orange-2: #c77c00;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.12);

  font-family:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}

body {
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input,
textarea {
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  width: 100%;
  resize: vertical;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--text-faint);
  margin: 14px 0 6px;
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

/* ───────────── boot screen ───────────── */
.boot {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  z-index: 100;
  background: var(--bg);
}

.boot__logo {
  position: relative;
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot__ring {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--accent);
  opacity: 0.35;
  border-radius: 50%;
  animation: spin 6s linear infinite;
}

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

.boot__brand {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #14181f, #566070);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.boot__tag {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-faint);
  text-transform: uppercase;
}

/* ───────────── welcome / name entry ───────────── */
.welcome {
  position: fixed;
  inset: 0;
  height: 100vh; /* fallback */
  height: 100dvh; /* dynamic vh → excludes the mobile browser toolbar */
  z-index: 50;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 28px 24px max(24px, env(safe-area-inset-bottom));
  padding-top: max(32px, env(safe-area-inset-top));
  /* SCROLL, not clip — the Continue button must always be reachable even when
     the (tall) delivery block + on-screen keyboard exceed the viewport. */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Clipped, non-scrolling layer for the decorative orbs — keeps them from
   adding phantom scroll now that .welcome is a scroll container. */
.welcome__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.welcome__bgOrb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.65;
}

.welcome__bgOrb--1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(30, 145, 137, 0.22), transparent 70%);
  top: -120px;
  right: -80px;
  animation: orb1 18s ease-in-out infinite alternate;
}

.welcome__bgOrb--2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.16), transparent 70%);
  bottom: -100px;
  left: -60px;
  animation: orb2 22s ease-in-out infinite alternate;
}

@keyframes orb1 {
  to {
    transform: translate(40px, 30px) scale(1.1);
  }
}

@keyframes orb2 {
  to {
    transform: translate(-30px, -20px) scale(1.08);
  }
}

.welcome__inner {
  position: relative;
  z-index: 1;
  /* 1 0 auto: grow+centre when content is short (dining/parcel look identical),
     but never shrink below content height — so tall delivery content is not
     clipped by justify-content:center; the panel scrolls to reveal the CTA. */
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}

.welcome__brandRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  animation: fadeInUp 0.45s ease-out 0.05s both;
}

.welcome__brandIcon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.welcome__brandTitle {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome__hi {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.8px;
  background: linear-gradient(135deg, #14181f, #566070);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fadeInUp 0.55s ease-out 0.15s both;
}

.welcome__sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 22px;
  line-height: 1.5;
  animation: fadeInUp 0.55s ease-out 0.25s both;
}

.welcome__sub span {
  color: var(--accent);
  font-weight: 700;
}

.welcome__field {
  margin-bottom: 16px;
  animation: fadeInUp 0.55s ease-out 0.35s both;
}

.welcome__field label {
  margin-top: 0;
  margin-bottom: 8px;
  letter-spacing: 1.8px;
  font-size: 10px;
}

.welcome__inputWrap {
  position: relative;
}

.welcome__inputWrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.welcome__inputWrap input {
  padding-left: 40px;
  font-size: 17px;
  font-weight: 600;
  height: 54px;
  background: var(--surface);
}

.welcome__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  width: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.6px;
  box-shadow: 0 8px 28px var(--accent-glow);
  animation: fadeInUp 0.55s ease-out 0.45s both;
  transition: transform 0.12s ease, opacity 0.18s ease;
}

.welcome__cta:disabled {
  opacity: 0.35;
  pointer-events: none;
  box-shadow: none;
}

.welcome__cta:active:not(:disabled) {
  transform: scale(0.98);
}

.welcome__cta svg {
  margin-left: 2px;
}

.welcome__seatHint {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 16px;
  animation: fadeInUp 0.55s ease-out 0.55s both;
}

.welcome__footer {
  text-align: center;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.55s ease-out 0.65s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ───────────── header (order screen) ───────────── */
.hdr {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px 12px;
  padding-top: max(14px, env(safe-area-inset-top));
}

.hdr__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hdr__brand {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.hdr__brandIcon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  flex-shrink: 0;
}

.hdr__brandText {
  min-width: 0;
}

.hdr__name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr__sub {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--text-faint);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr__sub strong {
  color: var(--accent);
  font-weight: 800;
}

.hdr__table {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border-radius: 10px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-glow);
  line-height: 1.1;
  text-align: center;
}

.hdr__table small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 1px;
  opacity: 0.7;
}

/* ───────────── search ───────────── */
/* ───────────── DINING / PARCEL toggle (mirrors waiter app) ───────────── */
.orderTypeToggle {
  display: flex;
  gap: 10px;
  margin: 14px 16px 6px;
}

.orderTypeToggle__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  transition: all 0.22s ease;
}

.orderTypeToggle__btn--dining.is-active {
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 8px 22px rgba(30, 145, 137, 0.45),
              inset 0 1px 0 rgba(0, 0, 0, 0.25);
}

.orderTypeToggle__btn--parcel.is-active {
  background: linear-gradient(135deg, #fb923c, #facc15);
  color: #14181f;
  border-color: #fb923c;
  box-shadow: 0 8px 22px rgba(251, 146, 60, 0.45),
              inset 0 1px 0 rgba(0, 0, 0, 0.25);
}

.searchbar {
  margin: 12px 16px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border 0.18s ease, box-shadow 0.18s ease;
}

.searchbar:focus-within {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.searchbar svg {
  color: var(--text-faint);
  flex-shrink: 0;
}

.searchbar input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 14px;
  color: var(--text);
  height: 22px;
}

.searchbar input:focus {
  outline: none;
  box-shadow: none;
}

/* ───────────── category tabs ───────────── */
.catbar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  background: var(--bg);
  position: sticky;
  top: 78px;
  z-index: 9;
  border-bottom: 1px solid var(--border);
}

.catbar::-webkit-scrollbar {
  display: none;
}

.catbar__chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.catbar__chip.is-active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 800;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* ───────────── menu list ───────────── */
.menu {
  padding: 12px 16px 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-faint);
}

.section-h {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin: 14px 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: transform 0.18s ease, border 0.18s ease, box-shadow 0.4s ease;
  animation: rowIn 0.28s ease-out both;
}

.item.has-qty {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(30, 145, 137, 0.08), rgba(30, 145, 137, 0.02));
  box-shadow:
    0 0 0 1px var(--accent-border) inset,
    0 0 24px rgba(30, 145, 137, 0.18);
}

.item__thumbWrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.04);
}

.item__thumb--placeholder {
  background: linear-gradient(135deg, rgba(30, 145, 137, 0.15), rgba(30, 145, 137, 0.04));
  border: 1px solid var(--border);
}

.item__cartBadge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 900;
  font-family: "JetBrains Mono", monospace;
  padding: 2px 7px;
  border-radius: 8px;
  border: 2px solid var(--surface);
  box-shadow: 0 0 12px var(--accent-glow);
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item__veg {
  width: 14px;
  height: 14px;
  border: 1.5px solid;
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
  margin-top: 4px;
}

.item__veg::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: absolute;
  inset: 0;
  margin: auto;
}

.item__veg.is-veg {
  border-color: #167c73;
}

.item__veg.is-veg::after {
  background: #167c73;
}

.item__veg.is-nonveg {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.item__veg.is-nonveg::after {
  background: #ef4444;
  border-radius: 1.5px;
  width: 6px;
  height: 6px;
}

.item__body {
  flex: 1;
  min-width: 0;
}

.item__name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.item__price {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.item__pop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: var(--orange-2);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.item__add {
  flex-shrink: 0;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  border: none;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.item__add:active {
  transform: scale(0.94);
}

.item__qty {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  overflow: hidden;
}

.item__qty button {
  width: 34px;
  height: 34px;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease;
}

.item__qty button:active {
  background: rgba(30, 145, 137, 0.2);
}

.item__qty span {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 800;
  min-width: 22px;
  text-align: center;
  color: var(--accent);
}

/* ───────────── cart footer ───────────── */
/* Cart pill — sits above the bottom tabs (which are 76px tall).
   Layout matches waiter screenshot 8: cart icon + "TOTAL (N ITEMS) ₹X"
   on the left, green "VIEW 👁" pill button on the right. */
.cart {
  position: fixed;
  bottom: 76px;
  left: 0;
  right: 0;
  padding: 10px 16px;
  z-index: 8;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.95) 100%);
  animation: cartIn 0.25s ease-out;
}

@keyframes cartIn {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.cart__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--accent-soft) inset;
}

.cart__leftBlock {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.cart__cartIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.cart__textCol {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cart__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--text-faint);
  text-transform: uppercase;
}

.cart__total {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.cart__viewBtn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  box-shadow: 0 6px 18px var(--accent-glow);
  animation: cartViewPulse 1800ms ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes cartViewPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.025); }
}

.cart__viewBtn:active {
  transform: scale(0.96);
}

/* ───────────── cart sheet ───────────── */
.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
}

.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sheet__panel {
  position: relative;
  width: 100%;
  max-height: 88vh;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid rgba(30, 145, 137, 0.3);
  display: flex;
  flex-direction: column;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.sheet__handle {
  width: 40px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
  margin: 10px auto 0;
}

.sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 12px;
}

.sheet__headIcon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 145, 137, 0.18), rgba(30, 145, 137, 0.06));
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(30, 145, 137, 0.18);
}

.sheet__headText {
  flex: 1;
  min-width: 0;
}

.sheet__head h2 {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 1px;
}

.sheet__sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

.sheet__close {
  width: 32px;
  height: 32px;
  font-size: 28px;
  line-height: 1;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-3);
  border-radius: 50%;
}

.sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 18px;
  max-height: 38vh;
}

.cartrow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  animation: rowIn 0.28s ease-out both;
}

.cartrow:last-child {
  border-bottom: none;
}

.cartrow__veg {
  margin-top: 2px;
}

.cartrow__body {
  flex: 1;
  min-width: 0;
}

.cartrow__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.cartrow__price {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 3px;
}

.cartrow__notebtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 5px 9px;
  background: var(--surface-3);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.15s ease;
}

.cartrow__notebtn.has-note {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  border-style: solid;
  color: var(--accent);
  font-weight: 700;
}

.cartrow__notebtn:active {
  transform: scale(0.98);
}

.cartrow__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  overflow: hidden;
  flex-shrink: 0;
}

.cartrow__qty button {
  width: 30px;
  height: 30px;
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}

.cartrow__qty button:active {
  background: rgba(30, 145, 137, 0.2);
}

.cartrow__qty span {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
  color: var(--accent);
}

/* ───────────── new cart row (waiter screenshot 2) ───────────── */
.cartRow {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  animation: rowIn 0.28s ease-out both;
}

.cartRow:last-child { border-bottom: none; }

.cartRow__thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.04);
}

.cartRow__thumb--placeholder {
  background: linear-gradient(135deg, rgba(30, 145, 137, 0.15), rgba(30, 145, 137, 0.04));
  border: 1px solid var(--border);
}

.cartRow__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}

.cartRow__nameRow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cartRow__veg {
  flex-shrink: 0;
  margin: 0;
}

.cartRow__name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.cartRow__math {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.cartRow__math strong {
  color: var(--text);
  font-weight: 800;
}

.cartRow__noteBtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  width: fit-content;
}

.cartRow__noteBtn.has-note {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  border-style: solid;
  color: var(--accent);
  font-weight: 700;
}

.cartRow__qty {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 10px;
  background: rgba(30, 145, 137, 0.10);
  border: 1px solid var(--accent-border);
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
  height: 36px;
}

.cartRow__qty button {
  width: 36px;
  height: 100%;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
}

.cartRow__qty button:active {
  background: rgba(30, 145, 137, 0.22);
}

.cartRow__qty span {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 900;
  min-width: 26px;
  text-align: center;
  color: var(--accent);
}

.sheet__form {
  padding: 8px 18px 0;
}

.sheet__totals {
  padding: 14px 18px 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}

.sheet__totalRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.sheet__totalRow span:first-child {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
}

.sheet__totalRow span:last-child {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.sheet__totalRow--big span:first-child {
  font-size: 13px;
  letter-spacing: 1.4px;
  color: var(--text-faint);
  text-transform: uppercase;
  font-weight: 700;
}

.sheet__totalRow--big span:last-child {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
}

/* primary CONFIRM button — full width, glow, with check svg */
.sheet__primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 18px 10px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  box-shadow:
    0 12px 32px var(--accent-glow),
    inset 0 1px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.12s ease;
}

.sheet__primary:active { transform: scale(0.98); }

.sheet__primary:disabled {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

/* 3-button row: Add Items / Add Voice / Cancel */
.sheet__btnRow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 18px 6px;
}

.sheet__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  border: 1px solid;
  background: transparent;
  transition: all 0.18s ease;
}

.sheet__btn--white {
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--text);
  background: rgba(0, 0, 0, 0.03);
}

.sheet__btn--green {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-soft);
}

.sheet__btn--red {
  border-color: rgba(239, 68, 68, 0.4);
  color: #dc2626;
  background: rgba(239, 68, 68, 0.08);
}

.sheet__btn:active { transform: scale(0.97); }

.sheet__footer {
  text-align: center;
  font-size: 10px;
  color: var(--text-faint);
  padding: 4px 24px 12px;
  letter-spacing: 1px;
}

/* ───────────── note dialog ───────────── */
.noteDlg {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.noteDlg__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
}

.noteDlg__panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid rgba(30, 145, 137, 0.3);
  padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  animation: slideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.noteDlg__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.noteDlg__head h3 {
  font-size: 16px;
  font-weight: 800;
}

.noteDlg__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip {
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.chip:active {
  transform: scale(0.96);
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.noteDlg__actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.noteDlg__cancel,
.noteDlg__save {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.noteDlg__cancel {
  background: var(--surface-3);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.noteDlg__save {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  box-shadow: 0 4px 14px var(--accent-glow);
}

/* ───────────── success ───────────── */
.success {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 14px;
}

.success__ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid rgba(30, 145, 137, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  box-shadow: 0 0 60px var(--accent-glow);
  animation: pulseIn 1.4s ease-out;
}

@keyframes pulseIn {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

.success h1 {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.success__sub {
  color: var(--text-muted);
  font-size: 14px;
}

.success__id {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  background: var(--surface);
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
}

.success__hint {
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 6px;
}

.success__again {
  margin-top: 18px;
  padding: 14px 28px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}

/* ───────────── error ───────────── */
.error {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  gap: 14px;
}

.error__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.5);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
}

.error h1 {
  font-size: 22px;
  font-weight: 800;
}

.error__msg {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 320px;
}

.error__retry {
  margin-top: 8px;
  padding: 12px 24px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-weight: 700;
}

/* ───────────── RESTAURANT CLOSED (swinging shop sign) ───────────── */
.closed {
  position: fixed;
  inset: 0;
  height: 100vh; /* fallback */
  height: 100dvh;
  z-index: 70;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 24px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  overflow-x: hidden;
}

/* soft ambient orbs (clipped, never add scroll) */
.closed__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.closed__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.closed__orb--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(30, 145, 137, 0.18), transparent 70%);
  top: -110px;
  right: -70px;
  animation: closedOrb1 16s ease-in-out infinite alternate;
}
.closed__orb--2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(199, 124, 0, 0.14), transparent 70%);
  bottom: -90px;
  left: -60px;
  animation: closedOrb2 20s ease-in-out infinite alternate;
}
@keyframes closedOrb1 {
  to {
    transform: translate(36px, 26px) scale(1.1);
  }
}
@keyframes closedOrb2 {
  to {
    transform: translate(-28px, -18px) scale(1.08);
  }
}

/* the hanging sign */
.closed__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 26px;
  /* room for the swing arc so nothing clips */
  padding: 0 18px;
}

/* the rail the chains hang from */
.closed__rail {
  width: 168px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3d4552, #222831);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
}
.closed__rail::after {
  /* wall bracket nub */
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: -3px auto 0;
  border-radius: 50%;
  background: #222831;
  opacity: 0.85;
}

/* everything under the rail swings as ONE pendulum from the rail */
.closed__swing {
  transform-origin: 50% 0%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* drop in, then sway forever */
  animation:
    closedDrop 0.9s cubic-bezier(0.22, 1.4, 0.36, 1) both,
    closedSway 3.6s ease-in-out 0.9s infinite;
  will-change: transform;
}
@keyframes closedDrop {
  0% {
    transform: translateY(-26px) rotate(-13deg);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(-6deg);
    opacity: 1;
  }
}
/* gentle pendulum — eases at each end like a real hanging board */
@keyframes closedSway {
  0% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
  100% {
    transform: rotate(-6deg);
  }
}

.closed__chains {
  display: flex;
  gap: 104px;
  height: 34px;
}
.closed__chain {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  /* chain links */
  background-image: repeating-linear-gradient(
    180deg,
    #4a5261 0 5px,
    rgba(0, 0, 0, 0) 5px 8px
  );
}

.closed__board {
  position: relative;
  width: 214px;
  border-radius: 14px;
  padding: 16px 14px 15px;
  color: #f6efe2;
  background: linear-gradient(160deg, #2c333f, #191d25);
  border: 2px solid rgba(246, 239, 226, 0.16);
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* the two hooks the chains clip into */
.closed__hook {
  position: absolute;
  top: -7px;
  width: 10px;
  height: 10px;
  border: 2px solid #4a5261;
  border-radius: 50%;
  background: var(--bg);
}
.closed__hook--l {
  left: 48px;
}
.closed__hook--r {
  right: 48px;
}
.closed__boardInner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.closed__shop {
  width: 34px;
  height: 34px;
  color: #f0b357;
}
.closed__shop svg {
  width: 100%;
  height: 100%;
  display: block;
}
.closed__word {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1;
  color: #ff6b6b;
  text-shadow: 0 0 14px rgba(255, 107, 107, 0.4);
  /* soft neon breathe */
  animation: closedGlow 2.6s ease-in-out infinite;
}
@keyframes closedGlow {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 14px rgba(255, 107, 107, 0.4);
  }
  50% {
    opacity: 0.72;
    text-shadow: 0 0 4px rgba(255, 107, 107, 0.15);
  }
}
.closed__rule {
  width: 62px;
  height: 2px;
  border-radius: 2px;
  background: rgba(246, 239, 226, 0.28);
}
.closed__sorry {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: rgba(246, 239, 226, 0.62);
}

.closed__title {
  position: relative;
  z-index: 1;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.4px;
  animation: fadeInUp 0.5s ease-out 0.45s both;
}
.closed__msg {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 320px;
  animation: fadeInUp 0.5s ease-out 0.58s both;
}
.closed__retry {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 8px 18px var(--accent-glow);
  animation: fadeInUp 0.5s ease-out 0.7s both;
}
.closed__retry:active {
  transform: scale(0.97);
}
.closed__retryIcon {
  font-size: 17px;
  line-height: 1;
}

/* accessibility: stop the motion for users who ask for it */
@media (prefers-reduced-motion: reduce) {
  .closed__swing,
  .closed__word,
  .closed__orb--1,
  .closed__orb--2 {
    animation: none;
  }
  .closed__swing {
    opacity: 1;
    transform: none;
  }
}

/* ───────────── bottom tabs ───────────── */
/* ───────────── waiter-style bottom nav (Menu | mic bubble | History) ───────────── */
.tabs {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 76px;
  padding: 0 8px env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(30, 145, 137, 0.10);
  z-index: 9;
  overflow: visible;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: rgba(0, 0, 0, 0.4);
  position: relative;
  transition: color 0.18s ease;
}

.tab--side {
  height: 100%;
}

.tab svg {
  transition: transform 0.2s ease;
}

.tab.is-active {
  color: var(--accent);
}

.tab.is-active svg {
  transform: scale(1.08);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.tab__underline {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transform: translateX(-50%);
  transition: width 0.22s ease;
}

.tab.is-active .tab__underline {
  width: 18px;
}

/* Center mic bubble — elevated +pulsing, mirrors waiter app's order_bottom_nav */
.tab--mic {
  flex: 0 0 96px;
  padding-bottom: 0;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.tab__micBubble {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2, #167c73));
  border: 4px solid #000;
  color: #000;
  box-shadow:
    0 8px 24px rgba(30, 145, 137, 0.45),
    0 0 0 2px rgba(30, 145, 137, 0.18);
  animation: micIdlePulse 1.6s ease-in-out infinite;
  transition: transform 0.18s ease;
}

.tab--mic.is-active .tab__micBubble {
  animation: micActivePulse 0.9s ease-in-out infinite;
  box-shadow:
    0 10px 30px rgba(30, 145, 137, 0.65),
    0 0 0 4px rgba(30, 145, 137, 0.25);
}

.tab--mic.is-recording .tab__micBubble {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #14181f;
  box-shadow:
    0 10px 30px rgba(239, 68, 68, 0.6),
    0 0 0 4px rgba(239, 68, 68, 0.25);
  animation: micActivePulse 0.7s ease-in-out infinite;
}

.tab--mic.is-recording .tab__micIcon--mic {
  display: none;
}

.tab--mic.is-recording .tab__micBubble::after {
  content: "";
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 4px;
}

@keyframes micIdlePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.03); }
}

@keyframes micActivePulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.06); }
}

.tabDot {
  position: absolute;
  top: 10px;
  right: 18px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  display: none;
  animation: dotPulse 1.4s ease-in-out infinite;
}

.tabDot.is-on {
  display: block;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.3); opacity: 0.6; }
}

.tabBadge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  background: var(--accent);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--accent-glow);
}

.tabBody {
  /* leaves room for the bottom tabs (~76px) plus cart pill if present */
  padding-bottom: 100px;
}

/* ───────────── voice panel — waiter-style (screenshot 1) ───────────── */
.vWrap {
  padding: 18px 16px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* green pill header — "VOICE NOTE FOR KITCHEN" */
.vTopPill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(30, 145, 137, 0.10);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  box-shadow: 0 0 14px rgba(30, 145, 137, 0.18);
}

.vNote {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  line-height: 1.5;
  padding: 0 22px;
}

/* full-width status pill below header — recording/ready states get
   bordered red/green tint with a clock display on the right (mirrors
   waiter screenshot 1: "● Recording... 00:01" red bordered pill). */
.vStatus {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin: 0 auto 16px;
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  transition: all 0.22s ease;
}

.vStatus__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.vStatus__text {
  flex: 1;
  min-width: 0;
}

.vStatus__time {
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  display: none;
}

.vStatus[data-state="recording"] {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.45);
  color: #dc2626;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.22);
}

.vStatus[data-state="recording"] .vStatus__dot {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.7);
  animation: dotPulse 0.9s ease-in-out infinite;
}

.vStatus[data-state="recording"] .vStatus__text { color: #dc2626; }
.vStatus[data-state="recording"] .vStatus__time {
  display: inline;
  color: #dc2626;
  animation: dotPulse 1s ease-in-out infinite;
}

.vStatus[data-state="ready"] {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

.vStatus[data-state="ready"] .vStatus__dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.vStatus[data-state="ready"] .vStatus__time { display: inline; color: var(--accent); }

/* 22-bar waveform — visible only while recording */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 0;
  margin: 0 auto;
  width: fit-content;
  opacity: 0;
  overflow: hidden;
  transition: height 0.25s ease, opacity 0.22s ease, margin 0.22s ease;
}

.recBox.is-recording ~ .waveform,
.voicePanel.is-recording .waveform {
  /* legacy fallback selectors */
}

#tabVoice.is-recording .waveform {
  height: 56px;
  opacity: 1;
  margin: 0 auto 14px;
}

.waveform span {
  display: block;
  width: 4px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(30, 145, 137, 0.4));
  box-shadow: 0 0 6px rgba(30, 145, 137, 0.4);
}

#tabVoice.is-recording .waveform span {
  animation: waveJump 0.9s ease-in-out infinite;
}

#tabVoice.is-recording .waveform span:nth-child(1)  { animation-delay: 0.00s; }
#tabVoice.is-recording .waveform span:nth-child(2)  { animation-delay: 0.05s; }
#tabVoice.is-recording .waveform span:nth-child(3)  { animation-delay: 0.10s; }
#tabVoice.is-recording .waveform span:nth-child(4)  { animation-delay: 0.15s; }
#tabVoice.is-recording .waveform span:nth-child(5)  { animation-delay: 0.20s; }
#tabVoice.is-recording .waveform span:nth-child(6)  { animation-delay: 0.25s; }
#tabVoice.is-recording .waveform span:nth-child(7)  { animation-delay: 0.30s; }
#tabVoice.is-recording .waveform span:nth-child(8)  { animation-delay: 0.35s; }
#tabVoice.is-recording .waveform span:nth-child(9)  { animation-delay: 0.40s; }
#tabVoice.is-recording .waveform span:nth-child(10) { animation-delay: 0.45s; }
#tabVoice.is-recording .waveform span:nth-child(11) { animation-delay: 0.50s; }
#tabVoice.is-recording .waveform span:nth-child(12) { animation-delay: 0.45s; }
#tabVoice.is-recording .waveform span:nth-child(13) { animation-delay: 0.40s; }
#tabVoice.is-recording .waveform span:nth-child(14) { animation-delay: 0.35s; }
#tabVoice.is-recording .waveform span:nth-child(15) { animation-delay: 0.30s; }
#tabVoice.is-recording .waveform span:nth-child(16) { animation-delay: 0.25s; }
#tabVoice.is-recording .waveform span:nth-child(17) { animation-delay: 0.20s; }
#tabVoice.is-recording .waveform span:nth-child(18) { animation-delay: 0.15s; }
#tabVoice.is-recording .waveform span:nth-child(19) { animation-delay: 0.10s; }
#tabVoice.is-recording .waveform span:nth-child(20) { animation-delay: 0.05s; }
#tabVoice.is-recording .waveform span:nth-child(21) { animation-delay: 0.00s; }
#tabVoice.is-recording .waveform span:nth-child(22) { animation-delay: 0.05s; }

@keyframes waveJump {
  0%, 100% { height: 8px; }
  50%      { height: 38px; }
}

/* Big record orb with 3 concentric pulse rings (waiter screenshot 1). */
.vRecOrb {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 18px;
}

.vRecRing {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
}

/* When recording, switch ring color to red and start the staggered scale-out */
.vRecOrb[data-state="recording"] .vRecRing {
  border-color: #ef4444;
  animation: vRingExpand 1.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.vRecOrb[data-state="recording"] .vRecRing--1 { animation-delay: 0.0s;  }
.vRecOrb[data-state="recording"] .vRecRing--2 { animation-delay: 0.6s;  }
.vRecOrb[data-state="recording"] .vRecRing--3 { animation-delay: 1.2s;  }

@keyframes vRingExpand {
  0%   { transform: scale(0.65); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0;   }
}

.vRecBtn {
  position: relative;
  z-index: 2;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  box-shadow:
    0 12px 40px rgba(30, 145, 137, 0.45),
    inset 0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 -8px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.vRecBtn:active {
  transform: scale(0.96);
}

.vRecOrb[data-state="recording"] .vRecBtn {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #14181f;
  box-shadow:
    0 12px 40px rgba(239, 68, 68, 0.55),
    inset 0 4px 14px rgba(0, 0, 0, 0.18),
    inset 0 -8px 18px rgba(0, 0, 0, 0.22);
  animation: vRecHeartbeat 1.2s ease-in-out infinite;
}

.vRecOrb[data-state="recording"] .vRecBtn__mic { display: none; }

.vRecOrb[data-state="recording"] .vRecBtn::after {
  content: "";
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 8px;
}

@keyframes vRecHeartbeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

.vRecHint {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 4px;
}

.recPlayback {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 14px;
}

.recPlayback__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.recPlayback audio {
  width: 100%;
  margin-bottom: 10px;
  filter: invert(0.85);
  /* the native player is light by default; invert to fit the dark theme */
}

.recPlayback__actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 4px;
}

.recPlayback__delete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: transform 0.12s ease;
}

.recPlayback__delete:active { transform: scale(0.97); }

.recPlayback__send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  box-shadow:
    0 8px 22px var(--accent-glow),
    inset 0 1px 0 rgba(0, 0, 0, 0.25);
  animation: cartViewPulse 1800ms ease-in-out infinite;
  transition: transform 0.12s ease, opacity 0.18s ease;
}

.recPlayback__send:active { transform: scale(0.97); }

.recPlayback__send:disabled {
  opacity: 0.5;
  pointer-events: none;
  animation: none;
}

/* voice banner inside the cart sheet */
.voiceBanner {
  margin: 0 18px 8px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

/* ───────────── history list — waiter parity (screenshots 3, 4) ───────────── */
.histHead {
  padding: 18px 16px 12px;
  text-align: center;
}

.histHead h2 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.histHead__sub {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.histStats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 16px 12px;
}

.histStat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.histStat__label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 1.5px;
}

.histStat__value {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
}

.histStat--total {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  box-shadow: 0 0 14px var(--accent-glow);
}

.histStat--total .histStat__value {
  color: var(--accent);
}

.histSubTab {
  display: flex;
  gap: 6px;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 0 16px 14px;
  padding: 4px;
}

.histSubTab__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 0.3px;
  transition: all 0.18s ease;
}

.histSubTab__btn.is-active {
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.histList {
  padding: 6px 16px 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* bottom action bar (sticky) */
.histActionBar {
  position: fixed;
  bottom: 76px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 16px;
  z-index: 8;
}

.histActionBar__totals {
  margin-bottom: 12px;
}

.histTotalRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  font-size: 12px;
  color: var(--text-muted);
}

.histTotalRow span:last-child {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--text);
}

.histTotalRow--big {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.histTotalRow--big span:first-child {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
}

.histTotalRow--big span:last-child {
  font-size: 18px;
  font-weight: 900;
  color: var(--accent);
}

.histActionBar__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.histActionBar__addMore,
.histActionBar__viewBill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  transition: transform 0.12s ease;
}

.histActionBar__addMore {
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.histActionBar__viewBill {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.18);
  color: var(--text);
}

.histActionBar__addMore:active,
.histActionBar__viewBill:active { transform: scale(0.97); }

.histCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  animation: rowIn 0.28s ease-out both;
}

.histCard__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.histCard__id {
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-faint);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.histCard__time {
  font-size: 11px;
  color: var(--text-faint);
}

.histCard__status {
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.histCard__status[data-status="placed"] {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.histCard__status[data-status="pending"],
.histCard__status[data-status="preparing"] {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.4);
  animation: statusBlink 1.6s ease-in-out infinite;
}

@keyframes statusBlink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
  }
}

.histCard__status[data-status="ready"] {
  background: rgba(30, 145, 137, 0.18);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  box-shadow: 0 0 12px var(--accent-glow);
}

.histCard__status[data-status="served"],
.histCard__status[data-status="billed"],
.histCard__status[data-status="completed"] {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.histCard__items {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
}

.histCard__items .lineItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.histCard__items .lineItem:last-child {
  border-bottom: none;
}

.histCard__items .lineQty {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-right: 8px;
}

.histCard__items .lineNote {
  font-size: 11px;
  color: var(--warn);
  margin-top: 2px;
  font-style: italic;
}

.histCard__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 700;
}

.histCard__total span:first-child {
  color: var(--text-faint);
  font-family: "Inter", sans-serif;
  letter-spacing: 1.2px;
  font-size: 11px;
  text-transform: uppercase;
}

.histCard__total span:last-child {
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
}

/* ───────────── live-status card top row ───────────── */
.histCard__topRow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.histCard__numBadge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 16px var(--accent-glow);
}

.histCard__numBadge--blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #14181f;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.4);
}

.histCard__topInfo {
  flex: 1;
  min-width: 0;
}

.histCard__topInfo h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.histCard__topInfo p {
  font-size: 11px;
  color: var(--text-faint);
}

/* vertical timeline (mirrors waiter LiveStatusView) */
.tlV {
  display: flex;
  flex-direction: column;
  margin: 8px 0 12px;
}

.tlV__row {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  padding: 8px 0;
  position: relative;
}

.tlV__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.tlV__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
}

.tlV__row:not(:last-child) .tlV__dot::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: calc(100% + 16px);
  background: rgba(0, 0, 0, 0.10);
  transform: translateX(-50%);
}

.tlV__row.is-done .tlV__dot,
.tlV__row.is-active .tlV__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.tlV__row.is-done .tlV__dot::after,
.tlV__row.is-active .tlV__dot::after {
  background: var(--bg);
}

.tlV__row.is-done .tlV__dot::before,
.tlV__row.is-active .tlV__dot::before {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.tlV__row.is-active .tlV__dot {
  animation: tlActiveBreath 1.4s ease-in-out infinite;
}

.tlV__label {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-faint);
  line-height: 1.2;
}

.tlV__sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.tlV__row.is-active .tlV__label,
.tlV__row.is-done .tlV__label {
  color: var(--accent);
}

/* "Order Progress" bar with shimmer */
.opBar {
  margin: 12px 0 8px;
}

.opBar__label {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.opBar__label span:first-child { color: var(--text-faint); }
.opBar__label span:last-child  { color: var(--accent); }

.opBar__track {
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  position: relative;
}

.opBar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #1e9189, var(--accent));
  background-size: 200% 100%;
  border-radius: 3px;
  position: relative;
  animation: shimmerSweep 2.5s ease-in-out infinite;
  box-shadow: 0 0 10px var(--accent-glow);
}

@keyframes shimmerSweep {
  0%   { background-position: 0% 0%; }
  100% { background-position: -200% 0%; }
}

/* ETA pill (centered) */
.etaPill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px auto 4px;
  padding: 8px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.histCard__statusDone {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* aggregated log view (waiter screenshot 4) */
.logCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  animation: rowIn 0.3s ease-out both;
}

.logCard__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
}

.logCard__count {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 600;
}

.logItemRow {
  display: grid;
  grid-template-columns: 14px 30px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.logItemRow:last-child { border-bottom: none; }

.logItemRow__veg {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}

.logItemRow__qty {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 900;
  box-shadow: 0 0 8px var(--accent-glow);
}

.logItemRow__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.logItemRow__math {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}

.logItemRow__total {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
}

.logTimelineHeader {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin: 8px 4px 8px;
  text-transform: uppercase;
}

.logOrderTile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
}

.logOrderTile__numBadge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #14181f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.35);
}

.logOrderTile__info {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
}

.logOrderTile__time {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-faint);
  margin-top: 2px;
}

.logOrderTile__status {
  flex-shrink: 0;
}

/* ───────────── (legacy) horizontal-bar timeline still used for badge area ───────────── */

.histCard__live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
}

.histCard__liveBadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 100px;
  background: rgba(30, 145, 137, 0.14);
  border: 1px solid var(--accent-border);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
}

.histCard__liveBadge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: dotPulse 1s ease-in-out infinite;
}

.histCard__eta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 100px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.histCard__eta svg {
  width: 11px;
  height: 11px;
}

.histCard__timeline {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 4px 6px;
}

.histCard__timeline::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 1px;
  z-index: 0;
}

.tlStep {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: 2px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.tlStep::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.tlStep.is-done {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.tlStep.is-done::after {
  background: var(--bg);
  width: 8px;
  height: 4px;
  border-radius: 1px;
  border: solid #000;
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg) translate(1px, -1px);
}

.tlStep.is-current {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(30, 145, 137, 0.18), 0 0 14px var(--accent-glow);
  animation: tlActiveBreath 1.4s ease-in-out infinite;
}

.tlStep.is-current::after {
  background: var(--accent);
  width: 8px;
  height: 8px;
  box-shadow: 0 0 8px var(--accent-glow);
}

/* connector segment (left half + right half) — colour-track progress */
.tlStep::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  z-index: -1;
}

.tlStep:first-child::before {
  display: none;
}

.tlStep.is-done::before,
.tlStep.is-current::before {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

@keyframes tlActiveBreath {
  0%, 100% { box-shadow: 0 0 0 4px rgba(30, 145, 137, 0.18), 0 0 14px var(--accent-glow); }
  50%      { box-shadow: 0 0 0 7px rgba(30, 145, 137, 0.10), 0 0 18px var(--accent-glow); }
}

.tlLabels {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-faint);
  text-transform: uppercase;
  margin-top: 6px;
  padding: 0 4px;
}

.tlLabels span {
  flex: 1;
  text-align: center;
  transition: color 0.22s ease;
}

.tlLabels span:first-child { text-align: left; }
.tlLabels span:last-child  { text-align: right; }

.tlLabels span.is-active {
  color: var(--accent);
}

.tlLabels span.is-done {
  color: rgba(30, 145, 137, 0.7);
}

/* ───────────── toast ───────────── */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  z-index: 80;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.22s ease-out;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ───────────── SUCCESS SCREEN (waiter screenshot 7) ───────────── */
.success {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 50;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 60px;
  animation: rowIn 0.32s ease-out both;
}

.success__brandTag {
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-faint);
  font-weight: 800;
  margin-bottom: 22px;
}

.successOrb {
  position: relative;
  width: 220px;
  height: 220px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.successOrb__center {
  position: relative;
  z-index: 3;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1e9189);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 16px 48px rgba(30, 145, 137, 0.5),
    inset 0 4px 14px rgba(0, 0, 0, 0.22),
    inset 0 -10px 22px rgba(0, 0, 0, 0.18);
  animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.successOrb__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: successRingExpand 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

.successOrb__ring--1 { animation-delay: 0s;   }
.successOrb__ring--2 { animation-delay: 0.8s; }
.successOrb__ring--3 { animation-delay: 1.6s; }

@keyframes successRingExpand {
  0%   { transform: scale(0.55); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0;   }
}

.successOrb__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: successDotFloat 2.6s ease-in-out infinite;
}

.successOrb__dot--1 { top: 18%;  left: 8%;  animation-delay: 0s;    }
.successOrb__dot--2 { top: 12%;  right: 14%; animation-delay: 0.6s; }
.successOrb__dot--3 { bottom: 20%; left: 14%; animation-delay: 1.2s; }
.successOrb__dot--4 { bottom: 12%; right: 12%; animation-delay: 1.8s; }

@keyframes successDotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50%      { transform: translateY(-8px) scale(1.2); opacity: 1; }
}

.success__title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
  text-align: center;
}

.success__sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 22px;
}

.successStats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 16px;
}

.successStat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.successStat__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--text-faint);
}

.successStat__value {
  font-size: 32px;
  font-weight: 900;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
}

.successStat__value small {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
  font-family: "Inter", sans-serif;
}

.successCard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 16px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 18px;
}

.successActionBar {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 18px;
}

.successAction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  transition: transform 0.12s ease;
}

.successAction--main {
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.successAction--ghost {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.14);
  color: var(--text);
}

.successAction:active { transform: scale(0.96); }

.success__watermark {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

/* ───────────── BILL MODAL (waiter screenshot 6) ───────────── */
.billModal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: rowIn 0.22s ease-out;
}

.billModal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.billModal__panel {
  position: relative;
  width: 100%;
  max-width: 380px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 24px 24px;
  text-align: center;
}

.billModal__brandIcon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(30, 145, 137, 0.22), rgba(30, 145, 137, 0.08));
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 18px rgba(30, 145, 137, 0.22);
}

.billModal__title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.billModal__addr,
.billModal__phone {
  font-size: 13px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

.billModal__phone {
  margin-bottom: 4px;
}

.billModal__divider {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 6px, transparent 6px, transparent 12px);
  margin: 14px 0;
}

.billModal__metaGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  text-align: left;
  font-size: 12px;
}

.billModal__metaGrid > div {
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.billModal__metaRight {
  justify-content: flex-end;
}

.billModal__metaGrid span {
  color: var(--text-muted);
}

.billModal__metaGrid strong {
  color: var(--text);
  font-weight: 800;
}

.billModal__tableHead {
  display: grid;
  grid-template-columns: 2fr 0.6fr 0.8fr 0.8fr;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  padding: 0 0 8px;
  text-align: left;
}

.billModal__tableHead span:nth-child(2),
.billModal__tableHead span:nth-child(3),
.billModal__tableHead span:nth-child(4) {
  text-align: right;
}

.billModal__rows .billRow {
  display: grid;
  grid-template-columns: 2fr 0.6fr 0.8fr 0.8fr;
  font-size: 13px;
  padding: 4px 0;
  text-align: left;
}

.billModal__rows .billRow span:nth-child(2),
.billModal__rows .billRow span:nth-child(3),
.billModal__rows .billRow span:nth-child(4) {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
}

.billModal__totals {
  text-align: left;
}

.billModal__totRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 3px 0;
  color: var(--text-muted);
}

.billModal__totRow span:last-child {
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  font-weight: 700;
}

.billModal__totRow--big span:first-child {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.billModal__totRow--big span:last-child {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
}

.billModal__thanks {
  text-align: center;
  margin-top: 18px;
}

.billModal__star {
  font-size: 22px;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent-glow);
}

.billModal__thanks h3 {
  font-size: 16px;
  font-weight: 900;
  margin-top: 6px;
}

.billModal__thanks p {
  font-size: 11px;
  color: var(--text-muted);
}

.billModal__poweredBy {
  margin-top: 10px;
  font-size: 9px;
  color: var(--text-faint);
  letter-spacing: 1.4px;
  font-weight: 800;
}

.billModal__poweredBy strong {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
}

.billModal__actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  margin-top: 18px;
}

.billModal__actions--3col {
  grid-template-columns: 1fr 1.4fr 1fr;
}

.billModal__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 46px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  transition: transform 0.12s ease;
}

.billModal__btn--ghost {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.16);
  color: var(--text);
}

.billModal__btn--primary {
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  box-shadow: 0 6px 18px var(--accent-glow);
}

.billModal__btn:active { transform: scale(0.97); }

/* print: hide everything but the bill */
@media print {
  body * { visibility: hidden; }
  #billModal, #billModal * { visibility: visible; }
  .billModal__backdrop { background: transparent !important; }
  .billModal__panel { border: none; box-shadow: none; max-height: none; }
  .billModal__actions { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   PAYMENT COMPLETE — ultra-premium celebration screen.
   Triggered when the cashier marks the customer's order(s) as billed.
   Appears as a full-screen overlay with multi-layered animation:
     - Two slow-floating green orbs in the background
     - Sparkle field (40 small twinkling dots)
     - Big check orb with 4 expanding rings + 8 floating accent dots
     - Pulsing star burst
     - Receipt-style detail strip
     - Glowing "Start New Order" CTA → resets state to welcome
   ═══════════════════════════════════════════════════════════════════ */
.payDone {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, #eef5f4 0%, #ffffff 60%, #dde2e8 100%);
  z-index: 70;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 18px 60px;
  animation: payDoneFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes payDoneFadeIn {
  0%   { opacity: 0; transform: scale(0.94); }
  100% { opacity: 1; transform: scale(1); }
}

/* Ambient floating orbs */
.payDone__bgOrb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
}
.payDone__bgOrb--1 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(30, 145, 137, 0.5), transparent 70%);
  top: -80px; left: -80px;
  animation: payDoneOrbFloat 12s ease-in-out infinite;
}
.payDone__bgOrb--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(43, 214, 10, 0.45), transparent 70%);
  bottom: -100px; right: -90px;
  animation: payDoneOrbFloat 14s ease-in-out infinite reverse;
}

@keyframes payDoneOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(20px, -28px); }
  66%      { transform: translate(-22px, 18px); }
}

/* Sparkle field — 40 randomly-placed twinkling dots, JS injects them */
.payDone__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.payDone__sparkles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
  opacity: 0;
  animation: sparkleTwinkle 2.4s ease-in-out infinite;
}

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  50%      { opacity: 1; transform: scale(1.4); }
}

/* Inner column */
.payDone__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 420px;
}

.payDone__brandTag {
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--text-faint);
  font-weight: 800;
  margin-bottom: 22px;
}

/* Big check orb */
.payDone__orb {
  position: relative;
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.payDone__orbCenter {
  position: relative;
  z-index: 4;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1e9189);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 18px 56px rgba(30, 145, 137, 0.55),
    0 0 0 4px rgba(30, 145, 137, 0.18),
    inset 0 6px 18px rgba(0, 0, 0, 0.25),
    inset 0 -12px 26px rgba(0, 0, 0, 0.18);
  animation: payDoneCenterPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes payDoneCenterPop {
  0%   { transform: scale(0.3); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.payDone__orbRing {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: payDoneRingExpand 2.8s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}
.payDone__orbRing--1 { animation-delay: 0s;   }
.payDone__orbRing--2 { animation-delay: 0.7s; }
.payDone__orbRing--3 { animation-delay: 1.4s; }
.payDone__orbRing--4 { animation-delay: 2.1s; }

@keyframes payDoneRingExpand {
  0%   { transform: scale(0.5); opacity: 0.85; border-width: 3px; }
  100% { transform: scale(1.45); opacity: 0; border-width: 1px; }
}

.payDone__orbDot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
  animation: payDoneDotFloat 3s ease-in-out infinite;
}
.payDone__orbDot--1 { top: 10%;    left: 10%;    animation-delay: 0.0s; }
.payDone__orbDot--2 { top: 8%;     right: 12%;   animation-delay: 0.4s; }
.payDone__orbDot--3 { top: 50%;    left: -2%;    animation-delay: 0.8s; }
.payDone__orbDot--4 { top: 50%;    right: -2%;   animation-delay: 1.2s; }
.payDone__orbDot--5 { bottom: 10%; left: 12%;    animation-delay: 1.6s; }
.payDone__orbDot--6 { bottom: 8%;  right: 10%;   animation-delay: 2.0s; }
.payDone__orbDot--7 { top: 28%;    left: 50%;    animation-delay: 2.4s; }
.payDone__orbDot--8 { bottom: 26%; left: 50%;    animation-delay: 0.6s; }

@keyframes payDoneDotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50%      { transform: translateY(-12px) scale(1.4); opacity: 1; }
}

/* Title + sub */
.payDone__title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.6px;
  background: linear-gradient(135deg, #14181f, #1e9189);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  text-align: center;
  animation: payDoneSlideUp 0.55s 0.18s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes payDoneSlideUp {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.payDone__sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 22px;
  animation: payDoneSlideUp 0.55s 0.26s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* Big paid amount card */
.payDone__amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 28px;
  background: linear-gradient(135deg, rgba(30, 145, 137, 0.14), rgba(30, 145, 137, 0.04));
  border: 1px solid var(--accent-border);
  border-radius: 18px;
  margin-bottom: 22px;
  box-shadow:
    0 0 0 1px rgba(30, 145, 137, 0.10) inset,
    0 14px 34px rgba(30, 145, 137, 0.20);
  animation: payDoneSlideUp 0.55s 0.36s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.payDone__amountLabel {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--accent);
  font-weight: 800;
}

.payDone__amountValue {
  font-family: "JetBrains Mono", monospace;
  font-size: 38px;
  font-weight: 900;
  color: #14181f;
  letter-spacing: -1px;
}

/* 5-star burst */
.payDone__stars {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  animation: payDoneSlideUp 0.55s 0.46s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.payDone__star {
  font-size: 30px;
  color: #facc15;
  text-shadow: 0 0 12px rgba(250, 204, 21, 0.5);
  animation: payDoneStarPulse 1.4s ease-in-out infinite;
}
.payDone__star:nth-child(1) { animation-delay: 0.0s; }
.payDone__star:nth-child(2) { animation-delay: 0.15s; }
.payDone__star:nth-child(3) { animation-delay: 0.3s; }
.payDone__star:nth-child(4) { animation-delay: 0.45s; }
.payDone__star:nth-child(5) { animation-delay: 0.6s; }

@keyframes payDoneStarPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.15) rotate(-6deg); opacity: 1; }
}

.payDone__rateHint {
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  animation: payDoneSlideUp 0.55s 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

/* Receipt-style detail strip */
.payDone__receipt {
  width: 100%;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  animation: payDoneSlideUp 0.55s 0.62s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.payDone__receiptRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
}
.payDone__receiptRow:last-child { border-bottom: none; }
.payDone__receiptRow span     { color: var(--text-faint); letter-spacing: 0.4px; }
.payDone__receiptRow strong   {
  color: #14181f;
  font-weight: 800;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}

/* Big primary CTA */
.payDone__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #1e9189);
  color: #000;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1.2px;
  box-shadow:
    0 14px 34px var(--accent-glow),
    inset 0 1px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.16s ease, box-shadow 0.18s ease;
  animation: payDoneCtaBreath 2.2s ease-in-out infinite,
             payDoneSlideUp 0.55s 0.72s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes payDoneCtaBreath {
  0%, 100% { box-shadow: 0 14px 34px rgba(30, 145, 137, 0.45), inset 0 1px 0 rgba(0, 0, 0, 0.3); }
  50%      { box-shadow: 0 16px 44px rgba(30, 145, 137, 0.65), inset 0 1px 0 rgba(0, 0, 0, 0.3); }
}

.payDone__cta:active { transform: scale(0.97); }

.payDone__footer {
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--text-faint);
  margin-top: 22px;
  text-align: center;
  animation: payDoneSlideUp 0.55s 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
