﻿:root {
  --bg: #f5f1ea;
  --surface: #fffdf8;
  --surface-2: #fdf6ea;
  --ink: #1b1a19;
  --muted: #5f5b55;
  --primary: #a33419;
  --primary-2: #d96f31;
  --ok: #0f8a5f;
  --warn: #b35c00;
  --bad: #b10f2e;
  --ring: rgba(163, 52, 25, 0.25);
  --border: #e8ddce;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px rgba(34, 26, 12, 0.08);
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, #f8e5cd 0%, transparent 40%),
    radial-gradient(circle at 20% 90%, #ead8bf 0%, transparent 35%),
    var(--bg);
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0.01em;
}

.container {
  width: min(var(--maxw), 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(232, 221, 206, 0.85);
  background: rgba(255, 253, 248, 0.88);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-family: "Cormorant Garamond", "Fraunces", Georgia, serif;
  font-size: clamp(calc(1.9rem - 8px), calc(3vw - 8px), calc(2.25rem - 8px));
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.crm-page .brand {
  font-size: clamp(1.06rem, 1.5vw, 1.32rem);
}

.kitchen-page .brand {
  font-size: clamp(1.18rem, 1.9vw, 1.45rem);
}

.nav-toggle {
  display: none;
  border: 1px solid #dac6af;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

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

.nav-list a {
  color: var(--ink);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-list a:hover {
  background: #f5e6d2;
  transform: translateY(-1px);
}

.hero {
  padding: 0 0 36px;
}

.hero-shell {
  position: relative;
  min-height: calc(100svh - 73px);
  padding: 0;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  box-shadow: none;
  background: #1f130c;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(18, 10, 5, 0.4) 0%, rgba(18, 10, 5, 0.22) 42%, rgba(18, 10, 5, 0.05) 66%, rgba(18, 10, 5, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 227, 189, 0.05) 0%, rgba(255, 227, 189, 0) 42%);
  z-index: 1;
}

.hero-shell::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 171, 115, 0.26) 0%, rgba(229, 171, 115, 0) 70%);
  z-index: 1;
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 250, 244, 0.02) 0%, rgba(22, 12, 6, 0.08) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.78fr);
  gap: 26px;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: inherit;
  padding-top: clamp(30px, 6vh, 62px);
  padding-bottom: clamp(32px, 7vh, 76px);
}

.hero-copy {
  color: #fff7ef;
  max-width: 760px;
  padding-top: 0;
}

.eyebrow {
  margin: 0;
  color: #ffd49f;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.hero h1 {
  color: #fffaf4;
  font-size: clamp(2.8rem, 5vw, 5rem);
  margin: 18px 0 16px;
  line-height: 0.95;
  max-width: none;
  text-wrap: balance;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.hero-sub {
  color: rgba(255, 242, 230, 0.9);
  max-width: 58ch;
  margin: 0;
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 250, 245, 0.9);
  border: 1px solid rgba(255, 233, 206, 0.72);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(20, 11, 4, 0.22);
  backdrop-filter: blur(14px);
  max-width: 390px;
  justify-self: end;
}

.hero-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  filter: saturate(1.08) contrast(1.02) brightness(1.02);
}

.hero-card-body {
  display: grid;
  gap: 16px;
}

.hero-card-kicker {
  margin: 0;
  color: #8a4f2d;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-card h2 {
  margin: -4px 0 0;
  font-size: clamp(1.6rem, 2vw, 2rem);
  color: #2e1c11;
}

.hero-card-intro {
  margin: 0;
  color: #61432f;
  font-size: 0.98rem;
  line-height: 1.6;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px dashed #e9d4bc;
  padding: 10px 0;
  color: #69442a;
}

.hero-card li strong {
  color: #2e1c11;
}

.hero-live-info {
  margin-top: 0;
  border: 1px solid rgba(255, 239, 220, 0.2);
  background: rgba(255, 248, 240, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  backdrop-filter: blur(12px);
}

.hero-live-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  color: rgba(255, 241, 226, 0.9);
  font-size: 0.9rem;
}

.hero-live-item strong {
  color: #ffd9ad;
  font-weight: 700;
}

