@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400&display=swap');

:root {
  --bg: #060607;
  --bg-soft: #0b0b0d;
  --surface: rgba(16, 16, 18, 0.78);
  --surface-strong: rgba(21, 21, 24, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f1ea;
  --muted: #9a998f;
  --muted-strong: #6d6b63;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.16);
  --accent-strong: #fb923c;
  --success: #4ade80;
  --warning: #60a5fa;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

/* Final display overrides for order totals and live clock */

.clock-chip {
  margin-left: auto;
  color: var(--muted-strong);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.order-item-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  padding-top: 2px;
}

.qty {
  padding-top: 0;
}

.price {
  color: #ffcf9f;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .order-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .order-item-meta {
    grid-column: 2;
  }

  .qty,
  .price {
    justify-self: end;
  }
}

/* Final overrides for the updated kiosk layout and admin logo controls */

body.display-page {
  user-select: none;
}

body.display-page,
body.display-page * {
  -webkit-tap-highlight-color: transparent;
}

.display-shell,
.display-footer {
  pointer-events: none;
}

.kiosk-right {
  gap: 16px;
}

.logo-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(17, 17, 19, 0.82);
  border: 1px solid rgba(249, 115, 22, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55);
}

.restaurant-logo,
.brand-medallion {
  width: 100%;
  height: 100%;
}

.restaurant-logo {
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.brand-medallion {
  aspect-ratio: 1;
  opacity: 0.95;
  background:
    radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.18), transparent 60%),
    rgba(17, 17, 19, 0.82);
}

.brand-medallion .ring {
  stroke: rgba(255, 244, 228, 0.26);
}

.brand-medallion .arc-text {
  fill: rgba(255, 214, 180, 0.72);
}

.brand-medallion .cut-line,
.brand-medallion .utensil line,
.brand-medallion .utensil ellipse {
  stroke: rgba(255, 236, 214, 0.34);
}

.brand-mark,
.bottom-row {
  display: none;
}

.qr-stage {
  gap: 14px;
}

