:root {
  --mk-bg: #f7f6f3;
  --mk-surface: #ffffff;
  --mk-surface-soft: #fffaf4;
  --mk-line: #e9e3d8;
  --mk-text: #171411;
  --mk-muted: #6b6258;
  --mk-brand: #ea580c;
  --mk-brand-dark: #c2410c;
  --mk-brand-soft: #ffeddc;
  --mk-accent: #166534;
  --mk-shadow-sm: 0 8px 18px rgba(21, 17, 13, 0.06);
  --mk-shadow-md: 0 16px 36px rgba(21, 17, 13, 0.1);
  --mk-r-sm: 10px;
  --mk-r-md: 14px;
  --mk-r-lg: 18px;
}

body {
  font-family: "Sora", "Poppins", system-ui, sans-serif;
  color: var(--mk-text);
  background:
    radial-gradient(circle at 85% 7%, rgba(22, 101, 52, 0.11), rgba(22, 101, 52, 0)),
    radial-gradient(circle at 10% 5%, rgba(234, 88, 12, 0.1), rgba(234, 88, 12, 0)),
    var(--mk-bg);
}

.container,
.nav-inner {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
}

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

.page {
  flex: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(233, 227, 216, 0.8);
  background: rgba(247, 246, 243, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 18px rgba(21, 17, 13, 0.04);
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: var(--mk-shadow-sm);
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.brand-text-main {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text-tagline {
  font-size: 12px;
  color: var(--mk-muted);
}

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

.nav-link {
  color: #312b25;
  border: 1px solid transparent;
  text-decoration: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1;
}

.nav-link:hover {
  background: #fff;
  border-color: var(--mk-line);
  text-decoration: none;
}

.nav-link-cta,
.btn-primary,
.btn-primary-wide {
  color: #fff !important;
  border: none;
  background: linear-gradient(135deg, var(--mk-brand-dark), var(--mk-brand));
  box-shadow: 0 10px 22px rgba(194, 65, 12, 0.22);
}

.nav-link-ghost,
.btn-secondary,
.btn-secondary-wide {
  border: 1px solid var(--mk-line);
  background: #fff;
  color: #2e2924;
}

.btn-primary,
.btn-primary-wide,
.btn-secondary,
.btn-secondary-wide {
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary-wide,
.btn-secondary-wide {
  width: 100%;
}

.card-surface {
  background: var(--mk-surface);
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-r-lg);
  box-shadow: var(--mk-shadow-sm);
}

.card-body {
  padding: 14px;
}

.field-label {
  margin: 0 0 6px;
  display: block;
  color: var(--mk-muted);
  font-size: 13px;
}

.field-input,
.field-select,
select.field-input,
textarea.field-input {
  width: 100%;
  border: 1px solid #ddd3c5;
  border-radius: var(--mk-r-sm);
  padding: 11px 12px;
  font: inherit;
  color: inherit;
  background: #fff;
}

.field-input:focus,
.field-select:focus,
select.field-input:focus,
textarea.field-input:focus {
  outline: none;
  border-color: #ddad88;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.search-pill {
  border: 1px solid var(--mk-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--mk-shadow-sm);
}

.search-pill input {
  border: none;
  outline: none;
  background: transparent;
}

.search-pill button {
  border: none;
  border-radius: 999px;
  background: var(--mk-brand);
  color: #fff;
  padding: 8px 14px;
  font-weight: 600;
}

.pill {
  border: 1px solid #efd8bf;
  background: var(--mk-brand-soft);
  color: #8a4718;
}

.tag-pill {
  border: 1px solid #f0d8c1;
  background: #fff7ef;
  color: #8e4f24;
}

.restaurant-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.restaurant-title {
  margin: 0 0 6px;
  font-size: 18px;
}

.restaurant-meta,
.section-subtext,
.muted {
  color: var(--mk-muted);
}

.auth-layout {
  max-width: 520px;
  margin: 34px auto;
  padding: 20px;
}

.checkout-layout,
.restaurant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 16px;
}

.restaurant-cart {
  position: sticky;
  top: 90px;
  align-self: start;
}

.cart-card {
  padding: 14px;
}

.cart-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ddcfbe;
  color: var(--mk-muted);
}

.cart-total-row {
  color: var(--mk-text);
  font-weight: 700;
}

.section-heading {
  margin: 0 0 6px;
}

.footer {
  margin-top: 30px;
  border-top: 1px solid var(--mk-line);
  color: var(--mk-muted);
  font-size: 13px;
  padding: 16px 0 24px;
  background: #f4f1ec;
}

.page-wrap {
  width: min(1160px, calc(100% - 36px));
  margin-inline: auto;
  padding-top: 20px;
}

.section {
  padding: 16px 0;
}

.mk-hero {
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-r-lg);
  background:
    radial-gradient(circle at 88% 16%, rgba(22, 101, 52, 0.12), rgba(22, 101, 52, 0)),
    radial-gradient(circle at 8% 2%, rgba(234, 88, 12, 0.1), rgba(234, 88, 12, 0)),
    #fffdf9;
  box-shadow: var(--mk-shadow-md);
  padding: 20px;
}

