@import url("https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@400;500;600;700;800&display=swap");

:root {
  --background: #f5f5f3;
  --ink: #111111;
  --primary: #151515;
  --primary-dark: #000000;
  --muted: #747474;
  --mint: #dff0e9;
  --sand: #f2e9da;
  --peach: #f6dfd8;
  --cream: #fafafa;
  --white: #ffffff;
  --line: #ddddda;
  --border: #dfe8e4;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
  box-shadow: none !important;
}

html {
  background: #e6e6e4;
}

body,
button,
a {
  font-family: "Baloo Bhaijaan 2", sans-serif;
}

body {
  margin: 0;
  min-height: 100svh;
  background: #e6e6e4;
  color: var(--ink);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(0, 0, 0, 0.16);
  outline-offset: 3px;
}

.app-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 500px;
  min-height: 100svh;
  min-height: 100dvh;
  margin-inline: auto;
  padding:
    calc(24px + var(--safe-top))
    calc(20px + var(--safe-right))
    calc(28px + var(--safe-bottom))
    calc(20px + var(--safe-left));
  overflow: hidden;
  background: var(--background);
}

.app-shell::before {
  position: absolute;
  z-index: -2;
  top: -130px;
  right: -110px;
  width: 300px;
  height: 300px;
  border: 48px solid rgba(229, 229, 227, 0.9);
  border-radius: 50%;
  content: "";
}

.ambient-shape {
  position: absolute;
  z-index: -1;
  bottom: 98px;
  left: -70px;
  width: 165px;
  height: 165px;
  border: 1px solid #d6d6d2;
  border-radius: 46% 54% 61% 39%;
  transform: rotate(24deg);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.wordmark-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.wordmark-symbol img,
.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 12px;
}

.language {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #555555;
  font-size: 11px;
  font-weight: 700;
  transition: background-color 160ms ease, transform 160ms ease;
}

.language svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.welcome {
  padding: 46px 2px 30px;
}

.guest-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.guest-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid #e2e2de;
  background: #fff;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  color: #666666;
  font-size: 11px;
  font-weight: 600;
}