body.admin-page .settings-card {
  margin: 0 auto 16px;
  width: min(100%, 1240px);
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.settings-row input {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.settings-row input:focus {
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.settings-upload {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.settings-upload input[type='file'] {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.settings-card code {
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

.settings-preview {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.settings-preview img {
  width: 256px;
  height: 256px;
  object-fit: contain;
  border-radius: 50%;
}

.settings-preview-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 256px;
  height: 256px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
  color: #ffb27a;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .logo-stage,
  .restaurant-logo,
  .brand-medallion {
    width: 128px;
    height: 128px;
  }

  .settings-preview img,
  .settings-preview-fallback {
    width: 220px;
    height: 220px;
  }

  .settings-row {
    grid-template-columns: 1fr;
  }

  .settings-upload {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  letter-spacing: 0.01em;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(251, 146, 60, 0.1), transparent 24%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 22%),
    linear-gradient(180deg, #050505 0%, #090909 100%);
  overflow-x: hidden;
}

body,
body * {
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif !important;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

body::before {
  width: 34rem;
  height: 34rem;
  left: -12rem;
  top: -10rem;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 68%);
  filter: blur(16px);
}

body::after {
  width: 24rem;
  height: 24rem;
  right: -10rem;
  bottom: -9rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 68%);
  filter: blur(18px);
}

body,
button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html,
body {
  scrollbar-width: none;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.surface-strong {
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.btn,
.btn-sm,
.primary-btn,
.secondary-btn,
.call-btn,
.done-btn,
.nav button {
  border: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.btn:active,
.btn-sm:active,
.primary-btn:active,
.secondary-btn:active,
.call-btn:active,
.done-btn:active,
.nav button:active {
  transform: scale(0.98);
}

/* Guest page -------------------------------------------------------------- */

body.guest-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 92px;
}

.screen {
  width: min(100%, 640px);
  display: none;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.screen.active {
  display: flex;
}

#statusScreen {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(18, 18, 21, 0.92), rgba(10, 10, 11, 0.86)),
    rgba(16, 16, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
}

#statusScreen .icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.32), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(249, 115, 22, 0.32);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.14);
  font-size: 2rem;
  margin-bottom: 8px;
}

#statusScreen h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
}

#intro,
.scan-hint,
#statusMsg,
#log,
.install-status,
.hint,
.time {
  color: var(--muted);
}

#intro {
  margin: 0;
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.6;
}

#subscribeBtn,
.btn,
.btn-sm,
.primary-btn,
.call-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.26);
}

#subscribeBtn {
  padding: 16px 22px;
  font-size: 1rem;
  font-weight: 700;
  align-self: stretch;
}

#subscribeBtn:hover,
.btn:hover,
.btn-sm:hover,
.primary-btn:hover,
.call-btn:hover {
  box-shadow: 0 20px 34px rgba(249, 115, 22, 0.3);
}

.install-panel,
#statusCard,
.scan-box,
.card {
  background: rgba(13, 13, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.install-panel {
  display: none;
  width: 100%;
  padding: 18px;
  gap: 14px;
}

.install-panel.visible {
  display: grid;
}

.install-panel h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.install-panel p,
.install-steps,
.install-status {
  margin: 0;
  line-height: 1.5;
}

.install-steps {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-btn,
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.secondary-btn:hover,
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

#statusCard {
  display: none;
  padding: 16px 18px;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge.ok {
  background: rgba(74, 222, 128, 0.14);
  color: var(--success);
}

.badge.wait {
  background: rgba(96, 165, 250, 0.12);
  color: var(--warning);
}

.badge.error {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

#statusMsg {
  margin: 0;
}

#log {
  min-height: 1.4em;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

#scannerScreen {
  align-items: center;
  justify-content: center;
}

.scan-box {
  width: min(100%, 420px);
  padding: 18px;
}

#scanner {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
}

.scan-hint {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 10;
  width: min(calc(100% - 24px), 420px);
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(13, 13, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.nav button {
  flex: 1;
  padding: 12px 14px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav button.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(251, 146, 60, 0.95));
  color: #fff;
}

/* Display page ------------------------------------------------------------ */

body.display-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 100dvh;
  padding: 24px;
  user-select: none;
}

body.display-page,
body.display-page * {
  -webkit-tap-highlight-color: transparent;
}

.display-shell,
.display-footer {
  pointer-events: none;
}

.display-shell {
  width: min(100%, 1360px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  align-items: stretch;
  gap: clamp(20px, 3.6vw, 56px);
}

.kiosk-left,
.kiosk-right {
  min-width: 0;
}

.kiosk-left {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 22px;
  padding: clamp(18px, 2.5vw, 30px) 0;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-right: clamp(18px, 2vw, 28px);
}

.brand-chip,
.online-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-chip {
  color: var(--accent);
}

.brand-chip-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.96), rgba(251, 146, 60, 0.96));
  color: #fff;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
  font-size: 0.92rem;
}

.online-chip {
  color: var(--muted-strong);
  font-size: 0.68rem;
}

.online-chip #liveClock {
  margin-left: 10px;
  color: #6f6d66;
}

.kiosk-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 18px;
  padding-right: clamp(18px, 2vw, 28px);
}

.eyebrow {
  margin: 0;
  color: var(--muted-strong);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

body.display-page h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(4.2rem, 8vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
  font-weight: 700;
  text-align: left;
}

.order-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #5f5d56;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meta-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.order-summary {
  display: grid;
  gap: 10px;
  width: min(100%, 620px);
}

.summary-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #2e2c28;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  text-transform: uppercase;
}

.summary-head p,
.summary-head span {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
}

.summary-head span {
  color: var(--accent);
}

.order-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.16);
  color: var(--text);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

.order-total span {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.order-total strong {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: #ffd0a6;
}

.order-list {
  display: grid;
  gap: 10px;
  max-height: min(54vh, 640px);
  overflow: auto;
  padding-right: 10px;
  scrollbar-width: none;
}

.order-list::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.order-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  color: #7a7871;
}

