:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --ink: #172026;
  --muted: #667085;
  --page: #f6f7f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #e5e7eb;
  --control: #ffffff;
  --shadow: rgba(15, 23, 42, .12);
}

:root[data-theme="dark"] {
  --brand: #2dd4bf;
  --brand-dark: #14b8a6;
  --ink: #eef2f7;
  --muted: #a7b1c2;
  --page: #101418;
  --surface: #171c22;
  --surface-soft: #202832;
  --border: #2d3642;
  --control: #111820;
  --shadow: rgba(0, 0, 0, .28);
}

body {
  color: var(--ink);
  background: var(--page);
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

body.gallery-open {
  overflow: hidden;
}

.bg-white,
.navbar,
.card,
.modal-content {
  background-color: var(--surface) !important;
  color: var(--ink);
}

.bg-light {
  background-color: var(--page) !important;
}

.border,
.border-bottom,
.table,
.form-control,
.form-select {
  border-color: var(--border) !important;
}

.text-muted,
.form-text {
  color: var(--muted) !important;
}

.table {
  --bs-table-bg: var(--surface);
  --bs-table-color: var(--ink);
  --bs-table-border-color: var(--border);
}

.form-control,
.form-select {
  background-color: var(--control);
  color: var(--ink);
}

.form-control:focus,
.form-select:focus {
  background-color: var(--control);
  color: var(--ink);
}

.auth-panel {
  width: min(100%, 420px);
}

.auth-panel input {
  display: block;
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid var(--border);
  border-radius: .375rem;
}

.btn-primary,
.btn-success {
  background: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-success:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.public-body {
  background: var(--page);
  padding-bottom: 5rem;
}

.business-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  min-height: 180px;
  overflow: hidden;
  position: relative;
}

.menu-app-hero {
  min-height: 305px;
  border-bottom: 0;
  background: var(--page);
}

.business-cover-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(15, 118, 110, .08), transparent 46%),
    linear-gradient(180deg, #f7f7f5, #ffffff);
}

.business-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .88));
}

:root[data-theme="dark"] .business-cover-wrap {
  background:
    radial-gradient(circle at center, rgba(45, 212, 191, .12), transparent 48%),
    linear-gradient(180deg, #172026, #101418);
}

:root[data-theme="dark"] .business-cover-wrap::after {
  background: linear-gradient(180deg, rgba(16, 20, 24, .1), rgba(16, 20, 24, .9));
}

.business-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .3;
}

.menu-hero-brand {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  align-content: center;
  color: var(--ink);
  text-align: center;
  letter-spacing: 0;
}

.menu-hero-brand img,
.menu-hero-logo-fallback {
  width: 155px;
  height: 155px;
  object-fit: contain;
  border-radius: 24px;
  border: 4px solid color-mix(in srgb, var(--surface) 86%, transparent);
  background: var(--surface);
  box-shadow: 0 18px 44px var(--shadow);
}

.menu-hero-logo-fallback {
  display: grid;
  place-items: center;
  color: var(--brand);
}

.menu-hero-logo-fallback svg {
  width: 46px;
  height: 46px;
}

.menu-business-panel {
  position: relative;
  margin-top: -46px;
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  justify-content: center;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 12px 34px var(--shadow);
  backdrop-filter: blur(12px);
  text-align: center;
}

.business-logo {
  width: 78px;
  height: 78px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid var(--surface);
  box-shadow: 0 8px 24px var(--shadow);
  background: var(--surface);
}

.business-logo-fallback {
  display: grid;
  place-items: center;
  color: var(--brand);
}

.business-logo-fallback svg {
  width: 34px;
  height: 34px;
}

.menu-business-title-row {
  display: grid;
  justify-items: center;
  gap: .45rem;
  text-align: center;
}

.menu-business-title-row h1 {
  font-size: clamp(1.7rem, 4.8vw, 2.45rem);
  line-height: 1.25;
  font-weight: 900;
}

.menu-business-description {
  max-width: 760px;
  font-size: .9rem;
  line-height: 1.95;
  margin-top: .55rem;
  margin-bottom: .7rem !important;
  text-align: center;
  margin-inline: auto;
}

.menu-business-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .55rem .5rem;
  margin-top: .25rem;
}

.menu-business-meta span,
.menu-business-meta a,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  min-height: 26px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .18rem .5rem;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.55;
  text-decoration: none;
}