.hero-live-item span {
  font-weight: 800;
  color: #fff8f0;
  font-size: 1rem;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badges span {
  border: 1px solid #ebd2b8;
  background: #fff6eb;
  color: #6f4930;
  border-radius: 999px;
  font-size: 0.82rem;
  padding: 7px 11px;
}

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

.hero-metric {
  min-height: 122px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 239, 220, 0.14);
  background: rgba(255, 248, 240, 0.08);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-metric strong {
  display: block;
  margin-bottom: 8px;
  color: #fff9f3;
  font-size: 1.02rem;
}

.hero-metric span {
  display: block;
  color: rgba(255, 240, 225, 0.82);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hero .btn-primary,
.hero .btn-outline {
  padding: 12px 20px;
  border-width: 1px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(34, 18, 8, 0.18);
  text-decoration: none;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #ffbb57 0%, #f58a2b 100%);
  color: #2f1909;
  border-color: rgba(255, 224, 184, 0.84);
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, #ffc770 0%, #f79945 100%);
  box-shadow: 0 18px 36px rgba(114, 58, 12, 0.26);
}

.hero .btn-outline {
  background: rgba(255, 247, 236, 0.88);
  color: #6b3a1c;
  border-color: rgba(245, 208, 166, 0.92);
  backdrop-filter: blur(8px);
}

.hero .btn-outline:hover {
  background: rgba(255, 244, 226, 0.96);
  box-shadow: 0 18px 36px rgba(114, 58, 12, 0.18);
}

.hero-card .hero-live-info {
  border-color: #ead7bf;
  background: rgba(255, 245, 232, 0.78);
  backdrop-filter: none;
}

.hero-card .hero-live-item {
  color: #69442a;
}

.hero-card .hero-live-item strong {
  color: #8d4f2e;
}

.hero-card .hero-live-item span {
  color: #2e1c11;
}

.strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.strip article {
  background: #fff7eb;
  border: 1px solid #f0deca;
  border-radius: var(--radius-sm);
  padding: 12px;
}

.section {
  padding: 34px 0;
}

.section-head h2 {
  margin: 0;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
}

.menu-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: #ddc2a5;
}

.chip.active {
  background: linear-gradient(120deg, #fce9d2, #f9dcc0);
  border-color: #dfbe9e;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.menu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-card:hover,
.menu-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d7bf9f;
}

.menu-photo-wrap {
  margin: 0 0 10px;
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ead8c4;
  background: #fff5e9;
}

.menu-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-card h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.menu-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.menu-category {
  text-transform: capitalize;
}

.menu-card .meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
}

.price {
  font-weight: 800;
}

.order-section .tracker {
  border: 1px dashed #cfae8c;
  background: #fffbf4;
  border-radius: var(--radius-sm);
  padding: 16px;
  color: #5f3a1f;
}

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

.about-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.about-card:hover,
.about-card:focus-within {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: #d7bf9f;
}

.reservation-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.reservation-form .full {
  grid-column: 1 / -1;
}

.reservation-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.94rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dcc9b2;
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--primary-2);
  box-shadow: 0 0 0 4px var(--ring);
}

.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(100deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 10px 20px rgba(163, 52, 25, 0.25);
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: #d7c3ab;
}

.btn-ghost {
  background: transparent;
  border-color: #dac6af;
}

.danger {
  color: #fff;
  background: var(--bad);
}

.cart-floating {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 75;
}

.cart-button {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(17, 16, 15, 0.35);
}

.cart-button.bump {
  animation: cart-bump 0.42s ease;
}

.cart-button strong {
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-width: 24px;
  padding: 2px 8px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(16, 12, 7, 0.5);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: min(430px, 100%);
  height: 100vh;
  z-index: 90;
  background: #fffdf9;
  border-left: 1px solid #e8d8c5;
  display: flex;
  flex-direction: column;
  transition: right 0.24s ease;
}

.cart-drawer.open {
  right: 0;
}

.cart-drawer header,
.cart-drawer footer {
  padding: 14px;
  border-bottom: 1px solid #efe1d1;
}

.cart-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-drawer header h3 {
  margin: 0;
}

#closeCart {
  width: auto;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
}