.status i {
  width: 7px;
  height: 7px;
  border: 2px solid #d1d1ce;
  border-radius: 50%;
  background: #171717;
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.welcome h1 {
  margin: 0;
  font-size: clamp(31px, 9vw, 42px);
  font-weight: 800;
  letter-spacing: -1.3px;
  line-height: 1.17;
}

.welcome h1 em {
  color: var(--primary);
  font-style: normal;
}

.table-number {
  display: grid;
  width: 84px;
  height: 104px;
  flex: 0 0 84px;
  align-content: center;
  justify-items: center;
  border: 1px solid #d4d4d0;
  border-radius: 42px 42px 14px 42px;
  background: linear-gradient(145deg, #ffffff 0%, #e6e6e3 100%);
  transform: rotate(-2deg);
}

.table-number small {
  color: #666666;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}

.table-number strong {
  margin-top: 4px;
  font-size: 29px;
  font-weight: 800;
  line-height: 1;
}

.subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.main-action {
  position: relative;
  display: flex;
  min-height: 130px;
  align-items: center;
  gap: 15px;
  padding: 20px;
  overflow: hidden;
  border-radius: 30px 30px 12px 30px;
  background: var(--primary);
  color: #fff;
  text-align: right;
  transition: background-color 160ms ease, transform 160ms ease;
}

.main-action::after {
  position: absolute;
  bottom: -63px;
  left: -44px;
  width: 146px;
  height: 146px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.card-watermark {
  position: absolute;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
}

.waiter-art {
  bottom: -42px;
  left: -9px;
  width: 190px;
  opacity: 0.34;
  transform: rotate(-5deg);
}

.action-copy {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 1;
  align-self: flex-end;
}

.action-copy small {
  margin-bottom: -1px;
  color: #bcd6ce;
  font-size: 11px;
  font-weight: 500;
}

.action-copy strong {
  font-size: 23px;
  font-weight: 700;
}

.action-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-family: sans-serif;
  font-size: 19px;
  transition: transform 160ms ease;
}

.secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 174px;
  align-content: space-between;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px 25px 25px 25px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f0ee 100%);
  color: var(--ink);
  text-align: right;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.service-card.bill-card {
  border-radius: 25px 12px 25px 25px;
  background: linear-gradient(145deg, #fbfbfa 0%, #e9e9e6 100%);
}

.receipt-art,
.menu-art {
  top: -22px;
  left: -1px;
  width: 150px;
  border-radius: 24%;
  opacity: 0.42;
  clip-path: inset(2px round 24%);
  filter: saturate(0.78);
}

.menu-art {
  opacity: 0.38;
}

.service-card.menu-card {
  border-radius: 25px 25px 12px 25px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f0ee 100%);
}

.service-card.google-card {
  border-radius: 25px 25px 25px 12px;
  background: linear-gradient(145deg, #fbfbfa 0%, #e9e9e6 100%);
}

.service-art {
  top: -18px;
  bottom: auto;
  left: 3px;
  width: 158px;
  border-radius: 0;
  opacity: 0.68;
  clip-path: none;
  filter: saturate(0.72);
  transform: none;
}

.waiter-art.service-art {
  top: -13px;
}

.google-art {
  top: 19px;
  left: 34px;
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 0.22;
  mix-blend-mode: normal;
}

.card-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: end;
  margin-top: 88px;
}

.card-copy strong {
  font-size: 17px;
  font-weight: 700;
}

.card-copy small {
  margin-top: -2px;
  color: #666666;
  font-size: 10px;
}

.mini-arrow {
  position: absolute;
  bottom: 16px;
  left: 16px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
  color: rgba(0, 0, 0, 0.42);
  transition: transform 160ms ease;
}

.service-card:hover .mini-arrow {
  transform: translateX(-3px);
}

.review-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.google-mark {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border-radius: 14px;
  background: var(--white);
}

.google-mark img {
  width: 19px;
  height: 19px;
}

.review-copy {
  display: grid;
  flex: 1;
}

.review-copy small {
  color: var(--muted);
  font-size: 9px;
}

.review-copy strong {
  font-size: 12px;
  font-weight: 700;
}

.stars {
  direction: ltr;
  color: #b08a43;
  font-family: sans-serif;
  font-size: 9px;
  letter-spacing: 1px;
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 29px;
  color: #888888;
  font-size: 9px;
}

footer i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #999999;
}

.toast {
  position: fixed;
  z-index: 10;
  bottom: calc(22px + var(--safe-bottom));
  left: 50%;
  display: flex;
  width: max-content;
  max-width: calc(100% - 40px - var(--safe-left) - var(--safe-right));
  align-items: center;
  gap: 10px;
  padding: 11px 16px 11px 12px;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  background: #111111;
  color: #fff;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.toast-check {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  background: #eeeeec;
  color: var(--primary);
  font-family: sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.main-action:hover {
  background: var(--primary-dark);
}

.review-card:hover,
.language:hover {
  background: var(--white);
}

.service-card:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.main-action:hover .action-arrow {
  transform: translateX(-3px);
}

.main-action:active,
.service-card:active,
.review-card:active,
.language:active {
  transform: scale(0.98);
}

@media (min-width: 501px) {
  body {
    padding: 24px;
  }

  .app-shell {
    min-height: 850px;
    border: 1px solid #d4d4d1;
    border-radius: 36px;
  }
}

@media (max-width: 360px) {
  .app-shell {
    padding-inline: calc(16px + var(--safe-left)) calc(16px + var(--safe-right));
  }

  .welcome {
    padding-top: 36px;
  }

  .welcome h1 {
    font-size: 29px;
  }

  .table-number {
    width: 74px;
    height: 92px;
    flex-basis: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Staff / Auth shared ------------------------------- */
.staff-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 560px;
  min-height: 100svh;
  min-height: 100dvh;
  margin-inline: auto;
  padding:
    calc(22px + var(--safe-top))
    calc(18px + var(--safe-right))
    calc(36px + var(--safe-bottom))
    calc(18px + var(--safe-left));
  overflow: hidden;
  background: var(--background);
}

.staff-shell.has-bottom-nav {
  overflow: visible;
  padding-bottom: calc(96px + var(--safe-bottom));
}

.staff-shell::before {
  position: absolute;
  z-index: -1;
  top: -120px;
  right: -100px;
  width: 280px;
  height: 280px;
  border: 44px solid rgba(229, 229, 227, 0.9);
  border-radius: 50%;
  content: "";
}

.auth-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: calc(28px + var(--safe-top)) calc(28px + var(--safe-bottom));
}

.auth-center {
  width: 100%;
  max-width: 380px;
}

.auth-brand {
  justify-content: center;
  margin-bottom: 22px;
}

.auth-center .page-title {
  margin-top: 0;
  text-align: center;
}

.auth-center .page-sub {
  text-align: center;
}

.auth-footer {
  margin-top: 16px;
  text-align: center;
}

.auth-footer a {
  color: #111;
  font-weight: 700;
  text-decoration: none;
}

.panel {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f0ee 100%);
  padding: 16px;
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
}

.field input,
.field select {
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfbfb;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.field input:focus,
.field select:focus {
  border-color: #111;
  background: #fff;
  outline: none;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

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

.btn-primary {
  background: #151515;
  color: #fff;
}

.btn-secondary {
  background: #ececeb;
  color: #111;
}

.btn-ghost {
  background: transparent;
  color: #111;
  border: 1px solid var(--line);
}

.btn-sm {
  min-height: 40px;
  width: auto;
  border-radius: 12px;
  font-size: 13px;
  padding: 0 12px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  margin: 16px 0;
}

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

.tabs.tabs-4 {
  grid-template-columns: repeat(4, 1fr);
}

.tabs.tabs-5 {
  grid-template-columns: repeat(5, 1fr);
}

.tabs.tabs-5 .tab {
  font-size: 11px;
  padding-inline: 2px;
}

.tabs.tabs-6 {
  grid-template-columns: repeat(6, 1fr);
}

.tabs.tabs-6 .tab {
  font-size: 10px;
  padding-inline: 2px;
}

/* App-style bottom navigation */
.bottom-nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(100%, 560px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  padding:
    8px 6px
    calc(8px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 6px 2px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #7a7a76;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.bottom-nav-item:active {
  transform: scale(0.96);
}

.bottom-nav-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  transition: background-color 160ms ease, color 160ms ease;
}

.bottom-nav-icon svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0;
}

.bottom-nav-item.active {
  background: transparent;
  color: #111;
}

.bottom-nav-item.active .bottom-nav-icon {
  background: #111;
  color: #fff;
}

.zone-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2e9da;
  color: #8a5a12;
  font-size: 11px;
  font-weight: 800;
}

.zone-create {
  margin-bottom: 10px;
}

.zone-hint {
  margin: 0 2px 12px;
  line-height: 1.45;
}

.zones-list {
  display: grid;
  gap: 14px;
}

.zone-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 24px;
  background: #fff;
  padding: 16px;
}

