:root {
  --bg: #fbfaf7;
  --panel: #ffffff;
  --ink: #20242a;
  --muted: #667085;
  --line: #e3e7ea;
  --green: #1f7a5a;
  --green-dark: #155d44;
  --red: #c53a2b;
  --red-soft: #fff1ee;
  --gold: #f2b705;
  --blue: #235f86;
  --shadow: 0 14px 35px rgba(31, 36, 42, 0.08);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans Mongolian", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-main);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: var(--font-main);
  font-size: inherit;
}

button {
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.is-hidden,
[hidden] {
  display: none !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--green-dark);
}

.button-outline {
  border-color: var(--green);
  color: var(--green);
}

.button-danger {
  border-color: var(--red);
  background: var(--red-soft);
  color: var(--red);
}

.button-small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.flash {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.flash-success {
  border-color: #b9dfce;
  background: #effaf5;
  color: var(--green-dark);
}

.flash-error {
  border-color: #efc1b8;
  background: var(--red-soft);
  color: var(--red);
}

.flash-info {
  border-color: #bdd9ea;
  background: #edf7fc;
  color: var(--blue);
}

.empty-state {
  padding: 28px;
  border: 1px dashed #c7ced4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
}

/* Public menu */
.public-menu-page {
  background:
    linear-gradient(180deg, rgba(31, 122, 90, 0.09), rgba(251, 250, 247, 0) 270px),
    var(--bg);
}

.public-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 18px 14px 96px;
}

.restaurant-hero {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 118px;
  padding: 14px 0 18px;
}

.restaurant-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 18px;
  background: var(--green);
  color: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.restaurant-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.restaurant-hero h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.1;
}

.restaurant-meta {
  margin: 8px 0 0;
  color: var(--muted);
}

.menu-controls {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 12px 0 14px;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(10px);
}

.search-box {
  display: block;
}

.search-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #cbd3d8;
  border-radius: 14px;
  background: #ffffff;
  outline: none;
}

.search-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 90, 0.14);
}

.category-tabs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 3px;
  overflow-x: auto;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.category-tabs button.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.menu-list {
  display: grid;
  gap: 26px;
  padding-top: 6px;
}

.menu-section h2 {
  margin: 0 0 12px;
  font-size: 1.18rem;
}

.menu-grid {
  display: grid;
  gap: 16px;
}

.menu-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 158px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(31, 36, 42, 0.08);
}

.menu-card.is-sold-out {
  opacity: 0.62;
}

.menu-card-image {
  position: relative;
  display: grid;
  place-items: center;
  width: 118px;
  min-height: 158px;
  background: linear-gradient(135deg, #f4e5c2, #d6eee3);
  color: var(--green-dark);
  font-weight: 900;
}

.menu-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sold-out-badge,
.available-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
}

.sold-out-badge {
  background: var(--red);
}

.available-badge {
  background: var(--green);
}

.menu-card-placeholder {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(31, 122, 90, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--green-dark);
  font-weight: 900;
}

.menu-card-body {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.menu-card-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.menu-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.menu-card strong {
  color: var(--green-dark);
  white-space: nowrap;
}

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

.menu-card-actions {
  margin-top: auto;
}

.menu-card-actions .button {
  width: 100%;
}

.floating-cart-button {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  align-items: center;
  min-width: 178px;
  padding: 12px 16px;
  border: 0;
  border-radius: 18px;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(21, 93, 68, 0.32);
  text-align: left;
}

.floating-cart-button span:first-child {
  font-weight: 900;
}

.floating-cart-button strong {
  display: grid;
  grid-row: span 2;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.floating-cart-button span:last-child {
  font-size: 0.84rem;
  opacity: 0.92;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 29;
  background: rgba(19, 24, 29, 0.42);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  width: min(100%, 430px);
  height: 100vh;
  padding: 18px;
  overflow: auto;
  transform: translateX(104%);
  transition: transform 180ms ease;
  border-left: 1px solid var(--line);
  background: #ffffff;
  box-shadow: -18px 0 40px rgba(31, 36, 42, 0.15);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

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

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

.cart-icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 1.5rem;
}

.cart-message {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 800;
}

.cart-message-success {
  background: #effaf5;
  color: var(--green-dark);
}

.cart-message-error {
  background: var(--red-soft);
  color: var(--red);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 80px;
}

.cart-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfb;
}

.cart-item-main strong,
.cart-item-main span {
  display: block;
}

.cart-item-main span {
  color: var(--green-dark);
  font-weight: 900;
}

.cart-qty {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cart-qty button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 900;
}

.cart-order-form {
  display: grid;
  gap: 12px;
}

.cart-order-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.cart-order-form input,
.cart-order-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd3d8;
  border-radius: 12px;
}

.cart-order-form textarea {
  resize: vertical;
}

/* Login */
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(31, 122, 90, 0.11), transparent 320px),
    var(--bg);
}

.login-shell {
  width: min(100%, 420px);
}

.login-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  font-weight: 900;
}

.login-card h1 {
  margin: 18px 0 6px;
}