.status-pill {
  color: var(--brand-dark);
  border-color: color-mix(in srgb, var(--brand) 38%, var(--border));
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
}

.status-pill-closed {
  color: #b42318;
  border-color: color-mix(in srgb, #dc3545 42%, var(--border));
  background: color-mix(in srgb, #dc3545 10%, var(--surface));
}

:root[data-theme="dark"] .status-pill-closed {
  color: #fca5a5;
}

:root[data-theme="dark"] .status-pill {
  color: var(--brand);
}

.menu-business-meta svg,
.status-pill svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

.menu-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  margin-top: .78rem;
}

.social-icon-link {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--brand-dark);
  text-decoration: none;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--shadow) 28%, transparent);
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}

.social-icon-link span {
  display: inline-grid;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: .95rem;
  font-weight: 900;
  line-height: 1;
}

:root[data-theme="dark"] .social-icon-link {
  color: var(--brand);
}

.social-icon-link:hover,
.social-icon-link:focus {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

.closed-order-note {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .78rem;
  border: 1px solid color-mix(in srgb, #dc3545 30%, var(--border));
  border-radius: 999px;
  padding: .28rem .55rem;
  background: color-mix(in srgb, #dc3545 8%, var(--surface));
  color: #b42318;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.6;
}

:root[data-theme="dark"] .closed-order-note {
  color: #fca5a5;
}

.closed-order-note svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.menu-tools-wrap {
  position: sticky;
  top: 0;
  z-index: 36;
  padding: .75rem 0 .55rem;
  background: color-mix(in srgb, var(--page) 90%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  backdrop-filter: blur(14px);
}

.menu-tools-wrap .container {
  max-width: 980px;
}

.menu-search-box {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 46px;
  padding: 0 .85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--shadow) 55%, transparent);
}

.menu-search-box svg {
  width: 19px;
  height: 19px;
  color: var(--muted);
}

.menu-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.category-strip {
  display: flex;
  justify-content: center;
  gap: .75rem;
  overflow-x: auto;
  padding: .15rem 0 .75rem;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem .8rem;
  background: var(--surface);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
}

.category-tile {
  flex: 0 0 112px;
  display: grid;
  gap: .35rem;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.category-tile-name {
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.2;
}

.category-tile-img {
  position: relative;
  display: grid;
  place-items: center;
  height: 74px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shadow) 45%, transparent);
}

.category-tile-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile-img svg {
  width: 28px;
  height: 28px;
  color: var(--muted);
}

.category-tile:hover .category-tile-img,
.category-tile:focus .category-tile-img {
  border-color: var(--brand);
}

.category-chip:hover,
.category-chip:focus {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.menu-content {
  position: relative;
  isolation: isolate;
  padding-top: 2rem;
}

.menu-content::before {
  content: "";
  position: absolute;
  inset: .75rem -1rem 0;
  z-index: -1;
  border-radius: 18px 18px 0 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--ink) 5%, transparent), transparent 210px),
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 5%, transparent) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 74%, transparent), color-mix(in srgb, var(--page) 94%, var(--surface)));
  pointer-events: none;
}

:root[data-theme="dark"] .menu-content::before {
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 5%, transparent), transparent 220px),
    repeating-linear-gradient(135deg, color-mix(in srgb, #fff 5%, transparent) 0 1px, transparent 1px 18px),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 76%, transparent), var(--page));
}

.menu-category {
  scroll-margin-top: 126px;
  margin-bottom: 1.5rem;
}

.category-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.category-count {
  min-width: 34px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
}

.menu-item {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  align-items: center;
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

.menu-card {
  position: relative;
  align-items: stretch;
  padding: .62rem .72rem .62rem .62rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shadow) 42%, transparent);
}

.menu-card[hidden],
.menu-category[hidden] {
  display: none !important;
}

.menu-item-media {
  position: relative;
  flex: 0 0 96px;
  order: 3;
}

