:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --paper: #fffefa;
  --paper-strong: #ffffff;
  --ink: #19201d;
  --muted: #6f746b;
  --line: #ded8cb;
  --leaf: #2f6f51;
  --leaf-dark: #214d3a;
  --pepper: #c94a2f;
  --pepper-dark: #a83221;
  --mustard: #e6b43d;
  --charcoal: #131816;
  --smoke: #eef0eb;
  --shadow: 0 18px 42px rgba(25, 32, 29, 0.12);
  --soft-shadow: 0 10px 26px rgba(25, 32, 29, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(245, 241, 232, 0) 280px),
    var(--bg);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
.hero-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--leaf);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
}

button:hover,
.hero-button:hover {
  background: var(--leaf-dark);
}

button:disabled,
input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button.secondary {
  background: var(--smoke);
  color: var(--ink);
}

button.secondary:hover {
  background: #e3e7df;
}

button.danger {
  background: var(--pepper-dark);
}

button.small {
  min-height: 32px;
  padding: 0 10px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 76px;
  resize: vertical;
}

.demo-shell {
  min-height: 100vh;
}

.friends-shell {
  padding-bottom: 56px;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 38px);
  background: rgba(255, 254, 250, 0.9);
  border-bottom: 1px solid rgba(222, 216, 203, 0.9);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
}

.brand,
.brand-link {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--charcoal) 0%, var(--leaf) 58%, var(--mustard) 100%);
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-copy,
.brand span {
  min-width: 0;
  display: grid;
}