.cart-drawer footer {
  border-top: 1px solid #efe1d1;
  border-bottom: none;
}

.cart-items {
  padding: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cart-row {
  border: 1px solid #ead8c4;
  border-radius: 10px;
  background: #fff7ed;
  padding: 10px;
}

.cart-row-main {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-thumb {
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
  border: 1px solid #e7d7c4;
  background: #fff1e1;
  flex: 0 0 auto;
}

.cart-row-text {
  min-width: 0;
}

.cart-row h4 {
  margin: 0 0 2px;
}

.cart-row p {
  margin: 0;
  color: #6b6359;
  font-size: 0.9rem;
}

.qty-line {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-line button {
  padding: 4px 10px;
}

.cart-customer {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.cart-table-pickup-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.cart-table-field {
  flex: 1 1 auto;
  min-width: 0;
}

.cart-table-field input[disabled] {
  background: #f5efe7;
  color: #8b7d6d;
  cursor: not-allowed;
}

.cart-pickup-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  margin-bottom: 2px;
}

.cart-pickup-inline input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--primary);
  box-shadow: none;
}

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

.modal-intro {
  margin: 4px 0 12px;
  color: var(--muted);
}

.modal-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 0.94rem;
}

.modal-error {
  margin: -4px 0 12px;
  color: var(--bad);
  font-size: 0.88rem;
  font-weight: 700;
}

.notes-autosave-status {
  margin: -2px 0 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #7b6c5d;
}

.notes-autosave-status[data-state="saving"] {
  color: #8f5a14;
}

.notes-autosave-status[data-state="saved"] {
  color: #1d6a4d;
}

.notes-autosave-status[data-state="error"] {
  color: var(--bad);
}

.site-footer {
  border-top: 1px solid #e8dccf;
  margin-top: 26px;
  background: rgba(255, 250, 242, 0.8);
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  color: var(--muted);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dcc8b0;
  background: #fff6ea;
  color: #5c3f2c;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link:hover {
  transform: translateY(-2px);
  background: #ffe7cc;
  box-shadow: 0 8px 18px rgba(48, 28, 10, 0.12);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(24px);
  background: #1d1b18;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 700;
  text-align: center;
  max-width: min(88vw, 560px);
  opacity: 0;
  pointer-events: none;
  z-index: 120;
  transition: all 0.22s ease;
}

.toast.highlight {
  background: linear-gradient(105deg, #2a2622, #12100f);
  box-shadow: 0 16px 36px rgba(22, 18, 15, 0.42);
}

.toast.center {
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%) scale(0.92);
  border-radius: 14px;
  padding: 18px 24px;
  font-size: clamp(1.05rem, 2.8vw, 1.38rem);
  letter-spacing: 0.01em;
  min-width: min(90vw, 430px);
}

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

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