.mk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.mk-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6ecd8;
  border-radius: 999px;
  background: #ecfdf3;
  color: #176235;
  font-size: 12px;
  padding: 6px 10px;
  font-weight: 600;
}

.mk-title {
  margin: 10px 0 8px;
  font-family: "Bricolage Grotesque", "Sora", system-ui, sans-serif;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.mk-subtitle {
  margin: 0;
  color: var(--mk-muted);
  line-height: 1.55;
}

.mk-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.mk-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.mk-stat {
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-r-md);
  background: #fff;
  padding: 12px;
}

.mk-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
}

.mk-stat-label {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--mk-muted);
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.stack {
  display: grid;
  gap: 12px;
}

.surface-pad {
  padding: 16px;
}

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

.section-title {
  margin: 0;
  font-size: 24px;
  font-family: "Bricolage Grotesque", "Sora", system-ui, sans-serif;
}

.section-caption {
  margin: 3px 0 0;
  color: var(--mk-muted);
  font-size: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.info-card {
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-r-md);
  box-shadow: var(--mk-shadow-sm);
  padding: 14px;
}

.info-card h3,
.info-card h4 {
  margin: 0 0 6px;
}

.info-card p {
  margin: 0;
  color: var(--mk-muted);
  font-size: 14px;
}

.filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e5dacb;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.chip-toggle:hover {
  border-color: #dab18d;
}

.table-wrap {
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-r-md);
  overflow: hidden;
  background: #fff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid #efe7dc;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: #faf7f2;
  font-weight: 700;
  color: #2f2a25;
}

.table tr:last-child td {
  border-bottom: none;
}

.dashboard-layout {
  width: min(1200px, calc(100% - 36px));
  margin-inline: auto;
  padding-top: 18px;
}

.dashboard-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 6px;
}

.dashboard-nav button {
  border: 1px solid var(--mk-line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

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

.dashboard-section {
  margin-top: 14px;
}

.status-ok {
  color: #0c4a2e;
}

.status-error {
  color: #b00020;
}

.contact-list {
  display: grid;
  gap: 6px;
  color: var(--mk-muted);
}

.map-shell {
  display: grid;
  gap: 12px;
}

.map-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.map-panel {
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-r-md);
  padding: 10px;
}

.map-legend {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #eadfce;
  font-size: 12px;
}

#map-canvas {
  height: 520px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8dece;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.recipe-card {
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-r-md);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--mk-shadow-sm);
}

.recipe-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.recipe-body {
  padding: 12px;
  display: grid;
  gap: 6px;
}

.powered-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #c8def6;
  background: #eff6ff;
  color: #1d4f91;
  font-size: 12px;
  font-weight: 600;
}

.powered-note {
  margin-top: 8px;
  font-size: 13px;
  color: #2a4f7a;
  background: #f4f8ff;
  border: 1px solid #d4e4fb;
  border-radius: 10px;
  padding: 9px 10px;
}

.focus-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--mk-muted);
}

.retired-wrap {
  max-width: 760px;
  margin: 30px auto;
  padding: 20px;
}

.wa-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 11px 15px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--mk-shadow-md);
  z-index: 60;
}

.trust-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-r-lg);
  background:
    radial-gradient(circle at top right, rgba(22, 101, 52, 0.09), rgba(22, 101, 52, 0)),
    linear-gradient(180deg, rgba(255, 250, 244, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: var(--mk-shadow-sm);
}

.trust-strip h3 {
  margin: 4px 0 6px;
}

.trust-strip p {
  margin: 0;
}

.trust-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .checkout-layout,
  .restaurant-layout,
  .mk-hero-grid,
  .split-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-cart {
    position: static;
  }

  .trust-strip {
    display: grid;
  }

  .trust-strip-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-inner {
    min-height: 62px;
    padding: 8px 0;
  }

  .container,
  .nav-inner {
    width: min(1160px, calc(100% - 24px));
  }

  .nav-links {
    gap: 8px;
  }

  .page-wrap,
  .dashboard-layout {
    width: min(1160px, calc(100% - 24px));
  }

  .mk-hero {
    padding: 16px;
  }

  .mk-title {
    font-size: clamp(24px, 7vw, 36px);
  }
}