.brand-copy strong,
.brand h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.brand-copy span,
.brand span {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.nav-menu {
  position: relative;
  justify-content: flex-end;
}

.menu-toggle {
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-drawer {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 60;
  width: min(340px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  padding: 12px;
}

.menu-drawer[hidden] {
  display: none;
}

.menu-drawer__link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-drawer__title {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.ordering-band {
  width: min(1220px, calc(100% - 32px));
  margin: 22px auto 0;
}

.restaurant-hero {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  border: 1px solid rgba(19, 24, 22, 0.16);
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(19, 24, 22, 0.88) 0%, rgba(19, 24, 22, 0.74) 34%, rgba(19, 24, 22, 0.18) 100%),
    linear-gradient(0deg, rgba(19, 24, 22, 0.78), rgba(19, 24, 22, 0.08) 55%),
    url("/assets/hero-kebab.png") center right / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  width: min(720px, calc(100% - 32px));
  position: relative;
  z-index: 1;
  padding: clamp(28px, 5vw, 54px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pepper);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.restaurant-hero .eyebrow {
  color: var(--mustard);
}

.restaurant-hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 560px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.service-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 11px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.service-chip.green {
  border-color: rgba(134, 222, 172, 0.45);
  color: #d8ffe8;
}

.order-controls {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--soft-shadow);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(94px, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f0ede4;
}

.mode-tab {
  min-height: 38px;
  background: transparent;
  color: var(--muted);
}

.mode-tab:hover {
  background: #e4e1d7;
}

.mode-tab.active {
  background: var(--charcoal);
  color: #fff;
}

.compact-select,
.distance-field {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.distance-field.is-muted {
  opacity: 0.55;
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.menu-column {
  min-width: 0;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 4px 0 12px;
  position: sticky;
  top: 76px;
  z-index: 20;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(245, 241, 232, 0.92) 100%);
}

.category-tabs button {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(25, 32, 29, 0.05);
}

.category-tabs button.active {
  border-color: var(--leaf);
  background: var(--leaf);
  color: #fff;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.feature-row div {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--soft-shadow);
}

.feature-row span {
  color: var(--pepper);
  font-size: 13px;
  font-weight: 900;
}

.feature-row strong {
  font-size: 15px;
}

.menu-stack {
  display: grid;
  gap: 26px;
}

.menu-section {
  scroll-margin-top: 126px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.section-heading > span {
  color: var(--muted);
  font-weight: 850;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(286px, 1fr));
  gap: 12px;
}

.menu-card,
.order-card,
.metric,
.restaurant-row,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--soft-shadow);
}

.menu-card {
  min-height: 292px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 122px 1fr auto;
}

.menu-card.is-off {
  filter: grayscale(0.7);
}

.item-photo {
  background-size: cover;
  background-position: center;
}

.item-body {
  padding: 14px 14px 8px;
}

.item-title {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.item-title h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.22;
}

.item-body p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.variant-row {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.variant-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.variant-row select {
  min-height: 38px;
  padding: 7px 9px;
  background: #f7f4ee;
  font-size: 14px;
  font-weight: 800;
}

.attribute-controls {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.attribute-row {
  display: grid;
  gap: 6px;
}

.attribute-row span,
.attribute-row legend {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.attribute-row select {
  min-height: 38px;
  border-radius: 8px;
  padding: 7px 9px;
  background: #f7f4ee;
  font-size: 14px;
  font-weight: 800;
}

.attribute-row--checks {
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.attribute-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attribute-checks label {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(31, 54, 44, 0.16);
  border-radius: 8px;
  background: #f7f4ee;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 850;
}

.attribute-checks input {
  margin: 0;
}

.tag,
.pill {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 8px;
  background: #f4e3b4;
  color: #6f4a00;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.tag.green {
  background: #dff1e6;
  color: #1f5b41;
}

.tag.off,
.pill.cancelled {
  background: #f3d2ca;
  color: #8a2115;
}

.pill.new {
  background: #f5e6b9;
  color: #765400;
}

.pill.preparing {
  background: #dcebea;
  color: #255a60;
}

.pill.ready,
.pill.courier,
.pill.completed {
  background: #dff1e6;
  color: #1f5b41;
}

.item-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 14px;
}

.item-buy strong {
  font-size: 18px;
}

.item-buy button {
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 26px;
  line-height: 1;
}

.checkout-card {
  position: sticky;
  top: 88px;
  border: 1px solid rgba(19, 24, 22, 0.96);
  border-radius: 8px;
  background: var(--charcoal);
  color: #fff;
  box-shadow: var(--shadow);
  padding: 14px;
}

.checkout-card .eyebrow {
  color: var(--mustard);
  font-size: 11px;
}

.checkout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
}

.cart-count {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mustard);
  color: var(--charcoal);
  font-weight: 950;
}

.cart-lines {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.cart-line,
.empty-cart {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 9px;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.cart-line strong,
.empty-cart strong {
  display: block;
  font-size: 13px;
}

.cart-line span,
.empty-cart span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.cart-line__attrs {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}

.quantity {
  display: grid;
  grid-template-columns: 30px 24px 30px;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.mini-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  background: #fff;
  color: var(--ink);
}

.mini-button:hover {
  background: #efe9dd;
}

.totals {
  display: grid;
  gap: 6px;
  padding: 11px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
}

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

.row-between.total {
  font-size: 17px;
}

.minimum-hint {
  min-height: 20px;
  margin: 2px 0 0;
  color: #f4db96;
  font-size: 12px;
  line-height: 1.35;
}

.checkout-form {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 8px 10px;
  font-size: 14px;
}

.checkout-form input::placeholder,
.checkout-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.checkout-form option {
  color: var(--ink);
}

.checkout-form textarea {
  min-height: 64px;
}

.address-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.address-combobox {
  position: relative;
  min-width: 0;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  overflow: auto;
  max-height: 220px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.address-suggestions[hidden] {
  display: none !important;
}

.address-suggestions.open {
  display: grid;
}

.address-suggestion {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  width: 100%;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.address-suggestion:hover,
.address-suggestion.is-active {
  background: #f5f1e8;
}

.address-suggestion:last-child {
  border-bottom: 0;
}

.address-suggestion strong {
  font-size: 14px;
  line-height: 1.25;
}

.address-suggestion span {
  color: var(--pepper);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 950;
}

.address-suggestions__status,
.address-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.address-hint {
  min-height: 18px;
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.split-fields,
.toolbar,
.filters,
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.status {
  min-height: 20px;
  color: #d8ffe8;
  font-size: 14px;
  font-weight: 750;
}

.danger-text {
  color: #ffb4aa;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.side,
.cart,
.content .panel {
  padding: 16px;
}

.side {
  display: grid;
  gap: 10px;
  align-content: start;
}

.content,
.orders-grid,
.restaurant-list,
.kds-grid {
  display: grid;
  gap: 12px;
}

.orders-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.metric,
.order-card,
.restaurant-row {
  padding: 14px;
}

.metric span,
.order-card .muted,
.muted {
  color: var(--muted);
}

.metric strong {
  display: block;
  margin-top: 4px;
  font-size: 26px;
}

.order-card h3 {
  margin: 0;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.kds {
  padding: 18px;
}

.kds-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 960px) {
  .restaurant-hero {
    min-height: 420px;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(19, 24, 22, 0.38) 0%, rgba(19, 24, 22, 0.9) 78%),
      url("/assets/hero-kebab.png") center / cover no-repeat;
  }

  .hero-content {
    align-self: end;
    padding-top: 210px;
  }

  .order-controls,
  .menu-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .checkout-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
  }

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

  .nav a button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .brand-copy strong {
    font-size: 16px;
  }

  .brand-copy span {
    max-width: 170px;
  }

  .ordering-band {
    width: min(100% - 20px, 1220px);
    margin-top: 12px;
  }

  .restaurant-hero {
    min-height: 390px;
  }

  .restaurant-hero h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .mode-tabs,
  .feature-row,
  .address-fields,
  .split-fields,
  .filters,
  .editor-grid,
  .items-grid,
  .orders-grid,
  .kds-grid {
    grid-template-columns: 1fr;
  }

  .category-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    top: 69px;
  }

  .category-tabs button {
    min-height: 42px;
    padding: 0 10px;
    white-space: normal;
    line-height: 1.15;
  }
}

/* Public ordering page inspired by the official Friends Kebab site. */
.friends-public-page {
  color-scheme: dark;
  --bg: #0c0b09;
  --paper: #171511;
  --paper-strong: #1f1c17;
  --ink: #fff8ec;
  --muted: #c5b9a6;
  --line: rgba(255, 248, 236, 0.16);
  --leaf: #f11212;
  --leaf-dark: #bd0707;
  --pepper: #ff2020;
  --pepper-dark: #c90808;
  --mustard: #f3c24d;
  --charcoal: #0c0b09;
  --smoke: #211f1b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --soft-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #0c0b09 0%, #150f0d 48%, #0c0b09 100%);
  color: var(--ink);
  font-family: Roboto, Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.friends-public-page .friends-shell {
  min-height: 100vh;
  padding-bottom: 72px;
}

.friends-public-page .topbar {
  min-height: 78px;
  border-bottom: 1px solid rgba(255, 248, 236, 0.12);
  background: rgba(12, 11, 9, 0.95);
  backdrop-filter: blur(18px);
  padding: 12px clamp(16px, 4vw, 54px);
}

.friends-public-page .brand-mark {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 248, 236, 0.9);
  border-radius: 50%;
  background: #f11212;
  color: #fff;
  box-shadow:
    0 0 0 5px rgba(241, 18, 18, 0.18),
    inset 0 -10px 18px rgba(92, 0, 0, 0.34);
  font-size: 16px;
}

.friends-public-page .brand-copy strong {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.friends-public-page .brand-copy span {
  color: var(--mustard);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.friends-public-page .nav {
  gap: 10px;
}

.friends-public-page .nav-menu {
  margin-left: auto;
}

.friends-public-page .nav-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: rgba(255, 248, 236, 0.78);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.friends-public-page .nav-link:hover {
  border-bottom-color: var(--pepper);
  color: #fff;
}

.friends-public-page .menu-toggle {
  border-color: rgba(255, 32, 32, 0.86);
  background: rgba(12, 11, 9, 0.86);
  color: #fff;
}

.friends-public-page .menu-toggle:hover,
.friends-public-page .menu-toggle.is-open {
  background: var(--pepper);
}

.friends-public-page .menu-drawer {
  border-color: rgba(255, 32, 32, 0.62);
  border-radius: 22px 4px 22px 4px;
  background:
    linear-gradient(135deg, rgba(255, 32, 32, 0.16), transparent 50%),
    #12100d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.friends-public-page .menu-drawer__link {
  border-color: rgba(255, 248, 236, 0.13);
  background: rgba(255, 248, 236, 0.05);
  color: #fff;
}

.friends-public-page .menu-drawer__link:hover {
  border-color: var(--pepper);
  background: rgba(255, 32, 32, 0.16);
}

.friends-public-page .menu-drawer__title {
  color: var(--mustard);
}

.friends-public-page button,
.friends-public-page .hero-button {
  border: 1px solid rgba(255, 32, 32, 0.74);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  box-shadow: none;
  text-transform: uppercase;
}

.friends-public-page button:hover,
.friends-public-page .hero-button:hover {
  border-color: #ff3b3b;
  background: rgba(255, 32, 32, 0.16);
}

.friends-public-page button.secondary {
  min-height: 38px;
  background: transparent;
  color: #fff;
}

.friends-public-page input,
.friends-public-page select,
.friends-public-page textarea {
  border-color: rgba(255, 248, 236, 0.16);
  border-radius: 14px;
  background: #12100d;
  color: #fff;
}

.friends-public-page input:focus,
.friends-public-page select:focus,
.friends-public-page textarea:focus {
  border-color: rgba(255, 32, 32, 0.85);
  outline: 3px solid rgba(255, 32, 32, 0.15);
}

.friends-public-page select option {
  background: #181612;
  color: #fff;
}

.friends-public-page .ordering-band {
  width: 100%;
  margin: 0;
}

.friends-public-page .restaurant-hero {
  min-height: clamp(520px, 68vh, 720px);
  align-items: center;
  border: 0;
  border-radius: 0;
  background: #0c0b09;
  box-shadow: none;
  isolation: isolate;
}

.friends-public-page .restaurant-hero::before,
.friends-public-page .restaurant-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.friends-public-page .restaurant-hero::before {
  right: clamp(18px, 7vw, 112px);
  bottom: 0;
  z-index: 2;
  width: min(360px, 42vw);
  height: 72%;
  background: rgba(241, 18, 18, 0.72);
  clip-path: polygon(42% 0, 100% 0, 58% 100%, 0 100%);
  mix-blend-mode: screen;
  opacity: 0.3;
}

.friends-public-page .restaurant-hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 5px;
  background: linear-gradient(90deg, transparent 0%, #f11212 18%, #f11212 82%, transparent 100%);
}

.friends-public-page .hero-media {
  background:
    linear-gradient(90deg, rgba(12, 11, 9, 0.98) 0%, rgba(12, 11, 9, 0.9) 42%, rgba(12, 11, 9, 0.35) 100%),
    linear-gradient(0deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.14) 62%),
    url("https://friends-kebab.com.pl/assets/img/hero-bg.webp") center right / cover no-repeat,
    url("/assets/hero-kebab.png") center right / cover no-repeat;
  filter: saturate(1.08) contrast(1.08);
  transform: none;
}

.friends-public-page .hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 96px) 0;
}

.friends-public-page .restaurant-hero .eyebrow {
  color: var(--pepper);
  font-size: 13px;
}

.friends-public-page .restaurant-hero h1 {
  max-width: 980px;
  color: #fff;
  font-size: clamp(42px, 5.8vw, 78px);
  font-weight: 950;
  line-height: 0.98;
  text-transform: uppercase;
}

.friends-public-page .hero-lead {
  max-width: 650px;
  margin-top: 20px;
  color: rgba(255, 248, 236, 0.8);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.45;
}

.friends-public-page .hero-actions {
  gap: 12px;
  margin-top: 28px;
}

.friends-public-page .hero-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  font-size: 13px;
  font-weight: 950;
}

.friends-public-page .hero-button-solid {
  background: var(--pepper);
}

.friends-public-page .hero-button-solid:hover {
  background: #c90808;
}

.friends-public-page .hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.friends-public-page .hero-facts span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 248, 236, 0.06);
  color: rgba(255, 248, 236, 0.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.friends-public-page .order-controls {
  position: relative;
  z-index: 5;
  width: min(1120px, calc(100% - 32px));
  margin: -34px auto 34px;
  border-color: rgba(241, 18, 18, 0.72);
  border-radius: 26px 4px 26px 4px;
  background:
    linear-gradient(135deg, rgba(241, 18, 18, 0.18), transparent 42%),
    #181612;
  box-shadow: var(--shadow);
}

.friends-public-page .checkout-order-controls {
  width: 100%;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 10px;
  margin: 14px 0 12px;
  padding: 10px;
  border-color: rgba(255, 248, 236, 0.13);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(241, 18, 18, 0.12), transparent 58%),
    rgba(255, 248, 236, 0.04);
  box-shadow: none;
}

.friends-public-page .checkout-order-controls .mode-tabs {
  width: 100%;
}

.friends-public-page .checkout-order-controls .compact-select {
  min-width: 0;
}

.friends-public-page .mode-tabs {
  border-color: rgba(255, 248, 236, 0.14);
  border-radius: 999px;
  background: #0c0b09;
}

.friends-public-page .mode-tab {
  min-height: 40px;
  border: 0;
  color: rgba(255, 248, 236, 0.72);
}

.friends-public-page .mode-tab.active {
  background: var(--pepper);
  color: #fff;
}

.friends-public-page .compact-select {
  color: rgba(255, 248, 236, 0.66);
}

.friends-public-page .menu-layout {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 24px;
}

.friends-public-page .category-tabs {
  position: static;
  top: auto;
  gap: 10px;
  padding: 0;
  background: transparent;
}

.friends-public-page .category-tabs button {
  min-height: 46px;
  border-color: rgba(255, 248, 236, 0.18);
  border-radius: 999px;
  background: #171511;
  color: #fff;
  font-size: 14px;
  font-weight: 950;
  white-space: normal;
}

.friends-public-page .category-tabs button.active {
  border-color: var(--pepper);
  background: var(--pepper);
  color: #fff;
}

.friends-public-page .menu-drawer__categories {
  grid-template-columns: 1fr;
  gap: 8px;
}

.friends-public-page .menu-drawer__categories button {
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  font-size: 12px;
}

.friends-public-page .feature-row {
  gap: 12px;
  margin-bottom: 28px;
}

.friends-public-page .feature-row div {
  min-height: 112px;
  align-content: start;
  gap: 6px;
  border-color: rgba(241, 18, 18, 0.48);
  border-radius: 22px 4px 22px 4px;
  background:
    linear-gradient(135deg, rgba(241, 18, 18, 0.16), transparent 42%),
    #171511;
  box-shadow: none;
}

.friends-public-page .feature-row span {
  color: var(--pepper);
  font-size: 18px;
  font-weight: 950;
}

.friends-public-page .feature-row strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.friends-public-page .feature-row small {
  color: rgba(255, 248, 236, 0.68);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.35;
}

.friends-public-page .menu-stack {
  gap: 34px;
}

.friends-public-page .menu-section {
  scroll-margin-top: 164px;
}

.friends-public-page .section-heading {
  align-items: center;
  border-bottom: 1px solid rgba(255, 32, 32, 0.48);
  padding: 0 0 10px;
  margin-bottom: 14px;
}

.friends-public-page .section-heading h2 {
  position: relative;
  display: inline-block;
  color: #fff;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 950;
  line-height: 1;
}

.friends-public-page .section-heading h2::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  bottom: -10px;
  width: min(100%, 220px);
  height: 4px;
  border-radius: 999px;
  background: var(--pepper);
}

.friends-public-page .section-heading > span {
  color: rgba(255, 248, 236, 0.58);
}

.friends-public-page .items-grid {
  grid-template-columns: repeat(auto-fill, minmax(294px, 1fr));
  gap: 16px;
}

.friends-public-page .menu-card {
  position: relative;
  min-height: 318px;
  overflow: hidden;
  border-color: rgba(255, 248, 236, 0.14);
  border-radius: 22px 3px 22px 3px;
  background: #171511;
  box-shadow: none;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.friends-public-page .menu-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, var(--pepper), transparent);
}

.friends-public-page .menu-card:hover {
  border-color: rgba(255, 32, 32, 0.82);
  background: #1e1b16;
  transform: translateY(-2px);
}

.friends-public-page .item-photo {
  min-height: 132px;
  background-color: #211f1b;
  filter: saturate(1.05) contrast(1.08);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.friends-public-page .item-body {
  padding: 16px 16px 8px;
}

.friends-public-page .item-title h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.friends-public-page .item-body p,
.friends-public-page .variant-row span,
.friends-public-page .attribute-row span,
.friends-public-page .attribute-row legend {
  color: rgba(255, 248, 236, 0.62);
}

.friends-public-page .variant-row select,
.friends-public-page .attribute-row select {
  border-color: rgba(255, 248, 236, 0.12);
  background: #0f0e0c;
  color: #fff;
  font-weight: 900;
}

.friends-public-page .attribute-checks label {
  border-color: rgba(255, 248, 236, 0.12);
  background: #0f0e0c;
  color: #fff;
}

.friends-public-page .tag,
.friends-public-page .pill {
  border-radius: 999px;
  background: rgba(243, 194, 77, 0.18);
  color: var(--mustard);
}

.friends-public-page .tag.hot {
  background: rgba(255, 32, 32, 0.18);
  color: #ff9d9d;
}

.friends-public-page .tag.green {
  background: rgba(67, 192, 117, 0.18);
  color: #a8ffc7;
}

.friends-public-page .item-buy {
  border-top: 1px solid rgba(255, 248, 236, 0.1);
  padding: 14px 16px 16px;
}

.friends-public-page .item-buy strong {
  color: #fff;
  font-size: 20px;
}

.friends-public-page .item-buy button {
  width: 48px;
  height: 48px;
  border-color: var(--pepper);
  background: var(--pepper);
  font-size: 28px;
}

.friends-public-page .checkout-card {
  top: 96px;
  border-color: rgba(241, 18, 18, 0.72);
  border-radius: 26px 4px 26px 4px;
  background:
    linear-gradient(135deg, rgba(241, 18, 18, 0.12), transparent 38%),
    #12100d;
  box-shadow: var(--shadow);
}

.friends-public-page .checkout-card .eyebrow {
  color: var(--pepper);
}

.friends-public-page .checkout-head h2,
.friends-public-page .row-between.total {
  color: #fff;
}

.friends-public-page .cart-count {
  border-radius: 50%;
  background: var(--pepper);
  color: #fff;
}

.friends-public-page .address-check-card {
  display: grid;
  gap: 10px;
  margin: 16px 0 12px;
  padding: 12px;
  border: 1px solid rgba(255, 32, 32, 0.42);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 32, 32, 0.14), transparent 54%),
    rgba(255, 248, 236, 0.045);
}

.friends-public-page .address-check-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.friends-public-page .address-check-card__head .eyebrow {
  margin-bottom: 3px;
}

.friends-public-page .address-check-card__head strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.1;
}

