:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #155dfc;
  --primary-weak: #e8f0ff;
  --danger: #dc2626;
  --danger-weak: #fee2e2;
  --success: #16a34a;
  --success-weak: #dcfce7;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.topbar .inner {
  width: min(1180px, 92vw);
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.nav-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: #374151;
}

.nav-links a.active,
.nav-links a:hover {
  background: var(--primary-weak);
  color: #0b4ad9;
  text-decoration: none;
}

.logout-form {
  margin: 0;
}

.nav-btn {
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

main {
  padding: 24px 0 36px;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

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

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 14px 0 22px;
}

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

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.msg {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.msg.error {
  border-color: #fca5a5;
  background: var(--danger-weak);
  color: #991b1b;
}

.msg.success {
  border-color: #86efac;
  background: var(--success-weak);
  color: #166534;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 90px;
}

button {
  border: 1px solid #0f45c8;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}


button.secondary {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #1f2937;
}

button:hover {
  filter: brightness(1.03);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px 8px;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}

th {
  font-size: 13px;
  color: #4b5563;
  font-weight: 700;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.tag.active {
  background: var(--success-weak);
  color: #166534;
}

.tag.inactive {
  background: #f3f4f6;
  color: #374151;
}

.tag.pending {
  background: #fef3c7;
  color: #92400e;
}

.tag.preparing {
  background: #dbeafe;
  color: #1e40af;
}

.tag.delivered {
  background: #dcfce7;
  color: #166534;
}

.tag.cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.qr-img {
  width: 88px;
  height: 88px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.product-list-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
}

.product-list-card + .product-list-card {
  margin-top: 10px;
}

.product-thumb {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 8px;
}

.menu-page {
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.18), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(14, 165, 233, 0.12), transparent 36%),
    #f3f8ff;
}

.menu-page .container {
  width: min(1220px, 96vw);
}

.menu-layout {
  padding-top: 14px;
  padding-bottom: 118px;
}

.menu-hero {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f62fe, #1d4ed8 60%, #1e40af);
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.24);
}

.menu-hero-title {
  margin: 0;
  font-size: clamp(20px, 4.5vw, 27px);
}

.menu-hero p {
  margin: 8px 0 0;
  opacity: 0.94;
}

.hero-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(191, 219, 254, 0.5);
  background: rgba(15, 23, 42, 0.18);
}

.category-panel {
  position: sticky;
  top: 12px;
  z-index: 20;
  border-color: #dbe5f2;
  padding: 14px 12px;
  backdrop-filter: blur(4px);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.menu-head h2 {
  margin: 0;
}

.menu-mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  padding: 4px 8px;
}

.menu-page .category-nav {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
  padding-right: 2px;
}

.menu-page .category-nav a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 42px;
  line-height: 1.35;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #1f2937;
  font-weight: 600;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.18s ease;
}

.menu-page .category-nav a:hover {
  background: #eef4ff;
  transform: translateY(-1px);
  text-decoration: none;
}

.menu-page .category-nav a.active,
.menu-page .category-nav a[aria-current='true'] {
  color: #fff;
  border-color: #1d4ed8;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.3);
}

.menu-form {
  display: block;
}

.menu-order-layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.menu-content {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.menu-category {
  scroll-margin-top: 92px;
  border-color: #dbe5f2;
}

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

.menu-card {
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: grid;
  grid-template-columns: 108px 1fr;
  min-height: 108px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.menu-card:hover {
  border-color: #bfdbfe;
}

.menu-card.has-selected {
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.12);
}

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

.menu-card img,
.menu-card-placeholder {
  width: 100%;
  height: 100%;
  min-height: 108px;
  object-fit: cover;
}

.menu-card-placeholder {
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  color: #1e3a8a;
  background: linear-gradient(135deg, #e0edff, #dbeafe);
}

.menu-card .content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.menu-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.menu-limit-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  padding: 3px 7px;
}

.menu-card p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  min-height: 34px;
}

.price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.price {
  font-size: 22px;
  font-weight: 800;
  color: #0b4ad9;
}

.menu-page .qty-control {
  margin: 0;
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
}