.order-item.primary {
  color: #8a887f;
}

.bullet {
  width: 7px;
  height: 7px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}

.bullet.muted {
  background: #2d2b26;
  box-shadow: none;
}

.item-title {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}

.order-item-main {
  min-width: 0;
}

.order-item-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  padding-top: 2px;
}

.mods {
  display: grid;
  gap: 2px;
  margin-top: 4px;
  padding-left: 18px;
  color: #3f3d37;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.mods span {
  line-height: 1.25;
}

.qty {
  padding-top: 0;
  color: #48453f;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price {
  color: #ffcf9f;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.bottom-row {
  padding-top: 18px;
  color: #3b3933;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.kiosk-right {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding-left: clamp(12px, 1.6vw, 26px);
}

.qr-stage {
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  gap: 16px;
}

.logo-stage {
  display: grid;
  place-items: center;
  width: 128px;
  margin: 0 auto 6px;
}

.restaurant-logo {
  width: 128px;
  height: 128px;
  object-fit: contain;
  display: block;
}

.brand-medallion {
  width: 128px;
  aspect-ratio: 1;
  opacity: 0.9;
}

.brand-medallion svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
}

.ring-outer {
  stroke-width: 1.2;
}

.ring-inner {
  stroke-width: 0.75;
}

.arc-text {
  fill: #2b2a27;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.cut-line,
.utensil line,
.utensil ellipse {
  stroke: #2d2b27;
  stroke-width: 1.2;
  fill: none;
  stroke-linecap: round;
}

.utensil.spoon ellipse {
  stroke-width: 1.1;
}

.qr-wrap {
  width: min(100%, 340px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 30px;
  background: rgba(245, 244, 240, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.54);
}

.qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(13, 13, 15, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status.waiting {
  color: var(--muted);
}

.status.connected {
  background: rgba(20, 83, 45, 0.88);
  border-color: rgba(74, 222, 128, 0.22);
  color: var(--success);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.status.waiting .dot {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.28;
  }
}

.hint {
  margin: 0;
  max-width: 38ch;
  font-size: 0.94rem;
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-align: left;
}

.scan-copy {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
}

.scan-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--text);
}

.scan-subtitle {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.os-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 6px;
  color: var(--muted-strong);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.display-footer {
  width: min(100%, 1360px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted-strong);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.warn {
  display: none;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(69, 26, 3, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: #fbbf24;
  font-size: 0.9rem;
  line-height: 1.55;
}

.warn code {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(13, 13, 15, 0.9);
  color: #ffcf8b;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.92em;
}

/* Admin page -------------------------------------------------------------- */

body.admin-page {
  padding: clamp(18px, 3vw, 32px);
}

body.admin-page header,
body.admin-page .grid,
body.admin-page .refresh-hint {
  width: min(100%, 1240px);
  margin-inline: auto;
}

body.admin-page header {
  margin-bottom: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 28px;
  background: rgba(13, 13, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

body.admin-page header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar input {
  width: 122px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.toolbar input::placeholder {
  color: var(--muted-strong);
}

.toolbar input:focus {
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-sm.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn-sm.outline:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card.connected {
  border-color: rgba(74, 222, 128, 0.24);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.08), var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.table-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge.connected {
  background: rgba(74, 222, 128, 0.14);
  color: var(--success);
}

.badge.waiting {
  background: rgba(96, 165, 250, 0.12);
  color: var(--warning);
}

.time {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.call-btn,
.done-btn {
  padding: 13px 14px;
  border-radius: 18px;
  font-size: 0.96rem;
  font-weight: 700;
}

.call-btn {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.call-btn.sent {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.call-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: default;
}

.done-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.done-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.empty {
  grid-column: 1 / -1;
  padding: 64px 20px;
  text-align: center;
  color: var(--muted-strong);
}

.empty code {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffcf8b;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

.refresh-hint {
  margin-top: 12px;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted-strong);
}

#countdown {
  color: #ffcf8b;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  body.guest-page {
    padding: 16px 12px 88px;
  }

  body.display-page {
    padding: 16px;
    gap: 14px;
  }

  .display-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kiosk-left {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 22px;
  }

  .kiosk-copy {
    padding-right: 0;
  }

  .display-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  body.display-page h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
    text-align: left;
  }

  .order-list {
    max-height: none;
  }

  .order-item {
    grid-template-columns: auto 1fr;
  }

  .qty {
    grid-column: 2;
    justify-self: end;
    padding-top: 2px;
  }

  .kiosk-right {
    padding-left: 0;
  }

  .logo-stage,
  .brand-medallion,
  .restaurant-logo {
    width: 128px;
    height: 128px;
  }

  .screen {
    width: 100%;
  }

  body.admin-page header {
    align-items: stretch;
    flex-direction: column;
  }

  body.admin-page .toolbar {
    width: 100%;
  }

  .toolbar input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}

  .summary-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: #2e2c28;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    text-transform: uppercase;
  }

  .summary-head p,
  .summary-head span {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.24em;
  }

  .summary-head span {
    color: var(--accent);
  }

  .order-list {
    display: grid;
    gap: 10px;
    max-height: min(54vh, 640px);
    overflow: auto;
    padding-right: 10px;
    scrollbar-width: none;
  }

  .order-list::-webkit-scrollbar {
    width: 0;
    height: 0;
  }

  .order-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: start;
    color: #7a7871;
  }

  .order-item.primary {
    color: #8a887f;
  }

  .bullet {
    width: 7px;
    height: 7px;
    margin-top: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
  }

  .bullet.muted {
    background: #2d2b26;
    box-shadow: none;
  }

  .item-title {
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    line-height: 1.16;
    letter-spacing: -0.02em;
  }

  .mods {
    display: grid;
    gap: 2px;
    margin-top: 4px;
    padding-left: 18px;
    color: #3f3d37;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
  }

  .mods span {
    line-height: 1.25;
  }

  .qty {
    padding-top: 6px;
    color: #48453f;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
  }

  .bottom-row {
    padding-top: 18px;
    color: #3b3933;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
  }

  .kiosk-right {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    padding-left: clamp(12px, 1.6vw, 26px);
  }

  .kiosk-brand {
    align-self: end;
    justify-self: end;
    margin-bottom: 4px;
  }

  .qr-stage {
    width: min(100%, 420px);
    display: grid;
    justify-items: center;
    gap: 16px;
  }

  .brand-medallion {
    width: min(100%, 118px);
    aspect-ratio: 1;
    opacity: 0.82;
  }

  .brand-medallion svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
  }

  .ring-outer {
    stroke-width: 1.2;
  }

  .ring-inner {
    stroke-width: 0.75;
  }

  .arc-text {
    fill: #2b2a27;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
  }

  .cut-line,
  .utensil line,
  .utensil ellipse {
    stroke: #2d2b27;
    stroke-width: 1.2;
    fill: none;
    stroke-linecap: round;
  }

  .utensil.spoon ellipse {
    stroke-width: 1.1;
  }

  .qr-wrap {
    width: min(100%, 340px);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-radius: 30px;
    background: rgba(245, 244, 240, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.54);
  }

  .qr-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(13, 13, 15, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .status.waiting {
    color: var(--muted);
  }

  .status.connected {
    background: rgba(20, 83, 45, 0.88);
    border-color: rgba(74, 222, 128, 0.22);
    color: var(--success);
  }

  .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
  }

  .status.waiting .dot {
    animation: pulse 1.4s ease-in-out infinite;
  }

  @keyframes pulse {
    0%,
    100% {
      opacity: 1;
    }

    50% {
      opacity: 0.28;
    }
  }

  .hint {
    margin: 0;
    max-width: 38ch;
    font-size: 0.94rem;
    line-height: 1.65;
    letter-spacing: 0.005em;
    text-align: left;
  }

  .scan-copy {
    display: grid;
    justify-items: center;
    gap: 4px;
    text-align: center;
  }

  .scan-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--text);
  }

  .scan-subtitle {
    margin: 0;
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted-strong);
  }

  .os-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding-top: 6px;
    color: var(--muted-strong);
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .display-footer {
    width: min(100%, 1360px);
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted-strong);
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }
  height: 34rem;
  left: -12rem;
  top: -10rem;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.16), transparent 68%);
  filter: blur(16px);
}