.menu-image-button {
  display: block;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-item-img {
  width: 96px;
  height: 82px;
  object-fit: cover;
  border-radius: 9px;
  flex: 0 0 auto;
}

.menu-item-img-empty {
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px solid var(--border);
}

.menu-item-img-empty svg {
  width: 34px;
  height: 34px;
}

.options-badge {
  position: absolute;
  right: .45rem;
  bottom: .45rem;
  display: none;
  align-items: center;
  gap: .25rem;
  border-radius: 999px;
  padding: .18rem .45rem;
  background: rgba(0, 0, 0, .68);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
}

.options-badge svg {
  width: 12px;
  height: 12px;
}

.menu-item-body {
  flex: 1 1 220px;
  min-width: 0;
  display: grid;
  gap: .65rem;
  padding-inline-start: 0;
}

.menu-item-main h3 {
  line-height: 1.35;
}

.menu-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}

.menu-price-inline {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-weight: 900;
  font-size: .95rem;
  white-space: nowrap;
}

:root[data-theme="dark"] .menu-price-inline {
  color: var(--brand);
}

.gallery-count {
  position: absolute;
  right: .35rem;
  bottom: .35rem;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  border-radius: 999px;
  padding: .14rem .42rem;
  background: rgba(0, 0, 0, .66);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}

.gallery-count svg {
  width: 12px;
  height: 12px;
}

.menu-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}

.menu-actions .add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 34px;
  border-radius: 8px;
  padding-inline: .72rem;
  font-weight: 800;
}

.menu-actions .add-to-cart svg {
  width: 16px;
  height: 16px;
}

.item-qty {
  height: 34px;
  grid-template-columns: 34px 32px 34px;
  background: var(--surface-soft);
}

.item-qty span {
  font-weight: 900;
}

.item-options {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.option-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem .55rem;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.option-toggle input {
  margin: 0;
  accent-color: var(--brand);
}

.option-toggle:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  color: var(--brand-dark);
}

:root[data-theme="dark"] .option-toggle:has(input:checked) {
  color: var(--brand);
}

.cart-fab {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  border-radius: 12px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 58px;
  text-decoration: none;
}

.cart-fab-main,
.cart-fab-meta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.cart-fab-disabled {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  border-radius: 12px;
  padding: .75rem 1rem;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  background: #6b7280;
  color: #fff;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .86);
  padding: 1rem;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal img {
  max-width: min(94vw, 860px);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.gallery-close,
.gallery-nav {
  position: fixed;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.gallery-close {
  top: 1rem;
  left: 1rem;
}

.gallery-prev {
  right: 1rem;
}

.gallery-next {
  left: 1rem;
}

.gallery-caption {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1.25rem;
  color: #fff;
  text-align: center;
  font-weight: 800;
}

.cart-fab-main {
  font-weight: 800;
}

.cart-fab-main svg {
  width: 19px;
  height: 19px;
}

.cart-fab-meta {
  border-radius: 999px;
  padding: .25rem .6rem;
  background: rgba(255, 255, 255, .16);
  font-size: .85rem;
  font-weight: 700;
}

.checkout-page {
  max-width: 720px;
  padding-top: 1rem;
  padding-bottom: 6.5rem;
}

.checkout-section-title,
.checkout-total-label,
.checkout-submit {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}

.checkout-section-title svg,
.checkout-total-label svg,
.checkout-submit svg {
  width: 18px;
  height: 18px;
}

.checkout-submit {
  justify-content: center;
}

.checkout-submit .whatsapp-logo {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.mobile-checkout-header {
  position: sticky;
  top: 0;
  z-index: 24;
  padding: .85rem 0 .65rem;
  background: color-mix(in srgb, var(--page) 92%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  backdrop-filter: blur(14px);
}

.checkout-topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.mobile-back-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--shadow) 45%, transparent);
  text-decoration: none;
  flex: 0 0 auto;
}

.mobile-back-btn svg {
  width: 20px;
  height: 20px;
}

.checkout-title-block {
  min-width: 0;
  flex: 1 1 auto;
}

.checkout-title-block h1 {
  margin: 0;
  font-size: .98rem;
  font-weight: 900;
}

.checkout-title-block span {
  display: block;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-business-logo {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  flex: 0 0 auto;
}

.checkout-business-logo-fallback {
  display: grid;
  place-items: center;
  color: var(--brand);
}

.checkout-business-logo-fallback svg {
  width: 22px;
  height: 22px;
}

.checkout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  margin-bottom: .9rem;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shadow) 45%, transparent);
}

.checkout-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .85rem;
}

.checkout-card-title h2 {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: 1rem;
  font-weight: 900;
}

.checkout-card-title svg {
  width: 18px;
  height: 18px;
}