.friends-public-page .address-check-card__mode {
  width: 100%;
}

.friends-public-page .address-fields--checker {
  gap: 8px;
}

.friends-public-page .address-step-field {
  display: grid;
  gap: 5px;
  color: rgba(255, 248, 236, 0.66);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.friends-public-page .address-step-field input,
.friends-public-page .address-step-field select {
  min-height: 46px;
  font-weight: 850;
}

.friends-public-page .address-step-field input:disabled {
  opacity: 0.55;
}

.friends-public-page .address-number-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.friends-public-page .check-address-button {
  width: 100%;
  min-height: 46px;
  border-color: var(--pepper);
  background: var(--pepper);
  color: #fff;
  font-weight: 950;
}

.friends-public-page .check-address-button:hover {
  background: #c90808;
}

.friends-public-page .address-check-card.is-ok {
  border-color: rgba(67, 192, 117, 0.7);
}

.friends-public-page .address-check-card.is-error {
  border-color: rgba(255, 112, 96, 0.74);
}

.friends-public-page .address-hint.is-ok {
  color: #a8ffc7;
}

.friends-public-page .address-hint.is-error {
  color: #ffb4aa;
}

.friends-public-page .cart-line,
.friends-public-page .empty-cart {
  border-color: rgba(255, 248, 236, 0.12);
  border-radius: 16px;
  background: rgba(255, 248, 236, 0.05);
}

.friends-public-page .mini-button {
  border-color: rgba(255, 248, 236, 0.24);
  background: #fff;
  color: #0c0b09;
}

.friends-public-page .totals {
  border-color: rgba(255, 248, 236, 0.12);
}

.friends-public-page .checkout-form input,
.friends-public-page .checkout-form select,
.friends-public-page .checkout-form textarea {
  border-color: rgba(255, 248, 236, 0.16);
  background: rgba(255, 248, 236, 0.06);
  color: #fff;
}

.friends-public-page .checkout-form input::placeholder,
.friends-public-page .checkout-form textarea::placeholder {
  color: rgba(255, 248, 236, 0.52);
}

.friends-public-page .address-suggestions {
  border-color: rgba(255, 32, 32, 0.36);
  background: #171511;
  color: #fff;
}

.friends-public-page .address-suggestion {
  border-bottom-color: rgba(255, 248, 236, 0.1);
  background: #171511;
  color: #fff;
  text-transform: none;
}

.friends-public-page .address-suggestion:hover,
.friends-public-page .address-suggestion.is-active {
  background: #251f19;
}

.friends-public-page .address-suggestion span,
.friends-public-page .address-suggestions__status,
.friends-public-page .address-empty {
  color: rgba(255, 248, 236, 0.64);
}

.friends-public-page #checkoutButton {
  min-height: 52px;
  border-color: var(--pepper);
  background: var(--pepper);
  font-weight: 950;
}