.zone-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.zone-card-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.zone-card-title strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.zone-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.zone-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  display: grid;
  gap: 10px;
}

.zone-section-last {
  margin-bottom: 0;
}

.zone-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #555;
}

.zone-rename {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.zone-rename input {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfbfb;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.zone-rename input:focus {
  border-color: #111;
  background: #fff;
  outline: none;
}

.zone-rename .btn-sm {
  min-height: 48px;
  min-width: 64px;
  border-radius: 16px;
}

.zone-empty {
  width: 100%;
  padding: 14px 12px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: #fafafa;
}

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

.check-grid-people {
  display: grid;
  gap: 8px;
}

.check-grid-tables {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.check-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfbfb;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  user-select: none;
}

.check-pill:active {
  transform: scale(0.98);
}

.check-pill-text {
  min-width: 0;
  line-height: 1.2;
}

.check-pill input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #c8c8c4;
  border-radius: 7px;
  background: #fff;
  display: grid;
  place-content: center;
  cursor: pointer;
}

.check-pill input::after {
  content: "";
  width: 10px;
  height: 6px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) scale(0);
  transition: transform 120ms ease;
  margin-top: -1px;
}

.check-pill:has(input:checked) {
  background: #eef3f1;
  border-color: #9bb5ad;
}

.check-pill input:checked {
  background: #146c5f;
  border-color: #146c5f;
}

.check-pill input:checked::after {
  transform: rotate(-45deg) scale(1);
}

.check-pill-table {
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 64px;
  padding: 10px 8px;
  text-align: center;
}

.check-pill-table .check-pill-text {
  font-size: 12px;
  font-weight: 800;
}

.zone-section .btn {
  min-height: 46px;
  border-radius: 14px;
}

.btn-danger {
  background: #f6dfd8;
  color: #9e463b;
}

.btn-danger:hover {
  background: #f0d0c6;
}

.plan-cards {
  display: grid;
  gap: 10px;
}

.plan-card {
  border: 1px solid #dfe8e4;
  border-radius: 22px;
  background: #fff;
  padding: 14px 16px;
}

.plan-card.selected {
  border-color: #146c5f;
  background: #dff0e9;
}