.checkout-edit-link {
  color: var(--brand-dark);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

:root[data-theme="dark"] .checkout-edit-link {
  color: var(--brand);
}

.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: .85rem;
  margin-top: .85rem;
  font-weight: 900;
}

.checkout-form-card .form-control,
.checkout-form-card .form-select {
  min-height: 46px;
  border-radius: 12px;
}

.checkout-error-summary {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  border: 1px solid color-mix(in srgb, #dc3545 40%, var(--border));
  border-radius: 14px;
  padding: .78rem .85rem;
  margin-bottom: 1rem;
  background: color-mix(in srgb, #dc3545 8%, var(--surface));
  color: #b42318;
}

:root[data-theme="dark"] .checkout-error-summary {
  color: #fca5a5;
}

.checkout-error-summary svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: .08rem;
}

.checkout-error-summary strong,
.checkout-error-summary span {
  display: block;
}

.checkout-error-summary span {
  margin-top: .12rem;
  font-size: .84rem;
  line-height: 1.55;
}

.checkout-field.has-error .form-label {
  color: #b42318;
}

:root[data-theme="dark"] .checkout-field.has-error .form-label {
  color: #fca5a5;
}

.checkout-field.has-error .form-control,
.checkout-field.has-error .form-select {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .18rem color-mix(in srgb, #dc3545 18%, transparent);
}

.checkout-field-error {
  margin-top: .35rem;
  color: #b42318;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.45;
}

:root[data-theme="dark"] .checkout-field-error {
  color: #fca5a5;
}

.checkout-map-picker {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .8rem;
  background: var(--surface-soft);
}

.checkout-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .75rem;
}

.checkout-map-head strong,
.checkout-map-head span {
  display: block;
}

.checkout-map-head strong {
  font-weight: 900;
}

.checkout-map-head span,
.checkout-map-meta {
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.checkout-map-head .btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  white-space: nowrap;
}

.checkout-map-head svg {
  width: 16px;
  height: 16px;
}

.checkout-map {
  height: 230px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.checkout-map-meta {
  margin-top: .55rem;
  font-weight: 800;
}

.checkout-sticky-submit {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1rem;
  z-index: 26;
  max-width: 520px;
  margin-inline: auto;
  min-height: 48px;
  border-radius: 14px;
  font-size: .95rem;
  font-weight: 900;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--shadow) 70%, transparent);
}

.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-row:last-child {
  border-bottom: 0;
}

.cart-line-info {
  min-width: 0;
}

.cart-line-title,
.cart-line-meta,
.cart-line-total {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.cart-line-title svg,
.cart-line-meta svg,
.cart-line-total svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.cart-line-meta {
  color: var(--muted);
  font-size: .86rem;
  margin-top: .18rem;
}

.cart-line-total {
  color: var(--brand-dark);
  font-weight: 800;
  margin-top: .25rem;
}

:root[data-theme="dark"] .cart-line-total {
  color: var(--brand);
}

.cart-line-actions {
  display: grid;
  gap: .45rem;
  justify-items: center;
  flex: 0 0 auto;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  flex: 0 0 auto;
}

.qty-control button {
  border: 0;
  background: var(--control);
  color: var(--ink);
  height: 34px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.qty-control svg {
  width: 16px;
  height: 16px;
}

.cart-remove-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: #dc3545;
}

.cart-remove-btn svg {
  width: 16px;
  height: 16px;
}

.metric {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .75rem;
  padding: 1rem;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: .875rem;
  margin-bottom: .35rem;
}

.metric strong {
  font-size: 1.35rem;
}

.dashboard-home-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
}

.dashboard-home-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--shadow) 22%, transparent);
}

.dashboard-home-brand span {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  margin-top: .15rem;
}

.dashboard-expiry-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 31px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: 999px;
  padding: .18rem .65rem;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--ink);
}

.dashboard-expiry-chip.is-expired {
  border-color: color-mix(in srgb, #dc3545 34%, var(--border));
  background: color-mix(in srgb, #dc3545 8%, var(--surface));
}

.dashboard-expiry-chip span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
}

.dashboard-expiry-chip strong {
  font-size: .78rem;
  font-weight: 900;
}

.thumb-sm {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: .5rem;
  margin-left: .5rem;
}

.dashboard-thumb-cell {
  width: 58px;
}

.thumb-frame {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  box-shadow: 0 4px 10px color-mix(in srgb, var(--shadow) 26%, transparent);
  overflow: hidden;
  vertical-align: middle;
}

.thumb-placeholder {
  color: var(--muted);
}

.thumb-placeholder svg {
  width: 17px;
  height: 17px;
}

.dashboard-item-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-width: 220px;
  font-weight: 800;
}