.friends-public-page #checkoutButton:hover {
  background: #c90808;
}

@media (max-width: 960px) {
  .friends-public-page .restaurant-hero {
    min-height: 600px;
  }

  .friends-public-page .hero-media {
    background:
      linear-gradient(180deg, rgba(12, 11, 9, 0.22) 0%, rgba(12, 11, 9, 0.95) 74%),
      url("https://friends-kebab.com.pl/assets/img/hero-bg.webp") center / cover no-repeat,
      url("/assets/hero-kebab.png") center / cover no-repeat;
  }

  .friends-public-page .hero-content {
    align-self: end;
    padding-top: 260px;
  }

  .friends-public-page .order-controls,
  .friends-public-page .menu-layout {
    grid-template-columns: 1fr;
  }

  .friends-public-page .checkout-card {
    position: static;
  }
}

@media (max-width: 680px) {
  .friends-public-page .topbar {
    min-height: 72px;
    align-items: center;
  }

  .friends-public-page .brand-mark {
    width: 46px;
    height: 46px;
  }

  .friends-public-page .nav-link {
    display: none;
  }

  .friends-public-page .nav a button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .friends-public-page .restaurant-hero {
    min-height: 560px;
  }

  .friends-public-page .restaurant-hero h1 {
    font-size: clamp(36px, 10vw, 46px);
    line-height: 1.02;
  }

  .friends-public-page .hero-lead {
    font-size: 16px;
  }

  .friends-public-page .hero-actions {
    align-items: stretch;
  }

  .friends-public-page .hero-button {
    width: 100%;
  }

  .friends-public-page .hero-facts span {
    flex: 1 1 140px;
  }

  .friends-public-page .order-controls,
  .friends-public-page .menu-layout {
    width: min(100% - 20px, 1220px);
  }

  .friends-public-page .order-controls {
    margin-top: -22px;
  }

  .friends-public-page .checkout-order-controls {
    width: 100%;
    margin: 14px 0 12px;
  }

  .friends-public-page .address-check-card {
    margin-top: 14px;
    padding: 11px;
  }

  .friends-public-page .address-number-grid {
    grid-template-columns: 1fr;
  }

  .friends-public-page .category-tabs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .friends-public-page .category-tabs button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

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

  .friends-public-page .menu-section {
    scroll-margin-top: 92px;
  }

  .friends-public-page .section-heading {
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 12px;
  }

  .friends-public-page .section-heading h2 {
    font-size: 22px;
  }

  .friends-public-page .section-heading .eyebrow {
    font-size: 10px;
  }

  .friends-public-page .section-heading > span {
    font-size: 12px;
  }

  .friends-public-page .menu-card {
    min-height: 0;
    grid-template-rows: 92px auto auto;
    border-radius: 17px 3px 17px 3px;
  }

  .friends-public-page .menu-card::before {
    height: 3px;
  }

  .friends-public-page .item-photo {
    min-height: 92px;
  }

  .friends-public-page .item-body {
    padding: 10px 9px 8px;
  }

  .friends-public-page .item-title {
    min-height: 0;
    display: block;
  }

  .friends-public-page .item-title h3 {
    font-size: 13px;
    line-height: 1.16;
  }

  .friends-public-page .tag {
    display: none;
  }

  .friends-public-page .item-body p {
    min-height: 32px;
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    color: rgba(255, 248, 236, 0.58);
    font-size: 11px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .friends-public-page .variant-row,
  .friends-public-page .attribute-controls {
    gap: 5px;
    margin-top: 8px;
  }

  .friends-public-page .attribute-controls {
    gap: 6px;
  }

  .friends-public-page .variant-row span,
  .friends-public-page .attribute-row span,
  .friends-public-page .attribute-row legend {
    font-size: 9px;
  }

  .friends-public-page .variant-row select,
  .friends-public-page .attribute-row select {
    min-height: 34px;
    border-radius: 10px;
    padding: 5px 7px;
    font-size: 11px;
  }

  .friends-public-page .item-buy {
    gap: 8px;
    padding: 9px;
  }

  .friends-public-page .item-buy strong {
    font-size: 14px;
    white-space: nowrap;
  }

  .friends-public-page .item-buy button {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    font-size: 22px;
  }
}

@media (max-width: 680px) and (max-height: 700px) {
  .friends-public-page .restaurant-hero {
    min-height: 500px;
  }

  .friends-public-page .hero-content {
    padding-top: 170px;
  }

  .friends-public-page .hero-facts {
    display: none;
  }
}

/* Surfburger-style operations surfaces for admin and tablet. */
.ops-page {
  --ops-bg: #3f5763;
  --ops-panel: #22343d;
  --ops-panel-strong: #2b414b;
  --ops-line: rgba(213, 229, 235, 0.24);
  --ops-line-strong: rgba(235, 246, 250, 0.34);
  --ops-text: #f4fbfd;
  --ops-muted: #c6d9df;
  --ops-accent: #e66f56;
  --ops-accent-soft: #ffd166;
  --ops-ok: #56c28c;
  --ops-danger: #ef6868;
  min-height: 100vh;
  color: var(--ops-text);
  background:
    radial-gradient(circle at 14% 7%, rgba(230, 111, 86, 0.16), transparent 30%),
    radial-gradient(circle at 82% 6%, rgba(156, 199, 210, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(72, 97, 108, 0.68), rgba(58, 79, 89, 0.72)),
    var(--ops-bg);
}

.ops-page button,
.ops-page input,
.ops-page select {
  font: inherit;
}

.ops-page input,
.ops-page select {
  min-height: 44px;
  border: 1px solid var(--ops-line);
  border-radius: 12px;
  background: var(--ops-panel-strong);
  color: var(--ops-text);
  padding: 0 12px;
  outline: none;
}

.ops-page select option {
  color: #14232b;
  background: #f4f8fa;
}

.ops-page .eyebrow {
  color: var(--ops-accent-soft);
  letter-spacing: 0.16em;
}

.primary-button,
.ghost-button,
.order-action,
.ops-page button.danger {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ops-line);
  color: var(--ops-text);
  font-weight: 850;
  cursor: pointer;
}

.primary-button,
.order-action {
  background: linear-gradient(135deg, rgba(230, 111, 86, 0.82), rgba(177, 73, 56, 0.92));
}

.primary-button:hover,
.order-action:hover {
  background: linear-gradient(135deg, rgba(235, 127, 103, 0.95), rgba(191, 82, 63, 0.98));
}

.ghost-button {
  background: rgba(255, 255, 255, 0.08);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.ops-page button.danger {
  background: rgba(239, 104, 104, 0.32);
  border-color: rgba(255, 150, 150, 0.42);
}

.ops-page button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.admin-shell,
.tablet-shell {
  width: min(1540px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 22px 0 42px;
}

.tablet-shell {
  width: min(1920px, calc(100vw - 24px));
  display: grid;
  gap: 12px;
}

.admin-topbar,
.tablet-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(45, 67, 77, 0.98), rgba(34, 52, 61, 0.98));
  box-shadow: 0 10px 22px rgba(21, 33, 39, 0.22);
}

.admin-topbar__branding,
.tablet-topbar > div:first-child {
  min-width: 0;
}

.admin-topbar h1,
.tablet-topbar h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 0.96;
  letter-spacing: 0;
}