.menu-page .qty-stepper {
  display: inline-grid;
  grid-template-columns: 32px 52px 32px;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.menu-page .qty-btn {
  border: none;
  border-radius: 0;
  margin: 0;
  min-height: 34px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: #1e3a8a;
  background: #f8fafc;
  box-shadow: none;
}

.menu-page .qty-btn.plus {
  color: #0b4ad9;
}

.menu-page .qty-btn:hover {
  transform: none;
  box-shadow: none;
  background: #eaf2ff;
}

.menu-page .qty-btn:active {
  transform: none;
}

.menu-page .qty-input {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  margin: 0;
  border: none;
  border-radius: 0;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  padding: 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.menu-page .qty-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.menu-page .qty-input::-webkit-outer-spin-button,
.menu-page .qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.menu-page .qty-input[type='number'] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.menu-selected-panel {
  border-color: #d8e4f5;
  background: linear-gradient(170deg, #f8fbff, #ffffff 70%);
}

.menu-selected-panel .menu-head {
  margin-bottom: 8px;
}

.menu-page .clear-selected-btn {
  min-height: 34px;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
}

.menu-page .clear-selected-btn:hover {
  transform: none;
  box-shadow: none;
}

.selected-empty {
  margin: 0;
}

.menu-selected-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.menu-selected-list:empty {
  display: none;
}

.menu-selected-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
  background: #fff;
  padding: 9px 11px;
}

.menu-selected-item-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.menu-selected-item-meta {
  margin-top: 2px;
  font-size: 12px;
  color: #64748b;
}

.menu-selected-item-price {
  flex: none;
  font-size: 15px;
  font-weight: 800;
  color: #1d4ed8;
}

.menu-note-panel textarea {
  min-height: 88px;
}

.checkout {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  z-index: 40;
  width: min(1220px, 96vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  padding: 13px 14px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.34);
}

.checkout-info {
  display: grid;
  gap: 3px;
}

.checkout-label {
  font-size: 12px;
  color: #cbd5e1;
}

.checkout button {
  min-width: 128px;
  min-height: 44px;
  border-radius: 12px;
  border-color: #2563eb;
  background: #2563eb;
}

.checkout .total {
  font-size: 24px;
  font-weight: 800;
}

.checkout-count {
  font-size: 13px;
  color: #dbeafe;
}

@media (min-width: 1060px) {
  .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .menu-order-layout {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 10px;
  }

  .category-panel {
    top: 8px;
    padding: 10px;
  }

  .menu-page .category-nav {
    max-height: calc(100vh - 220px);
  }

  .menu-page .category-nav a {
    border-radius: 10px;
    padding: 9px 7px;
    font-size: 13px;
  }

  .menu-card {
    grid-template-columns: 92px 1fr;
    min-height: 96px;
  }

  .menu-card img,
  .menu-card-placeholder {
    min-height: 96px;
  }

  .menu-card .content {
    padding: 10px;
  }

  .menu-card h3 {
    font-size: 15px;
  }

  .menu-limit-tag {
    font-size: 10px;
    padding: 2px 6px;
  }

  .menu-card p {
    font-size: 13px;
    min-height: 30px;
  }

  .price {
    font-size: 20px;
  }

  .menu-page .qty-control {
    align-items: flex-end;
  }
  .menu-page .qty-stepper {
    grid-template-columns: 30px 48px 30px;
  }
  .menu-page .qty-input {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
  }

  .checkout .total {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .menu-layout {
    padding-bottom: 136px;
  }

  .menu-hero {
    padding: 14px;
  }

  .hero-meta {
    gap: 6px;
  }
  .menu-order-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .category-panel {
    top: 8px;
    z-index: 30;
    padding: 10px;
    margin-bottom: 0;
  }

  .category-panel .menu-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }

  .category-panel .menu-head h2 {
    font-size: 14px;
  }

  .menu-mini-stat {
    font-size: 11px;
    padding: 3px 7px;
  }
  .menu-page .category-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }

  .menu-page .category-nav a {
    font-size: 12px;
    width: auto;
    min-height: 36px;
    white-space: nowrap;
    border-radius: 999px;
    padding: 7px 10px;
  }

  .menu-content {
    gap: 10px;
  }

  .menu-category {
    scroll-margin-top: 150px;
  }

  .menu-card {
    grid-template-columns: 84px 1fr;
    min-height: 90px;
  }

  .menu-card img,
  .menu-card-placeholder {
    min-height: 90px;
  }

  .menu-card .content {
    padding: 9px;
  }

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

  .menu-card p {
    min-height: auto;
  }

  .menu-page .qty-control {
    gap: 4px;
  }

  .menu-page .qty-stepper {
    grid-template-columns: 28px 44px 28px;
  }

  .menu-page .qty-btn {
    min-height: 30px;
    font-size: 16px;
  }

  .menu-page .qty-input {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    font-size: 14px;
  }

  .menu-selected-list li {
    padding: 8px 10px;
  }
  .checkout {
    bottom: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .checkout button {
    width: 100%;
  }
}

.order-items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e5e7eb;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.auth-card {
  width: min(460px, 96vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}

.filters-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr auto;
  gap: 10px;
}

@media (max-width: 900px) {
  .filters-row {
    grid-template-columns: 1fr;
  }
}

.admin-page .topbar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  z-index: 80;
  border-right: 1px solid var(--border);
  border-bottom: none;
  background: #fff;
  backdrop-filter: none;
}

.admin-page .topbar .inner {
  width: 100%;
  margin: 0;
  min-height: 100%;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
}

.admin-page .brand {
  font-size: 18px;
  line-height: 1.35;
}

.admin-page .topbar-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
}

.admin-page .nav-links {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-y: auto;
}

.admin-page .nav-links a {
  display: block;
  width: 100%;
}

.admin-page .logout-form {
  margin-top: auto;
}

.admin-page main {
  margin-left: 240px;
}

.admin-page .container {
  width: min(1180px, calc(100vw - 264px));
}

@media (max-width: 980px) {
  .admin-page .topbar {
    position: sticky;
    inset: 0;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
  }

  .admin-page .topbar .inner {
    width: min(1180px, 92vw);
    margin: 0 auto;
    min-height: 64px;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .admin-page .brand {
    font-size: inherit;
    line-height: inherit;
  }

  .admin-page .topbar-actions {
    flex: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-height: auto;
  }

  .admin-page .nav-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    overflow: visible;
  }

  .admin-page .nav-links a {
    width: auto;
    display: inline-flex;
  }

  .admin-page .logout-form {
    margin-top: 0;
  }

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

  .admin-page .container {
    width: min(1180px, 92vw);
  }
}

/* ===========================
   UI/UX Pro Max - Admin Refresh
   =========================== */
:root {
  --admin-bg: #f3f7ff;
  --admin-surface: #ffffff;
  --admin-border: #dbe6f5;
  --admin-text: #0f172a;
  --admin-muted: #64748b;
  --admin-primary: #2563eb;
  --admin-primary-dark: #1e40af;
  --admin-sidebar: #0f172a;
  --admin-sidebar-soft: #1e293b;
}

a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

button,
.btn {
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.24);
}

button:active,
.btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(30, 64, 175, 0.22);
}

button:focus-visible,
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 1px;
}

button.secondary,
.btn.secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
  box-shadow: none;
}

button.secondary:hover,
.btn.secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  box-shadow: none;
}

button:disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.page-header {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.page-header h1 {
  margin-bottom: 6px;
}

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

.section-head h2 {
  margin: 0;
}

.admin-page {
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.12), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.12), transparent 38%),
    var(--admin-bg);
  color: var(--admin-text);
}

.admin-page .topbar {
  width: 252px;
  background: linear-gradient(180deg, var(--admin-sidebar), var(--admin-sidebar-soft));
  border-right: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 8px 0 30px rgba(15, 23, 42, 0.18);
}

.admin-page .topbar .inner {
  padding: 16px 14px;
  gap: 14px;
}

.admin-page .brand {
  color: #f8fafc;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.35;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.46);
}

.admin-page .nav-links a {
  color: #cbd5e1;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 12px;
  font-weight: 600;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.admin-page .nav-links a.active,
.admin-page .nav-links a:hover {
  background: rgba(59, 130, 246, 0.22);
  color: #eff6ff;
  border-color: rgba(147, 197, 253, 0.34);
  text-decoration: none;
}

.admin-page .logout-form .nav-btn {
  width: 100%;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.5);
  color: #e2e8f0;
}

.admin-page .logout-form .nav-btn:hover {
  background: rgba(30, 41, 59, 0.72);
}

.admin-page main {
  margin-left: 276px;
  padding-top: 28px;
}

.admin-page .container {
  width: min(1240px, calc(100vw - 300px));
}

.admin-page h1 {
  font-size: 30px;
  margin-bottom: 6px;
}

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

.admin-page .panel {
  background: var(--admin-surface);
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.05),
    0 2px 8px rgba(30, 64, 175, 0.04);
  padding: 18px;
}

.admin-page .stats-grid {
  gap: 12px;
}