body::after {
  width: 24rem;
  height: 24rem;
  right: -10rem;
  bottom: -9rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 68%);
  filter: blur(18px);
}

body,
button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html,
body {
  scrollbar-width: none;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.surface-strong {
  background: var(--surface-strong);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.btn,
.btn-sm,
.primary-btn,
.secondary-btn,
.call-btn,
.done-btn,
.nav button {
  border: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.btn:active,
.btn-sm:active,
.primary-btn:active,
.secondary-btn:active,
.call-btn:active,
.done-btn:active,
.nav button:active {
  transform: scale(0.98);
}

/* Guest page -------------------------------------------------------------- */

body.guest-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 92px;
}

.screen {
  width: min(100%, 640px);
  display: none;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.screen.active {
  display: flex;
}

#statusScreen {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(18, 18, 21, 0.92), rgba(10, 10, 11, 0.86)),
    rgba(16, 16, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
}

#statusScreen .icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.32), rgba(249, 115, 22, 0.08));
  border: 1px solid rgba(249, 115, 22, 0.32);
  box-shadow: 0 18px 40px rgba(249, 115, 22, 0.14);
  font-size: 2rem;
  margin-bottom: 8px;
}

#statusScreen h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 700;
}

#intro,
.scan-hint,
#statusMsg,
#log,
.install-status,
.hint,
.time {
  color: var(--muted);
}

#intro {
  margin: 0;
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.6;
}

