:root {
  --bg: #070707;
  --panel: rgba(18, 18, 18, 0.94);
  --soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f5f5;
  --muted: #b7b7b7;
  --accent: #ff3030;
  --accent-deep: #a10000;
  --accent-soft: rgba(255, 48, 48, 0.12);
  --green: #26c281;
  --amber: #ffbc42;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
  --radius-lg: 30px;
  --radius-md: 22px;
}

.is-hidden {
  display: none !important;
}

* {
  box-sizing: border-box;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #070707;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Segoe UI Variable", "Segoe UI", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 48, 48, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 22%),
    linear-gradient(180deg, #090909 0%, #030303 100%);
}

body.kiosk-body {
  background:
    radial-gradient(circle at top left, rgba(255, 48, 48, 0.16), transparent 26%),
    linear-gradient(180deg, #060606 0%, #020202 100%);
}

body.pos-body {
  overflow: hidden;
  background: #070707;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

body.kiosk-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 0;
  background: #070707;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner,
.footer-inner,
.section-heading,
.page-header,
.radio-card-top,
.menu-card-top,
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.header-inner {
  align-items: center;
  padding: 16px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 14px 26px rgba(255, 33, 33, 0.22));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.04em;
}

.brand-copy small,
.footer-inner p,
.footer-links span,
.subtle-note,
.card-note,
.feature-card p,
.info-card p,
.menu-card p,
.radio-card p,
.reservation-list li span,
.timeline-body span,
.timeline-body p {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a,
.button,
.price-pill,
.status-pill {
  border-radius: 999px;
}

.site-nav a {
  padding: 10px 14px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.site-nav .nav-admin {
  background: var(--accent-soft);
  color: #fff;
}

.site-main {
  flex: 1;
  padding: 28px 0 48px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(4, 4, 4, 0.86);
}

.footer-inner {
  align-items: center;
  padding: 18px 0 26px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    var(--panel);
  box-shadow: var(--shadow);
}

.panel {
  padding: 30px;
}

.hero,
.menu-section,
.login-card {
  padding: 30px;
}

.hero-grid,
.grid-two,
.feature-grid,
.menu-grid,
.table-grid,
.booking-layout,
.slot-form,
.input-grid,
.timeline-list,
.reservation-list {
  display: grid;
  gap: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.hero-copy h1,
.page-header h1,
.section-heading h2,
.table-card h2,
.menu-card h3,
.radio-card h3,
.timeline-body strong,
.info-card h2,
.feature-card h3,
.login-card h1 {
  font-family: "Arial Nova", "Segoe UI Variable", "Segoe UI", sans-serif;
  letter-spacing: -0.05em;
}

.hero-copy h1,
.page-header h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 0.94;
}

.hero-lead,
.page-header p {
  margin: 18px 0 0;
  max-width: 680px;
  color: #e1e1e1;
  font-size: 18px;
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #ffd6d6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cta-row,
.stacked-actions,
.toolbar-stats,
.admin-actions,
.admin-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-row {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 48, 48, 0.28);
  background: linear-gradient(145deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.button-wide,
.button-admin {
  width: 100%;
}

.button-small {
  padding: 9px 14px;
  font-size: 13px;
}

.button:focus,
.button:active,
.kiosk-modal-close:focus,
.kiosk-modal-close:active,
.kiosk-qty-button:focus,
.kiosk-qty-button:active,
.pin-key:focus,
.pin-key:active {
  outline: none;
}

.button:focus-visible,
.kiosk-modal-close:focus-visible,
.kiosk-qty-button:focus-visible,
.pin-key:focus-visible {
  outline: none;
  border-color: rgba(255, 48, 48, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 48, 48, 0.14);
}

.button:active,
.kiosk-modal-close:active,
.kiosk-qty-button:active,
.pin-key:active {
  transform: translateY(1px) scale(0.99);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.stat-card,
.hero-highlight,
.feature-card,
.info-card,
.menu-card,
.radio-card,
.empty-state,
.reservation-list li,
.timeline-item {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: var(--soft);
}

.stat-card strong {
  display: block;
  font-size: 28px;
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.hero-highlight span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 48, 48, 0.1);
  border: 1px solid rgba(255, 48, 48, 0.2);
}

.hero-contact a {
  text-decoration: none;
  font-weight: 800;
}

.gallery-section {
  overflow: hidden;
}

.gallery-marquee {
  --gallery-gap: 18px;
  --gallery-duration: 32s;
  --gallery-shift: -50%;
  position: relative;
  margin-top: 22px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.gallery-track,
.gallery-strip {
  display: flex;
  gap: var(--gallery-gap);
  width: max-content;
}

.gallery-track {
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.gallery-card {
  flex: 0 0 clamp(220px, 28vw, 340px);
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 48, 48, 0.22), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.gallery-card-button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
}

.gallery-card-button:focus {
  outline: none;
}

.gallery-card-button:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 48, 48, 0.55);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.gallery-card-button:hover img,
.gallery-card-button:focus-visible img {
  transform: scale(1.02);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: rgba(4, 4, 4, 0.88);
  cursor: zoom-out;
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 1100px);
  max-height: min(92vh, 920px);
  display: grid;
  gap: 12px;
  justify-items: center;
  cursor: zoom-out;
}

.gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(12, 12, 12, 0.7);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.gallery-lightbox-image {
  width: auto;
  max-width: 100%;
  max-height: min(88vh, 860px);
  display: block;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
  cursor: zoom-out;
}

.section-space {
  margin-top: 24px;
}

.section-heading,
.page-header,
.radio-card-top,
.menu-card-top {
  align-items: end;
}

.section-heading .subtle-note {
  display: inline-flex;
  margin: 8px 0 6px;
  padding-bottom: 4px;
}

.section-heading h2,
.page-header h1,
.table-card h2,
.menu-card h3,
.radio-card h3,
.feature-card h3,
.info-card h2,
.login-card h1 {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(28px, 5vw, 38px);
}

.text-link {
  color: #ffd8d8;
  text-decoration: none;
  font-weight: 700;
}

.feature-grid,
.grid-two,
.menu-grid,
.table-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.accent-panel {
  background:
    linear-gradient(145deg, rgba(255, 48, 48, 0.14), rgba(255, 48, 48, 0.04)),
    var(--panel);
}

.bullet-list {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.menu-sections {
  display: grid;
  gap: 22px;
}

.menu-grid {
  margin-top: 18px;
}

.menu-card,
.admin-table-card {
  display: grid;
  gap: 12px;
}

.menu-card.has-photo {
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 14px;
  align-items: start;
}

.menu-photo-button {
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  cursor: zoom-in;
  appearance: none;
  -webkit-appearance: none;
}

.menu-card.has-photo .menu-photo-button {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.menu-card.has-photo .menu-card-top {
  grid-column: 2;
  min-width: 0;
}

.menu-card.has-photo p {
  grid-column: 1 / -1;
}

.menu-photo-button:focus {
  outline: none;
}

.menu-photo-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 48, 48, 0.55);
}

.menu-photo-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.menu-photo-button:hover .menu-photo-thumb,
.menu-photo-button:focus-visible .menu-photo-thumb {
  transform: scale(1.025);
}

.price-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.price-pill {
  background: rgba(255, 48, 48, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 48, 48, 0.18);
}

.status-pill.is-free {
  background: rgba(38, 194, 129, 0.12);
  color: #95f0c8;
}

.status-pill.is-occupied {
  background: rgba(255, 48, 48, 0.16);
  color: #ffd0d0;
}

.booking-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  margin-top: 20px;
}

.admin-reservation-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin-top: 18px;
}

.admin-create-actions {
  margin-top: 18px;
}

.slot-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  margin-top: 18px;
}

.booking-layout > *,
.slot-form > * {
  min-width: 0;
}

.slot-form > .button {
  width: 100%;
  min-height: 52px;
}

.slot-form.compact {
  margin-top: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font: inherit;
}

.field input[type="date"] {
  min-height: 56px;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.field input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.2em;
  text-align: left;
}

.field input[type="date"]::-webkit-datetime-edit,
.field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0;
  opacity: 0.9;
}

.field select {
  padding-right: 50px;
  appearance: none;
  -webkit-appearance: none;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23f5f5f5' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}

.field select option,
.field select optgroup {
  color: #111;
  background: #fff;
}

.field select::-ms-expand {
  display: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(255, 48, 48, 0.45);
  box-shadow: 0 0 0 4px rgba(255, 48, 48, 0.12);
}

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

.radio-card {
  cursor: pointer;
  transition: 160ms ease;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-card:hover {
  border-color: rgba(255, 48, 48, 0.25);
  transform: translateY(-1px);
}

.radio-card.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.radio-card:has(input:checked) {
  border-color: rgba(255, 48, 48, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 48, 48, 0.4);
}

.validation-summary,
.field-error {
  color: #ffd3d3;
  font-size: 14px;
}

.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}

.flash {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.flash.success {
  background: rgba(38, 194, 129, 0.12);
  color: #95f0c8;
}

.flash.warning {
  background: rgba(255, 188, 66, 0.12);
  color: #ffd895;
}

.flash.is-hidden {
  display: none;
}

.toast-layer {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  z-index: 160;
  pointer-events: none;
}

.toast {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(16, 14, 14, 0.96);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(0, -18px, 0) scale(0.97);
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  opacity: 0.95;
}

.toast.is-visible {
  animation: toast-in 0.28s cubic-bezier(0.18, 0.88, 0.32, 1.08) forwards;
}

.toast.is-closing {
  animation: toast-out 0.34s ease forwards;
}

.toast-success::after {
  background: linear-gradient(90deg, #30d58e, #8cf5c9);
}

.toast-warning::after {
  background: linear-gradient(90deg, #ff4d4d, #ff9f43);
}

.toast-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.toast-success .toast-icon {
  background: rgba(48, 213, 142, 0.14);
  color: #8cf5c9;
}

.toast-warning .toast-icon {
  background: rgba(255, 77, 77, 0.14);
  color: #ff8f8f;
}

.toast-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.toast-copy strong {
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.toast-copy span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.toast-close {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.toast-close:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translate3d(0, -18px, 0) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate3d(-44px, 0, 0) scale(0.98);
  }
}

.centered-page {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
}

.kiosk-shell {
  min-height: 100vh;
  padding: 22px;
}

.pin-shell {
  min-height: 100dvh;
  height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2.2dvh, 22px);
  overflow: hidden;
}

.kiosk-panel {
  width: min(1380px, 100%);
  margin: 0 auto;
}

.kiosk-toolbar {
  display: grid;
  gap: 20px;
}

.kiosk-toolbar-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
}

.kiosk-toolbar-copy {
  display: grid;
  gap: 8px;
}

.kiosk-toolbar-copy p {
  margin: 0;
  color: var(--muted);
}

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

.kiosk-date-form {
  width: min(100%, 560px);
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-top: 0;
}

.kiosk-lock-form {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  align-self: end;
}

.kiosk-date-form .field,
.kiosk-date-form .button,
.kiosk-toolbar-copy,
.kiosk-table-card > *,
.kiosk-modal-dialog > *,
.timeline-body,
.reservation-copy {
  min-width: 0;
}

.kiosk-date-form .button,
.kiosk-lock-form .button {
  white-space: nowrap;
}

.kiosk-date-form .button {
  width: max-content;
  min-width: 190px;
}

.kiosk-date-form input[type="date"] {
  min-width: 0;
  font-size: clamp(16px, 1.9vw, 20px);
}

.kiosk-table-grid {
  margin-top: 22px;
}

.kiosk-table-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: start;
}

.kiosk-order-summary {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.kiosk-reservations {
  display: grid;
  gap: 12px;
}

.kiosk-card-top {
  align-items: start;
}

.kiosk-card-note {
  margin: 0;
}

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

.kiosk-antiforgery {
  display: none;
}

.kiosk-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
}

.kiosk-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.kiosk-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: min(92vh, 980px);
  overflow: auto;
  display: grid;
  gap: 18px;
}

.kiosk-modal-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.kiosk-modal-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.kiosk-modal-copy {
  min-width: 0;
}

.kiosk-modal-close {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  cursor: pointer;
  justify-self: end;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.kiosk-order-closed-state {
  display: grid;
  gap: 16px;
  align-content: start;
}

.kiosk-reservation-dialog {
  width: min(760px, 100%);
}

.kiosk-reservation-form {
  display: grid;
  gap: 16px;
}

.kiosk-reservation-form .field textarea {
  min-height: 132px;
}

.kiosk-reservation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kiosk-reservation-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.kiosk-reservation-actions .button {
  width: min(280px, 100%);
  min-height: 54px;
}

.kiosk-open-order-button {
  width: min(320px, 100%);
}

.kiosk-order-categories {
  display: grid;
  gap: 16px;
}

.kiosk-selected-lines {
  display: grid;
  gap: 16px;
}

.kiosk-selected-lines-list {
  display: grid;
  gap: 10px;
}

.kiosk-selected-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kiosk-selected-line span {
  color: var(--muted);
  text-align: right;
}

.kiosk-menu-category {
  display: grid;
  gap: 16px;
}

.kiosk-menu-items {
  display: grid;
  gap: 12px;
}

.kiosk-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.kiosk-menu-copy {
  display: grid;
  gap: 6px;
}

.kiosk-menu-copy span {
  color: var(--muted);
}

.kiosk-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kiosk-qty-button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.kiosk-qty-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.kiosk-qty-value {
  min-width: 32px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

.kiosk-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.kiosk-order-confirm {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 7, 7, 0.8);
}

.kiosk-order-confirm-card {
  width: min(100%, 420px);
  display: grid;
  gap: 16px;
  text-align: center;
}

.kiosk-order-confirm-card h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  letter-spacing: -0.04em;
}

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

.booking-confirm-dialog {
  width: min(680px, 100%);
}

.booking-confirm-message {
  margin: 6px 0 0;
  max-width: 28ch;
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.25;
  color: #fff;
}

.booking-confirm-actions {
  margin-top: 4px;
}

.kiosk-order-total {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.login-card {
  width: min(100%, 520px);
}

.pin-login-card {
  width: min(100%, 460px);
  padding: clamp(16px, 2.6dvh, 30px);
}

.pin-login-form {
  display: grid;
  gap: clamp(12px, 1.8dvh, 18px);
}

.pin-display {
  min-height: clamp(54px, 7.6dvh, 68px);
  display: grid;
  place-items: center;
  padding: clamp(10px, 1.6dvh, 14px) 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
  font-size: clamp(22px, 3.1dvh, 28px);
  font-weight: 800;
  letter-spacing: 0.28em;
}

.pin-display.is-empty {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: normal;
}

.pin-display-placeholder {
  opacity: 0.9;
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.5dvh, 12px);
}

.pin-key {
  min-height: clamp(54px, 8.2dvh, 72px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: clamp(16px, 2.2dvh, 22px);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-size: clamp(22px, 3.2dvh, 26px);
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.pin-key:hover,
.pin-key:focus-visible {
  outline: none;
  border-color: rgba(255, 48, 48, 0.35);
  background: rgba(255, 48, 48, 0.12);
}

.pin-key-muted {
  color: var(--muted);
}

.pin-login-card h1 {
  font-size: clamp(28px, 4.8dvh, 44px);
}

.pin-login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.pin-login-card .eyebrow {
  margin-bottom: clamp(8px, 1.4dvh, 14px);
}

.pin-login-card .button.button-wide {
  min-height: clamp(50px, 7.2dvh, 58px);
}

.admin-toolbar {
  align-items: center;
}

.reservation-list,
.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-date-group + .timeline-date-group {
  margin-top: 22px;
}

.timeline-date-heading {
  margin-bottom: 12px;
}

.reservation-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.reservation-copy {
  display: grid;
  gap: 6px;
}

.kiosk-reservation-action {
  flex-shrink: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.timeline-time {
  color: #ffd8d8;
  font-weight: 800;
}

.empty-state {
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-grid,
  .booking-layout,
  .grid-two,
  .feature-grid,
  .menu-grid,
  .table-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .slot-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-reservation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .kiosk-toolbar-actions {
    grid-template-columns: 1fr;
  }

  .kiosk-lock-form {
    justify-content: stretch;
  }

  .kiosk-order-footer,
  .kiosk-menu-item,
  .kiosk-selected-line,
  .reservation-row {
    flex-direction: column;
    align-items: stretch;
  }

  .kiosk-date-form {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .kiosk-date-form .button,
  .kiosk-lock-form .button,
  .kiosk-reservation-action {
    width: 100%;
    min-width: 0;
  }

  .kiosk-reservation-grid {
    grid-template-columns: 1fr;
  }

  .kiosk-reservation-actions .button {
    width: 100%;
  }
}

@media (min-width: 721px) and (max-width: 920px) {
  .kiosk-menu-item {
    flex-direction: row;
    align-items: center;
  }

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

  .kiosk-qty-controls {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .footer-inner,
  .section-heading,
  .page-header,
  .radio-card-top,
  .menu-card-top {
    flex-direction: column;
    align-items: start;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .panel,
  .login-card,
  .menu-section {
    padding: 20px;
  }

  .site-main {
    padding-top: 18px;
  }

  .stats-grid,
  .slot-form,
  .admin-reservation-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 20px, 1120px);
  }

  .site-header {
    top: 0;
    padding-top: 0;
    background: #070707;
    backdrop-filter: none;
  }

  .section-heading .subtle-note {
    margin-top: 2px;
    margin-bottom: 10px;
    padding-bottom: 0;
  }

  .gallery-marquee {
    --gallery-gap: 14px;
    --gallery-duration: 40s;
    mask-image: none;
  }

  .gallery-card {
    flex-basis: min(72vw, 280px);
    border-radius: 20px;
  }

  .gallery-lightbox {
    padding: 14px;
  }

  .gallery-lightbox-dialog {
    width: 100%;
  }

  .gallery-lightbox-close {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 26px;
  }

  .gallery-lightbox-image {
    max-height: 84vh;
    border-radius: 20px;
  }

  .menu-card.has-photo {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 12px;
  }

  .menu-photo-button {
    width: 76px;
    height: 76px;
    border-radius: 12px;
  }

  .pin-key {
    min-height: 64px;
    font-size: 24px;
  }

  .pin-shell {
    padding: 12px;
  }

  .kiosk-shell,
  .kiosk-modal {
    padding: 14px;
  }

  .kiosk-modal-dialog {
    max-height: 94vh;
    padding: 18px;
    gap: 16px;
  }

  .kiosk-modal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .kiosk-modal-close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 24px;
  }

  .kiosk-selected-line span {
    text-align: left;
  }

  .kiosk-open-order-button {
    width: 100%;
  }

  .kiosk-stats {
    grid-template-columns: 1fr;
  }

  .field select {
    background-position: right 16px center;
  }
}

@media (orientation: portrait) and (max-width: 1024px) {
  .kiosk-shell {
    padding: 16px;
  }

  .kiosk-toolbar-actions {
    grid-template-columns: 1fr;
  }

  .kiosk-date-form {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .kiosk-date-form .button,
  .kiosk-lock-form .button {
    width: 100%;
    min-width: 0;
  }
}

@media (orientation: landscape) and (max-height: 900px) {
  .kiosk-shell {
    padding: 14px;
  }

  .kiosk-panel {
    padding: 22px;
  }

  .kiosk-toolbar {
    gap: 16px;
  }

  .kiosk-toolbar-copy h1 {
    font-size: clamp(30px, 3.2vw, 42px);
  }

  .kiosk-toolbar-actions {
    grid-template-columns: minmax(280px, 420px) auto;
  }

  .kiosk-date-form {
    width: 100%;
    max-width: 420px;
    grid-template-columns: minmax(180px, 1fr) auto;
  }

  .kiosk-date-form input[type="date"] {
    padding: 12px 14px;
    font-size: 16px;
  }

  .kiosk-date-form .button {
    min-width: 164px;
  }
}

@media (max-height: 860px) {
  .pin-login-card {
    padding: 16px;
  }

  .pin-login-form {
    gap: 12px;
  }

  .pin-login-card .eyebrow {
    margin-bottom: 8px;
  }

  .pin-login-card h1 {
    font-size: clamp(24px, 4.2dvh, 34px);
  }

  .pin-login-card p {
    font-size: 14px;
  }
}

.pos-shell {
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  overflow: hidden;
  background: #070707;
  color: var(--text);
}

.pos-topbar,
.pos-tables-panel,
.pos-menu-panel,
.pos-order-panel,
.pos-history-layout,
.pos-analytics-layout,
.pos-management-layout,
.pos-stat,
.pos-access-empty {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(18, 18, 18, 0.96);
}

.pos-topbar {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 220px 220px;
  grid-template-areas: "brand tabs date operator";
  align-items: center;
  gap: 10px;
  padding: 8px;
}

.pos-brand,
.pos-operator,
.pos-tabs,
.pos-date-form {
  min-width: 0;
}

.pos-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-brand > div {
  min-width: 0;
}

.pos-brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #d71920;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.pos-brand strong,
.pos-brand span,
.pos-operator span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-brand strong {
  font-size: 1rem;
}

.pos-brand span,
.pos-operator span,
.pos-empty,
.pos-history-item span,
.pos-history-item p,
.pos-stat span {
  color: var(--muted);
}

.pos-tabs {
  grid-area: tabs;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  gap: 8px;
  min-height: 52px;
  overflow: visible;
}

.pos-tab,
.pos-icon-button,
.pos-category-chip,
.pos-table-tile,
.pos-product-tile,
.pos-action-button,
.pos-line-controls button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.pos-tab {
  min-width: 0;
  min-height: 52px;
  padding: 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-tab.is-active,
.pos-category-chip.is-active,
.pos-table-tile.is-selected {
  border-color: rgba(255, 48, 48, 0.7);
  background: rgba(255, 48, 48, 0.16);
}

.pos-date-form {
  grid-area: date;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
}

.pos-date-form input {
  min-width: 0;
  height: 52px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.pos-date-form input[type="date"] {
  color-scheme: dark;
  padding-right: 34px;
}

.pos-date-form input[type="date"]::-webkit-datetime-edit,
.pos-date-form input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.pos-date-form input[type="date"]::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

.pos-date-form input[type="date"]::-webkit-calendar-picker-indicator {
  width: 18px;
  height: 18px;
  margin-left: 4px;
  padding: 0;
  opacity: 0.86;
}

.pos-icon-button {
  height: 52px;
  padding: 0 14px;
}

.pos-operator {
  grid-area: operator;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.pos-operator form {
  margin: 0;
}

.pos-flash {
  position: fixed;
  top: 86px;
  right: 14px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 28px));
  padding: 14px 16px;
  border: 1px solid rgba(38, 194, 129, 0.3);
  border-radius: 8px;
  background: rgba(11, 42, 28, 0.96);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.pos-flash.is-warning {
  border-color: rgba(255, 188, 66, 0.35);
  background: rgba(76, 45, 4, 0.96);
}

.pos-workspace {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.pos-tab-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.pos-orders-layout {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 360px;
  gap: 10px;
}

.pos-tables-panel,
.pos-menu-panel,
.pos-order-panel,
.pos-history-layout,
.pos-analytics-layout,
.pos-management-layout {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr);
  overflow: hidden;
}

.pos-panel-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-panel-head span,
.pos-panel-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-panel-head span {
  color: #ffd8d8;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pos-panel-head strong {
  font-size: 1.05rem;
}

.pos-table-list,
.pos-product-grid,
.pos-order-lines,
.pos-history-list,
.pos-analytics-content,
.pos-management-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.26) transparent;
}

.pos-table-list::-webkit-scrollbar,
.pos-product-grid::-webkit-scrollbar,
.pos-order-lines::-webkit-scrollbar,
.pos-history-list::-webkit-scrollbar,
.pos-analytics-content::-webkit-scrollbar,
.pos-management-content::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.pos-table-list::-webkit-scrollbar-track,
.pos-product-grid::-webkit-scrollbar-track,
.pos-order-lines::-webkit-scrollbar-track,
.pos-history-list::-webkit-scrollbar-track,
.pos-analytics-content::-webkit-scrollbar-track,
.pos-management-content::-webkit-scrollbar-track {
  background: transparent;
}

.pos-table-list::-webkit-scrollbar-thumb,
.pos-product-grid::-webkit-scrollbar-thumb,
.pos-order-lines::-webkit-scrollbar-thumb,
.pos-history-list::-webkit-scrollbar-thumb,
.pos-analytics-content::-webkit-scrollbar-thumb,
.pos-management-content::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.pos-table-list::-webkit-scrollbar-corner,
.pos-product-grid::-webkit-scrollbar-corner,
.pos-order-lines::-webkit-scrollbar-corner,
.pos-history-list::-webkit-scrollbar-corner,
.pos-analytics-content::-webkit-scrollbar-corner,
.pos-management-content::-webkit-scrollbar-corner {
  background: transparent;
}

.pos-table-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.pos-table-tile {
  min-height: 84px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 8px;
  padding: 10px 12px;
  text-align: left;
}

.pos-table-tile.has-open-order {
  box-shadow: inset 3px 0 0 var(--amber);
}

.pos-table-name {
  font-size: 1.06rem;
  font-weight: 900;
}

.pos-table-footer span:last-child {
  color: var(--muted);
  font-size: 0.84rem;
}

.pos-table-footer {
  align-self: end;
  display: grid;
  gap: 5px;
}

.pos-status {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.pos-status.is-free {
  background: rgba(38, 194, 129, 0.14);
  color: #9bf2ca;
}

.pos-status.is-occupied {
  background: rgba(255, 188, 66, 0.16);
  color: #ffd98a;
}

@media (orientation: landscape) and (max-height: 760px) {
  .pos-table-list {
    gap: 6px;
    padding: 8px;
  }

  .pos-table-tile {
    min-height: 82px;
    gap: 6px;
    padding: 8px 10px;
  }

  .pos-table-name {
    font-size: 1rem;
  }

  .pos-status {
    padding: 3px 7px;
  }

  .pos-table-footer span:last-child {
    font-size: 0.8rem;
  }
}

.pos-menu-panel {
  grid-template-rows: 56px auto minmax(0, 1fr);
}

.pos-category-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
  padding: 10px;
  overflow: visible;
  align-content: start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-category-chip {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  grid-auto-rows: 112px;
  gap: 10px;
}

.pos-product-tile {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 10px;
  padding: 12px;
  text-align: left;
}

.pos-product-tile.is-in-order::after {
  content: attr(data-current-quantity);
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.pos-product-title {
  display: -webkit-box;
  overflow: hidden;
  padding-right: 28px;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.15;
}

.pos-product-tile strong {
  font-size: 1.02rem;
}

.pos-order-panel {
  grid-template-rows: 56px minmax(0, 1fr) auto auto;
}

.pos-order-lines {
  display: grid;
  align-content: start;
  gap: 8px;
}

.pos-order-line {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pos-order-line-main {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.pos-order-line-main strong,
.pos-order-line-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-order-line-main span {
  color: var(--muted);
  font-size: 0.86rem;
}

.pos-line-controls {
  display: grid;
  grid-template-columns: 36px minmax(32px, 1fr) 36px;
  align-items: center;
  gap: 6px;
}

.pos-line-controls button {
  width: 36px;
  height: 36px;
  font-size: 1.25rem;
  line-height: 1;
}

.pos-line-controls span {
  text-align: center;
  font-weight: 900;
}

.pos-order-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-action-button {
  min-height: 58px;
  padding: 0 10px;
}

.pos-action-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pos-pay-button {
  border-color: rgba(38, 194, 129, 0.35);
  background: rgba(38, 194, 129, 0.18);
}

.pos-muted-button {
  color: #d8d8d8;
}

.pos-pay-confirm {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 188, 66, 0.08);
}

.pos-pay-confirm div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pos-empty {
  min-height: 88px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
}

.pos-history-layout {
  height: 100%;
  min-height: 0;
}

.pos-history-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.pos-history-summary,
.pos-history-item {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pos-history-item {
  min-height: 86px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 120px;
  align-items: center;
  gap: 12px;
}

.pos-history-item div,
.pos-history-item p {
  min-width: 0;
}

.pos-history-item strong,
.pos-history-item span,
.pos-history-item p {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-history-item p {
  margin: 0;
}

.pos-history-item b {
  text-align: right;
  font-size: 1.08rem;
}

.pos-history-summary {
  display: grid;
  gap: 10px;
}

.pos-history-summary-head,
.pos-history-summary-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px 120px;
  align-items: center;
  gap: 10px;
}

.pos-history-summary-head span {
  color: #ffd8d8;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pos-history-summary-head strong,
.pos-history-summary-row b {
  text-align: right;
}

.pos-history-summary-grid {
  display: grid;
  gap: 8px;
}

.pos-history-summary-row {
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pos-history-summary-row strong,
.pos-history-summary-row span,
.pos-history-summary-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-history-summary-row span {
  color: var(--muted);
}

.pos-analytics-layout {
  height: 100%;
  min-height: 0;
  grid-template-rows: 56px auto minmax(0, 1fr);
}

.pos-management-layout {
  height: 100%;
  min-height: 0;
}

.pos-management-content {
  display: grid;
  grid-template-columns: minmax(360px, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 10px;
}

.pos-staff-content {
  grid-template-columns: minmax(360px, 0.75fr) minmax(0, 1.25fr);
}

.pos-management-form,
.pos-management-list,
.pos-management-group,
.pos-management-group-list {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.pos-management-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pos-management-form label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.pos-management-form label span,
.pos-management-group-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pos-management-form input,
.pos-management-form select,
.pos-management-form textarea {
  min-width: 0;
  width: 100%;
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.pos-management-form textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.35;
}

.pos-management-wide {
  grid-column: 1 / -1;
}

.pos-edit-state {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 188, 66, 0.22);
  border-radius: 8px;
  background: rgba(255, 188, 66, 0.08);
  color: #ffd98a;
  font-size: 0.86rem;
  font-weight: 900;
}

.pos-toggle-field {
  min-height: 42px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-self: end;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pos-toggle-field input,
.pos-permission-check input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.pos-toggle-field span,
.pos-permission-check span {
  color: #fff;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: 0;
}

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

.pos-management-actions {
  align-self: end;
}

.pos-management-actions .pos-action-button,
.pos-management-row-actions .pos-action-button {
  min-height: 42px;
}

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

.pos-permission-check {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pos-management-group {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pos-management-group-head,
.pos-management-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.pos-management-group-head strong {
  text-align: right;
}

.pos-management-item {
  min-height: 66px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pos-management-item.is-muted {
  opacity: 0.58;
}

.pos-management-item div {
  min-width: 0;
}

.pos-management-item strong,
.pos-management-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-management-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.pos-analytics-controls {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr 1.1fr 64px;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pos-analytics-controls label {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.pos-analytics-controls span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pos-analytics-controls select,
.pos-analytics-controls input {
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 800;
}

.pos-analytics-controls select {
  color-scheme: dark;
}

.pos-analytics-controls input[type="date"] {
  color-scheme: dark;
  padding-right: 32px;
}

.pos-analytics-controls input[type="date"]::-webkit-datetime-edit,
.pos-analytics-controls input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.pos-body select,
.pos-body select option,
.pos-body select optgroup {
  color-scheme: dark;
}

.pos-analytics-controls select option,
.pos-analytics-controls select optgroup,
.pos-management-form select option,
.pos-management-form select optgroup {
  color: #fff;
  background: #1b1b1b;
}

.pos-analytics-controls button {
  align-self: end;
  height: 42px;
}

.pos-analytics-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  align-content: start;
  gap: 10px;
}

.pos-chart {
  min-width: 0;
  min-height: 230px;
  height: max-content;
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.pos-chart-wide {
  grid-column: 1 / -1;
}

.pos-line-card {
  grid-template-rows: auto auto;
  min-height: clamp(304px, calc(34dvh + 78px), 438px);
}

.pos-chart-head {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pos-chart-head span,
.pos-chart-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-chart-head span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pos-bar-chart {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: visible;
}

.pos-chart-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
}

.pos-chart-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.pos-chart-row strong,
.pos-chart-row span,
.pos-chart-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-chart-row span {
  color: var(--muted);
  font-size: 0.8rem;
}

.pos-chart-row b {
  text-align: right;
}

.pos-chart-row i {
  grid-column: 1 / -1;
  height: 10px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 48, 48, 0.9), rgba(255, 188, 66, 0.9)) 0 / var(--bar-size) 100% no-repeat,
    rgba(255, 255, 255, 0.07);
}

.pos-line-chart {
  height: clamp(220px, 34dvh, 360px);
  min-height: 220px;
  overflow: visible;
}

.pos-line-chart svg {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
}

.pos-line-grid,
.pos-line-axis {
  vector-effect: non-scaling-stroke;
}

.pos-line-grid {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.pos-line-axis {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.pos-line-area {
  fill: rgba(255, 48, 48, 0.14);
}

.pos-line-path {
  fill: none;
  stroke: #ffbc42;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 14px rgba(255, 48, 48, 0.18));
}

.pos-line-dot {
  fill: #ff3030;
  stroke: #fff;
  stroke-width: 2;
}

.pos-line-hit {
  fill: transparent;
  cursor: default;
  pointer-events: all;
}

.pos-line-point:hover .pos-line-dot,
.pos-line-point:focus .pos-line-dot,
.pos-line-hit:hover + .pos-line-dot,
.pos-line-dot:hover {
  fill: #fff;
  stroke: #ff3030;
  stroke-width: 3;
}

.pos-line-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.pos-line-point:hover .pos-line-tooltip,
.pos-line-point:focus .pos-line-tooltip,
.pos-line-hit:hover ~ .pos-line-tooltip,
.pos-line-dot:hover ~ .pos-line-tooltip {
  opacity: 1;
}

.pos-line-tooltip rect {
  fill: rgba(12, 12, 12, 0.96);
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
}

.pos-line-tooltip text {
  fill: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.pos-line-tooltip text + text {
  fill: #ffcf6b;
}

.pos-line-label,
.pos-line-value {
  fill: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.pos-chart-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.pos-stats-grid {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, 1fr);
  gap: 10px;
}

.pos-stat {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 20px;
}

.pos-stat strong {
  overflow-wrap: anywhere;
  font-size: 2rem;
  font-weight: 900;
}

.pos-access-empty {
  height: 100%;
  min-height: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.pos-access-empty h1,
.pos-access-empty p {
  margin: 0;
}

@media (max-width: 1360px) {
  .pos-topbar {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
    grid-template-areas:
      "brand tabs date"
      "operator operator operator";
    align-items: start;
  }

  .pos-operator {
    min-height: 52px;
  }

  .pos-orders-layout,
  .pos-history-layout,
  .pos-analytics-layout,
  .pos-management-layout,
  .pos-stats-grid {
    height: 100%;
    min-height: 0;
  }

  .pos-orders-layout {
    grid-template-columns: 210px minmax(0, 1fr) 320px;
  }

  .pos-analytics-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr)) 64px;
  }

  .pos-management-content {
    grid-template-columns: minmax(330px, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 920px) {
  .pos-topbar {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
    grid-template-areas:
      "brand brand"
      "tabs tabs"
      "date operator";
  }

  .pos-tabs {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .pos-operator {
    min-height: 52px;
  }

  .pos-operator span {
    display: none;
  }

  .pos-operator form,
  .pos-operator .pos-icon-button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .pos-topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tabs"
      "date"
      "operator";
  }

  .pos-brand span {
    white-space: normal;
  }

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

  .pos-date-form,
  .pos-operator {
    width: 100%;
  }

  .pos-operator {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pos-operator span {
    display: block;
  }

  .pos-operator form,
  .pos-operator .pos-icon-button {
    width: auto;
  }
}

@media (orientation: portrait) and (max-width: 1024px) {
  body.pos-body {
    overflow: auto;
  }

  .pos-shell {
    height: auto;
    min-height: 100dvh;
    grid-template-rows: auto auto;
    overflow: visible;
  }

  .pos-topbar {
    height: auto;
  }

  .pos-workspace,
  .pos-tab-panel {
    height: auto;
    overflow: visible;
  }

  .pos-orders-layout,
  .pos-history-layout,
  .pos-analytics-layout,
  .pos-management-layout,
  .pos-stats-grid {
    height: auto;
    min-height: 0;
  }

  .pos-orders-layout {
    grid-template-columns: 1fr;
  }

  .pos-tables-panel,
  .pos-menu-panel,
  .pos-order-panel {
    min-height: 420px;
  }

  .pos-stats-grid {
    grid-template-columns: 1fr;
  }

  .pos-analytics-content {
    grid-template-columns: 1fr;
  }

  .pos-management-content,
  .pos-staff-content {
    grid-template-columns: 1fr;
  }

  .pos-analytics-controls {
    grid-template-columns: 1fr;
  }

  .pos-chart-wide {
    grid-row: auto;
    grid-column: auto;
  }
}