.admin-page .stat-card {
  border-radius: 16px;
  border: 1px solid #dbe6f5;
  background: linear-gradient(165deg, #f8fbff, #ffffff 70%);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.admin-page .stat-card strong {
  color: var(--admin-primary-dark);
  font-size: 34px;
}

.admin-page label {
  color: #0f172a;
  font-weight: 600;
}

.admin-page input,
.admin-page select,
.admin-page textarea {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 10px 12px;
  color: #0f172a;
  background: #fff;
}

.admin-page input:hover,
.admin-page select:hover,
.admin-page textarea:hover {
  border-color: #94a3b8;
}

.admin-page input:focus,
.admin-page select:focus,
.admin-page textarea:focus {
  border-color: #3b82f6;
}

.admin-page .msg {
  border-radius: 12px;
  border-width: 1px;
}

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

.admin-page th,
.admin-page td {
  padding: 12px 10px;
  border-bottom: 1px solid #e8eef8;
}

.admin-page th {
  background: #f8fbff;
  color: #334155;
  font-size: 13px;
  position: sticky;
  top: 0;
}

.admin-page tr:hover td {
  background: #f8fbff;
}

.admin-page .product-list-card {
  border-radius: 14px;
  border: 1px solid #dbe6f5;
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  padding: 14px;
}

.admin-page .product-list-card + .product-list-card {
  margin-top: 12px;
}

.admin-page .product-thumb {
  border-radius: 10px;
  border-color: #dbe6f5;
}

.admin-page .qr-img {
  border-color: #dbe6f5;
  border-radius: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.is-visible {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(3px);
}

.modal-dialog {
  position: relative;
  width: min(560px, 92vw);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border: 1px solid #dbe6f5;
  border-radius: 18px;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.28);
}

.modal-dialog.modal-lg {
  width: min(780px, 94vw);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid #e6edf8;
}

.modal-header h2 {
  margin: 0;
}

.modal-body {
  padding: 16px 18px 18px;
}

.modal-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 2px;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 980px) {
  .admin-page .topbar {
    background: linear-gradient(180deg, var(--admin-sidebar), #13233f);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.18);
  }

  .admin-page .brand {
    border: none;
    background: transparent;
    padding: 0;
    font-size: 17px;
  }

  .admin-page .nav-links a {
    padding: 8px 10px;
    border-radius: 10px;
  }

  .admin-page .logout-form .nav-btn {
    width: auto;
    padding: 8px 12px;
  }

  .admin-page main {
    margin-left: 0;
    padding-top: 20px;
  }

  .admin-page .container {
    width: min(1240px, 92vw);
  }

  .page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .page-header > button,
  .page-header > .btn {
    width: 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===========================
   Admin Pro Max - Continuation
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.full-width {
  width: 100%;
}

.stat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
  font-weight: 700;
}

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

.action-card {
  border: 1px solid #d7e5fb;
  border-radius: 14px;
  background: linear-gradient(180deg, #fcfdff, #f6faff);
  padding: 14px;
  display: grid;
  gap: 6px;
  color: #0f172a;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.18s ease,
    box-shadow 0.2s ease;
}

.action-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(30, 64, 175, 0.13);
}

.action-card strong {
  font-size: 15px;
}

.subpage-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-color: #d4e2f7;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.16), transparent 46%),
    linear-gradient(165deg, #f8fbff, #ffffff 68%);
}

.subpage-hero-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #dbeafe;
  border-radius: 999px;
}

.subpage-hero h1 {
  margin-bottom: 8px;
}

.subpage-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 42px;
}

.subpage-metrics {
  margin-top: 0;
  margin-bottom: 14px;
}

.subpage-metrics .stat-card {
  border-color: #d8e5fa;
  background: linear-gradient(170deg, #f8fbff, #ffffff 72%);
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-color: #ccdbf8;
  background:
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.2), transparent 44%),
    linear-gradient(160deg, #f7fbff, #ffffff 68%);
}

.dashboard-hero-badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  background: #dbeafe;
  border-radius: 999px;
}

.dashboard-hero h1 {
  margin-bottom: 8px;
}

.dashboard-hero-metrics {
  flex: none;
  width: min(380px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-hero-metric {
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
}

.dashboard-hero-metric span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.dashboard-hero-metric strong {
  display: block;
  margin-top: 6px;
  color: #1e3a8a;
  font-size: 24px;
}

.dashboard-kpi-grid .stat-card {
  position: relative;
  overflow: hidden;
}

.dashboard-kpi-grid .stat-card::after {
  content: '';
  position: absolute;
  right: -10px;
  top: -10px;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
}

.stat-help {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 14px;
}

.dashboard-quick-panel {
  position: sticky;
  top: 16px;
}

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

.dashboard-orders-panel .section-head {
  margin-bottom: 10px;
}

.dashboard-order-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.dashboard-orders-panel .table-wrap table {
  min-width: 620px;
}

@media (max-width: 1180px) {
  .dashboard-workspace {
    grid-template-columns: 1fr;
  }

  .dashboard-quick-panel {
    position: static;
  }

  .dashboard-action-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 880px) {
  .dashboard-hero {
    flex-direction: column;
  }

  .dashboard-hero-metrics {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .subpage-hero {
    flex-direction: column;
  }

  .subpage-hero-actions {
    width: 100%;
    justify-content: stretch;
  }

  .subpage-hero-actions > .btn,
  .subpage-hero-actions > button {
    width: 100%;
  }
  .dashboard-hero-metrics {
    grid-template-columns: 1fr;
  }
}

.table-toolbar {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #dbe6f5;
  background: #f8fbff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #e6edf8;
  border-radius: 14px;
  background: #fff;
}

.table-wrap table {
  margin: 0;
  min-width: 680px;
}

.table-wrap th:first-child,
.table-wrap td:first-child {
  padding-left: 14px;
}

.table-wrap th:last-child,
.table-wrap td:last-child {
  padding-right: 14px;
}

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

.editable-table {
  min-width: 900px;
}

.editable-table .check-col {
  width: 44px;
  text-align: center;
}

.editable-table .check-col input[type='checkbox'] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #2563eb;
}

.editable-input {
  width: 100%;
  margin: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  padding: 7px 10px;
}

.editable-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.editable-number {
  min-width: 86px;
}

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

.empty-card {
  border: 1px dashed #cbdcf6;
  border-radius: 14px;
  background: #f8fbff;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.empty-card.empty-warning {
  border-style: solid;
  background: #fff7ed;
  border-color: #fed7aa;
}

.empty-card p {
  margin: 0;
}

.tag.subtle {
  background: #e2e8f0;
  color: #334155;
}

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

.admin-page .nav-links a::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1.7px solid currentColor;
  border-radius: 3px;
  opacity: 0.9;
  flex: none;
}

.admin-page .nav-links a[href='/admin']::before {
  border-radius: 50%;
}

.admin-page .nav-links a[href='/admin/rooms']::before {
  border-radius: 2px;
  transform: rotate(45deg);
}

.admin-page .nav-links a[href='/admin/categories']::before {
  border-radius: 999px;
  width: 16px;
  height: 10px;
}

.admin-page .nav-links a[href='/admin/products']::before {
  border-radius: 2px;
  box-shadow:
    inset 0 -4px 0 currentColor,
    inset 0 4px 0 transparent;
}

.admin-page .nav-links a[href='/admin/orders']::before {
  border-radius: 4px;
  border-top-width: 4px;
}

.admin-page .nav-links a[href='/admin/reports']::before {
  border-radius: 2px;
  clip-path: polygon(0 100%, 0 55%, 30% 55%, 30% 100%, 48% 100%, 48% 30%, 70% 30%, 70% 100%, 100% 100%, 100% 0, 0 0);
}

.admin-page .nav-links a[href='/admin/settings']::before {
  border-radius: 50%;
  border-style: dashed;
}

.admin-auth {
  background:
    radial-gradient(circle at 12% 18%, rgba(191, 161, 108, 0.2), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(86, 63, 39, 0.18), transparent 36%),
    linear-gradient(135deg, #f7f2ea 0%, #efe3d1 48%, #e4d2bc 100%);
}

.admin-auth .auth-shell {
  width: min(980px, 96vw);
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(191, 161, 108, 0.28);
  border-radius: 28px;
  box-shadow:
    0 24px 60px rgba(48, 35, 22, 0.16),
    0 6px 18px rgba(48, 35, 22, 0.08);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #7b5c36;
  background: #f3e7d5;
  border: 1px solid #e2ccb0;
  border-radius: 999px;
  padding: 4px 10px;
  margin: 0 0 12px;
}

.auth-hero {
  position: relative;
  padding: 34px 30px 30px;
  color: #fff4e5;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.06), transparent 40%),
    linear-gradient(145deg, #3b2b1e 0%, #694c33 55%, #8a6746 100%);
}

.auth-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 208, 0.18), transparent 70%);
}