#subscribeBtn,
.btn,
.btn-sm,
.primary-btn,
.call-btn {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 16px 30px rgba(249, 115, 22, 0.26);
}

#subscribeBtn {
  padding: 16px 22px;
  font-size: 1rem;
  font-weight: 700;
  align-self: stretch;
}

#subscribeBtn:hover,
.btn:hover,
.btn-sm:hover,
.primary-btn:hover,
.call-btn:hover {
  box-shadow: 0 20px 34px rgba(249, 115, 22, 0.3);
}

.install-panel,
#statusCard,
.scan-box,
.card {
  background: rgba(13, 13, 15, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.install-panel {
  display: none;
  width: 100%;
  padding: 18px;
  gap: 14px;
}

.install-panel.visible {
  display: grid;
}

.install-panel h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
}

.install-panel p,
.install-steps,
.install-status {
  margin: 0;
  line-height: 1.5;
}

.install-steps {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-btn,
.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.secondary-btn:hover,
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.04);
}

#statusCard {
  display: none;
  padding: 16px 18px;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge.ok {
  background: rgba(74, 222, 128, 0.14);
  color: var(--success);
}

.badge.wait {
  background: rgba(96, 165, 250, 0.12);
  color: var(--warning);
}

.badge.error {
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

#statusMsg {
  margin: 0;
}

#log {
  min-height: 1.4em;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

#scannerScreen {
  align-items: center;
  justify-content: center;
}

.scan-box {
  width: min(100%, 420px);
  padding: 18px;
}

#scanner {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
}

.scan-hint {
  margin-top: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}

.nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 10;
  width: min(calc(100% - 24px), 420px);
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(13, 13, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.nav button {
  flex: 1;
  padding: 12px 14px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav button.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(251, 146, 60, 0.95));
  color: #fff;
}

/* Display page ------------------------------------------------------------ */

body.display-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-height: 100dvh;
  padding: 24px;
}

.display-shell {
  width: min(100%, 1360px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
}

.display-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--muted-strong);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