.login-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Admin */
.admin-page {
  background: #f5f7f8;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.admin-brand {
  color: var(--green-dark);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-nav-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-nav {
  position: absolute;
  top: 62px;
  right: 16px;
  left: 16px;
  display: none;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.admin-nav.is-open {
  display: grid;
}

.admin-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.is-active {
  background: #eef8f3;
  color: var(--green-dark);
}

.admin-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 22px 14px 42px;
}

.admin-page-header {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.admin-page-header h1 {
  margin: 0;
  font-size: 1.65rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

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

.stat-card,
.action-card,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 36, 42, 0.04);
}

.stat-card {
  padding: 16px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  line-height: 1;
}

.admin-panel {
  padding: 16px;
}

.admin-panel h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.action-grid {
  display: grid;
  gap: 10px;
}

.action-card {
  padding: 15px;
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.table-actions {
  width: 1%;
  white-space: nowrap;
}

.table-actions,
.table-actions form {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 800;
}

.status-on {
  background: #e8f7ef;
  color: var(--green-dark);
}

.status-off {
  background: var(--red-soft);
  color: var(--red);
}

.status-new {
  background: #fff8e1;
  color: #8a5c00;
}

.status-accepted,
.status-preparing {
  background: #edf7fc;
  color: var(--blue);
}

.status-ready {
  background: #eef8f3;
  color: var(--green-dark);
}

.status-completed {
  background: #f0f2f4;
  color: var(--muted);
}

.status-cancelled {
  background: var(--red-soft);
  color: var(--red);
}

.item-cell {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 250px;
}

.item-cell img,
.item-thumb-empty {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.item-cell img {
  object-fit: cover;
}

.item-thumb-empty {
  display: grid;
  place-items: center;
  background: #eef4f1;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.item-cell strong,
.item-cell small {
  display: block;
}

.item-cell small {
  max-width: 440px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label,
.login-card label,
.copy-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.login-card input,
.copy-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cbd3d8;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.admin-form textarea {
  resize: vertical;
}

.admin-form small {
  color: var(--muted);
  font-weight: 400;
}

.checkbox-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  gap: 9px !important;
  align-items: center;
}

.checkbox-row input {
  width: 18px;
  min-height: 18px;
}

.form-grid,
.form-actions {
  display: grid;
  gap: 12px;
}

.current-image {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.current-image img {
  width: 150px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.current-logo img {
  width: 90px;
  height: 90px;
}

.copy-field input {
  color: var(--green-dark);
  font-weight: 800;
}

.qr-print-sheet {
  display: grid;
  place-items: center;
}

.qr-stand {
  width: min(100%, 430px);
  padding: 28px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
}

.qr-stand h2 {
  margin: 0 0 18px;
  font-size: 1.7rem;
}

.qr-image {
  width: 280px;
  height: 280px;
  margin: 0 auto;
}

.qr-url {
  margin: 14px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 0.9rem;
}

.panel-header {
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
}

.order-filter-form {
  margin: 0;
}

.order-detail-grid {
  display: grid;
  gap: 18px;
}

.detail-list {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  margin: 0;
}

.status-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 700px) {
  .public-shell {
    padding: 28px 22px 56px;
  }

  .restaurant-hero {
    grid-template-columns: 96px 1fr;
    min-height: 144px;
  }

  .restaurant-logo {
    width: 96px;
    height: 96px;
  }

  .restaurant-hero h1 {
    font-size: 2.4rem;
  }

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

  .menu-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .menu-card-image {
    width: 160px;
  }

  .admin-nav-toggle {
    display: none;
  }

  .admin-nav {
    position: static;
    display: flex;
    align-items: center;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .admin-shell {
    padding: 30px 24px 56px;
  }

  .admin-page-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .stat-grid-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .order-detail-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  }
}

@media (max-width: 420px) {
  .menu-card {
    grid-template-columns: 1fr;
  }

  .menu-card-image {
    width: 100%;
    min-height: 190px;
  }

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

  .cart-item {
    grid-template-columns: 1fr;
  }

  .floating-cart-button {
    right: 10px;
    left: 10px;
    width: auto;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .admin-topbar,
  .admin-shell > .flash,
  .no-print {
    display: none !important;
  }

  .admin-shell {
    width: 100%;
    padding: 0;
  }

  .qr-print-sheet {
    min-height: 100vh;
    padding: 22mm;
  }

  .qr-stand {
    width: 100%;
    max-width: 130mm;
    box-shadow: none;
  }
}


/* 2026 UI polish: Mongolian SaaS admin + improved mobile ordering */
:root {
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-soft: 0 18px 55px rgba(31, 36, 42, 0.10);
}

.button {
  border-radius: var(--radius-sm);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 36, 42, 0.09);
}

.login-page {
  place-items: stretch;
  background:
    radial-gradient(circle at 15% 20%, rgba(31,122,90,.18), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(242,183,5,.16), transparent 30%),
    linear-gradient(135deg, #f4fbf7 0%, #fbfaf7 50%, #f7f1e2 100%);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 430px);
  gap: 28px;
  width: min(100%, 1040px);
  margin: auto;
  padding: 28px;
  align-items: center;
}

.login-brand-panel {
  padding: 34px;
  border: 1px solid rgba(31,122,90,.12);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.52);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.login-brand-panel h1 {
  margin: 12px 0 12px;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: .95;
  letter-spacing: -0.06em;
}

.login-brand-panel p {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.login-benefits {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.login-benefits li {
  padding: 12px 14px;
  border: 1px solid rgba(31,122,90,.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.72);
  font-weight: 800;
}

.login-benefits li::before {
  content: '✓';
  margin-right: 9px;
  color: var(--green);
}

.login-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.login-card h2 {
  margin: 18px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.login-card label {
  margin-top: 14px;
  font-weight: 850;
}

.login-card input {
  min-height: 52px;
  border-radius: 14px;
  font-size: 1rem;
}

.login-card .button {
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  font-size: 1.05rem;
}

.login-help {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
}

.login-mark-large {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(31,122,90,.25);
}

.admin-topbar {
  box-shadow: 0 8px 22px rgba(31, 36, 42, 0.04);
}

.admin-brand span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 9px;
  background: var(--green);
  color: #fff;
}

.stat-card,
.action-card,
.admin-panel,
.login-card,
.empty-state {
  border-radius: var(--radius-md);
}

.stat-card strong {
  letter-spacing: -0.04em;
}

.admin-table th {
  letter-spacing: 0;
  text-transform: none;
}

.restaurant-hero {
  padding: 18px;
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.66);
  box-shadow: var(--shadow-soft);
}

.menu-card {
  border-radius: 22px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.menu-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 36, 42, 0.11);
}

.menu-card-image {
  background: linear-gradient(135deg, #f9edd0, #dff3ea);
}

.cart-drawer {
  border-radius: 24px 0 0 24px;
}

@media (max-width: 760px) {
  .login-shell {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .login-brand-panel {
    display: none;
  }

  .login-card {
    padding: 26px;
  }

  .cart-drawer {
    border-radius: 24px 24px 0 0;
    top: auto;
    bottom: 0;
    height: min(88vh, 760px);
    width: 100%;
    transform: translateY(104%);
  }

  .cart-drawer.is-open {
    transform: translateY(0);
  }
}

/* Modern public menu redesign v2 */
.public-menu-page {
  --public-bg: #f6f3ee;
  --public-panel: rgba(255, 255, 255, 0.88);
  --public-ink: var(--ink);
  --public-muted: var(--muted);
  --public-accent: var(--green);
  --public-accent-dark: var(--green-dark);
  --public-ring: rgba(31, 122, 90, 0.16);
  --public-card-border: rgba(31, 36, 42, 0.08);
  background:
    radial-gradient(circle at 18% 0%, rgba(31, 122, 90, 0.14), transparent 30rem),
    linear-gradient(180deg, #f5fbf7 0%, var(--public-bg) 26rem, #fffdf9 100%);
  color: var(--public-ink);
}

.theme-lounge {
  --public-bg: #080a0d;
  --public-panel: rgba(22, 25, 31, 0.82);
  --public-ink: #f8fafc;
  --public-muted: #b7c0cc;
  --public-accent: #16c49a;
  --public-accent-dark: #0f9b79;
  --public-gold: #d7ad62;
  --public-ring: rgba(22, 196, 154, 0.22);
  --public-card-border: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 15% 0%, rgba(22, 196, 154, 0.19), transparent 28rem),
    radial-gradient(circle at 82% 8%, rgba(215, 173, 98, 0.18), transparent 25rem),
    linear-gradient(180deg, #10131a 0%, #080a0d 42rem, #050607 100%);
  color: var(--public-ink);
}

.public-shell {
  width: min(100%, 1160px);
  padding: 20px 16px 110px;
}

.restaurant-hero-modern {
  position: relative;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  min-height: auto;
  margin: 10px 0 16px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--public-card-border);
  border-radius: 30px;
  background: var(--public-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(16px);
}

.restaurant-hero-modern::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--public-accent), transparent 68%);
  opacity: 0.13;
  pointer-events: none;
}

.theme-lounge .restaurant-hero-modern {
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
}

.restaurant-logo {
  width: 96px;
  height: 96px;
  border-radius: 26px;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--public-accent), var(--public-accent-dark));
}

.theme-lounge .restaurant-logo {
  background: linear-gradient(135deg, #0f141c, #1d2430);
  box-shadow: inset 0 0 0 1px rgba(215, 173, 98, 0.26), 0 22px 45px rgba(0, 0, 0, 0.5);
}

.restaurant-hero-content {
  min-width: 0;
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-pill,
.hero-mini-actions span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.status-pill {
  padding: 5px 9px;
  background: rgba(31, 122, 90, 0.12);
  color: var(--public-accent-dark);
  font-size: 0.74rem;
}

.theme-lounge .status-pill {
  background: rgba(22, 196, 154, 0.14);
  color: #7af0cf;
}

.restaurant-hero h1 {
  margin-top: 4px;
  color: var(--public-ink);
  font-size: clamp(2rem, 6vw, 4.2rem);
  letter-spacing: -0.055em;
}

.restaurant-meta {
  color: var(--public-muted);
}

.hero-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.hero-mini-actions span {
  padding: 7px 10px;
  border: 1px solid var(--public-card-border);
  background: rgba(255, 255, 255, 0.38);
  color: var(--public-muted);
  font-size: 0.78rem;
}

.theme-lounge .hero-mini-actions span {
  background: rgba(255, 255, 255, 0.05);
}

.public-order-note {
  margin-bottom: 12px;
  padding: 13px 16px;
  border: 1px solid var(--public-card-border);
  border-radius: 18px;
  background: var(--public-panel);
  color: var(--public-muted);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.05);
}

.public-order-note strong {
  color: var(--public-ink);
}

.menu-controls {
  top: 0;
  margin-inline: -16px;
  padding: 12px 16px 14px;
  background: rgba(246, 243, 238, 0.78);
  border-bottom: 1px solid rgba(31, 36, 42, 0.07);
}

.theme-lounge .menu-controls {
  background: rgba(8, 10, 13, 0.76);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.search-box span {
  color: var(--public-muted);
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap b {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--public-muted);
  font-size: 1.1rem;
}

.search-box input {
  min-height: 52px;
  padding-left: 42px;
  border-color: var(--public-card-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--public-ink);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.05);
}

.theme-lounge .search-box input {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.search-box input:focus {
  border-color: var(--public-accent);
  box-shadow: 0 0 0 4px var(--public-ring);
}

.category-tabs {
  scrollbar-width: none;
}

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

.category-tabs button {
  min-height: 42px;
  padding: 9px 15px;
  border-color: var(--public-card-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--public-ink);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.04);
}

.theme-lounge .category-tabs button {
  background: rgba(255, 255, 255, 0.06);
  color: #eef2f7;
}

.category-tabs button.is-active {
  border-color: var(--public-accent);
  background: linear-gradient(135deg, var(--public-accent), var(--public-accent-dark));
  color: #fff;
}

.menu-list {
  gap: 34px;
  padding-top: 18px;
}

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

.menu-section-heading h2,
.menu-section h2 {
  margin: 0;
  color: var(--public-ink);
  font-size: clamp(1.25rem, 3.5vw, 1.75rem);
  letter-spacing: -0.03em;
}

.menu-section-heading span {
  color: var(--public-muted);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

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

.menu-card {
  position: relative;
  display: flex;
  min-height: auto;
  flex-direction: column;
  overflow: hidden;
  border-color: var(--public-card-border);
  border-radius: 26px;
  background: var(--public-panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  backdrop-filter: blur(14px);
}

.menu-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 122, 90, 0.28);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.12);
}

.theme-lounge .menu-card {
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.theme-lounge .menu-card:hover {
  border-color: rgba(215, 173, 98, 0.35);
}

.menu-card-image {
  width: 100%;
  min-height: 220px;
  aspect-ratio: 16 / 11;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.65), transparent 35%),
    linear-gradient(135deg, rgba(31, 122, 90, 0.18), rgba(242, 183, 5, 0.14));
}

.theme-lounge .menu-card-image {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(135deg, #181d25, #0d1015);
}

.menu-card-image img {
  transition: transform 240ms ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.035);
}

.available-badge,
.sold-out-badge {
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.menu-card-placeholder {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  border-color: var(--public-card-border);
  background: rgba(255, 255, 255, 0.5);
  color: var(--public-accent-dark);
}

.menu-card-body {
  flex: 1;
  gap: 12px;
  padding: 16px;
}

.menu-card-title {
  gap: 10px;
}

.menu-card h3 {
  color: var(--public-ink);
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.menu-card strong {
  color: var(--public-accent-dark);
  font-size: 1.02rem;
}

.theme-lounge .menu-card strong {
  color: var(--public-gold);
}

.menu-card p {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  color: var(--public-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.menu-card-actions .button {
  min-height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--public-accent), var(--public-accent-dark));
  box-shadow: 0 12px 30px var(--public-ring);
}

.menu-card-actions .button span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.floating-cart-button {
  left: 50%;
  right: auto;
  bottom: 18px;
  grid-template-columns: auto auto auto;
  min-width: min(92vw, 420px);
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--public-accent), var(--public-accent-dark));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.floating-cart-button em {
  justify-self: end;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-style: normal;
  font-weight: 900;
}

.floating-cart-button strong {
  grid-row: auto;
  width: 32px;
  height: 32px;
}

.floating-cart-button span:last-of-type {
  font-weight: 900;
}

.cart-backdrop {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
}

.cart-drawer-modern {
  border-left: 1px solid var(--public-card-border);
  background: rgba(255, 255, 255, 0.96);
}

.theme-lounge .cart-drawer-modern {
  background: rgba(12, 15, 20, 0.97);
  color: #f8fafc;
}

.cart-sheet-handle {
  display: none;
  width: 44px;
  height: 5px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.55);
}

.cart-item {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  border-color: var(--public-card-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.theme-lounge .cart-item,
.theme-lounge .cart-icon-button,
.theme-lounge .cart-order-form input,
.theme-lounge .cart-order-form textarea {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cart-item-thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--public-accent), var(--public-accent-dark));
  color: #fff;
  font-weight: 900;
}

.cart-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-message-success {
  border: 1px solid rgba(31, 122, 90, 0.18);
}

.theme-lounge .cart-message-success {
  background: rgba(22, 196, 154, 0.14);
  color: #9af7dc;
}

@media (max-width: 760px) {
  .public-shell {
    padding-inline: 12px;
  }

  .restaurant-hero-modern {
    grid-template-columns: 74px minmax(0, 1fr);
    padding: 16px;
    border-radius: 24px;
  }

  .restaurant-logo {
    width: 74px;
    height: 74px;
    border-radius: 20px;
  }

  .hero-mini-actions {
    display: none;
  }

  .public-order-note {
    font-size: 0.92rem;
  }

  .menu-controls {
    margin-inline: -12px;
    padding-inline: 12px;
  }

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

  .menu-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    border-radius: 20px;
  }

  .menu-card-image {
    width: 112px;
    min-height: 100%;
    aspect-ratio: auto;
  }

  .available-badge {
    display: none;
  }

  .menu-card-body {
    padding: 13px;
  }

  .menu-card-title {
    grid-template-columns: 1fr;
    gap: 4px;
  }

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

  .menu-card-actions .button {
    min-height: 38px;
  }

  .cart-drawer-modern {
    top: auto;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 88vh;
    height: auto;
    border-left: 0;
    border-radius: 28px 28px 0 0;
    transform: translateY(104%);
  }

  .cart-drawer-modern.is-open {
    transform: translateY(0);
  }

  .cart-sheet-handle {
    display: block;
  }

  .cart-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .cart-qty {
    grid-column: 2;
    justify-content: flex-start;
  }

  .cart-item-thumb {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 420px) {
  .restaurant-hero h1 {
    font-size: 1.72rem;
  }

  .restaurant-meta {
    font-size: 0.9rem;
  }

  .menu-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .menu-card-image {
    width: 100px;
  }

  .floating-cart-button {
    min-width: calc(100vw - 24px);
  }
}

/* UX update: quieter add-to-cart, better mobile bottom navigation */
.floating-cart-button {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.has-cart-items .floating-cart-button {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  z-index: 25;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(15, 17, 21, 0.92);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, 10px);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease;
}

.cart-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.menu-card-actions .button.is-added {
  background: linear-gradient(135deg, #148c6c, #0b6f56);
}

.public-order-note {
  font-size: 0.98rem;
}

@media (max-width: 760px) {
  .public-shell {
    padding-bottom: 124px;
  }

  .restaurant-hero-modern {
    margin-top: 4px;
  }

  .public-order-note {
    margin-bottom: 8px;
    padding: 11px 13px;
    border-radius: 16px;
    font-size: 0.88rem;
  }

  .menu-controls {
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .search-box span {
    display: none;
  }

  .search-box input {
    min-height: 46px;
    border-radius: 15px;
  }

  .category-tabs {
    gap: 7px;
    margin-top: 9px;
  }

  .category-tabs button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .menu-list {
    gap: 24px;
    padding-top: 12px;
  }

  .menu-section-heading {
    margin-bottom: 10px;
  }

  .menu-section-heading h2 {
    font-size: 1.22rem;
  }

  .menu-section-heading span {
    font-size: 0.78rem;
  }

  .menu-card {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 142px;
  }

  .menu-card-image {
    width: 108px;
    min-height: 142px;
  }

  .menu-card-body {
    gap: 8px;
    padding: 12px;
  }

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

  .menu-card strong {
    font-size: 0.96rem;
  }

  .menu-card p {
    -webkit-line-clamp: 2;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .menu-card-actions .button {
    width: auto;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.84rem;
  }

  .menu-card-actions .button span {
    width: 19px;
    height: 19px;
    margin-right: 4px;
  }

  .floating-cart-button {
    bottom: 12px;
    min-width: calc(100vw - 24px);
    grid-template-columns: auto 32px 1fr auto;
    padding: 10px 12px;
    border-radius: 18px;
  }

  .floating-cart-button .cart-float-label {
    font-size: 0.94rem;
  }

  .floating-cart-button em {
    padding: 7px 10px;
    font-size: 0.9rem;
  }

  .cart-toast {
    bottom: 72px;
    font-size: 0.9rem;
  }
}

@media (max-width: 380px) {
  .menu-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .menu-card-image {
    width: 96px;
  }

  .menu-card-actions .button {
    font-size: 0.8rem;
    padding-inline: 8px;
  }
}


/* UX fix: cart no thumbnails, delivery/dine-in option, admin new order alert */
.cart-item,
.cart-drawer-modern .cart-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.cart-item-thumb {
  display: none !important;
}

.cart-item-main strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.cart-qty {
  flex-wrap: nowrap;
}

.order-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.order-type-switch legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
}

.order-type-switch label {
  position: relative;
  margin: 0;
}

.order-type-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.order-type-switch span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.order-type-switch input:checked + span {
  border-color: var(--green);
  background: rgba(31, 122, 90, 0.10);
  color: var(--green-dark);
}

.order-type-note {
  margin: -2px 0 2px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 135, 95, 0.14);
  border-radius: 12px;
  background: rgba(23, 135, 95, 0.06);
  color: #0f513c;
  font-size: 0.86rem;
  line-height: 1.45;
}

.theme-lounge .order-type-switch span {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.theme-lounge .order-type-switch input:checked + span {
  border-color: rgba(32, 201, 151, 0.55);
  background: rgba(32, 201, 151, 0.18);
  color: #9af7dc;
}

.theme-lounge .order-type-note {
  border-color: rgba(32, 201, 151, 0.18);
  background: rgba(32, 201, 151, 0.08);
  color: #b6f5df;
}

.admin-order-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 20px 50px rgba(0,0,0,0.24);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-order-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-sound-toggle {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 1002;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(23, 135, 95, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #0f513c;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  cursor: pointer;
}

.admin-sound-toggle:hover {
  border-color: rgba(23, 135, 95, 0.4);
  background: #f7fffa;
}

.admin-sound-toggle.is-ready {
  display: none;
}

@media (max-width: 760px) {
  .cart-drawer-modern {
    max-height: 92vh;
    padding-inline: 12px;
  }

  .cart-drawer-header h2 {
    font-size: 1.25rem;
  }

  .cart-items {
    gap: 8px;
    min-height: auto;
  }

  .cart-item,
  .cart-drawer-modern .cart-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .cart-qty {
    grid-column: auto;
    justify-content: flex-start;
  }

  .cart-qty button {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .cart-summary {
    margin: 10px 0;
    padding-top: 10px;
  }

  .cart-order-form {
    gap: 9px;
  }

  .cart-order-form input,
  .cart-order-form textarea {
    min-height: 42px;
    border-radius: 12px;
  }

  .order-type-switch span {
    min-height: 40px;
    border-radius: 12px;
    font-size: 0.9rem;
  }
}

/* Stability/UX pass: cache-busted assets, calmer admin alerts, safer mobile cart sheet */
.cart-drawer-modern {
  grid-template-rows: auto auto minmax(90px, auto) auto auto;
}

.cart-drawer-modern .cart-items {
  max-height: min(34vh, 300px);
  overflow-y: auto;
  padding-right: 2px;
}

.cart-drawer-modern .cart-summary {
  position: sticky;
  top: 0;
  z-index: 2;
  background: inherit;
}

.cart-order-form .button-outline[data-cart-clear] {
  border-color: rgba(220, 38, 38, 0.28);
  color: #b42318;
  background: rgba(220, 38, 38, 0.04);
}

.theme-lounge .cart-order-form .button-outline[data-cart-clear] {
  border-color: rgba(248, 113, 113, 0.28);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.08);
}

.admin-order-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 1001;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  width: min(720px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(31, 122, 90, 0.18);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.admin-order-banner.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.admin-order-banner strong,
.admin-order-banner span {
  display: block;
}

.admin-order-banner strong {
  color: var(--ink);
  font-size: 1rem;
}

.admin-order-banner span {
  color: var(--muted);
  font-weight: 800;
}

.admin-order-banner .cart-icon-button {
  width: 36px;
  height: 36px;
}

@media (max-width: 760px) {
  .cart-drawer-modern {
    display: flex;
    flex-direction: column;
    max-height: 92dvh;
    overflow: hidden;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .cart-drawer-modern .cart-items {
    max-height: 26dvh;
    overflow-y: auto;
    margin-inline: -2px;
    padding-inline: 2px;
  }

  .cart-drawer-modern .cart-order-form {
    overflow-y: auto;
    max-height: 42dvh;
    padding-bottom: 4px;
  }

  .cart-drawer-modern .cart-summary {
    flex-shrink: 0;
    margin-block: 8px;
  }

  .cart-qty button {
    width: 36px;
    height: 36px;
  }

  .admin-order-banner {
    grid-template-columns: 1fr auto;
    bottom: 14px;
  }

  .admin-order-banner a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-sound-toggle {
    right: 14px;
    bottom: 96px;
    max-width: calc(100vw - 28px);
  }
}

.screen-reader-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Admin SaaS dashboard redesign: sidebar, cards, quick actions */
.admin-saas-page,
.admin-page {
  background: #f8fafc;
  color: #0f172a;
}

.admin-app {
  display: grid;
  min-height: 100vh;
  background: #f8fafc;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  width: 268px;
  flex-direction: column;
  border-right: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 10px 0 34px rgba(15, 23, 42, 0.04);
}

.admin-sidebar-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 20px 18px 18px;
  color: #0f172a;
  text-decoration: none;
}

.admin-brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #17875f, #4ade80);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 950;
  letter-spacing: -0.06em;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.admin-sidebar-brand strong,
.admin-sidebar-brand small {
  display: block;
}

.admin-sidebar-brand strong {
  font-weight: 950;
  letter-spacing: -0.04em;
}

.admin-sidebar-brand small,
.admin-user-card small,
.admin-topbar-title span,
.stat-card-saas small,
.action-card-saas small,
.order-meta {
  color: #64748b;
}

.admin-side-nav {
  display: grid;
  gap: 6px;
  padding: 8px 12px;
}

.admin-side-nav a {
  display: flex;
  min-height: 44px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  color: #334155;
  font-weight: 850;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.admin-side-nav a:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: translateX(2px);
}

.admin-side-nav a.is-active {
  background: #eef8f3;
  color: #17875f;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.14);
}

.nav-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: #f1f5f9;
  color: inherit;
  font-weight: 950;
}

.admin-side-nav a.is-active .nav-icon {
  background: #dcfce7;
}

.admin-sidebar-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border-top: 1px solid #e2e8f0;
}

.admin-user-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.admin-user-card strong,
.admin-user-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-avatar,
.admin-avatar-button {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef8f3;
  color: #17875f;
  font-weight: 950;
}

.admin-user-avatar {
  width: 42px;
  height: 42px;
}

.admin-role-chip {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 850;
}

.admin-logout-link {
  display: flex;
  justify-content: center;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 850;
  text-decoration: none;
}

.admin-logout-link:hover {
  background: #fef2f2;
  color: #dc2626;
}

.admin-main {
  min-width: 0;
  margin-left: 268px;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  min-height: 72px;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: none;
}

.admin-topbar-title {
  display: grid;
  gap: 2px;
  margin-right: auto;
}

.admin-topbar-title strong {
  letter-spacing: -0.025em;
}

.admin-topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-avatar-button {
  width: 40px;
  height: 40px;
  text-decoration: none;
}

.admin-nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  border-radius: 14px;
}

.admin-shell {
  width: min(100%, 1520px);
  padding: 26px 28px 56px;
}

.admin-dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0%, rgba(34, 197, 94, 0.14), transparent 28rem),
    linear-gradient(135deg, #ffffff, #f8fff9);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
}

.admin-dashboard-hero h1 {
  margin: 4px 0 6px;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  letter-spacing: -0.055em;
}

.admin-dashboard-hero p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
}

.hero-action-row,
.section-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.stat-grid-saas {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card-saas {
  position: relative;
  min-height: 154px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.stat-card-saas::after {
  content: '';
  position: absolute;
  right: -46px;
  top: -46px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: var(--tone-bg, #dcfce7);
  opacity: .7;
}

.stat-card-saas .stat-icon {
  display: grid;
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  margin-left: auto;
  place-items: center;
  border-radius: 14px;
  background: var(--tone-bg, #dcfce7);
  color: var(--tone-fg, #17875f);
  font-weight: 950;
}

.stat-card-saas > span:not(.stat-icon) {
  margin-top: 2px;
}

.stat-card-saas strong {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.stat-card-saas small {
  display: block;
  margin-top: 8px;
  font-weight: 750;
}

.tone-green { --tone-bg: #dcfce7; --tone-fg: #17875f; }
.tone-blue { --tone-bg: #dbeafe; --tone-fg: #2563eb; }
.tone-orange { --tone-bg: #ffedd5; --tone-fg: #ea580c; }
.tone-purple { --tone-bg: #f3e8ff; --tone-fg: #7c3aed; }

.admin-panel {
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.quick-actions-panel {
  margin-bottom: 18px;
}

.action-grid-saas {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.action-card-saas {
  display: grid;
  gap: 4px;
  min-height: 112px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  color: #0f172a;
  box-shadow: none;
}

.action-card-saas:hover {
  background: #eef8f3;
  color: #17875f;
}

.action-card-saas span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: #e0f2fe;
  color: #0284c7;
  font-weight: 950;
}

.action-card-saas strong,
.action-card-saas small {
  display: block;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, .75fr);
  gap: 18px;
  align-items: start;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.mini-stat-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
}

.mini-stat-card strong {
  font-size: 1.8rem;
  line-height: 1;
}

.chart-placeholder-modern {
  display: grid;
  min-height: 190px;
  place-items: center;
  padding: 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.04)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(15, 23, 42, 0.035) 39px 40px);
  color: #64748b;
  text-align: center;
}

.chart-placeholder-modern span {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 16px;
  background: #dcfce7;
  color: #17875f;
  font-weight: 950;
}

.recent-order-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.recent-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  color: #0f172a;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.recent-order-card:hover {
  border-color: rgba(22, 163, 74, 0.3);
  background: #f8fff9;
  transform: translateY(-1px);
}

.order-number {
  font-weight: 950;
}

.order-meta {
  overflow: hidden;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-order-card strong {
  justify-self: end;
}

.recent-order-card .status-pill {
  justify-self: end;
}

.admin-table {
  border-collapse: separate;
  border-spacing: 0;
}

.admin-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: .82rem;
}

.admin-table th:first-child {
  border-radius: 12px 0 0 12px;
}

.admin-table th:last-child {
  border-radius: 0 12px 12px 0;
}

.admin-table td {
  border-bottom-color: #edf2f7;
}

.button-small {
  border-radius: 11px;
}

@media (max-width: 1180px) {
  .stat-grid-saas,
  .action-grid-saas,
  .mini-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .admin-sidebar {
    transform: translateX(-104%);
    transition: transform 180ms ease;
  }

  .admin-app.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-mobile-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: none;
    background: rgba(15, 23, 42, 0.38);
  }

  .admin-app.sidebar-open .admin-mobile-backdrop {
    display: block;
  }

  .admin-main {
    margin-left: 0;
  }

  .admin-nav-toggle {
    display: grid;
    place-items: center;
  }

  .admin-shell {
    padding: 18px 14px 42px;
  }

  .admin-dashboard-hero,
  .admin-topbar {
    padding-inline: 16px;
  }

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

  .hero-action-row {
    justify-content: stretch;
  }

  .hero-action-row .button {
    flex: 1 1 160px;
  }
}

@media (max-width: 560px) {
  .admin-topbar-title span {
    display: none;
  }

  .admin-topbar-actions .button {
    display: none;
  }

  .stat-grid-saas,
  .action-grid-saas,
  .mini-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-hero h1 {
    font-size: 1.75rem;
  }

  .recent-order-card {
    grid-template-columns: 1fr;
  }

  .recent-order-card strong,
  .recent-order-card .status-pill {
    justify-self: start;
  }
}

/* --------------------------------------------------------------------------
   DP Design Refresh v4 — SaaS admin + premium public menu polish
   Scope: visual/UX CSS only. Backend/database untouched.
-------------------------------------------------------------------------- */
:root {
  --dp-bg: #f6f8fb;
  --dp-surface: #ffffff;
  --dp-ink: #0f172a;
  --dp-muted: #64748b;
  --dp-line: #e5eaf0;
  --dp-primary: #17875f;
  --dp-primary-2: #16a34a;
  --dp-primary-soft: #eaf8f1;
  --dp-warning: #d97706;
  --dp-danger: #dc2626;
  --dp-radius-lg: 24px;
  --dp-radius-md: 18px;
  --dp-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --dp-shadow-card: 0 10px 24px rgba(15, 23, 42, 0.06);
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.button {
  border-radius: 13px;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--dp-primary);
  background: linear-gradient(135deg, var(--dp-primary), var(--dp-primary-2));
  box-shadow: 0 10px 20px rgba(23, 135, 95, 0.18);
}

.button-outline {
  border-color: rgba(23, 135, 95, 0.24);
  background: #fff;
  color: var(--dp-primary);
}

.flash {
  border-radius: 16px;
}

/* Login refresh */
.login-page {
  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.16), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.10), transparent 28rem),
    #f7faf8;
}

.login-shell {
  width: min(1120px, calc(100% - 32px));
  gap: 22px;
}

.login-brand-panel,
.login-card {
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 30px;
  box-shadow: var(--dp-shadow-soft);
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(140deg, rgba(15, 23, 42, 0.94), rgba(13, 91, 68, 0.92)),
    #0f172a;
  color: #fff;
}

.login-brand-panel::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(214, 168, 90, 0.18);
}

.login-benefits li {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.login-card input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.cart-order-form input,
.cart-order-form textarea {
  border-radius: 14px;
}

.login-card input:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.cart-order-form input:focus,
.cart-order-form textarea:focus {
  border-color: var(--dp-primary);
  box-shadow: 0 0 0 4px rgba(23, 135, 95, 0.12);
  outline: none;
}

/* Public menu refresh */
.public-menu-page {
  background:
    radial-gradient(circle at top left, rgba(23, 135, 95, 0.12), transparent 26rem),
    linear-gradient(180deg, #f8faf7 0%, #fbfaf7 42%, #f6f8fb 100%);
}

.public-shell {
  width: min(100%, 1160px);
  padding-inline: 16px;
}

.restaurant-hero-modern {
  position: relative;
  min-height: 150px;
  margin: 10px 0 12px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
  box-shadow: var(--dp-shadow-card);
}

.restaurant-hero-modern .restaurant-logo {
  width: 86px;
  height: 86px;
  border-radius: 24px;
}

.restaurant-hero-modern h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.hero-kicker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
}

.public-order-note {
  border: 1px solid rgba(23, 135, 95, 0.14);
  border-radius: 20px;
  background: rgba(234, 248, 241, 0.85);
  color: #14523e;
  box-shadow: 0 12px 28px rgba(23, 135, 95, 0.08);
}

.menu-controls {
  top: 0;
  margin-inline: -4px;
  padding: 12px 4px 14px;
  border-radius: 0 0 22px 22px;
}

.search-input-wrap {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.search-box input {
  min-height: 50px;
  border-radius: 18px;
}

.category-tabs {
  scrollbar-width: none;
}

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

.category-tabs button {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.035);
}

.category-tabs button.is-active {
  background: var(--dp-primary);
  box-shadow: 0 10px 20px rgba(23, 135, 95, 0.18);
}

.menu-section-heading {
  margin-top: 22px;
  margin-bottom: 14px;
}

.menu-section-heading h2 {
  letter-spacing: -0.035em;
}

.menu-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--dp-shadow-card);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.menu-card:hover {
  border-color: rgba(23, 135, 95, 0.25);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}

.menu-card-image {
  background:
    linear-gradient(135deg, rgba(23, 135, 95, 0.12), rgba(214, 168, 90, 0.12)),
    #eef4ef;
}

.menu-card-image img {
  transition: transform 240ms ease;
}

.menu-card:hover .menu-card-image img {
  transform: scale(1.035);
}

.menu-card-title h3 {
  letter-spacing: -0.025em;
}

.menu-card-title strong {
  color: var(--dp-primary);
  font-size: 1.05rem;
}

.menu-card-actions .button {
  width: 100%;
  min-height: 42px;
  border-radius: 999px;
}

.floating-cart-button {
  right: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 24px));
  transform: translateX(50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(16px);
}

.floating-cart-button em {
  border-radius: 999px;
  background: var(--dp-primary-2);
  color: #fff;
}

.cart-drawer-modern {
  border-left: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.20);
}

.cart-items {
  max-height: min(38vh, 340px);
  overflow: auto;
  padding-right: 3px;
}

.cart-order-form {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-top: 14px;
}

.order-type-switch {
  border-radius: 18px;
  background: #f8fafc;
}

.order-type-switch label span {
  border-radius: 14px;
}

/* E&A Lounge premium dark theme */
.theme-lounge.public-menu-page {
  --lounge-bg: #06080c;
  --lounge-card: #101722;
  --lounge-card-2: #121c29;
  --lounge-text: #f8fafc;
  --lounge-muted: #9aa7b8;
  --lounge-line: rgba(255, 255, 255, 0.10);
  --lounge-gold: #d6a85a;
  --lounge-green: #22c55e;
  background:
    radial-gradient(circle at 10% 4%, rgba(214, 168, 90, 0.18), transparent 26rem),
    radial-gradient(circle at 86% 16%, rgba(34, 197, 94, 0.10), transparent 24rem),
    linear-gradient(180deg, #070a0f 0%, #0b1018 42%, #06080c 100%);
  color: var(--lounge-text);
}

.theme-lounge .restaurant-hero-modern {
  border-color: var(--lounge-line);
  background:
    linear-gradient(135deg, rgba(16, 23, 34, 0.94), rgba(20, 28, 40, 0.76)),
    radial-gradient(circle at top right, rgba(214, 168, 90, 0.16), transparent 18rem);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.theme-lounge .restaurant-logo {
  border-color: rgba(214, 168, 90, 0.36);
  background: #0f172a;
}

.theme-lounge .eyebrow,
.theme-lounge .menu-card-title strong {
  color: var(--lounge-gold);
}

.theme-lounge .restaurant-meta,
.theme-lounge .menu-card-body p,
.theme-lounge .menu-section-heading span,
.theme-lounge .search-box span {
  color: var(--lounge-muted);
}

.theme-lounge .public-order-note {
  border-color: rgba(214, 168, 90, 0.18);
  background: rgba(214, 168, 90, 0.08);
  color: #f8e6bc;
}

.theme-lounge .menu-controls {
  background: rgba(6, 8, 12, 0.82);
}

.theme-lounge .search-input-wrap,
.theme-lounge .search-box input,
.theme-lounge .category-tabs button,
.theme-lounge .menu-card,
.theme-lounge .cart-drawer-modern {
  border-color: var(--lounge-line);
  background: rgba(16, 23, 34, 0.88);
  color: var(--lounge-text);
}

.theme-lounge .category-tabs button.is-active,
.theme-lounge .button-primary {
  border-color: var(--lounge-gold);
  background: linear-gradient(135deg, #d6a85a, #a8792d);
  color: #111827;
  box-shadow: 0 12px 24px rgba(214, 168, 90, 0.18);
}

.theme-lounge .menu-card {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.theme-lounge .menu-card:hover {
  border-color: rgba(214, 168, 90, 0.30);
}

.theme-lounge .menu-card-image {
  background:
    linear-gradient(135deg, rgba(214, 168, 90, 0.14), rgba(255, 255, 255, 0.04)),
    #0e141e;
}

.theme-lounge .available-badge {
  background: rgba(34, 197, 94, 0.16);
  color: #86efac;
}

.theme-lounge .cart-summary,
.theme-lounge .order-type-switch,
.theme-lounge .cart-order-form input,
.theme-lounge .cart-order-form textarea {
  border-color: var(--lounge-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--lounge-text);
}

/* Admin SaaS refresh */
.admin-page {
  background:
    radial-gradient(circle at top left, rgba(22, 163, 74, 0.09), transparent 28rem),
    var(--dp-bg);
}

.admin-sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-brand {
  border-radius: 20px;
}

.admin-brand-mark,
.admin-user-avatar,
.admin-avatar-button {
  background: linear-gradient(135deg, var(--dp-primary), var(--dp-primary-2));
}

.admin-side-nav a {
  min-height: 44px;
  border-radius: 14px;
  transition: background 140ms ease, transform 140ms ease;
}

.admin-side-nav a:hover {
  transform: translateX(2px);
}

.admin-side-nav a.is-active {
  background: rgba(34, 197, 94, 0.18);
  color: #f8fafc;
}

.admin-topbar {
  border-bottom: 1px solid rgba(226, 232, 240, 0.84);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.admin-shell {
  background: transparent;
}

.admin-dashboard-hero,
.admin-panel,
.stat-card-saas,
.action-card-saas,
.mini-stat-card,
.recent-order-card,
.admin-card,
.form-panel {
  border-color: rgba(226, 232, 240, 0.92);
  border-radius: var(--dp-radius-lg);
  box-shadow: var(--dp-shadow-card);
}

.admin-dashboard-hero {
  background:
    linear-gradient(135deg, #ffffff, #f8fff9),
    radial-gradient(circle at top right, rgba(22, 163, 74, 0.12), transparent 18rem);
}

.stat-card-saas {
  min-height: 150px;
}

.stat-card-saas .stat-icon,
.action-card-saas span:first-child,
.chart-placeholder-modern span {
  border-radius: 16px;
}

.action-card-saas:hover,
.recent-order-card:hover {
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.admin-table {
  overflow: hidden;
  border-radius: 18px;
}

.admin-table th {
  background: #f8fafc;
  letter-spacing: -0.01em;
}

.status-pill {
  border-radius: 999px;
  font-weight: 850;
}

/* Better mobile ergonomics */
@media (max-width: 760px) {
  .public-shell {
    padding-inline: 12px;
    padding-bottom: 112px;
  }

  .restaurant-hero-modern {
    grid-template-columns: 66px 1fr;
    gap: 12px;
    min-height: 116px;
    padding: 14px;
    border-radius: 22px;
  }

  .restaurant-hero-modern .restaurant-logo {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .restaurant-hero-modern h1 {
    font-size: 1.7rem;
  }

  .hero-kicker-row .status-pill {
    display: none;
  }

  .public-order-note {
    font-size: 0.92rem;
  }

  .menu-card {
    border-radius: 22px;
  }

  .menu-card-image {
    min-height: 168px;
  }

  .menu-card-body {
    padding: 14px;
  }

  .menu-card-title {
    gap: 8px;
  }

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

  .floating-cart-button {
    min-height: 58px;
    padding: 8px 10px 8px 14px;
  }

  .cart-drawer-modern {
    border-radius: 26px 26px 0 0;
  }

  .cart-items {
    max-height: 30vh;
  }

  .cart-order-form .button {
    min-height: 46px;
  }

  .admin-dashboard-hero,
  .admin-panel,
  .stat-card-saas,
  .action-card-saas {
    border-radius: 22px;
  }
}

@media (max-width: 420px) {
  .restaurant-hero-modern {
    grid-template-columns: 1fr;
  }

  .restaurant-hero-modern .restaurant-logo {
    width: 58px;
    height: 58px;
  }

  .menu-section-heading {
    align-items: flex-start;
  }

  .menu-section-heading h2 {
    font-size: 1.25rem;
  }
}

/* Admin login polish: Mongolian SaaS rental system */
.login-page {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(23, 135, 95, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 10%, rgba(214, 168, 90, 0.14), transparent 24rem),
    linear-gradient(135deg, #f8fbf8 0%, #f4f7fb 52%, #fbf8ef 100%);
  font-family: var(--font-main);
}

.login-shell {
  width: min(1080px, 100%);
  min-height: calc(100vh - 56px);
  align-items: center;
}

.login-brand-panel {
  min-height: 580px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(16, 92, 70, 0.93)),
    #0f172a;
  color: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.20);
}

.login-brand-panel .eyebrow {
  color: #a7f3d0;
  letter-spacing: 0;
}

.login-brand-panel h1 {
  max-width: 620px;
  margin: 14px 0 14px;
  color: #ffffff;
  font-size: clamp(2.2rem, 5.4vw, 4.7rem);
  line-height: 1;
  letter-spacing: 0;
}

.login-brand-panel p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.login-benefits {
  margin-top: 28px;
}

.login-benefits li {
  padding: 13px 15px;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.login-benefits li::before {
  color: #86efac;
}

.login-card {
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(226, 232, 240, 0.98);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
}

.login-card .login-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #17875f, #16a34a);
  box-shadow: 0 14px 26px rgba(23, 135, 95, 0.24);
}

.login-card h2 {
  margin: 20px 0 8px;
  color: #0f172a;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.login-card p {
  margin: 0 0 20px;
  color: #64748b;
}

.login-card label {
  margin-top: 15px;
  color: #0f172a;
  font-weight: 850;
}

.login-card input {
  min-height: 56px;
  padding: 13px 15px;
  border: 1px solid #d7dee8;
  border-radius: 16px;
  background: #ffffff;
  font-size: 1rem;
}

.login-card input:focus {
  border-color: #17875f;
  box-shadow: 0 0 0 4px rgba(23, 135, 95, 0.13);
  outline: none;
}

.login-card .button {
  min-height: 56px;
  margin-top: 20px;
  border-radius: 16px;
  font-size: 1.05rem;
  font-weight: 900;
}

.login-card .flash {
  border-radius: 16px;
  font-weight: 800;
}

.login-help {
  margin-top: 16px;
  color: #64748b;
}

@media (max-width: 780px) {
  .login-page {
    padding: 16px;
  }

  .login-shell {
    min-height: calc(100vh - 32px);
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    display: block;
    min-height: auto;
    padding: 24px;
  }

  .login-brand-panel h1 {
    font-size: 2rem;
  }

  .login-brand-panel .login-benefits {
    display: none;
  }

  .login-card {
    padding: 24px;
  }
}

/* Admin menu builder: category-first food menu layout */
.menu-builder-header {
  align-items: flex-end;
  gap: 18px;
}

.menu-builder-header h1 {
  margin-bottom: 8px;
}

.menu-builder-header p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
  font-size: 0.98rem;
}

.menu-builder-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.menu-builder-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.menu-builder-summary > div {
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
    #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.menu-builder-summary span {
  display: block;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 800;
}

.menu-builder-summary strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 1.9rem;
  line-height: 1;
}

.menu-builder {
  display: grid;
  gap: 22px;
}

.menu-builder-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.menu-builder-empty h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.menu-builder-empty p:not(.eyebrow) {
  margin: 0;
  color: #64748b;
}

.menu-builder-section {
  padding: 0;
}

.menu-builder-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 0 2px;
}

.menu-builder-section-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1.2;
}

.menu-builder-section-head span {
  display: inline-block;
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 800;
}

.menu-builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.menu-admin-card,
.menu-admin-add-card {
  min-height: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.menu-admin-card {
  display: flex;
  flex-direction: column;
}

.menu-admin-card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 1.35 / 1;
  background:
    radial-gradient(circle at 24% 20%, rgba(248, 113, 113, 0.18), transparent 12rem),
    linear-gradient(135deg, #f8fafc, #eef2f7);
  color: #94a3b8;
  font-size: 0.86rem;
  font-weight: 900;
}

.menu-admin-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menu-admin-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.menu-admin-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.menu-admin-card-title h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
}

.menu-admin-card-body p {
  display: -webkit-box;
  min-height: 40px;
  margin: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.muted-text {
  color: #94a3b8 !important;
}

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

.menu-admin-card-meta strong {
  color: #ef4444;
  font-size: 1rem;
}

.menu-admin-card-meta span {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 800;
}

.menu-admin-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.menu-admin-card-actions form,
.menu-admin-card-actions .button {
  width: 100%;
}

.menu-admin-card-actions .button {
  justify-content: center;
}

.menu-admin-add-card {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 22px;
  color: #0f172a;
  text-align: center;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(240, 253, 244, 0.92), rgba(255, 255, 255, 0.98)),
    #ffffff;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.menu-admin-add-card span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 14px 24px rgba(239, 68, 68, 0.24);
}

.menu-admin-add-card strong {
  font-size: 0.98rem;
}

.menu-admin-add-card:hover {
  border-color: rgba(239, 68, 68, 0.34);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .menu-builder-header {
    align-items: stretch;
  }

  .menu-builder-actions {
    justify-content: stretch;
  }

  .menu-builder-actions .button {
    flex: 1;
    justify-content: center;
  }

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

  .menu-builder-section-head,
  .menu-builder-empty {
    align-items: stretch;
    flex-direction: column;
  }

  .menu-builder-section-head .button,
  .menu-builder-empty .button {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .menu-builder-grid {
    grid-template-columns: 1fr;
  }

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

/* Site typography reset: softer, smaller, closer to the reference mockups */
body {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  font-weight: 400;
}

h1,
h2,
h3,
h4,
th,
label,
b,
small,
.button,
.eyebrow,
.status-pill,
.admin-sidebar-brand strong,
.admin-sidebar-nav a,
.admin-page-header h1,
.admin-dashboard-hero h1,
.login-brand-panel h1,
.login-card h2,
.restaurant-hero-modern h1,
.menu-section-heading h2,
.menu-card h3,
.menu-card strong,
.menu-admin-card-title h3,
.menu-admin-card-meta strong,
.floating-cart-button,
.cart-summary strong {
  letter-spacing: 0;
}

th,
label,
b,
small,
.admin-user-card,
.admin-topbar-title,
.admin-table,
.admin-form,
.cart-order-form,
.restaurant-meta {
  font-weight: 400;
}

h1,
.admin-page-header h1,
.admin-dashboard-hero h1,
.login-brand-panel h1,
.login-card h2,
.restaurant-hero-modern h1 {
  font-weight: 650;
}

h2,
h3,
.menu-section-heading h2,
.menu-card h3,
.menu-admin-card-title h3 {
  font-weight: 600;
}

.button,
.eyebrow,
.status-pill,
.available-badge,
.sold-out-badge,
.category-tabs button,
.admin-sidebar-nav a,
.menu-builder-summary span,
.menu-builder-section-head span,
.login-card label {
  font-weight: 500;
}

strong,
.menu-card strong,
.menu-admin-card-meta strong,
.cart-summary strong,
.floating-cart-button strong,
.menu-builder-summary strong,
.stat-card-saas strong,
.action-card-saas strong {
  font-weight: 650;
}

.public-shell {
  width: min(100%, 1040px);
  padding-top: 18px;
}

.restaurant-hero-modern {
  min-height: 118px;
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.restaurant-hero-modern .restaurant-logo {
  width: 68px;
  height: 68px;
  border-radius: 16px;
}

.restaurant-hero-modern h1 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.restaurant-meta,
.public-order-note,
.menu-card p,
.cart-order-form label,
.login-card p,
.admin-page-header p,
.admin-dashboard-hero p:not(.eyebrow) {
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
}

.public-order-note {
  padding: 12px 14px;
  border-radius: 16px;
}

.public-order-note strong {
  font-weight: 550;
}

.menu-section-heading {
  margin-bottom: 12px;
}

.menu-section-heading h2 {
  font-size: 1.18rem;
}

.menu-section-heading span {
  font-size: 0.82rem;
  font-weight: 400;
}

.menu-grid {
  gap: 14px;
}

.menu-card {
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.menu-card-image {
  min-height: 176px;
}

.menu-card-body {
  gap: 9px;
  padding: 13px;
}

.menu-card h3 {
  font-size: 0.98rem;
  line-height: 1.25;
}

.menu-card strong {
  font-size: 0.95rem;
}

.menu-card p {
  min-height: auto;
  font-size: 0.84rem;
}

.menu-card-actions .button {
  min-height: 38px;
  border-radius: 12px;
  font-size: 0.86rem;
}

.category-tabs button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
}

.search-box-modern input,
.login-card input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  font-size: 0.95rem;
  font-weight: 400;
}

.floating-cart-button {
  min-height: 52px;
  border-radius: 16px;
  font-size: 0.9rem;
}

.cart-drawer-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

.admin-shell {
  font-size: 0.94rem;
}

.admin-sidebar-brand strong {
  font-size: 1rem;
  font-weight: 600;
}

.admin-sidebar-nav a {
  font-size: 0.92rem;
}

.admin-dashboard-hero h1,
.admin-page-header h1 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.stat-card-saas strong,
.menu-builder-summary strong {
  font-size: 1.55rem;
}

.login-brand-panel {
  min-height: 500px;
}

.login-brand-panel h1 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
}

.login-card h2 {
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
}

.login-card label {
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .public-shell {
    padding-inline: 12px;
    padding-top: 12px;
  }

  .restaurant-hero-modern {
    grid-template-columns: 56px 1fr;
    min-height: 96px;
    padding: 13px;
    border-radius: 18px;
  }

  .restaurant-hero-modern .restaurant-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .restaurant-hero-modern h1 {
    font-size: 1.28rem;
  }

  .menu-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 126px;
    border-radius: 16px;
  }

  .menu-card-image {
    width: 96px;
    min-height: 126px;
  }

  .menu-card-body {
    gap: 7px;
    padding: 11px;
  }

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

  .menu-card strong {
    font-size: 0.9rem;
  }

  .menu-card p {
    font-size: 0.8rem;
    -webkit-line-clamp: 2;
  }

  .menu-card-actions .button {
    min-height: 34px;
    padding-inline: 10px;
    font-size: 0.8rem;
  }

  .admin-dashboard-hero h1,
  .admin-page-header h1 {
    font-size: 1.35rem;
  }

  .login-brand-panel h1,
  .login-card h2 {
    font-size: 1.45rem;
  }
}

/* Mobile cart/order sheet fix: one clean scroll area, no horizontal overflow */
@media (max-width: 760px) {
  .cart-drawer,
  .cart-drawer-modern {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(86dvh, 720px);
    flex-direction: column;
    padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 22px 22px 0 0;
    transform: translateY(104%);
  }

  .cart-drawer.is-open,
  .cart-drawer-modern.is-open {
    transform: translateY(0);
  }

  .cart-drawer-modern *,
  .cart-drawer-modern *::before,
  .cart-drawer-modern *::after {
    min-width: 0;
  }

  .cart-sheet-handle {
    width: 38px;
    height: 4px;
    margin-bottom: 8px;
    flex: 0 0 auto;
  }

  .cart-drawer-header {
    position: sticky;
    top: 0;
    z-index: 3;
    align-items: center;
    margin: -2px -2px 8px;
    padding: 2px 2px 8px;
    background: inherit;
  }

  .cart-drawer-header .eyebrow {
    margin-bottom: 2px;
    font-size: 0.72rem;
  }

  .cart-drawer-header h2 {
    font-size: 1.08rem;
    line-height: 1.2;
  }

  .cart-icon-button {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 11px;
    font-size: 1.25rem;
  }

  .cart-message {
    margin-bottom: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 0.84rem;
  }

  .cart-drawer-modern .cart-items,
  .cart-items {
    max-height: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    gap: 8px;
  }

  .cart-empty {
    padding: 13px;
    border-radius: 13px;
    font-size: 0.86rem;
  }

  .cart-item,
  .cart-drawer-modern .cart-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .cart-item-main strong {
    font-size: 0.9rem;
    line-height: 1.25;
    word-break: break-word;
  }

  .cart-item-main span {
    margin-top: 2px;
    font-size: 0.84rem;
    font-weight: 600;
  }

  .cart-qty {
    display: grid;
    grid-template-columns: 32px auto 32px 32px;
    align-items: center;
    justify-content: start;
    gap: 7px;
  }

  .cart-qty span {
    min-width: 18px;
    text-align: center;
    font-size: 0.9rem;
  }

  .cart-qty button,
  .cart-drawer-modern .cart-qty button {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
  }

  .cart-drawer-modern .cart-summary,
  .cart-summary {
    position: static;
    z-index: auto;
    margin: 8px 0;
    padding-top: 9px;
    flex: 0 0 auto;
    background: transparent;
    font-size: 0.98rem;
  }

  .cart-drawer-modern .cart-order-form,
  .cart-order-form {
    max-height: none;
    padding-top: 10px;
    padding-bottom: 0;
    overflow: visible;
    gap: 8px;
  }

  .cart-order-form label {
    gap: 5px;
    font-size: 0.82rem;
  }

  .cart-order-form .form-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .cart-order-form input,
  .cart-order-form textarea {
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 11px;
    font-size: 0.9rem;
  }

  .cart-order-form textarea {
    min-height: 72px;
    max-height: 120px;
    resize: vertical;
  }

  .order-type-switch {
    gap: 6px;
    border-radius: 14px;
  }

  .order-type-switch legend {
    margin-bottom: 1px;
    font-size: 0.78rem;
    font-weight: 500;
  }

  .order-type-switch span {
    min-height: 36px;
    border-radius: 11px;
    font-size: 0.84rem;
    font-weight: 600;
  }

  .cart-order-form .button {
    min-height: 40px;
    border-radius: 12px;
    font-size: 0.86rem;
  }

  .theme-lounge .cart-drawer-modern {
    background: rgba(13, 18, 27, 0.98);
    box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.42);
  }

  .theme-lounge .cart-item {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
  }

  .theme-lounge .cart-summary {
    background: transparent;
  }

  .theme-lounge .order-type-switch {
    background: rgba(255, 255, 255, 0.045);
  }
}

/* Mobile cart layout correction: prevent checkout form overlapping cart items */
@media (max-width: 760px) {
  .cart-drawer,
  .cart-drawer-modern {
    display: flex !important;
    flex-direction: column !important;
    height: min(92vh, 720px);
    height: min(92dvh, 720px);
    max-height: min(92vh, 720px);
    max-height: min(92dvh, 720px);
    overflow: hidden !important;
  }

  .cart-sheet-handle,
  .cart-drawer-header,
  .cart-message,
  .cart-empty,
  .cart-summary,
  .cart-order-form {
    flex: 0 0 auto;
  }

  .cart-drawer-header {
    margin-bottom: 6px;
  }

  .cart-drawer-modern .cart-items,
  .cart-items {
    flex: 1 1 112px;
    min-height: 92px;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    padding: 0 2px 2px 0;
  }

  .cart-item,
  .cart-drawer-modern .cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 12px;
  }

  .cart-item-main {
    min-width: 0;
  }

  .cart-item-main strong {
    overflow: hidden;
    font-size: 0.86rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cart-item-main span {
    font-size: 0.8rem;
  }

  .cart-qty {
    display: grid;
    grid-template-columns: 30px 18px 30px 30px;
    gap: 5px;
    justify-content: end;
  }

  .cart-qty button,
  .cart-drawer-modern .cart-qty button {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .cart-drawer-modern .cart-summary,
  .cart-summary {
    position: relative !important;
    top: auto !important;
    z-index: 1;
    margin: 7px 0 0;
    padding: 9px 0 8px;
    border-top: 1px solid rgba(226, 232, 240, 0.75);
    font-size: 0.94rem;
  }

  .cart-drawer-modern .cart-order-form,
  .cart-order-form {
    max-height: none !important;
    overflow: visible !important;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 232, 240, 0.75);
  }

  .cart-order-form label {
    gap: 4px;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .cart-order-form .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .cart-order-form input,
  .cart-order-form textarea {
    min-height: 34px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 0.86rem;
  }

  .cart-order-form textarea {
    min-height: 54px;
    max-height: 82px;
  }

  .order-type-switch {
    gap: 6px;
  }

  .order-type-switch legend {
    font-size: 0.76rem;
  }

  .order-type-switch span {
    min-height: 34px;
    font-size: 0.82rem;
  }

  .order-type-note {
    margin: -1px 0 1px;
    padding: 8px 9px;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .cart-order-form .button {
    min-height: 36px;
    padding-block: 8px;
    border-radius: 11px;
    font-size: 0.84rem;
  }

  .theme-lounge .cart-summary,
  .theme-lounge .cart-order-form {
    border-top-color: rgba(255, 255, 255, 0.12);
  }
}

/* Restaurant template selector and public social links */
.admin-fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-fieldset legend {
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-fieldset small {
  color: #64748b;
}

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

.template-option {
  margin: 0;
}

.template-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.template-option span {
  display: grid;
  gap: 4px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.template-option strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 600;
}

.template-option small {
  color: #64748b;
  line-height: 1.4;
}

.template-option input:checked + span {
  border-color: #17875f;
  box-shadow: 0 0 0 4px rgba(23, 135, 95, 0.12);
}

.template-option input:focus-visible + span {
  outline: 2px solid #17875f;
  outline-offset: 2px;
}

.restaurant-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.restaurant-social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(23, 135, 95, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f513c;
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
}

.restaurant-social-links a:hover {
  border-color: rgba(23, 135, 95, 0.34);
  background: #ffffff;
}

.theme-lounge .restaurant-social-links a {
  border-color: rgba(214, 168, 90, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #f8e6bc;
}

.theme-lounge .restaurant-social-links a:hover {
  border-color: rgba(214, 168, 90, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .template-options {
    grid-template-columns: 1fr;
  }

  .template-option span {
    min-height: auto;
    padding: 13px;
  }

  .restaurant-social-links {
    margin-top: 10px;
  }

  .restaurant-social-links a {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}