.scope-label,
.scope {
  margin: 6px 0 0;
  color: var(--ops-muted);
}

.admin-topbar__actions,
.tablet-topbar__actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.filter,
.field {
  min-width: 170px;
  display: grid;
  gap: 6px;
}

.filter span,
.field span {
  color: var(--ops-muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.filter--pin {
  width: 150px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  padding: 0;
}

.admin-sidebar,
.ops-panel {
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  background: rgba(34, 52, 61, 0.88);
  box-shadow: 0 14px 30px rgba(11, 18, 23, 0.18);
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.admin-sidebar__nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar__item,
.ghost-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ops-text);
  text-decoration: none;
  font-weight: 850;
}

.admin-sidebar__item.is-active {
  border-color: rgba(255, 209, 102, 0.45);
  background: rgba(255, 209, 102, 0.14);
}

.admin-sidebar__links {
  display: grid;
  gap: 8px;
}

.admin-content {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 38px);
}

.last-sync {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ops-muted);
  font-weight: 850;
}

.orders-mini,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ops-stat,
.stat-card {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  padding: 13px;
  background: rgba(34, 52, 61, 0.88);
}

.ops-stat span,
.stat-card span {
  color: var(--ops-muted);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 850;
}

.ops-stat strong,
.stat-card strong {
  font-size: clamp(24px, 2.5vw, 36px);
  line-height: 1;
}