body.display-page h1 {
  margin: 0;
  max-width: 9ch;
  font-size: clamp(3rem, 6.3vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-align: left;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  border: 1px solid rgba(249, 115, 22, 0.26);
  color: #ffb27a;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.display-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-end;
  padding-right: clamp(22px, 3vw, 42px);
  color: var(--accent);
}

.brand-mark-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.96), rgba(251, 146, 60, 0.96));
  color: #fff;
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.24);
  font-size: 1.05rem;
}

.brand-mark-text {
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.qr-wrap {
  width: min(100%, 350px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-radius: 34px;
  background: rgba(245, 244, 240, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.54);
}

.qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(13, 13, 15, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status.waiting {
  color: var(--muted);
}

.status.connected {
  background: rgba(20, 83, 45, 0.88);
  border-color: rgba(74, 222, 128, 0.22);
  color: var(--success);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
}

.status.waiting .dot {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.28;
  }
}

.hint {
  margin: 0;
  max-width: 38ch;
  font-size: 0.94rem;
  line-height: 1.65;
  letter-spacing: 0.005em;
  text-align: left;
}

.card-copy {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.scan-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--text);
}

.scan-subtitle {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-strong);
}

.os-row {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
  color: var(--muted-strong);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.display-footer {
  width: min(100%, 1360px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted-strong);
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.warn {
  display: none;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(69, 26, 3, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.22);
  color: #fbbf24;
  font-size: 0.9rem;
  line-height: 1.55;
}

.warn code {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(13, 13, 15, 0.9);
  color: #ffcf8b;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.92em;
}

/* Admin page -------------------------------------------------------------- */

body.admin-page {
  padding: clamp(18px, 3vw, 32px);
}

body.admin-page header,
body.admin-page .grid,
body.admin-page .refresh-hint {
  width: min(100%, 1240px);
  margin-inline: auto;
}

body.admin-page header {
  margin-bottom: 20px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 28px;
  background: rgba(13, 13, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

body.admin-page header h1 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar input {
  width: 122px;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  outline: none;
}

.toolbar input::placeholder {
  color: var(--muted-strong);
}

.toolbar input:focus {
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
}

.btn-sm.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.btn-sm.outline:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card.connected {
  border-color: rgba(74, 222, 128, 0.24);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.08), var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.table-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.badge.connected {
  background: rgba(74, 222, 128, 0.14);
  color: var(--success);
}

.badge.waiting {
  background: rgba(96, 165, 250, 0.12);
  color: var(--warning);
}

.time {
  margin: 0;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.call-btn,
.done-btn {
  padding: 13px 14px;
  border-radius: 18px;
  font-size: 0.96rem;
  font-weight: 700;
}

.call-btn {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.call-btn.sent {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.call-btn:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  cursor: default;
}

.done-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.done-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.empty {
  grid-column: 1 / -1;
  padding: 64px 20px;
  text-align: center;
  color: var(--muted-strong);
}

.empty code {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffcf8b;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
}

.refresh-hint {
  margin-top: 12px;
  text-align: right;
  font-size: 0.78rem;
  color: var(--muted-strong);
}

#countdown {
  color: #ffcf8b;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  body.guest-page {
    padding: 16px 12px 88px;
  }

  body.display-page {
    padding: 16px;
    gap: 14px;
  }

  .display-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kiosk-left {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 22px;
  }

  .top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .kiosk-brand {
    justify-self: center;
  }

  .kiosk-copy {
    padding-right: 0;
  }

  .display-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  body.display-page h1 {
    font-size: clamp(3rem, 15vw, 5.2rem);
    text-align: left;
  }

  .order-list {
    max-height: none;
  }

  .order-item {
    grid-template-columns: auto 1fr;
  }

  .qty {
    grid-column: 2;
    justify-self: end;
    padding-top: 2px;
  }

  .kiosk-right {
    padding-left: 0;
  }

  .brand-medallion {
    width: 128px;
  }

  .screen {
    width: 100%;
  }

  body.admin-page header {
    align-items: stretch;
    flex-direction: column;
  }

  body.admin-page .toolbar {
    width: 100%;
  }

  .toolbar input {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