.plan-card .plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.plan-card .plan-price {
  font-size: 22px;
  font-weight: 800;
  color: #146c5f;
}

.plan-card .compare {
  text-decoration: line-through;
  color: #71817d;
  font-size: 13px;
  margin-inline-start: 6px;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f2e9da;
  color: #8a5a12;
  font-size: 12px;
  font-weight: 800;
}

.auth-center .tabs {
  margin-top: 8px;
  margin-bottom: 14px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.tabs.tabs-4 .tab {
  font-size: 12px;
  padding-inline: 4px;
}

.tab {
  min-height: 42px;
  border-radius: 14px;
  background: transparent;
  color: #666;
  font-weight: 700;
  font-size: 13px;
}

.tab.active {
  background: #111;
  color: #fff;
}

.bottom-nav .tab.bottom-nav-item {
  min-height: 58px;
  border-radius: 16px;
  background: transparent;
  color: #7a7a76;
  font-size: 10px;
}

.bottom-nav .tab.bottom-nav-item.active {
  background: transparent;
  color: #111;
}

.bottom-nav .tab.bottom-nav-item.active .bottom-nav-icon {
  background: #111;
  color: #fff;
}

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

.call-card,
.item-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff 0%, #f0f0ee 100%);
  transition: background 160ms ease, border-color 160ms ease;
}

.call-card {
  gap: 8px;
}