.orders-board,
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
  align-items: start;
}

.board {
  grid-template-columns: repeat(4, minmax(240px, 1fr));
}

.orders-window,
.status-column {
  min-height: 280px;
  border: 1px solid var(--ops-line);
  border-radius: 16px;
  background: rgba(31, 45, 52, 0.88);
  overflow: hidden;
}

.orders-window > header,
.status-column > header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--ops-line);
  background: rgba(255, 255, 255, 0.05);
}

.orders-window h3,
.status-column h2 {
  margin: 0;
  font-size: 18px;
}

.orders-window header span,
.status-column header span {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 950;
}

.orders-window__list,
.status-list {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.ops-order-card,
.tablet-order-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: #f7fbfc;
  color: #142229;
  box-shadow: 0 10px 20px rgba(11, 18, 23, 0.16);
}

.ops-order-card header,
.tablet-order-card header,
.ops-order-card footer,
.tablet-order-card footer {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.ops-order-card footer,
.tablet-order-card footer {
  align-items: center;
}

.ops-order-card h3,
.tablet-order-card h3 {
  margin: 0;
  font-size: 17px;
}

.order-id {
  margin: 0 0 3px;
  color: #5e7078;
  font-size: 12px;
  font-weight: 950;
}

.status-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: #17252c;
  background: #e8eef1;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.status-pill.new {
  background: #ffdfcf;
}

