:root {
  --primary: #ff6b00;
  --primary-dark: #e65c00;
  --bg-light: #f8f8f8;
  --text-dark: #222;
  --radius: 14px;
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.08);
  --bg: #f7f3ec;
  --bg-strong: #f0e4d1;
  --surface: #fffaf3;
  --surface-alt: #ffffff;
  --ink: var(--text-dark);
  --muted: #6d645a;
  --line: #e2d6c5;
  --accent: var(--primary);
  --accent-ink: #fff8f1;
  --ok: #2f7d4b;
  --warn: #b57c12;
  --danger: #a53b2d;
  --shadow: 0 18px 40px rgba(78, 56, 26, 0.08);
  --transition-soft: 220ms ease;
  --max: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: "Trebuchet MS", "Segoe UI", sans-serif; background: radial-gradient(circle at top left, #fff6e7, #f6f2eb 44%), linear-gradient(180deg, #f6f2eb, #efe5d4); color: var(--ink); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

a, button, input, select, textarea, .restaurant-card, .hero-card {
  transition: transform var(--transition-soft), box-shadow var(--transition-soft), border-color var(--transition-soft), background-color var(--transition-soft), color var(--transition-soft), opacity var(--transition-soft);
}

.app-shell { min-height: 100vh; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.topbar {
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(247, 243, 236, 0.9);
  border-bottom: 1px solid rgba(226, 214, 197, 0.8);
  box-shadow: 0 8px 24px rgba(34, 32, 29, 0.06);
}
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.02em; }
.brand span { color: var(--accent); }
.topbar-row, .toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nav-link, .ghost-btn, .primary-btn, .danger-btn, .btn-primary, .btn-outline, .btn-ghost {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}
.primary-btn, .btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(255, 107, 0, 0.22);
}
.ghost-btn, .btn-outline {
  background: rgba(255,255,255,0.88);
  color: var(--ink);
  border-color: rgba(34, 32, 29, 0.12);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.danger-btn { background: var(--danger); color: #fff; border-color: transparent; }
.nav-link:hover, .ghost-btn:hover, .primary-btn:hover, .danger-btn:hover, .btn-primary:hover, .btn-outline:hover, .btn-ghost:hover { transform: translateY(-2px); }
.nav-link:active, .ghost-btn:active, .primary-btn:active, .danger-btn:active, .btn-primary:active, .btn-outline:active, .btn-ghost:active { transform: scale(0.97); }

.hero { padding: 36px 0 24px; }
.hero-home {
  padding-top: 42px;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 22px; align-items: stretch; }
.hero-grid-home {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: stretch;
}
.hero-grid-main {
  grid-template-columns: 1fr;
}
.hero-banner-row {
  margin-top: 18px;
}
.hero-banner-row-home {
  margin-top: 18px;
}
.hero-card, .panel, .card, .metric { background: rgba(255, 250, 243, 0.94); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-card { padding: 30px; }
.hero-copy-card {
  display: grid;
  gap: 24px;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,250,243,0.96));
}
.hero-copy {
  display: grid;
  gap: 12px;
}
.hero-eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 107, 0, 0.1);
  color: var(--primary-dark);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.hero-card h1 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.9rem); line-height: .94; max-width: 8ch; }