.dashboard-filter-bar {
  display: flex;
  align-items: end;
  gap: .75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .85rem;
  background: var(--surface);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--shadow) 28%, transparent);
}

.dashboard-filter-bar > div {
  min-width: min(100%, 280px);
}

.reorder-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--surface);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--shadow) 34%, transparent);
}

.reorder-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .85rem;
}

.reorder-panel-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}

.reorder-panel-head p {
  margin: .18rem 0 0;
  color: var(--muted);
  font-size: .86rem;
}

.reorder-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .15rem .6rem;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.reorder-status[data-state="saving"] {
  color: var(--brand-dark);
  border-color: color-mix(in srgb, var(--brand) 32%, var(--border));
}

.reorder-status[data-state="saved"] {
  color: var(--brand-dark);
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 32%, var(--border));
}

.reorder-status[data-state="error"] {
  color: #b42318;
  border-color: color-mix(in srgb, #dc3545 38%, var(--border));
  background: color-mix(in srgb, #dc3545 9%, var(--surface));
}

:root[data-theme="dark"] .reorder-status[data-state="saving"],
:root[data-theme="dark"] .reorder-status[data-state="saved"] {
  color: var(--brand);
}

:root[data-theme="dark"] .reorder-status[data-state="error"] {
  color: #fca5a5;
}

.reorder-list {
  display: grid;
  gap: .55rem;
}

.reorder-card {
  display: grid;
  grid-template-columns: 28px 42px minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: .65rem;
  min-height: 58px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .45rem .6rem;
  background: var(--surface-soft);
  cursor: grab;
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.manage-card {
  grid-template-columns: 28px 42px minmax(180px, 1fr) auto auto;
}

.manage-card-item {
  grid-template-columns: 28px 42px minmax(220px, 1fr) auto auto auto;
}

.reorder-card:active {
  cursor: grabbing;
}

.reorder-card.is-dragging {
  opacity: .58;
  border-color: var(--brand);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--shadow) 48%, transparent);
}

.reorder-grip {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.reorder-grip svg {
  width: 18px;
  height: 18px;
}

.reorder-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.reorder-meta {
  color: var(--muted);
  font-size: .82rem;
  white-space: nowrap;
}

.reorder-number {
  min-width: 30px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 900;
}

.manage-card-main {
  min-width: 0;
  display: grid;
  gap: .18rem;
}

.manage-card-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.manage-card-main > span {
  color: var(--muted);
  font-size: .82rem;
}

.manage-card-options {
  margin-top: .15rem;
}

.manage-card-price {
  color: var(--brand-dark);
  font-weight: 900;
  white-space: nowrap;
}

:root[data-theme="dark"] .manage-card-price {
  color: var(--brand);
}

.manage-card-status {
  white-space: nowrap;
}

.manage-card-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: .4rem;
  white-space: nowrap;
}

.latest-order {
  display: block;
  background: var(--surface);
}

.receipt-preview {
  white-space: pre-wrap;
  direction: rtl;
  text-align: right;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: .5rem;
  padding: .75rem;
  max-height: 360px;
  overflow: auto;
}

.option-chip {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .08rem .45rem;
  margin: .08rem;
  background: var(--surface-soft);
}

.navbar {
  box-shadow: 0 8px 24px color-mix(in srgb, var(--shadow) 40%, transparent);
}

.navbar-brand,
.nav-link,
.dropdown-item {
  color: var(--ink);
}

.nav-link:hover,
.nav-link:focus,
.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--brand-dark);
}

:root[data-theme="dark"] .nav-link:hover,
:root[data-theme="dark"] .nav-link:focus,
:root[data-theme="dark"] .dropdown-item:hover,
:root[data-theme="dark"] .dropdown-item:focus {
  color: var(--brand);
}

.dropdown-menu {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
  border-radius: 10px;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--shadow) 70%, transparent);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--surface-soft);
}

.dropdown-header {
  color: var(--muted);
  font-weight: 800;
}