.status-pill.preparing {
  background: #dff1ff;
}

.status-pill.ready {
  background: #fff0be;
}

.status-pill.courier,
.status-pill.completed {
  background: #dff6e9;
}

.status-pill.cancelled {
  background: #f4d4d4;
}

.order-meta,
.tablet-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-meta span,
.tablet-order-meta span {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 8px;
  background: #e9eff1;
  color: #41545c;
  font-size: 12px;
  font-weight: 850;
}

.order-address,
.tablet-address,
.order-note {
  margin: 0;
  color: #42545c;
  line-height: 1.35;
}

.order-note {
  border-left: 3px solid #ffd166;
  padding-left: 8px;
  font-weight: 750;
}

.order-lines,
.tablet-lines {
  display: grid;
  gap: 6px;
}

.order-line,
.tablet-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.order-line span,
.tablet-line span {
  min-width: 0;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin: 0;
}

.order-actions button,
.compact-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.empty-state {
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--ops-line);
  border-radius: 12px;
  color: var(--ops-muted);
  text-align: center;
  padding: 12px;
}

.empty-state--error {
  color: #ffd1c9;
}

.banner {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ops-text);
  font-weight: 850;
}

.banner[data-tone="success"] {
  border-color: rgba(86, 194, 140, 0.55);
  background: rgba(86, 194, 140, 0.16);
}