.auth-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 240, 218, 0.82);
}

.auth-hero h1 {
  margin: 16px 0 10px;
  color: #fff7eb;
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 36px;
  line-height: 1.18;
}

.auth-intro {
  margin: 0;
  max-width: 28ch;
  color: rgba(255, 242, 226, 0.92);
  line-height: 1.8;
}

.auth-pill-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 233, 198, 0.24);
  background: rgba(255, 250, 243, 0.08);
  color: #fff4df;
  font-size: 12px;
  backdrop-filter: blur(8px);
}

.auth-pill strong {
  margin-left: 4px;
}

.auth-form-panel {
  padding: 34px 30px 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 247, 240, 0.98)),
    #fffdfa;
}

.auth-form-panel h2 {
  margin: 0 0 8px;
  color: #2d2218;
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 28px;
}

.auth-form-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.auth-form-grid label {
  margin-bottom: 0;
  color: #2d2218;
  font-weight: 600;
}

.admin-auth .auth-form-grid input {
  min-height: 46px;
  border: 1px solid #d8c3a4;
  border-radius: 14px;
  background: #fffdfa;
}

.admin-auth .auth-form-grid button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(240, 222, 191, 0.65);
  background: linear-gradient(180deg, #7a5a40, #5c4330);
  color: #fff0d3;
  box-shadow: 0 14px 28px rgba(69, 50, 34, 0.18);
}

.auth-company-mark {
  margin: 18px 0 0;
  color: #7b6a57;
  font-size: 12px;
  line-height: 1.7;
}

.company-footer {
  margin: 18px auto 0;
  width: min(100%, 1180px);
  padding: 14px 18px;
  border: 1px solid rgba(201, 173, 137, 0.24);
  border-radius: 18px;
  background: rgba(255, 250, 243, 0.78);
  color: #745f4e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.company-footer-label {
  color: #9d866f;
}

.company-footer strong {
  color: #4d3d31;
  font-weight: 700;
}

.company-footer-compact {
  width: 100%;
  margin-top: 18px;
  padding: 10px 12px;
  border-radius: 14px;
  justify-content: flex-start;
  font-size: 12px;
}

.admin-auth .msg {
  border-radius: 14px;
}

@media (max-width: 820px) {
  .admin-auth .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-hero,
  .auth-form-panel {
    padding: 24px 22px;
  }

  .auth-hero h1 {
    font-size: 30px;
  }
}

.menu-content-metrics {
  margin-top: 0;
  margin-bottom: 14px;
}

.menu-content-board {
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 14px;
  align-items: start;
}

.menu-content-sidebar {
  position: sticky;
  top: 16px;
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
}

.menu-content-sidebar h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.menu-content-nav {
  display: grid;
  gap: 8px;
}

.menu-content-nav a {
  display: block;
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  color: #0f172a;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.18s ease,
    box-shadow 0.2s ease;
}

.menu-content-nav a:hover {
  border-color: #93c5fd;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.1);
}

.menu-content-nav a strong {
  display: block;
  margin-bottom: 4px;
}

.menu-content-main {
  display: grid;
  gap: 12px;
}

.menu-content-group {
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
  scroll-margin-top: 90px;
}

.menu-content-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.menu-content-group-head h3 {
  margin: 0;
  font-size: 18px;
}

.menu-content-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.menu-product-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border: 1px solid #dbe6f5;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.menu-product-meta {
  margin-top: 6px;
}

.menu-product-actions {
  display: flex;
  align-items: flex-start;
}

.menu-product-actions form {
  margin: 0;
}

@media (max-width: 1080px) {
  .menu-content-board {
    grid-template-columns: 1fr;
  }

  .menu-content-sidebar {
    position: static;
  }

  .menu-content-nav {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 980px) {
  .empty-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .table-wrap table {
    min-width: 620px;
  }

  .bulk-actions {
    justify-content: stretch;
  }

  .bulk-actions button {
    flex: 1 1 180px;
  }
}

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

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

  .menu-product-actions {
    justify-content: flex-end;
  }
}

/* ===========================
   H5 点餐页（仿外卖布局）
   =========================== */
.menu-page {
  background: #f2f4f7;
  height: 100vh;
  overflow: hidden;
}

.menu-page .container {
  width: 100%;
  margin: 0;
}

.order-mobile-shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 0;
}