.dropdown-divider {
  border-color: var(--border);
}

.dashboard-lang-btn,
.dashboard-bell-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 31px;
  padding: 0;
}

.dashboard-lang-btn svg,
.dashboard-bell-btn svg {
  width: 17px;
  height: 17px;
}

.dashboard-bell-btn.has-new-orders {
  color: #fff;
  border-color: var(--brand);
  background: var(--brand);
}

.dashboard-bell-badge {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: .65rem;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
}

.dashboard-notification-toast {
  position: fixed;
  top: 78px;
  right: 1rem;
  z-index: 1055;
  display: flex;
  align-items: center;
  gap: .75rem;
  width: min(420px, calc(100vw - 2rem));
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 42px color-mix(in srgb, var(--shadow) 64%, transparent);
}

[dir="rtl"] .dashboard-notification-toast {
  right: auto;
  left: 1rem;
}

.dashboard-notification-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
}

.dashboard-notification-icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-notification-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.dashboard-notification-copy strong,
.dashboard-notification-copy span {
  display: block;
}

.dashboard-notification-copy span {
  color: var(--muted);
  font-size: .82rem;
  margin-top: .15rem;
}

.table-responsive,
.dashboard-panel {
  background: var(--surface);
  border-color: var(--border) !important;
  box-shadow: 0 10px 26px color-mix(in srgb, var(--shadow) 34%, transparent);
}

.table > :not(caption) > * > * {
  background-color: var(--surface);
  color: var(--ink);
  border-bottom-color: var(--border);
  padding-top: .55rem;
  padding-bottom: .55rem;
}

.table thead th,
.table-light th {
  background: var(--surface-soft) !important;
  color: var(--muted) !important;
  border-bottom-color: var(--border) !important;
  font-size: .84rem;
  font-weight: 800;
}

.badge.text-bg-secondary {
  background: color-mix(in srgb, var(--muted) 28%, var(--surface-soft)) !important;
  color: var(--ink) !important;
}

.badge.text-bg-success {
  background: color-mix(in srgb, var(--brand) 18%, var(--surface-soft)) !important;
  color: var(--brand-dark) !important;
}

:root[data-theme="dark"] .badge.text-bg-success {
  color: var(--brand) !important;
}

.form-control,
.form-select,
.form-check-input {
  box-shadow: none;
}

.form-control::file-selector-button {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--border);
}

.form-check-input:checked {
  background-color: var(--brand);
  border-color: var(--brand);
}

.btn-outline-secondary,
.btn-outline-primary {
  border-color: var(--border);
  color: var(--ink);
}

.btn-outline-secondary:hover,
.btn-outline-primary:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.dashboard-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  border-radius: 999px;
  padding: .2rem .65rem;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand-dark);
  font-size: .78rem;
  font-weight: 900;
}

:root[data-theme="dark"] .dashboard-eyebrow {
  color: var(--brand);
}

.dashboard-page-head h1 {
  margin: .45rem 0 .25rem;
  font-size: 1.45rem;
  font-weight: 900;
}

.dashboard-page-head p {
  margin: 0;
  color: var(--muted);
}

.settings-layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.settings-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface-soft) 42%, transparent), transparent 42%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.05rem;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--shadow) 38%, transparent);
}

.settings-card-compact {
  max-width: 720px;
}

.subscription-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: 12px;
  padding: .85rem 1rem;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.subscription-status-card.is-expired {
  border-color: color-mix(in srgb, #dc3545 34%, var(--border));
  background: color-mix(in srgb, #dc3545 8%, var(--surface));
}

.subscription-status-card span {
  display: block;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.subscription-status-card strong {
  display: block;
  margin-top: .12rem;
  font-size: 1.15rem;
  font-weight: 900;
}

.subscription-status-card small {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-subscription-card {
  box-shadow: 0 10px 26px color-mix(in srgb, var(--shadow) 28%, transparent);
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: 1rem;
}

.settings-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.settings-card-head p {
  margin: .15rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.settings-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border));
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand-dark);
  flex: 0 0 auto;
}

:root[data-theme="dark"] .settings-icon {
  color: var(--brand);
}

.settings-icon svg {
  width: 20px;
  height: 20px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1rem;
}

.field-block {
  min-width: 0;
}

.field-block .form-label,
.field-block .form-check-label {
  color: var(--ink);
  font-weight: 800;
  margin-bottom: .35rem;
}

.field-block .form-control,
.field-block .form-select {
  min-height: 44px;
  border-radius: 10px;
}

.field-block textarea.form-control {
  min-height: 98px;
}

.field-block-check {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem;
  background: var(--surface-soft);
}

.settings-savebar {
  position: sticky;
  bottom: 1rem;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  gap: .6rem;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--shadow) 54%, transparent);
  backdrop-filter: blur(14px);
}