.hero-card h1 span { color: var(--primary); }
.hero-card p { margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.6; max-width: 56ch; }
.hero-search-card {
  display: grid;
  gap: 18px;
  align-content: center;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.74), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,247,238,.96));
}
.hero-search-copy {
  display: grid;
  gap: 8px;
}
.hero-search-copy h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2vw, 2rem);
  line-height: 1.08;
  color: #2f261d;
}
.hero-search-copy p {
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 34ch;
}
.hero-search-kicker {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}
.hero-side {
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 42%),
    linear-gradient(160deg, rgba(204, 90, 31, 0.14), rgba(242, 153, 74, 0.1)),
    rgba(255, 250, 243, 0.96);
  color: #fff7ef;
}
.hero-side-stack {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  display: grid;
  gap: 16px;
  color: inherit;
}
.hero-search-shell,
.hero-banner-shell {
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.hero-search-shell {
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.8), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,248,241,1));
  border-radius: 20px;
  box-shadow: 0 18px 34px rgba(78, 56, 26, 0.08);
}
.hero-banner-shell {
  height: 278px;
  padding: 12px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.22), transparent 38%),
    linear-gradient(145deg, rgba(255, 107, 0, 0.08), rgba(255, 190, 120, 0.08)),
    rgba(255, 250, 243, 0.96);
}
.hero-banner-shell #hero-slider {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  height: 100%;
}
.hero-banner-shell .hero-slider-card {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 24px;
}
.hero-banner-shell .hero-slider-body {
  min-height: 100%;
  padding: 18px;
  align-content: end;
  background: linear-gradient(180deg, rgba(22, 18, 14, 0.08), rgba(22, 18, 14, 0.54));
}
.hero-banner-shell .hero-slider-glass {
  width: 100%;
  max-width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.hero-banner-shell .hero-slider-copy {
  gap: 8px !important;
  max-width: 34ch;
}
.hero-banner-shell .hero-slider-body h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.9rem);
  line-height: 1.05;
}
.hero-banner-shell .hero-slider-body p {
  font-size: 0.98rem;
  line-height: 1.4;
}
.hero-banner-shell .hero-slider-cta-row {
  align-items: center;
}
.hero-banner-shell .hero-slider-price-box strong {
  font-size: 1.18rem;
}
.hero-banner-shell .hero-slider-card .primary-btn,
.hero-banner-shell .hero-slider-card .ghost-btn {
  padding: 10px 14px;
}
.hero-slider-card {
  min-height: 280px;
  display: grid;
  gap: 12px;
  align-content: space-between;
  padding: 20px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
.hero-slider-promo {
  padding: 0;
  overflow: hidden;
  background-color: #221710;
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: left center;
}
.hero-promo-split {
  display: block;
  height: 100%;
}
.hero-slider-glass-promo {
  display: flex;
  align-items: stretch;
  height: 100%;
  padding: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  max-width: 100%;
}
.hero-promo-media {
  display: none;
}
.hero-promo-image {
  display: none;
}
.hero-slider-body {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28, 22, 18, 0.34), rgba(28, 22, 18, 0.6));
  border: 1px solid rgba(255,255,255,.12);
}
.hero-slider-body h2,
.hero-slider-body p {
  margin: 0;
  color: #fff8f1;
}
.hero-slider-glass {
  align-self: end;
  max-width: min(100%, 560px);
}
.hero-slider-topline {
  align-items: center;
}
.hero-slider-kicker {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 248, 241, 0.96);
}
.hero-slider-body h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.02;
}
.hero-slider-body p {
  color: rgba(255, 248, 241, 0.92);
  line-height: 1.45;
}
.hero-slider-copy {
  max-width: 34ch;
}
.hero-slider-cta-row {
  align-items: end;
}
.hero-slider-promo-panel {
  display: grid;
  width: 35%;
  min-width: 280px;
  max-width: 360px;
  min-height: 100%;
  margin-left: auto;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, rgba(36, 22, 15, 0.84), rgba(28, 18, 12, 0.92));
  box-shadow: 0 14px 28px rgba(15, 9, 6, 0.18);
  align-content: center;
  gap: 8px;
  color: #fff8f1;
}
.hero-slider-brandline {
  gap: 10px;
}
.hero-slider-promo-panel .hero-slider-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.hero-promo-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  line-height: 1.1;
  color: #fff8f1;
  text-align: center;
}
.hero-slider-copy-compact h2 {
  max-width: 14ch;
}
.hero-slider-promo .hero-slider-topline {
  margin-bottom: 2px;
}
.hero-slider-promo .badge.danger {
  padding: 5px 10px;
  font-size: 0.74rem;
  background: rgba(255, 248, 241, 0.96);
  color: #b7441e;
}
.hero-slider-promo .hero-slider-price-box .status-line {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.hero-slider-promo .hero-slider-price-box strong {
  font-size: 1.15rem;
}
.hero-slider-promo .hero-slider-cta-row {
  padding-top: 2px;
  justify-content: space-between;
}
.hero-slider-promo .primary-btn {
  min-width: 126px;
  padding: 9px 13px;
  font-size: 0.9rem;
}
.hero-slider-price-box {
  display: grid;
  gap: 4px;
}
.hero-slider-price-box .status-line {
  color: rgba(255, 248, 241, 0.76);
}
.hero-slider-price-box strong {
  font-size: 1.25rem;
  color: #fff8f1;
}
.hero-side .ghost-btn,
.hero-slider-card .ghost-btn {
  background: rgba(255, 248, 241, 0.92);
  color: #3b2a18;
  border-color: rgba(255, 248, 241, 0.92);
}
.hero-side .primary-btn,
.hero-slider-card .primary-btn {
  box-shadow: 0 10px 24px rgba(34, 32, 29, 0.18);
}
.hero-slider-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(255,255,255,.82);
  background: #fff8f1;
}
.hero-slider-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.hero-slider-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.38);
}
.hero-slider-dot.active {
  width: 28px;
  background: #fff8f1;
}
.hero-phrase-slider {
  margin-top: 4px;
  display: flex;
  justify-content: center;
}
.hero-phrase-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  width: min(100%, 520px);
  min-height: 0;
  border-radius: 18px;
  border: 1px solid rgba(226, 214, 197, 0.9);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(250, 243, 231, 0.98));
  box-shadow: 0 10px 22px rgba(78, 56, 26, 0.06);
  text-align: center;
}
.hero-phrase-card .status-line {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
  color: #4b3522;
}
.hero-phrase-card .hero-slider-dots {
  justify-content: center;
  margin-top: 0;
  gap: 6px;
}
.hero-phrase-card .hero-slider-dot {
  width: 7px;
  height: 7px;
  background: rgba(109, 100, 90, 0.18);
}
.hero-phrase-card .hero-slider-dot.active {
  width: 18px;
  background: var(--accent);
}
.pill-row, .chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill, .chip, .badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px; font-size: .84rem; font-weight: 700; }
.pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.chip { background: var(--bg-strong); border: 1px solid var(--line); }
.badge { background: #fff4dc; color: #8f5c05; }
.badge.ok { background: #e6f6ed; color: var(--ok); }
.badge.warn { background: #fff4dc; color: var(--warn); }
.badge.danger { background: #fdebe8; color: var(--danger); }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section { padding: 18px 0 32px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2, .section-title h3 { margin: 0; }
.location-bar {
  margin-bottom: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 250, 243, 0.88);
}
.location-bar-main,
.location-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.location-bar .ghost-btn {
  padding: 8px 12px;
}
.location-inline-form {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.searchbar { display: grid; grid-template-columns: 1.2fr .8fr .4fr; gap: 12px; }
.searchbar-home {
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 14px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 18px;
  border: 1px solid rgba(34, 32, 29, 0.08);
  border-radius: 30px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-soft);
}
.search-field-main {
  padding-left: 20px;
  min-height: 64px;
}
.hero-search-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.search-icon {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}
.search-field .field {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.search-field .field:focus {
  outline: none;
}
.search-submit-btn {
  min-height: 60px;
  border-radius: 30px;
  min-width: 156px;
}
.field, .textarea, .select { width: 100%; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 14px; color: var(--ink); }
.textarea { min-height: 96px; resize: vertical; }

.restaurant-grid, .cards-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.restaurant-card, .info-list > li, .kanban-card, .order-row { background: var(--surface-alt); border: 1px solid var(--line); border-radius: 18px; }
.restaurant-card { overflow: hidden; box-shadow: var(--shadow-soft); position: relative; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.restaurant-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(34, 32, 29, 0.12); border-color: rgba(255, 107, 0, 0.18); }
.restaurant-cover { height: 220px; background: linear-gradient(135deg, var(--accent), #f0b37d); padding: 14px; display: flex; flex-direction: column; justify-content: space-between; }
.restaurant-cover-top, .restaurant-cover-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.restaurant-cover-bottom { align-items: flex-end; }
.restaurant-cover .pill {
  background: rgba(255, 250, 243, 0.94);
  border: 1px solid rgba(34, 32, 29, 0.08);
  color: #2f261d;
  box-shadow: 0 8px 18px rgba(34, 32, 29, 0.12);
  backdrop-filter: blur(8px);
}
.restaurant-cover-bottom .pill-row {
  gap: 6px;
}
.restaurant-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.restaurant-card {
  display: grid;
  grid-template-rows: 220px 1fr;
}
.restaurant-body h3 { font-size: 1.34rem; line-height: 1.1; letter-spacing: -0.01em; }
.restaurant-body .primary-btn, .restaurant-body .ghost-btn { padding: 10px 12px; }
.restaurant-body h3, .menu-item h4, .kanban-card h4 { margin: 0; }
.restaurant-title-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}
.restaurant-min-chip {
  align-self: flex-start;
}
.restaurant-description {
  min-height: 56px;
}
.restaurant-tags {
  min-height: 52px;
  gap: 6px;
  align-items: flex-start;
}
.restaurant-tags .chip {
  padding: 7px 10px;
  border-radius: 10px;
  border-color: rgba(34, 32, 29, 0.08);
  background: linear-gradient(180deg, #f8f3ea, #f2e8d9);
  color: #4d4032;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
}
.restaurant-tags .chip:hover {
  transform: none;
  border-color: rgba(255, 107, 0, 0.16);
  background: linear-gradient(180deg, #fbf5ec, #f7edde);
}
.restaurant-footer-row {
  margin-top: auto;
  align-items: center;
}
.restaurant-fee-value {
  text-align: left;
}
.restaurant-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
}
.restaurant-actions .primary-btn,
.restaurant-actions .ghost-btn {
  flex: 0 0 auto;
  text-align: center;
  min-width: 124px;
}
.muted { color: var(--muted); }
.price { font-weight: 800; }
.restaurant-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.restaurant-hero-banner {
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  margin: 18px 0 22px;
}
.restaurant-hero-overlay {
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 26px;
}
.restaurant-hero-content {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,250,243,.24), rgba(255,250,243,.92));
  border: 1px solid rgba(255, 248, 241, 0.42);
  backdrop-filter: blur(6px);
}
.restaurant-hero-top,
.restaurant-hero-meta,
.restaurant-hero-brand,
.restaurant-hero-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.restaurant-hero-brand { align-items: flex-start; justify-content: flex-start; }
.restaurant-hero-logo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 24px;
  border: 2px solid rgba(255,255,255,.72);
  background: #fff;
  box-shadow: 0 10px 24px rgba(34, 32, 29, 0.12);
}
.restaurant-hero-content h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: .95;
}
.restaurant-hero-content p {
  margin: 0;
  max-width: 760px;
  color: #4d4439;
  font-size: 1rem;
}
.restaurant-hero-stats { justify-content: flex-end; }
.checkout-panel {
  position: sticky;
  top: 90px;
  align-self: start;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding-right: 12px;
  scrollbar-width: thin;
}
.checkout-summary-box {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf3, #fff4e8);
  box-shadow: 0 10px 24px rgba(78, 56, 26, 0.08);
}
.checkout-summary-box .code-box {
  font-size: 1.35rem;
}
.checkout-submit-wrap {
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: 6px;
  background: linear-gradient(180deg, rgba(255,250,243,0), rgba(255,250,243,0.96) 28%, rgba(255,250,243,1));
}
.checkout-submit-btn {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
}
.floating-cart-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  box-shadow: 0 14px 28px rgba(78, 56, 26, 0.2);
}

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; }
.menu-category, .cart-box, .list-box, .kanban-col, .settings-group, .table-box { padding: 16px; }
.category-tabs {
  position: sticky;
  top: 84px;
  z-index: 8;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 250, 243, 0.94);
  box-shadow: var(--shadow);
}
.category-tab {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}
.menu-list { display: grid; gap: 12px; }
.menu-item { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.menu-item.compact { grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; }
.menu-item-media { width: 92px; height: 92px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(226, 214, 197, 0.9); background: #f6efe6; }
.menu-item-media img { width: 100%; height: 100%; object-fit: cover; }
.menu-item-content { min-width: 0; display: grid; gap: 8px; }
.menu-item-content p { margin: 0; }
.menu-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.menu-item-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  background: #fffaf3;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: var(--bg-strong);
  font-weight: 800;
}
.qty-value {
  min-width: 18px;
  text-align: center;
  font-weight: 800;
}
.item-row, .row { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }

.checkout-form, .stack { display: grid; gap: 10px; }
.cart-items { display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.cart-item { display: grid; gap: 5px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric { padding: 16px; }
.metric strong { font-size: 1.6rem; display: block; }
.cash-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.action-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pos-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.pos-item-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.pos-item-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.pos-item-card img { width: 100%; height: 116px; object-fit: cover; border-radius: 14px; }
.pos-submit-btn { width: 100%; padding: 16px 18px; font-size: 1.02rem; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(34, 32, 29, 0.45); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal-card { width: min(560px, 100%); background: #fffaf3; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); }
.promotion-item-picker { display: grid; gap: 10px; }
.promotion-weekdays {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.promotion-weekdays .chip {
  cursor: pointer;
  background: #fff;
}
.promotion-weekdays .chip input {
  margin: 0;
}
.promotion-item-option {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.promotion-item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff8f1;
}
.promotion-list-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.promotion-banner-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(226, 214, 197, 0.9);
}
.promotion-preview-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.promotion-preview-hero {
  min-height: 180px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  border-radius: 18px;
  color: #fff8f1;
  background-size: cover;
  background-position: center;
}
.promotion-preview-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.price-stack {
  display: inline-grid;
  justify-items: end;
  gap: 2px;
}
.price-strike {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: line-through;
}

.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.kitchen-grid { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 14px; }
.kanban-col { background: rgba(255,255,255,.86); min-height: 440px; }
.kanban-col h3 { margin: 0 0 12px; font-size: 1rem; }
.kanban-list { display: grid; gap: 10px; }
.kanban-card { padding: 12px; display: grid; gap: 8px; }
.kitchen-card { gap: 10px; }
.kitchen-lines { display: grid; gap: 8px; }
.kitchen-line {
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.table-box { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .9rem; }

.state { padding: 30px; text-align: center; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid #e7d9c3; border-top-color: var(--accent); border-radius: 999px; margin: 0 auto 10px; animation: spin 1s linear infinite; }
.hidden { display: none !important; }
.status-line { font-size: .94rem; color: var(--muted); }
.code-box { font-size: 1.6rem; font-weight: 800; letter-spacing: 0.08em; }

.footer { padding: 36px 0 48px; color: var(--muted); }
.toast-stack { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 50; }
.toast { padding: 12px 14px; border-radius: 14px; color: #fff; box-shadow: var(--shadow); background: #2f7d4b; max-width: 320px; }
.toast.warn { background: #b57c12; }
.toast.danger { background: #a53b2d; }
.settings-schedule-row,
.settings-zone-row,
.settings-zone-create {
  width: 100%;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.animated { animation: fadeIn .28s ease; }

@media (max-width: 980px) {
  .hero-grid, .split, .grid-2, .searchbar, .pos-layout, .restaurant-layout, .kitchen-grid, .location-inline-form { grid-template-columns: 1fr; }
  .restaurant-grid, .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics, .cash-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kanban { grid-template-columns: repeat(5, minmax(280px, 1fr)); }
  .category-tabs { top: 72px; }
  .menu-item.compact { grid-template-columns: 84px minmax(0, 1fr); }
  .menu-item-media { width: 84px; height: 84px; }
  .location-bar { align-items: flex-start; }
  .checkout-panel {
    position: static;
    order: -1;
    max-height: none;
    overflow: visible;
    padding-right: 16px;
  }
  .checkout-summary-box,
  .checkout-submit-wrap { position: static; }
  .restaurant-hero-banner,
  .restaurant-hero-overlay { min-height: 300px; }
  .settings-schedule-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .settings-zone-row,
  .settings-zone-create {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .hero-grid-home {
    grid-template-columns: 1fr;
  }
  .hero-search-copy p {
    max-width: none;
  }
  .hero-search-bottom {
    grid-template-columns: 1fr;
  }
  .search-submit-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 20px)); }
  .hero-card { padding: 22px; }
  .hero-card h1 { font-size: clamp(2.2rem, 10vw, 3.2rem); }
  .hero-card p { max-width: none; }
  .metrics, .grid-3, .cash-summary-grid, .action-grid { grid-template-columns: 1fr; }
  .restaurant-grid, .cards-grid { grid-template-columns: 1fr; }
  .nav-links { width: 100%; }
  .location-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .location-inline-form {
    grid-template-columns: 1fr;
  }
  .hero-banner-shell {
    height: 224px;
  }
  .hero-banner-shell .hero-slider-card {
    width: 100%;
    height: 100%;
  }
  .hero-promo-split {
    display: block;
  }
  .hero-slider-glass-promo {
    padding: 8px;
  }
  .hero-promo-media {
    display: none;
  }
  .hero-slider-promo-panel {
    width: min(100%, 288px);
    min-width: 0;
    max-width: none;
    min-height: auto;
    margin-left: auto;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.1);
  }
  .hero-phrase-card {
    width: 100%;
  }
  .category-tabs { top: 66px; padding: 8px; }
  .menu-item.compact { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .menu-item-media { width: 72px; height: 72px; border-radius: 14px; }
  .menu-item-actions .primary-btn { width: 100%; }
  .checkout-submit-btn { padding: 13px 16px; }
  .restaurant-hero-banner,
  .restaurant-hero-overlay { min-height: 260px; }
  .restaurant-hero-overlay { padding: 12px; }
  .restaurant-hero-content { padding: 16px; }
  .restaurant-hero-logo { width: 72px; height: 72px; border-radius: 18px; }
  .floating-cart-btn {
    right: 12px;
    left: 12px;
    bottom: 12px;
    text-align: center;
    justify-content: center;
  }
  .settings-schedule-row,
  .settings-zone-row,
  .settings-zone-create {
    grid-template-columns: 1fr !important;
  }
}