.banner[data-tone="error"] {
  border-color: rgba(239, 104, 104, 0.55);
  background: rgba(239, 104, 104, 0.16);
}

.view-root {
  display: grid;
  gap: 12px;
}

.ops-panel {
  padding: 14px;
}

.results-grid,
.menu-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.ops-result-card {
  min-height: 120px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--ops-line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.ops-result-card span,
.ops-result-card p {
  margin: 0;
  color: var(--ops-muted);
}

.ops-result-card strong {
  font-size: 32px;
}

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

.menu-category-card h3 {
  margin: 0;
}

.checkbox-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ops-text);
}

.checkbox-row input {
  width: auto;
  min-height: 0;
}

.tablet-pin-gate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 24% 12%, rgba(230, 111, 86, 0.16), transparent 32%),
    radial-gradient(circle at 80% 10%, rgba(156, 199, 210, 0.2), transparent 34%),
    rgba(21, 30, 35, 0.84);
  backdrop-filter: blur(12px);
}

.tablet-pin-gate[hidden] {
  display: none !important;
}

.tablet-pin-gate__panel {
  width: min(480px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  border: 1px solid var(--ops-line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(42, 63, 73, 0.98), rgba(34, 52, 61, 0.98));
  box-shadow: 0 18px 48px rgba(11, 18, 23, 0.42);
  padding: 22px;
}

.tablet-pin-gate__panel h2 {
  margin: 0;
  font-size: 30px;
}

.tablet-pin-gate__copy,
.tablet-pin-gate__error {
  margin: 0;
}

.tablet-pin-gate__copy {
  color: var(--ops-muted);
}

.tablet-pin-gate__error {
  color: #ffd1c9;
  font-weight: 850;
}

.tablet-pin-gate__form {
  display: grid;
  gap: 12px;
}

.tablet-pin-gate input {
  text-align: center;
  letter-spacing: 0.18em;
  font-size: 1.1rem;
  font-weight: 850;
}

.field--restaurant {
  min-width: 250px;
}

@media (max-width: 1180px) {
  .admin-topbar,
  .tablet-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-topbar__actions,
  .tablet-topbar__actions {
    justify-content: flex-start;
  }

  .board {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }
}

@media (max-width: 820px) {
  .admin-shell,
  .tablet-shell {
    width: min(100% - 20px, 1540px);
    padding-top: 12px;
  }

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

  .admin-sidebar {
    position: static;
  }

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

  .filter,
  .field,
  .filter--pin,
  .field--restaurant {
    width: 100%;
    min-width: 0;
  }

  .board,
  .orders-board {
    grid-template-columns: 1fr;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }
}