.theme-floating-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 30;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: 0 10px 26px var(--shadow);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.language-floating-toggle {
  position: fixed;
  top: 1rem;
  left: 4.35rem;
  z-index: 30;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: 0 10px 26px var(--shadow);
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

.theme-floating-toggle svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.25;
}

.language-floating-toggle svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.25;
}

.theme-floating-toggle:hover,
.language-floating-toggle:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-fab {
    right: auto;
    width: 360px;
  }
}

@media (max-width: 520px) {
  .dashboard-page-head {
    display: grid;
  }

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

  .settings-card {
    padding: .9rem;
  }

  .settings-savebar {
    left: .75rem;
    right: .75rem;
  }

  .settings-savebar .btn {
    flex: 1 1 auto;
  }

  .dashboard-filter-bar {
    display: grid;
  }

  .dashboard-filter-bar > div,
  .dashboard-filter-bar .btn {
    width: 100%;
  }

  .reorder-panel-head {
    display: grid;
  }

  .reorder-card {
    grid-template-columns: 24px 42px minmax(0, 1fr);
  }

  .reorder-meta {
    display: none;
  }

  .manage-card,
  .manage-card-item {
    grid-template-columns: 24px 42px minmax(0, 1fr);
  }

  .manage-card-status,
  .manage-card-price,
  .manage-card-actions {
    grid-column: 3;
  }

  .manage-card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .menu-app-hero {
    min-height: 265px;
  }

  .business-cover-wrap {
    height: 188px;
  }

  .menu-hero-brand img,
  .menu-hero-logo-fallback {
    width: 140px;
    height: 140px;
    border-radius: 20px;
  }

  .menu-business-panel {
    margin-top: -40px;
    border-radius: 10px;
    padding: .95rem;
    gap: .85rem;
    align-items: center;
  }

  .business-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .menu-business-panel h1 {
    font-size: 1.55rem;
  }

  .menu-business-description {
    font-size: .82rem;
    line-height: 1.85;
    margin-top: .42rem;
    margin-bottom: .6rem !important;
  }

  .menu-business-meta {
    gap: .48rem .42rem;
  }

  .category-strip {
    justify-content: flex-start;
  }

  .menu-business-meta span,
  .menu-business-meta a,
  .status-pill,
  .closed-order-note {
    font-size: .7rem;
  }

  .social-icon-link {
    width: 32px;
    height: 32px;
  }

  .closed-order-note {
    border-radius: 10px;
    align-items: flex-start;
  }

  .menu-item {
    align-items: flex-start;
  }

  .menu-card {
    gap: .62rem;
  }

  .menu-item-media {
    flex-basis: 88px;
  }

  .menu-item-img {
    width: 88px;
    height: 78px;
  }

  .menu-actions {
    width: 100%;
    justify-content: space-between;
  }

  .menu-actions .add-to-cart {
    min-width: 128px;
  }

  .cart-fab {
    left: .75rem;
    right: .75rem;
    bottom: .75rem;
  }

  .checkout-page {
    padding-inline: .75rem;
  }

  .checkout-card {
    border-radius: 16px;
    padding: .9rem;
  }

  .checkout-map-head {
    display: grid;
  }

  .checkout-map-head .btn {
    width: 100%;
    justify-content: center;
  }

  .checkout-map {
    height: 210px;
  }

  .checkout-sticky-submit {
    left: 1.1rem;
    right: 1.1rem;
    bottom: .75rem;
    min-height: 46px;
    font-size: .9rem;
  }

  .checkout-body .theme-floating-toggle {
    top: auto;
    bottom: 4.6rem;
    left: .9rem;
    width: 40px;
    height: 40px;
  }

  .checkout-body .language-floating-toggle {
    top: auto;
    bottom: 4.6rem;
    left: 3.7rem;
    width: 40px;
    height: 40px;
  }
}