.order-mobile-header {
  position: sticky;
  top: 0;
  z-index: 80;
  padding: 10px 12px 12px;
  background: linear-gradient(135deg, #5f89c5, #5478b0 52%, #4e6fa4);
  box-shadow: 0 8px 20px rgba(37, 64, 107, 0.24);
}

.order-mobile-header-top h1 {
  margin: 0;
  color: #f8fafc;
  font-size: 18px;
  line-height: 1.35;
}

.order-mobile-header-top p {
  margin: 6px 0 0;
  color: rgba(241, 245, 249, 0.95);
  font-size: 12px;
}

.order-mobile-search-row {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.order-mobile-search-row input {
  border: none;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.order-mobile-search-row button {
  border-radius: 999px;
  min-height: 38px;
  padding: 0 14px;
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: none;
}

.order-mobile-search-row button:hover {
  transform: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.22);
}

.order-mobile-status {
  color: rgba(255, 237, 213, 0.96);
  font-size: 15px;
  white-space: nowrap;
}

.order-mobile-status strong {
  color: #fff;
}

.order-mobile-error {
  margin: 10px 12px 0;
}

.order-mobile-empty {
  margin: 12px;
}

.order-mobile-form {
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.order-mobile-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: stretch;
}

.order-mobile-sidebar {
  position: relative;
  top: 0;
  align-self: start;
  height: 100%;
  overflow: hidden;
  background: #f4f5f7;
  border-right: 1px solid #e5e7eb;
}

.order-mobile-nav {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.order-mobile-nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 10px;
  color: #1f2937;
  font-size: 15px;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.order-mobile-nav a:hover {
  text-decoration: none;
  background: #eceff3;
}

.order-mobile-nav a.active,
.order-mobile-nav a[aria-current='true'] {
  color: #ea580c;
  font-weight: 700;
  border-left-color: #ea580c;
  background: #fff;
}

.order-mobile-content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
  padding: 0 10px 112px;
}

.order-mobile-group {
  margin: 0;
  padding: 10px 0 2px;
  border: none;
  border-bottom: 1px solid #f1f5f9;
  background: transparent;
  border-radius: 0;
  scroll-margin-top: 8px;
}

.order-mobile-group:last-of-type {
  border-bottom: none;
}

.order-mobile-group-title {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 16px;
  font-weight: 500;
}

.order-mobile-products {
  display: grid;
}

.order-mobile-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.order-mobile-product:last-child {
  border-bottom: none;
}

.order-mobile-product.has-selected {
  background: linear-gradient(90deg, rgba(255, 237, 213, 0.45), transparent 68%);
}

.order-mobile-product img,
.order-mobile-product .menu-card-placeholder {
  width: 96px;
  height: 96px;
  min-height: 96px;
  border-radius: 8px;
  object-fit: cover;
}

.order-mobile-product-main {
  min-width: 0;
}

.order-mobile-product-main h3 {
  margin: 0;
  color: #111827;
  font-size: 17px;
  line-height: 1.35;
}

.order-mobile-product-desc {
  margin: 8px 0 0;
  color: #9ca3af;
  font-size: 15px;
}

.order-mobile-product-limit {
  margin: 2px 0 0;
  color: #9ca3af;
  font-size: 13px;
}

.order-mobile-product-bottom {
  margin-top: 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.order-mobile-price {
  color: #ea580c;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.order-mobile-stepper {
  display: inline-grid;
  grid-template-columns: 28px 40px 28px;
  align-items: center;
  border: 1px solid #fb923c;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.order-mobile-stepper .qty-btn {
  min-height: 28px;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  background: #f97316;
  box-shadow: none;
}

.order-mobile-stepper .qty-btn:hover,
.order-mobile-stepper .qty-btn:active {
  transform: none;
  box-shadow: none;
  filter: brightness(1.05);
}

.order-mobile-stepper .qty-input {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.order-mobile-stepper .qty-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.25);
}

.order-mobile-note {
  padding: 12px 0 4px;
}

.order-mobile-note textarea {
  min-height: 78px;
  border-radius: 10px;
}

.order-mobile-checkout {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 90;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.order-mobile-cart {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff7ed;
  color: #ea580c;
  font-size: 24px;
  line-height: 1;
}

.order-mobile-total {
  min-width: 0;
}

.order-mobile-total span {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
}

.order-mobile-total strong {
  color: #ea580c;
}

.order-mobile-total small {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 12px;
}

.order-mobile-checkout button {
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  white-space: nowrap;
  border-color: #f97316;
  background: #f97316;
  box-shadow: none;
}

.order-mobile-checkout button:hover {
  transform: none;
  box-shadow: none;
  filter: brightness(1.02);
}

@media (max-width: 420px) {
  .order-mobile-search-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'search btn'
      'status status';
  }

  .order-mobile-search-row input {
    grid-area: search;
  }

  .order-mobile-search-row button {
    grid-area: btn;
  }

  .order-mobile-status {
    grid-area: status;
    font-size: 14px;
  }

  .order-mobile-body {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .order-mobile-product {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .order-mobile-product img,
  .order-mobile-product .menu-card-placeholder {
    width: 86px;
    height: 86px;
    min-height: 86px;
  }

  .order-mobile-price {
    font-size: 24px;
  }
}

@media (min-width: 920px) {
  .order-mobile-shell {
    max-width: 980px;
    margin: 0 auto;
  }

  .order-mobile-body {
    grid-template-columns: 128px minmax(0, 1fr);
  }

  .order-mobile-sidebar {
    top: 0;
  }
}

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

.order-mobile-meta-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-mobile-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.order-mobile-inline-note {
  margin: 10px 10px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff7ed;
  color: #9a3412;
  display: grid;
  gap: 4px;
  font-size: 13px;
}

.order-mobile-inline-note strong {
  font-size: 14px;
  color: #7c2d12;
}

.order-mobile-product-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-mobile-product-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
}

.order-mobile-product-selected {
  color: #6b7280;
  font-size: 13px;
}

.order-mobile-product-selected strong {
  color: #111827;
}

.order-mobile-stepper .qty-btn:disabled {
  background: #fdba74;
}

.order-mobile-stepper .qty-btn:disabled:hover {
  filter: none;
}

.order-mobile-checkout {
  padding-right: 8px;
}

.order-mobile-cart {
  font-size: 16px;
  font-weight: 800;
}

.order-mobile-total strong {
  font-size: 24px;
}

.menu-success-page {
  height: auto;
  min-height: 100vh;
  overflow: auto;
}

.order-success-shell {
  min-height: 100vh;
  height: auto;
}

.order-success-header {
  position: relative;
}

.order-success-content {
  padding: 14px 12px 28px;
  display: grid;
  gap: 12px;
}

.order-success-kicker {
  margin: 0 0 8px;
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-success-summary h2 {
  margin-bottom: 6px;
}

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

.order-success-grid article {
  padding: 12px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.order-success-grid span {
  display: block;
  color: #6b7280;
  font-size: 12px;
}

.order-success-grid strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 15px;
}

.order-success-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.order-success-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
}

.order-success-list span {
  font-weight: 600;
  color: #111827;
}

.order-success-list strong {
  color: #ea580c;
}

.order-success-note {
  margin: 0;
  color: #475569;
  line-height: 1.7;
}

.order-success-actions {
  display: flex;
  justify-content: center;
}

.order-success-actions .btn {
  min-width: 180px;
}

@media (max-width: 420px) {
  .order-mobile-meta-row {
    gap: 6px;
  }

  .order-mobile-meta-pill {
    font-size: 11px;
  }

  .order-mobile-product-main h3 {
    font-size: 16px;
  }

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

/* ===========================
   酒店礼遇前台重设计
   =========================== */
.menu-page {
  --hotel-bg: #f3eee5;
  --hotel-surface: #fbf8f1;
  --hotel-surface-strong: #fffdf9;
  --hotel-panel: #efe6d7;
  --hotel-line: #d9ccb6;
  --hotel-line-strong: #bda885;
  --hotel-text: #352a1f;
  --hotel-muted: #6d7066;
  --hotel-accent: #ab9163;
  --hotel-accent-deep: #876c3e;
  --hotel-brand: #5a4330;
  --hotel-brand-soft: #76583f;
  --hotel-success: #7a654b;
  background:
    radial-gradient(circle at top left, rgba(189, 168, 133, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(120, 88, 63, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f3eb 0%, #eee6da 100%);
  color: var(--hotel-text);
  font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.menu-page .order-mobile-shell {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    transparent;
}

.menu-page .order-mobile-header {
  padding: 18px 16px 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 44%),
    linear-gradient(145deg, #7a5b3f 0%, #9a7552 58%, #b68f67 100%);
  box-shadow: 0 18px 40px rgba(74, 53, 31, 0.22);
}

.menu-page .order-mobile-header::after {
  content: '';
  display: block;
  margin-top: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(217, 204, 182, 0), rgba(217, 204, 182, 0.95), rgba(217, 204, 182, 0));
}

.menu-page .order-mobile-kicker {
  margin: 0;
  color: rgba(255, 242, 222, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-page .order-mobile-brand-name,
.menu-success-page .order-mobile-brand-name {
  margin-top: 10px;
  color: #fff7ea;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.menu-page .order-mobile-header-top h1,
.menu-success-page .order-mobile-header-top h1 {
  margin-top: 8px;
  color: #fffaf2;
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 30px;
  line-height: 1.14;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.menu-page .order-mobile-intro,
.menu-success-page .order-mobile-intro {
  margin: 10px 0 0;
  color: rgba(255, 243, 227, 0.92);
  font-size: 13px;
  line-height: 1.7;
}

.menu-page .order-mobile-meta-row {
  margin-top: 14px;
  gap: 10px;
}

.menu-page .order-mobile-meta-pill {
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 204, 182, 0.38);
  background: rgba(255, 248, 236, 0.08);
  color: #fff1db;
  backdrop-filter: blur(8px);
}

.menu-page .order-mobile-meta-pill strong {
  color: #fffaf1;
  font-weight: 700;
}

.menu-page .order-mobile-meta-pill strong,
.menu-page .order-mobile-product-limit,
.menu-page .order-mobile-product-selected strong,
.menu-page .order-mobile-stepper .qty-input,
.menu-page .order-mobile-cart,
.menu-page .order-mobile-total strong,
.menu-success-page .order-success-grid strong,
.menu-success-page .order-success-list strong,
.menu-success-page .muted strong,
.menu-page [data-selected-total],
.menu-page [data-selected-badge],
.menu-page [data-qty-label] {
  font-family: 'Segoe UI', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  line-height: 1;
}

.menu-page .order-mobile-inline-note {
  margin: 14px 12px 0;
  padding: 14px 14px 13px;
  border-radius: 16px;
  border: 1px solid rgba(189, 168, 133, 0.46);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(248, 242, 231, 0.96)),
    var(--hotel-surface-strong);
  color: var(--hotel-accent-deep);
  box-shadow: 0 10px 24px rgba(103, 83, 49, 0.08);
}

.menu-page .order-mobile-inline-note strong {
  color: var(--hotel-brand);
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.menu-page .order-mobile-error {
  margin-top: 12px;
  border-color: #d5b59b;
  background: #fff8f4;
  color: #8d4f2a;
}

.menu-page .order-mobile-body {
  grid-template-columns: 104px minmax(0, 1fr);
  background: transparent;
}

.menu-page .order-mobile-sidebar {
  background:
    linear-gradient(180deg, rgba(255, 249, 240, 0.5), rgba(239, 230, 215, 0.86)),
    var(--hotel-panel);
  border-right: 1px solid rgba(189, 168, 133, 0.3);
}

.menu-page .order-mobile-nav {
  padding: 10px 0 18px;
}

.menu-page .order-mobile-nav a {
  min-height: 64px;
  padding: 0 14px;
  color: #5e5c52;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  border-left: 0;
  border-right: 3px solid transparent;
}

.menu-page .order-mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.menu-page .order-mobile-nav a.active,
.menu-page .order-mobile-nav a[aria-current='true'] {
  color: var(--hotel-brand);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.62)),
    var(--hotel-surface);
  border-right-color: var(--hotel-accent);
  box-shadow: inset 0 0 0 1px rgba(189, 168, 133, 0.18);
}

.menu-page .order-mobile-content {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0)),
    var(--hotel-surface);
  padding: 12px 12px 132px;
}

.menu-page .order-mobile-group {
  padding: 2px 0 8px;
  border-bottom: none;
}

.menu-page .order-mobile-group-title {
  margin: 0 0 12px;
  color: var(--hotel-brand);
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.menu-page .order-mobile-product {
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(189, 168, 133, 0.34);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 248, 241, 0.95)),
    var(--hotel-surface-strong);
  box-shadow: 0 12px 26px rgba(79, 67, 43, 0.08);
}

.menu-page .order-mobile-product.has-selected {
  background:
    linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(248, 239, 223, 0.98)),
    var(--hotel-surface-strong);
  border-color: rgba(171, 145, 99, 0.58);
  box-shadow: 0 16px 32px rgba(98, 78, 47, 0.12);
}

.menu-page .order-mobile-product img,
.menu-page .order-mobile-product .menu-card-placeholder {
  width: 92px;
  height: 92px;
  min-height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(189, 168, 133, 0.24);
  background: linear-gradient(135deg, #e9ddc8, #f6efe3);
}

.menu-page .order-mobile-product .menu-card-placeholder {
  color: var(--hotel-brand);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
}

.menu-page .order-mobile-product-heading {
  align-items: flex-start;
}

.menu-page .order-mobile-product-main h3 {
  color: var(--hotel-brand);
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
}

.menu-page .order-mobile-product-badge {
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(171, 145, 99, 0.38);
  background: #f5ecdd;
  color: var(--hotel-accent-deep);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-page .order-mobile-product-desc {
  margin-top: 9px;
  color: var(--hotel-muted);
  font-size: 14px;
  line-height: 1.65;
}

.menu-page .order-mobile-product-limit {
  margin-top: 8px;
  color: var(--hotel-accent-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  min-height: 18px;
}

.menu-page .order-mobile-product-bottom {
  margin-top: 12px;
  align-items: center;
}

.menu-page .order-mobile-product-selected {
  color: var(--hotel-muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.menu-page .order-mobile-product-selected strong {
  color: var(--hotel-brand);
  font-size: 20px;
  font-weight: 700;
  display: inline-block;
  min-width: 1ch;
  text-align: center;
}

.menu-page .order-mobile-stepper {
  grid-template-columns: 34px 48px 34px;
  border: 1px solid rgba(171, 145, 99, 0.55);
  border-radius: 999px;
  background: #fffdfa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.menu-page .order-mobile-stepper .qty-btn {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--hotel-brand);
  font-size: 16px;
  background: linear-gradient(180deg, #f5ebdb, #ebdcc1);
}

.menu-page .order-mobile-stepper .qty-symbol {
  display: block;
  line-height: 1;
  font-size: 19px;
  font-weight: 800;
  transform: translateY(-0.5px);
}

.menu-page .order-mobile-stepper .qty-btn.plus .qty-symbol {
  font-size: 17px;
}

.menu-page .order-mobile-stepper .qty-btn:hover,
.menu-page .order-mobile-stepper .qty-btn:active {
  filter: brightness(1.01);
}

.menu-page .order-mobile-stepper .qty-btn:disabled {
  background: #ede5d8;
  color: #b7a991;
}

.menu-page .order-mobile-stepper .qty-input {
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 34px;
  background: #fffdfa;
  color: var(--hotel-brand);
  font-size: 14px;
  font-weight: 700;
  line-height: 34px;
  letter-spacing: 0;
}

.menu-page .order-mobile-stepper .qty-input:focus {
  box-shadow: inset 0 0 0 2px rgba(171, 145, 99, 0.22);
}

.menu-page .order-mobile-checkout {
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(171, 145, 99, 0.4);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 52%),
    linear-gradient(180deg, #6b4f38, #4f3928);
  box-shadow: 0 22px 38px rgba(52, 37, 23, 0.24);
}

.menu-page .order-mobile-cart {
  width: 46px;
  height: 46px;
  background: linear-gradient(180deg, #f4e7d0, #dfc39a);
  color: var(--hotel-brand);
  border: 1px solid rgba(235, 221, 194, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  line-height: 1;
}

.menu-page .order-mobile-total span {
  color: #f8f1e4;
  font-size: 14px;
  font-weight: 600;
}

.menu-page .order-mobile-total strong {
  color: #f0d7a6;
  font-size: 28px;
  font-weight: 700;
  display: inline-block;
  min-width: 1ch;
  text-align: center;
}

.menu-page .order-mobile-total small {
  margin-top: 4px;
  color: rgba(240, 231, 214, 0.76);
  font-size: 11px;
  line-height: 1.5;
}

.menu-page .order-mobile-checkout button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(240, 222, 191, 0.65);
  border-radius: 999px;
  background: linear-gradient(180deg, #f0dcc0, #d3ad7d);
  color: #2b2418;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.menu-page .order-mobile-checkout button:hover {
  filter: brightness(1.01);
}

.menu-success-page {
  background:
    radial-gradient(circle at top left, rgba(171, 145, 99, 0.14), transparent 30%),
    linear-gradient(180deg, #f8f3eb 0%, #efe7dc 100%);
}

.menu-success-page .order-success-content {
  padding: 18px 14px 30px;
  gap: 14px;
}

.menu-success-page .order-success-summary,
.menu-success-page .panel {
  border: 1px solid rgba(189, 168, 133, 0.32);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 241, 0.98)),
    #fffdf9;
  box-shadow: 0 16px 30px rgba(91, 74, 48, 0.08);
}

.menu-success-page .order-success-kicker {
  color: var(--hotel-accent-deep);
  letter-spacing: 0.16em;
}

.menu-success-page .order-success-summary h2,
.menu-success-page .section-head h2 {
  color: var(--hotel-brand);
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 26px;
}

.menu-success-page .order-success-grid article {
  border: 1px solid rgba(189, 168, 133, 0.24);
  background: linear-gradient(180deg, #f9f4ec, #f5eee2);
}

.menu-success-page .order-success-grid span,
.menu-success-page .muted,
.menu-success-page .order-success-note {
  color: var(--hotel-muted);
}

.menu-success-page .order-success-grid strong,
.menu-success-page .order-success-list span {
  color: var(--hotel-brand);
}

.menu-success-page .order-success-grid strong {
  display: inline-block;
  line-height: 1.2;
}

.menu-success-page .order-success-list li {
  border: 1px solid rgba(189, 168, 133, 0.28);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdf9, #f7f0e5);
}

.menu-success-page .order-success-list strong {
  color: var(--hotel-accent-deep);
  font-size: 19px;
  display: inline-block;
  min-width: 2ch;
  text-align: right;
}

.menu-success-page .order-success-actions .btn,
.menu-success-page .btn {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(240, 222, 191, 0.65);
  background: linear-gradient(180deg, #7a5a40, #5c4330);
  color: #fff0d3;
  box-shadow: 0 14px 28px rgba(69, 50, 34, 0.18);
}

.menu-page .order-password-shell {
  padding: 14px 12px 28px;
  display: grid;
  gap: 12px;
}

.menu-page .order-password-panel {
  border: 1px solid rgba(189, 168, 133, 0.32);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 248, 241, 0.98)),
    #fffdf9;
  box-shadow: 0 16px 30px rgba(91, 74, 48, 0.08);
}

.menu-page .order-password-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.menu-page .order-password-kicker {
  margin: 0;
  color: var(--hotel-accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.menu-page .order-password-head h2 {
  margin: 0;
  color: var(--hotel-brand);
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 28px;
}

.menu-page .order-password-form {
  display: grid;
  gap: 14px;
}

.menu-page .order-password-form label {
  margin-bottom: 0;
}

.menu-page .order-password-form input {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(189, 168, 133, 0.5);
  background: #fffdfa;
}

.menu-page .order-password-form button {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(240, 222, 191, 0.65);
  background: linear-gradient(180deg, #7a5a40, #5c4330);
  color: #fff0d3;
  box-shadow: 0 14px 28px rgba(69, 50, 34, 0.18);
}

@media (max-width: 420px) {
  .menu-page .order-mobile-header {
    padding: 16px 14px 14px;
  }

  .menu-page .order-mobile-header-top h1,
  .menu-success-page .order-mobile-header-top h1 {
    font-size: 27px;
  }

  .menu-page .order-mobile-body {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .menu-page .order-mobile-nav a {
    min-height: 60px;
    padding: 0 12px;
    font-size: 12px;
  }

  .menu-page .order-mobile-content {
    padding: 12px 10px 136px;
  }

  .menu-page .order-mobile-product {
    grid-template-columns: 84px minmax(0, 1fr);
    padding: 11px;
  }

  .menu-page .order-mobile-product img,
  .menu-page .order-mobile-product .menu-card-placeholder {
    width: 84px;
    height: 84px;
    min-height: 84px;
  }

  .menu-page .order-mobile-product-main h3 {
    font-size: 20px;
  }

  .menu-page .order-mobile-total strong {
    font-size: 24px;
  }
}

@media (max-width: 540px) {
  .menu-page .order-mobile-header-top h1,
  .menu-success-page .order-mobile-header-top h1 {
    font-size: 28px;
  }

  .menu-page .order-mobile-intro,
  .menu-success-page .order-mobile-intro {
    font-size: 12px;
  }

  .menu-page .order-mobile-body {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .menu-page .order-mobile-nav a {
    min-height: 60px;
    padding: 0 12px;
    font-size: 12px;
  }

  .menu-page .order-mobile-product {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .menu-page .order-mobile-product img,
  .menu-page .order-mobile-product .menu-card-placeholder {
    width: 84px;
    height: 84px;
    min-height: 84px;
    border-radius: 12px;
  }

  .menu-page .order-mobile-product-main h3 {
    font-size: 19px;
  }

  .menu-page .order-mobile-product-desc {
    font-size: 13px;
    line-height: 1.55;
  }

  .menu-page .order-mobile-product-bottom {
    gap: 8px;
  }

  .menu-page .order-mobile-stepper {
    grid-template-columns: 32px 44px 32px;
  }

  .menu-page .order-mobile-stepper .qty-btn {
    min-height: 32px;
  }

  .menu-page .order-mobile-stepper .qty-input {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 32px;
  }

  .menu-page .order-mobile-checkout {
    left: 10px;
    right: 10px;
    gap: 10px;
    padding: 10px 10px;
    border-radius: 22px;
  }

  .menu-page .order-mobile-checkout button {
    min-height: 44px;
    padding: 0 18px;
  }
}

@media (max-width: 390px) {
  .menu-page .order-mobile-header {
    padding: 14px 12px 13px;
  }

  .menu-page .order-mobile-kicker {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .menu-page .order-mobile-header-top h1,
  .menu-success-page .order-mobile-header-top h1 {
    font-size: 24px;
    line-height: 1.18;
  }

  .menu-page .order-mobile-meta-row {
    gap: 6px;
  }

  .menu-page .order-mobile-meta-pill {
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .menu-page .order-mobile-inline-note {
    margin: 12px 10px 0;
    padding: 12px;
    border-radius: 14px;
  }

  .menu-page .order-mobile-inline-note strong {
    font-size: 15px;
  }

  .menu-page .order-mobile-body {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .menu-page .order-mobile-nav a {
    min-height: 56px;
    padding: 0 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .menu-page .order-mobile-content {
    padding: 10px 9px 128px;
  }

  .menu-page .order-mobile-group-title {
    margin-bottom: 10px;
    font-size: 20px;
  }

  .menu-page .order-mobile-product {
    grid-template-columns: 76px minmax(0, 1fr);
    margin-bottom: 10px;
    padding: 9px;
  }

  .menu-page .order-mobile-product img,
  .menu-page .order-mobile-product .menu-card-placeholder {
    width: 76px;
    height: 76px;
    min-height: 76px;
  }

  .menu-page .order-mobile-product-heading {
    gap: 6px;
  }

  .menu-page .order-mobile-product-main h3 {
    font-size: 17px;
  }

  .menu-page .order-mobile-product-badge {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .menu-page .order-mobile-product-desc {
    margin-top: 6px;
    font-size: 12px;
  }

  .menu-page .order-mobile-product-limit,
  .menu-page .order-mobile-product-selected {
    font-size: 11px;
  }

  .menu-page .order-mobile-product-selected strong {
    font-size: 18px;
  }

  .menu-page .order-mobile-product-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-page .order-mobile-stepper {
    align-self: flex-end;
  }

  .menu-page .order-mobile-checkout {
    grid-template-columns: 40px 1fr auto;
    gap: 8px;
    padding: 8px 8px 8px 8px;
  }

  .menu-page .order-mobile-cart {
    width: 40px;
    height: 40px;
  }

  .menu-page .order-mobile-total span {
    font-size: 13px;
  }

  .menu-page .order-mobile-total strong {
    font-size: 22px;
  }

  .menu-page .order-mobile-total small {
    font-size: 10px;
  }

  .menu-page .order-mobile-checkout button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }
}

@media (max-height: 540px) and (orientation: landscape) {
  .menu-page .order-mobile-shell,
  .menu-success-page .order-success-shell {
    min-height: 100dvh;
    height: auto;
  }

  .menu-page .order-mobile-header,
  .menu-success-page .order-mobile-header {
    position: relative;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .menu-page .order-mobile-header::after,
  .menu-success-page .order-mobile-header::after {
    margin-top: 10px;
  }

  .menu-page .order-mobile-header-top h1,
  .menu-success-page .order-mobile-header-top h1 {
    font-size: 24px;
  }

  .menu-page .order-mobile-inline-note {
    margin-top: 10px;
    padding: 10px 12px;
  }

  .menu-page .order-mobile-body {
    min-height: 0;
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .menu-page .order-mobile-nav a {
    min-height: 52px;
  }

  .menu-page .order-mobile-content {
    padding-bottom: 108px;
  }

  .menu-page .order-mobile-checkout {
    bottom: calc(8px + env(safe-area-inset-bottom));
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .menu-page .order-mobile-checkout button {
    min-height: 40px;
  }
}