.cart-fly-note {
  position: fixed;
  z-index: 125;
  transform: translate(0, 0) scale(1);
  opacity: 1;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
  pointer-events: none;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(29, 27, 24, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 22px rgba(17, 16, 15, 0.28);
}

@keyframes cart-bump {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

.hidden {
  display: none !important;
}

.crm-head-actions {
  display: flex;
  gap: 8px;
}

.stats-grid {
  display: block;
  margin-bottom: 16px;
}

.stats-panel-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(31, 24, 12, 0.05);
}

.stats-panel-head h3 {
  margin: 0;
}

.stats-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.stats-group h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.stats-subgrid-sales {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  background: var(--surface);
}

.stat-card.tone-neutral {
  border-color: #dbcab6;
  background: linear-gradient(180deg, #fffdf8, #fff8ef);
}

.stat-card.tone-warn {
  border-color: #efcc91;
  background: linear-gradient(180deg, #fff8ea, #fff0d4);
}

.stat-card.tone-progress {
  border-color: #f2d29f;
  background: linear-gradient(180deg, #fff8e9, #ffeecf);
}

.stat-card.tone-ok {
  border-color: #bfe2d5;
  background: linear-gradient(180deg, #f3fbf7, #e4f6ef);
}

.stat-card.tone-ready {
  border-color: #c9d6f7;
  background: linear-gradient(180deg, #f5f8ff, #e8efff);
}

.stat-card.tone-sales {
  border-color: #c8d8ef;
  background: linear-gradient(180deg, #f5f9ff, #e7f0ff);
}

.stat-card.tone-sales-soft {
  border-color: #d5def3;
  background: linear-gradient(180deg, #f8faff, #edf2ff);
}

.stat-card.tone-warn h3 {
  color: #8a5600;
}

.stat-card.tone-progress h3 {
  color: #8d5c10;
}

.stat-card.tone-ok h3 {
  color: #156144;
}

.stat-card.tone-ready h3 {
  color: #2f4a88;
}

.stat-card.tone-sales h3,
.stat-card.tone-sales-soft h3 {
  color: #204b85;
}

.stat-card p,
.stat-card h3 {
  margin: 0;
}

.stat-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.crm-controls {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

.crm-search-field {
  display: grid;
  gap: 6px;
  min-width: min(100%, 380px);
  flex: 1 1 320px;
  font-weight: 700;
  font-size: 0.92rem;
}

.crm-search-field input {
  min-height: 42px;
}

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

.crm-page .chip {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.crm-page .btn {
  padding: 8px 12px;
}

.crm-page #statusFilters {
  display: grid;
  grid-template-columns: repeat(6, minmax(96px, 1fr));
  gap: 8px;
  width: 100%;
}

.crm-page #statusFilters .chip {
  width: 100%;
  min-width: 0;
  text-align: center;
  padding: 8px 10px;
  font-size: 0.82rem;
}

.food-stats {
  margin-bottom: 16px;
}

.food-stats-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(31, 24, 12, 0.05);
}

.food-stats-card h3 {
  margin: 0 0 8px;
}

.food-stats-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.food-stats-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px dashed #e2d1bf;
  border-radius: 9px;
  padding: 8px 10px;
}

.food-rank {
  min-width: 32px;
  font-weight: 800;
  color: var(--primary);
}

.food-name {
  flex: 1;
}

.food-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.food-metrics em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

.sales-calendar {
  margin-bottom: 16px;
}

.sales-calendar-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px;
  box-shadow: 0 8px 20px rgba(31, 24, 12, 0.05);
}

.sales-calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.sales-calendar-head h3 {
  margin: 0 0 6px;
}

.sales-calendar-head p {
  margin: 0;
  color: var(--muted);
}

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

.sales-calendar-nav strong {
  text-transform: capitalize;
  min-width: 170px;
  text-align: center;
}

.sales-calendar-nav .btn {
  width: auto;
  min-width: 40px;
  padding: 8px 10px;
}

.sales-calendar-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-cell {
  border-radius: 9px;
  min-height: 40px;
  border: 1px solid #eadcca;
  background: #fff8ef;
  padding: 6px;
}

.calendar-cell.weekday {
  min-height: 0;
  background: #f7ede0;
  color: #6c5c4c;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  border-color: #e8dac7;
}

.calendar-cell.muted {
  border-style: dashed;
  background: #fdf8f1;
  opacity: 0.45;
}

.calendar-cell.day {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  cursor: pointer;
  min-height: 74px;
  text-align: left;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.calendar-cell.day:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(31, 24, 12, 0.08);
}

.calendar-cell.day.has-sales {
  border-color: #8ecab4;
  background: linear-gradient(180deg, #f6fdf9, #edf8f2);
}

.calendar-cell.day.selected {
  border-color: #d79c63;
  background: linear-gradient(180deg, #fff6e8, #ffecd0);
}

.calendar-day {
  font-weight: 800;
}

.calendar-meta {
  font-size: 0.78rem;
  color: #5e5a54;
}

.calendar-empty-month {
  margin: 10px 0 0;
  color: var(--muted);
}

.sales-day-details {
  margin-top: 12px;
  border-top: 1px dashed #dfcbb6;
  padding-top: 12px;
}

.sales-day-details h4 {
  margin: 0 0 8px;
  text-transform: capitalize;
}

.sales-day-details p {
  margin: 0 0 8px;
}

.sales-day-list {
  display: grid;
  gap: 8px;
}

.sales-day-row {
  border: 1px solid #e5d3bf;
  border-radius: 10px;
  background: #fff9f1;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.sales-day-row p {
  margin: 2px 0 0;
  color: #6b6359;
  font-size: 0.9rem;
}

.sales-food-breakdown {
  margin-top: 10px;
  border-top: 1px dashed #e1cfbb;
  padding-top: 10px;
}

.sales-food-breakdown h5 {
  margin: 0 0 8px;
}

.sales-food-breakdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.sales-food-breakdown li {
  border: 1px solid #e7d6c3;
  background: #fff8ef;
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.sales-food-breakdown li span:last-child {
  color: #5f5a53;
  font-size: 0.9rem;
}

.crm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.crm-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(31, 24, 12, 0.05);
}

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

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}

.badge.pending {
  background: #ffe7bf;
  color: #7a4a00;
}

.badge.in_progress {
  background: #ffeec9;
  color: #84510f;
}

.badge.ready {
  background: #dfe7ff;
  color: #2c3f7c;
}

.badge.accepted {
  background: #d7f4e8;
  color: #155a43;
}

.badge.rejected {
  background: #ffd9e1;
  color: #7a1330;
}

.crm-actions {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.crm-inline-field {
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.crm-inline-field input,
.crm-inline-field select {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
}

.crm-inline-field select {
  min-width: 150px;
}

.crm-internal-note-preview {
  color: #614b3a;
}

.btn-compact {
  padding: 7px 11px;
  font-size: 0.78rem;
  line-height: 1.15;
}

.order-status-panel {
  display: grid;
  gap: 8px;
}

.order-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.order-status-actions-terminal {
  display: grid;
  grid-template-columns: minmax(160px, 0.82fr) minmax(240px, 2.18fr);
  align-items: stretch;
}

.order-status-actions-terminal .btn-action,
.order-status-actions-terminal .btn-action-details,
.order-status-actions-terminal .status-nav {
  min-height: 40px;
  padding-top: 7px;
  padding-bottom: 7px;
  border-radius: 18px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 13px;
  padding: 6px 11px;
  font-size: 0.82rem;
}

.btn-action-details {
  flex: 0.95 1 140px;
}

.status-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex: 0.78 1 128px;
  text-align: left;
}

.status-nav span {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.76;
  line-height: 1;
}

.status-nav strong {
  font-size: 0.74rem;
  line-height: 1.08;
}

.status-nav-simple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  width: 100%;
}

.status-nav-forward {
  flex: 0.92 1 132px;
}

.status-nav-primary {
  box-shadow: 0 10px 20px rgba(163, 52, 25, 0.2);
}

.status-nav-deliver {
  flex: 0.92 1 132px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.reject-action {
  flex: 0.86 1 112px;
  min-width: 96px;
}

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

.crm-payment-controls {
  align-items: end;
}

.payment-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 42px;
  border-radius: 14px;
}

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

.reservation-reschedule-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  width: min(700px, 92%);
  max-height: min(88svh, 900px);
  background: #fffdf9;
  border: 1px solid #e4d5c1;
  border-radius: 14px;
  padding: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

#reviewBody {
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 6px;
}

#reviewBody > *:first-child {
  margin-top: 0;
}

#reviewBody p,
#reviewBody ul,
#reviewBody label,
#reviewBody .cart-actions {
  margin-bottom: 14px;
}

#reviewBody ul {
  padding-left: 20px;
}

#reviewBody .cart-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    align-items: stretch;
    padding-top: clamp(34px, 6vw, 58px);
    padding-bottom: clamp(30px, 5vw, 52px);
  }

  .hero h1 {
    max-width: none;
  }

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

  .menu-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 860px) {

  .hero-grid,
  .strip,
  .about-grid,
  .reservation-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 0;
  }

  .hero-shell {
    min-height: calc(100svh - 73px);
  }

  .hero-copy {
    max-width: none;
    padding-top: 0;
  }

  .hero-grid {
    align-items: end;
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-metrics,
  .hero-live-info {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: none;
    justify-self: stretch;
  }

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

  .nav-wrap {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .brand {
    order: 1;
    font-size: calc(2rem - 8px);
  }

  .nav-toggle {
    order: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    min-height: 38px;
  }

  .site-header nav {
    order: 4;
    width: 100%;
    display: none;
  }

  .site-header nav.open {
    display: block;
  }

  .nav-list {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 2px;
  }

  .nav-list a {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .crm-head-actions {
    width: auto;
    justify-content: flex-end;
    margin-left: auto;
  }

  #langToggle {
    order: 2;
    margin-left: auto;
    width: auto;
    min-width: 46px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    border: 1px solid #dac6af;
    background: var(--surface);
  }

  #crmLangToggle {
    padding: 6px 9px;
    font-size: 0.82rem;
    min-width: 52px;
  }

  .menu-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .menu-tabs .chip {
    flex: 0 0 auto;
  }

  .crm-page #statusFilters {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 8px;
  }

  .crm-page #statusFilters .chip {
    min-width: 0;
    text-align: center;
  }

  .crm-controls {
    flex-direction: column;
    align-items: stretch;
  }

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

  .btn-action {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
  }

  .btn-action-details,
  .status-nav,
  .reject-action {
    flex-basis: calc(50% - 8px);
  }

  .food-stats-card li {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
  }

  .food-metrics {
    align-items: flex-start;
  }

  .sales-calendar-nav strong {
    min-width: 140px;
    font-size: 0.92rem;
  }

  .calendar-cell.day {
    min-height: 68px;
  }

  .sales-day-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .sales-food-breakdown li {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-drawer {
    width: 100%;
    right: -100%;
    border-left: none;
  }

  .cart-table-pickup-row {
    align-items: center;
    gap: 10px;
  }

  .cart-pickup-inline {
    font-size: 0.85rem;
    white-space: normal;
    line-height: 1.2;
    margin-bottom: 0;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--maxw), 94%);
  }

  .hero-shell {
    min-height: calc(100svh - 73px);
  }

  .hero h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    max-width: 100%;
  }

  .hero-sub {
    font-size: 0.98rem;
  }

  .hero-actions {
    flex-direction: column;
    margin-top: 14px;
  }

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

  .menu-card {
    min-height: 0;
  }

  .reservation-form {
    padding: 14px;
  }

  .btn {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.93rem;
  }

  .hero-actions .btn,
  .cart-actions .btn,
  .crm-head-actions .btn {
    width: auto;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-metric {
    min-height: 0;
  }

  .hero-card {
    padding: 14px;
    border-radius: 22px;
  }

  .menu-card {
    padding: 12px;
  }

  .menu-card h3 {
    font-size: 1rem;
  }

  .menu-card p {
    font-size: 0.88rem;
  }

  .cart-thumb {
    width: 36px;
    height: 36px;
  }

  #closeCart {
    width: auto;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 0.86rem;
  }

  .crm-head-actions {
    gap: 6px;
    margin-left: auto;
  }

  #langToggle,
  #crmLangToggle {
    padding: 5px 8px;
    font-size: 0.78rem;
    min-width: 46px;
  }

  #langToggle {
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .crm-top {
    flex-direction: column;
    gap: 6px;
  }

  .crm-top .badge {
    align-self: flex-start;
  }

  .sales-calendar-grid {
    gap: 4px;
  }

  .calendar-cell.day {
    min-height: 62px;
    padding: 5px;
  }

  .calendar-meta {
    font-size: 0.72rem;
  }

  .modal-card .cart-actions .btn {
    width: 100%;
  }

  .modal-card header .btn {
    width: auto;
  }

  .cart-floating {
    right: 12px;
    bottom: 12px;
  }

  .cart-button {
    padding: 10px 12px;
  }

  .modal-card {
    width: min(700px, 96%);
    padding: 12px;
  }
}