.call-card--ok {
  background: linear-gradient(145deg, #ffffff 0%, var(--mint) 100%);
  border-color: rgba(20, 108, 95, 0.18);
}

.call-card--warn {
  background: linear-gradient(145deg, #ffffff 0%, var(--sand) 100%);
  border-color: rgba(166, 124, 58, 0.28);
}

.call-card--late {
  background: linear-gradient(145deg, #ffffff 0%, var(--peach) 100%);
  border-color: rgba(201, 93, 80, 0.35);
}

.call-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  grid-template-areas:
    "ticket table status"
    "type clock timer";
  gap: 6px 10px;
  align-items: center;
}

.call-cell {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.call-cell-ticket { grid-area: ticket; }
.call-cell-table { grid-area: table; }
.call-cell-status {
  grid-area: status;
  justify-items: end;
  align-content: center;
}
.call-cell-type { grid-area: type; }
.call-cell-clock { grid-area: clock; }
.call-cell-timer { grid-area: timer; justify-items: end; }

.call-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.2;
}

.call-ticket,
.call-table,
.call-clock,
.call-timer {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
  font-variant-numeric: tabular-nums;
  color: #17312d;
  line-height: 1.15;
}

.call-ticket {
  font-size: 20px;
}

.call-type {
  color: #555;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.call-card--warn .call-timer,
.call-card--warn .call-ticket {
  color: #8a5a1f;
}

.call-card--late .call-timer,
.call-card--late .call-ticket {
  color: #9e463b;
}

.call-extra .call-responsible {
  color: #555;
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.call-card .row-actions {
  margin-top: 2px;
}

.shift-form {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.shift-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.waiter-duty {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
}

.waiter-duty.on {
  color: #176a58;
}

.waiter-duty.off {
  color: #9e463b;
}

.call-card .meta,
.item-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ececeb;
  color: #333;
  font-size: 11px;
  font-weight: 700;
}

.badge.new { background: #111; color: #fff; }
.badge.taken { background: #d9d9d6; color: #222; }
.badge.pending { background: #f1f1ef; color: #444; }

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.empty {
  padding: 28px 16px;
  border: 1px dashed #d4d4d1;
  border-radius: 22px;
  text-align: center;
  color: #777;
  font-size: 13px;
}

.page-title {
  margin: 18px 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
}

.page-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.install-btn {
  margin-top: 12px;
  width: 100%;
}

.header-actions .install-btn {
  margin-top: 0;
  width: auto;
}

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.tables-settings {
  margin-bottom: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--border, #dfe8e4);
}

.tables-settings-summary {
  cursor: pointer;
  list-style: none;
  display: grid;
  gap: 2px;
  padding-bottom: 2px;
}

.tables-settings-summary::-webkit-details-marker {
  display: none;
}

.tables-settings-title {
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
}

.tables-settings-hint {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.tables-settings-summary::after {
  content: "▾";
  float: left;
  color: #8a9692;
  font-size: 14px;
  margin-top: 2px;
}

.tables-settings[open] .tables-settings-summary::after {
  content: "▴";
}

.settings-stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.settings-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid #e5ebe8;
  background: linear-gradient(160deg, #fbfcfb 0%, #f3f7f5 100%);
}

.settings-block-head {
  display: grid;
  gap: 2px;
}

.settings-block-head strong {
  font-size: 15px;
  font-weight: 800;
  color: #17312d;
}

.settings-block-head .page-sub {
  margin: 0;
  font-size: 12px;
  color: #71817d;
}

.settings-block .field {
  margin-bottom: 0;
}

.settings-block .field label {
  color: #526762;
  font-size: 12px;
}

.settings-block .field input {
  background: #fff;
  border-color: #dfe8e4;
  min-height: 54px;
}

.settings-block .field input:focus {
  border-color: #146c5f;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-actions .btn {
  width: auto;
  min-width: 140px;
}

.logo-preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-preview-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.logo-preview-meta .page-sub {
  margin: 0;
}

.logo-preview {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid #dfe8e4;
  background: #fff;
}

.file-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  cursor: pointer;
}

.file-pick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: #dff0e9;
  color: #146c5f;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: background-color 160ms ease;
}

.file-pick:active .file-pick-btn {
  background: #cfe8dd;
}

.file-pick-name {
  font-size: 12px;
  font-weight: 600;
  color: #71817d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sla-field input[type="number"] {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  direction: ltr;
  font-variant-numeric: tabular-nums;
}

.sla-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sla-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.sla-chip-ok {
  background: #dff0e9;
  color: #176a58;
}

.sla-chip-warn {
  background: #f2e9da;
  color: #8a5a1f;
}

.sla-chip-late {
  background: #f6dfd8;
  color: #9e463b;
}

.sla-help {
  margin: 0;
}

.add-tables-panel {
  margin: 12px 0 4px;
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border, #dfe8e4);
}

.add-tables-head strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #17312d;
}

.add-tables-head .page-sub {
  margin: 4px 0 0;
  color: #71817d;
}

.add-tables-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.add-tables-field {
  margin: 0;
  min-width: 0;
}

.add-tables-field input[type="number"] {
  width: 100%;
  min-width: 120px;
  min-height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  padding: 0 18px;
  direction: ltr;
  background: #fbfcfb;
  border-color: #dfe8e4;
}

.add-tables-btn {
  min-width: 120px;
  min-height: 56px;
  flex-shrink: 0;
  width: auto;
}

.table-state-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  max-width: 100%;
  text-align: center;
}

.table-state-chip.active {
  background: #dff0e9;
  color: #176a58;
}

.table-state-chip.paused {
  background: #f6dfd8;
  color: #9e463b;
}

.table-state-chip.reserved {
  background: #f2e9da;
  color: #8a5a1f;
}

.qr-card--paused {
  border-color: rgba(201, 93, 80, 0.28);
  background: linear-gradient(145deg, #ffffff 0%, #f6dfd8 100%);
}

.qr-card--reserved {
  border-color: rgba(166, 124, 58, 0.28);
  background: linear-gradient(145deg, #ffffff 0%, #f2e9da 100%);
}

.qr-manage-actions {
  width: 100%;
  justify-content: center;
}

.danger-text {
  color: #9e463b !important;
  border-color: rgba(201, 93, 80, 0.25) !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
}

.modal-backdrop.hidden {
  display: none;
}

.modal-panel {
  width: min(100%, 420px);
  max-height: min(90vh, 640px);
  overflow: auto;
  background: #fff;
}

.modal-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
}

.guest-blocked {
  margin: 8px 0 18px;
}

.guest-blocked-card {
  display: grid;
  gap: 8px;
  padding: 20px 16px;
  border-radius: 24px;
  border: 1px solid #dfe8e4;
  background: #f3f7f5;
  text-align: center;
}

.guest-blocked-card.paused {
  background: linear-gradient(160deg, #fff 0%, #f6dfd8 100%);
  border-color: rgba(201, 93, 80, 0.28);
}

.guest-blocked-card.reserved {
  background: linear-gradient(160deg, #fff 0%, #f2e9da 100%);
  border-color: rgba(166, 124, 58, 0.28);
}

.guest-blocked-card strong {
  font-size: 20px;
  font-weight: 800;
}

.reservations-wrap {
  margin: 0 0 14px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}

.reservation-card {
  border-color: rgba(166, 124, 58, 0.22);
  background: linear-gradient(145deg, #ffffff 0%, #f2e9da 100%);
}

.reservation-guest {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #555;
}

.badge.reserved-badge {
  background: #f2e9da;
  color: #8a5a1f;
}

.tables-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin: 4px 0 12px;
}

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

.qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 14px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.qr-card-badge {
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #dff0e9;
  color: #0e594e;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}

.qr-frame {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
  border-radius: 18px;
  background: #f7faf8;
  border: 1px dashed #d5e0db;
}

.qr-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: right;
}

.qr-card-meta strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.qr-card-meta small {
  display: block;
  color: #71817d;
  font-size: 11px;
  margin-top: 2px;
}

.qr-card-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e2de;
  background: #fff;
}

.qr-canvas {
  width: 148px;
  height: 148px;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
}

.qr-actions {
  width: 100%;
  justify-content: center;
}

.qr-actions .btn {
  flex: 1;
  min-width: 0;
  padding-inline: 6px;
  font-size: 11px;
}

.link-box {
  direction: ltr;
  text-align: left;
  font-size: 11px;
  color: #555;
  word-break: break-all;
  background: #f7f7f5;
  border-radius: 12px;
  padding: 10px;
  border: 1px solid var(--line);
}

@media (max-width: 380px) {
  .qr-grid {
    grid-template-columns: 1fr;
  }

  .qr-canvas {
    width: 180px;
    height: 180px;
  }
}

.alert {
  margin: 10px 0;
  padding: 11px 13px;
  border-radius: 14px;
  background: #f1f1ef;
  color: #333;
  font-size: 12px;
}

.alert.error {
  background: #f4e8e8;
  color: #5c2a2a;
}

.alert.ok {
  background: #eaf2ea;
  color: #234023;
}

.hidden { display: none !important; }

/* ─── Waiter live board ─── */
.waiter-page {
  background: #f4f7f4;
}

.waiter-page .staff-shell {
  background: #f4f7f4;
  max-width: 430px;
}

.waiter-page .staff-shell::before {
  top: -140px;
  right: -80px;
  width: 260px;
  height: 260px;
  border: 0;
  background: #dff0e9;
  opacity: 0.7;
}

.waiter-page .staff-shell::after {
  position: absolute;
  z-index: -1;
  bottom: 80px;
  left: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #f2e9da;
  opacity: 0.65;
  content: "";
  pointer-events: none;
}

.waiter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.waiter-hero {
  margin: 18px 0 16px;
}

.waiter-hello {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #17312d;
  line-height: 1.2;
}

.waiter-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.waiter-zones {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #71817d;
  line-height: 1.35;
}

.waiter-count {
  flex: 0 0 auto;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 16px;
  background: #e8efec;
  color: #526762;
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.waiter-count.has-calls {
  background: #146c5f;
  color: #fff;
}

.waiter-list {
  gap: 12px;
}

.w-call {
  display: grid;
  gap: 12px;
  padding: 16px 16px 14px;
  border-radius: 24px;
  border: 1px solid #dfe8e4;
  background: #fff;
  transition: background 160ms ease, border-color 160ms ease;
}

.w-call.call-card--ok {
  background: #fff;
  border-color: #dfe8e4;
}

.w-call.call-card--warn {
  background: #fbf6ee;
  border-color: rgba(166, 124, 58, 0.28);
}

.w-call.call-card--late {
  background: #fbf0ec;
  border-color: rgba(201, 93, 80, 0.32);
}

.w-call-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.w-call-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #71817d;
}

.w-call-table {
  display: block;
  font-size: 44px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -1.5px;
  color: #17312d;
  font-variant-numeric: tabular-nums;
}

.w-call-side {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.w-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e8efec;
  color: #526762;
  font-size: 11px;
  font-weight: 800;
}

.w-status.new {
  background: #146c5f;
  color: #fff;
}

.w-status.taken {
  background: #dff0e9;
  color: #176a58;
}

.w-call .w-call-timer {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
  color: #17312d;
}

.w-call.call-card--warn .w-call-timer {
  color: #8a5a1f;
}

.w-call.call-card--late .w-call-timer,
.w-call.call-card--late .w-call-table {
  color: #9e463b;
}

.w-call-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.w-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.w-chip-waiter {
  background: #dff0e9;
  color: #176a58;
}

.w-chip-bill {
  background: #f2e9da;
  color: #8a5a1f;
}

.w-chip-hold {
  background: #f6dfd8;
  color: #9e463b;
}

.w-ticket,
.w-clock {
  font-size: 13px;
  font-weight: 700;
  color: #71817d;
  font-variant-numeric: tabular-nums;
}

.w-call-actions,
.w-reserve-actions {
  display: flex;
  gap: 8px;
}

.w-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.w-btn:active {
  transform: scale(0.98);
}

.w-btn-primary {
  flex: 1;
  background: #146c5f;
  color: #fff;
}

.w-call.call-card--late .w-btn-primary {
  background: #c95d50;
}

.w-btn-ghost {
  flex: 0 0 auto;
  min-width: 72px;
  background: #e8efec;
  color: #17312d;
}

.w-empty {
  background: #fff;
  border: 1px dashed #dfe8e4;
  border-radius: 28px;
  color: #71817d;
}

.w-empty span {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: #146c5f;
}

.w-reserve {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(166, 124, 58, 0.22);
  background: #fbf6ee;
}

.w-reserve-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.w-reserve-table {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #17312d;
  font-variant-numeric: tabular-nums;
}

.w-reserve-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.w-reserve-name {
  font-size: 15px;
  font-weight: 800;
  color: #17312d;
}

.w-reserve-phone,
.w-reserve-until {
  font-size: 12px;
  font-weight: 700;
  color: #8a5a1f;
}

.waiter-page .section-title {
  color: #17312d;
  font-size: 14px;
}

.waiter-page .toast {
  background: #17312d;
}

/* Menu type + electronic manager */
.menu-type-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.menu-type-chip {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dfe8e4;
  border-radius: 14px;
  background: #fff;
  color: #17312d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-type-chip.active {
  background: #146c5f;
  border-color: #146c5f;
  color: #fff;
}

.menu-ai-preview {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  max-height: 280px;
  overflow: auto;
  padding: 10px;
  border-radius: 16px;
  background: #f3faf7;
  border: 1px solid #dfe8e4;
}

.menu-ai-text-wrap {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.menu-ai-text-wrap label {
  font-weight: 700;
  color: #17312d;
  font-size: 0.92rem;
}

.menu-ai-text-wrap textarea {
  width: 100%;
  min-height: 160px;
  border: 1px solid #dfe8e4;
  border-radius: 16px;
  padding: 12px;
  font: inherit;
  line-height: 1.55;
  background: #fff;
  color: #17312d;
  resize: vertical;
}

.menu-ai-section strong {
  display: block;
  margin-bottom: 6px;
  color: #146c5f;
}

.menu-ai-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.menu-ai-section li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.92rem;
  color: #17312d;
}

.menu-item-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ececeb;
  color: #111111;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}

.price-was {
  text-decoration: line-through;
  opacity: 0.55;
  margin-inline-start: 4px;
  font-weight: 500;
}

.price-from {
  font-weight: 700;
}

.menu-card-meta {
  margin-top: 4px !important;
  color: #146c5f !important;
}

.menu-google-cta {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
  width: 100%;
}

.menu-sheet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.menu-sheet-title-row h2 {
  margin: 0;
}

.menu-detail-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.menu-detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #ececeb;
  color: #111111;
  font-size: 0.95rem;
}

.menu-opt-group {
  margin-bottom: 8px;
}

.menu-edit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(23, 49, 45, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.menu-edit-backdrop.hidden {
  display: none;
}

.menu-edit-sheet {
  width: min(560px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: #fff;
  border-radius: 20px 20px 16px 16px;
  padding: 14px;
}

.menu-edit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.menu-extra-block {
  margin-top: 12px;
  padding: 10px;
  border-radius: 14px;
  background: #f3faf7;
  border: 1px solid #dfe8e4;
}

.menu-extra-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.menu-extra-row {
  display: grid;
  grid-template-columns: 1fr 100px auto;
  gap: 6px;
  margin-bottom: 6px;
}

.menu-extra-row input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dfe8e4;
  border-radius: 12px;
  padding: 0 10px;
  font: inherit;
  background: #fff;
}

.menu-group-block {
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e7efeb;
}

.menu-group-opts {
  margin-top: 6px;
}

.menu-section-card {
  margin-bottom: 12px;
}

.menu-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.menu-item-form {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dfe8e4;
}

.menu-item-form .field.full {
  grid-column: 1 / -1;
}

.menu-mgr-items {
  display: grid;
  gap: 10px;
}

.menu-mgr-item {
  padding: 12px;
  border: 1px solid #dfe8e4;
  border-radius: 16px;
  background: #f4f7f4;
}

.menu-mgr-item.off {
  opacity: 0.55;
}

.menu-mgr-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #17312d;
  font-weight: 800;
}

/* Guest electronic menu page — Soft UI grid (Tawla black/gray) */
.menu-page {
  --menu-bg: #f5f5f3;
  --menu-ink: #111111;
  --menu-muted: #747474;
  --menu-primary: #151515;
  --menu-primary-dark: #000000;
  --menu-card: #ffffff;
  --menu-border: #ddddda;
  --menu-soft: #ececeb;
  --menu-soft-2: #e6e6e4;
  background: var(--menu-bg);
  color: var(--menu-ink);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

.menu-ambiance {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 92% 6%, rgba(230, 230, 228, 0.95) 0%, transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(221, 221, 218, 0.9) 0%, transparent 40%);
  opacity: 0.9;
}

.menu-shell {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.menu-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--menu-border);
  border-radius: 24px;
  background: var(--menu-card);
}

.menu-top img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--menu-border);
  background: #fff;
  flex-shrink: 0;
}

.menu-top-copy {
  min-width: 0;
  flex: 1;
}

.menu-top strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--menu-ink);
}

.menu-brand-bar {
  display: block;
  width: 32px;
  height: 4px;
  margin: 6px 0 8px;
  border-radius: 999px;
  background: var(--menu-primary);
}

.menu-top span {
  color: var(--menu-muted);
  font-size: 12px;
  font-weight: 600;
}

.menu-section-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 6px;
  margin-bottom: 16px;
  border: 1px solid var(--menu-border);
  border-radius: 20px;
  background: var(--menu-card);
  scrollbar-width: none;
}

.menu-section-tabs::-webkit-scrollbar {
  display: none;
}

.menu-section-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--menu-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.menu-section-tab.active {
  background: var(--menu-soft);
  color: var(--menu-primary-dark);
}

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

.menu-item-card {
  position: relative;
  width: 100%;
  min-height: 168px;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 12px;
  margin: 0;
  border: 1px solid var(--menu-border);
  border-radius: 22px;
  background: var(--menu-card);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.menu-item-card:active {
  transform: scale(0.98);
}

.menu-item-thumb {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--menu-soft);
  color: var(--menu-primary);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}

.menu-item-card .menu-item-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  margin: 0;
}

.menu-item-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--menu-ink);
  min-height: 2.7em;
}

.menu-item-card .price {
  margin-top: auto;
  padding-top: 4px;
  color: var(--menu-primary);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.menu-item-card .desc {
  color: var(--menu-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.menu-desc-empty {
  visibility: hidden;
}

.menu-item-card .menu-card-meta {
  margin-top: 0 !important;
  color: var(--menu-muted) !important;
  font-size: 11px;
  font-weight: 700;
}

.menu-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 49, 45, 0.35);
  display: grid;
  align-items: end;
  z-index: 40;
}

.menu-sheet-backdrop.hidden {
  display: none !important;
}

.menu-sheet {
  background: #fff;
  border-radius: 28px 28px 0 0;
  border: 1px solid var(--menu-border);
  border-bottom: 0;
  padding: 10px 16px 28px;
  max-height: 82dvh;
  overflow: auto;
}

.menu-sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #dfe8e4;
  margin: 4px auto 14px;
}

.menu-sheet h2 {
  margin: 0;
  font-size: 20px;
  color: var(--menu-ink);
}

.menu-sheet .price {
  color: var(--menu-primary);
  font-weight: 800;
  margin: 8px 0 10px;
}

.menu-sheet .desc {
  color: var(--menu-muted);
  line-height: 1.55;
  margin: 0 0 14px;
}

.menu-ings-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--menu-ink);
}

.menu-ings {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-ings li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--menu-soft);
  color: var(--menu-ink);
  font-size: 12px;
  font-weight: 700;
}

.menu-empty {
  text-align: center;
  color: var(--menu-muted);
  padding: 36px 16px;
  font-weight: 700;
  border: 1px dashed var(--menu-border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
}

.menu-google-cta {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
  width: 100%;
}

@media (min-width: 420px) {
  .menu-items-grid {
    gap: 12px;
  }

  .menu-item-card {
    min-height: 180px;
    padding: 14px;
  }
}

@media (min-width: 561px) {
  body { padding: 24px; }
  .staff-shell {
    min-height: 850px;
    border: 1px solid #d4d4d1;
    border-radius: 36px;
  }
}