@media (max-width: 860px) {
  .crm-page .nav-wrap {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .crm-page .brand {
    order: 1;
    min-width: 0;
    max-width: calc(100% - 132px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .crm-page .crm-head-actions {
    order: 2;
    margin-left: 0;
    flex-shrink: 0;
  }

  .crm-page .menu-tabs {
    -webkit-overflow-scrolling: touch;
  }

  .kitchen-page .nav-wrap {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }

  .kitchen-page .brand {
    order: 1;
    min-width: 0;
    max-width: calc(100% - 132px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .kitchen-page .crm-head-actions {
    order: 2;
    margin-left: 0;
    flex-shrink: 0;
  }
}

@media (max-width: 560px) {
  .kitchen-page .brand {
    font-size: 1.12rem;
  }

  .crm-page .auth-gate {
    padding: 14px;
  }

  .crm-page .menu-tabs {
    margin: 12px 0;
  }

  .crm-page .chip {
    padding: 8px 11px;
    font-size: 0.88rem;
  }

  .modal {
    padding: 10px;
  }

  .modal-card {
    width: min(100%, 100%);
    max-height: 92svh;
    border-radius: 12px;
    padding: 12px;
  }

  .modal-card header {
    align-items: flex-start;
  }

  #reviewBody {
    padding-right: 2px;
  }

  #reviewBody p,
  #reviewBody ul,
  #reviewBody label,
  #reviewBody .cart-actions {
    margin-bottom: 12px;
  }

  .crm-page #statusFilters {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .crm-page #statusFilters .chip {
    flex: 0 0 auto;
    width: auto;
    min-width: 132px;
    padding: 7px 8px;
    font-size: 0.8rem;
  }

  .crm-page .order-status-panel {
    gap: 6px;
  }

  .crm-toolbar {
    align-items: stretch;
  }

  .crm-search-field,
  .crm-toolbar-actions,
  .crm-toolbar-actions .btn {
    width: 100%;
  }

  .crm-page .order-status-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crm-page .order-status-actions-terminal {
    grid-template-columns: minmax(112px, 0.72fr) minmax(152px, 2.28fr);
    align-items: stretch;
  }

  .crm-page .order-status-actions-terminal .btn-action,
  .crm-page .order-status-actions-terminal .btn-action-details,
  .crm-page .order-status-actions-terminal .status-nav {
    min-height: 38px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .crm-page .btn-action,
  .crm-page .btn-action-details,
  .crm-page .status-nav,
  .crm-page .reject-action,
  .crm-page .payment-action {
    width: 100%;
    min-width: 0;
  }

  .crm-page .btn-action {
    min-height: 38px;
    font-size: 0.8rem;
  }

  .crm-page .status-nav-deliver {
    font-size: 0.94rem;
  }

  .crm-page .status-nav {
    min-height: 38px;
  }

  .crm-page .order-status-actions-terminal .btn-action,
  .crm-page .order-status-actions-terminal .btn-action-details,
  .crm-page .order-status-actions-terminal .status-nav {
    width: 100%;
  }

  .crm-page .reject-action {
    font-size: 0.82rem;
  }

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

.auth-gate {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 10px 25px rgba(31, 24, 12, 0.06);
}

.auth-gate h1 {
  margin: 0 0 8px;
}

.muted-line {
  color: var(--muted);
  margin: 10px 0 0;
}

.kitchen-head h1 {
  margin-bottom: 8px;
}

.kitchen-summary {
  margin: 14px 0 12px;
  border: 1px solid #dfc7a9;
  background: linear-gradient(120deg, #fff6e9, #ffe8ca);
  border-radius: 12px;
  padding: 12px 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kitchen-summary span {
  font-size: 1.3rem;
  font-weight: 800;
  color: #7c4510;
}

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

.kitchen-ticket {
  border: 1px solid #e0ceb8;
  border-radius: 12px;
  background: #fffaf3;
  box-shadow: 0 8px 20px rgba(31, 24, 12, 0.05);
  padding: 14px;
}

.kitchen-ticket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kitchen-ticket p {
  margin: 8px 0 0;
}

.kitchen-ticket ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.kitchen-ticket li + li {
  margin-top: 4px;
}

.kitchen-ticket-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 1040px) {
  .kitchen-page .kitchen-grid {
    grid-template-columns: 1fr;
  }

  .kitchen-page .kitchen-ticket {
    width: 100%;
  }

  .kitchen-page .kitchen-ticket-actions {
    justify-content: stretch;
  }

  .kitchen-page .kitchen-ticket-actions .btn {
    width: 100%;
  }
}
