@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Noto+Sans+TC:wght@400;500;700;800;900&display=swap");

:root {
  color-scheme: light;
  --ink: #18312b;
  --muted: #6a776f;
  --line: #e7ddd0;
  --surface: #fffaf6;
  --surface-strong: #ffffff;
  --soft: #f5efe6;
  --deep: #17332d;
  --deep-2: #0f2722;
  --accent: #bb7c3a;
  --accent-2: #d8ad74;
  --green: #2f7b64;
  --warn: #9a621f;
  --danger: #b91c1c;
  --shadow: 0 24px 70px rgba(23, 51, 45, 0.14);
  --shadow-soft: 0 14px 36px rgba(23, 51, 45, 0.09);
  --shine: rgba(255, 255, 255, 0.66);
  --radius: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 173, 116, 0.22), transparent 24%),
    radial-gradient(circle at bottom right, rgba(47, 123, 100, 0.12), transparent 28%),
    linear-gradient(rgba(255, 250, 244, 0.9), rgba(245, 239, 230, 0.92)),
    url("/images/hero-produce.png") center / cover fixed no-repeat;
  font-family: "Noto Sans TC", "Segoe UI", Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
select {
  touch-action: manipulation;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 0 32px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(15, 39, 34, 0.96), rgba(23, 51, 45, 0.9)),
    var(--deep-2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(15, 39, 34, 0.2);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
}

.brand-logo-rt {
  display: block;
  width: auto;
  height: 58px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--deep-2);
  background:
    linear-gradient(135deg, #fff8e1, #e6bb7c 55%, #bb7c3a);
  box-shadow:
    inset 0 -2px 0 rgba(0, 0, 0, 0.13),
    0 12px 24px rgba(187, 124, 58, 0.28);
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

nav a {
  min-height: 38px;
  border-radius: 999px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.76);
  transition:
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.nav-button {
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-weight: 800;
}

nav a:hover,
.nav-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 392px;
  gap: 24px;
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 42px;
  align-items: start;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 22px;
  position: relative;
  min-height: 300px;
  margin-bottom: 22px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 38px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 39, 34, 0.96), rgba(23, 51, 45, 0.9) 52%, rgba(47, 123, 100, 0.78)),
    var(--deep);
  box-shadow: var(--shadow);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.1) 34% 35%, transparent 35% 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12), transparent 45%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -96px;
  width: 360px;
  height: 220px;
  border: 1px solid rgba(255, 210, 138, 0.25);
  transform: rotate(-10deg);
}

.ad-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(187, 124, 58, 0.24);
  border-radius: var(--radius);
  padding: 17px 18px;
  background:
    linear-gradient(90deg, rgba(255, 247, 235, 0.98), rgba(255, 255, 255, 0.9)),
    #fff;
  box-shadow: var(--shadow-soft);
}

.ad-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.ad-banner p,
.ad-banner span {
  margin: 0;
}

.ad-banner p {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-banner strong {
  display: block;
  margin: 2px 0 4px;
  color: var(--deep-2);
  font-size: 19px;
}

.ad-banner span {
  color: var(--muted);
}

.ad-banner button,
.member-status button,
.member-tabs button,
.modal-close {
  border: 0;
  cursor: pointer;
  font-weight: 850;
}

.ad-banner button,
.member-status button {
  min-height: 38px;
  border-radius: 7px;
  padding: 0 13px;
  color: #fff;
  background: var(--deep);
}

.ad-banner button:hover,
.member-status button:hover,
.ghost-link:hover {
  transform: translateY(-1px);
}

.menu-tools,
.dashboard-tools {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid rgba(234, 223, 210, 0.92);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(248, 242, 233, 0.86)),
    #fffdf9;
  box-shadow: var(--shadow-soft);
}

.dashboard-tools {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pills button {
  min-height: 36px;
  border: 1px solid #e2d3bf;
  border-radius: 999px;
  padding: 0 14px;
  color: var(--muted);
  background: #fffdf9;
  cursor: pointer;
  font-weight: 800;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.filter-pills button.active,
.filter-pills button:hover {
  border-color: var(--green);
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: min(100%, 292px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.26));
  transform: rotate(2deg);
}

.section-title {
  margin-bottom: 18px;
}

.section-title p,
.eyebrow,
.category {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .section-title {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero .section-title p {
  color: #ffd28a;
}

.section-title h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Sans TC", serif;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-title span {
  display: block;
  max-width: 520px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.65;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-chips span {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 10px;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.dashboard .section-title span {
  color: var(--muted);
}

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

.category-group {
  display: grid;
  gap: 12px;
}

.category-group + .category-group {
  margin-top: 8px;
}

.category-group h2,
.order-pane h2,
.panel-head h2,
.mini-head h2,
.member-hero h1,
.admin-auth-card h1,
.receipt-head h1,
.promo-modal h2,
.member-modal h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Sans TC", serif;
  letter-spacing: -0.02em;
}

.category-group h2,
.order-pane h2,
.panel-head h2,
.mini-head h2 {
  font-size: 24px;
}

.category-group h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--deep-2);
}

.category-group h2::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, rgba(232, 93, 39, 0.32), transparent);
}

.menu-card,
.order-pane,
.order-card,
.stats > div,
.orders-panel {
  border: 1px solid rgba(234, 223, 210, 0.86);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.96)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.menu-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px;
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.menu-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.menu-card:hover::before {
  opacity: 1;
}

.menu-card:hover {
  border-color: rgba(232, 93, 39, 0.34);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.food-image {
  width: 126px;
  height: 104px;
  flex: 0 0 126px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #fff5e8, #f3e0bd);
  box-shadow:
    inset 0 0 0 1px rgba(67, 20, 7, 0.05),
    0 12px 22px rgba(70, 36, 13, 0.1);
}

.menu-copy {
  min-width: 0;
  flex: 1;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.size-options button {
  min-height: 32px;
  border: 1px solid #e6d4c1;
  border-radius: 999px;
  padding: 0 11px;
  color: var(--muted);
  background: #fffdf9;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
}

.size-options button.active,
.size-options button:hover {
  border-color: var(--green);
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
}

.menu-card h3,
.order-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--deep-2);
}

.menu-card p,
.order-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.item-actions,
.order-side {
  display: grid;
  justify-items: end;
  align-content: space-between;
  gap: 12px;
  min-width: 124px;
}

.item-actions strong,
.order-side strong {
  color: var(--deep-2);
}

.stepper {
  display: grid;
  grid-template-columns: 36px 38px 36px;
  align-items: center;
  overflow: hidden;
  min-height: 36px;
  border: 1px solid #ead6c2;
  border-radius: 7px;
  background: #fff;
}

.stepper button {
  width: 36px;
  height: 36px;
  border: 0;
  background: #f5ede3;
  color: var(--green);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.stepper button:hover {
  background: linear-gradient(135deg, var(--deep), var(--green));
  color: #fff;
}

.stepper span {
  text-align: center;
  font-weight: 850;
}

.order-pane {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 235, 0.94)),
    #fff;
  box-shadow: 0 26px 60px rgba(23, 51, 45, 0.12);
}

.order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-badge {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(23, 51, 45, 0.2);
}

.member-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: var(--radius);
  padding: 12px;
  color: var(--deep-2);
  background:
    linear-gradient(90deg, #edf7f3, #fbfffd);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.1);
}

.member-orders-link {
  min-height: 34px;
  border-radius: 7px;
  padding: 8px 11px;
  color: var(--deep-2);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.member-status div {
  display: grid;
  gap: 2px;
}

.member-status span {
  font-weight: 850;
}

.member-status strong {
  color: var(--green);
  font-size: 13px;
}

.member-status small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.member-status.guest {
  background:
    linear-gradient(90deg, #fff4e7, #fffaf4);
  box-shadow: inset 0 0 0 1px rgba(232, 93, 39, 0.12);
}

.membership-intro {
  display: grid;
  gap: 10px;
}

.membership-intro > div {
  display: grid;
  gap: 3px;
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(23, 63, 58, 0.06);
}

.membership-plan-card.actionable {
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.membership-plan-card.actionable:hover,
.membership-plan-card.actionable:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #edf8f5, #fffaf4);
  box-shadow:
    inset 0 0 0 1px rgba(15, 118, 110, 0.18),
    0 14px 28px rgba(15, 118, 110, 0.12);
}

.membership-plan-card.closed {
  cursor: default;
  opacity: 0.62;
  background: linear-gradient(180deg, rgba(243, 244, 246, 0.92), rgba(255, 250, 244, 0.92));
}

.membership-plan-card.closed strong,
.membership-plan-card.closed span,
.membership-plan-card.closed small {
  color: var(--muted);
}

.membership-intro strong {
  color: var(--deep-2);
}

.membership-intro span {
  color: var(--muted);
  font-size: 13px;
}

.membership-intro small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
}

.member-required-hint {
  margin: 0;
  border-radius: 14px;
  padding: 12px;
  color: var(--accent);
  background: #fbf1df;
  font-size: 13px;
  font-weight: 850;
}

.payment-box {
  display: grid;
  gap: 10px;
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(23, 63, 58, 0.06);
}

.payment-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.cart-list {
  display: grid;
  gap: 10px;
  min-height: 34px;
}

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

.empty-panel {
  margin: 0;
  border: 1px dashed #dfc8af;
  border-radius: 8px;
  padding: 22px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.72);
  text-align: center;
  font-weight: 750;
}

.cart-row,
.total-row,
.panel-head,
.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart-row {
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(90deg, #fbf3e7, #fffaf4);
}

.cart-summary {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cart-summary > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 250, 244, 0.86);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.cart-summary strong {
  color: var(--deep-2);
}

.total-row {
  padding-top: 16px;
  border-top: 1px dashed #e5cbb1;
  font-size: 18px;
}

.total-row span {
  display: grid;
  gap: 4px;
}

.total-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.total-row strong {
  color: var(--accent);
  font-size: 24px;
}

.form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 7px;
  color: #5f6d66;
  font-size: 14px;
  font-weight: 750;
}

.field-hint {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #e6d4c1;
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.94);
  outline: none;
  box-shadow: inset 0 1px 0 var(--shine);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(232, 93, 39, 0.72);
  box-shadow: 0 0 0 4px rgba(232, 93, 39, 0.12);
}

textarea {
  resize: vertical;
}

button[type="submit"],
#refreshBtn,
.ghost-link {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 850;
}

button[type="submit"],
#refreshBtn {
  border: 0;
  background: linear-gradient(135deg, var(--deep), var(--green));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 28px rgba(23, 51, 45, 0.22);
  transition:
    filter 0.18s ease,
    transform 0.18s ease;
}

button[type="submit"]:hover,
#refreshBtn:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

button[type="submit"]:disabled {
  cursor: not-allowed;
  filter: grayscale(0.25);
  opacity: 0.65;
  transform: none;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 51, 45, 0.1);
  color: var(--deep-2);
  background: rgba(255, 255, 255, 0.78);
}

.message {
  min-height: 22px;
  margin: 0;
  font-weight: 750;
}

.message.success {
  color: var(--green);
}

.message.error {
  color: var(--danger);
}

.member-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.membership-card.is-current {
  background: linear-gradient(180deg, #edf8f5, #fffaf4);
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.12);
}

.membership-card button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
  cursor: pointer;
  font-weight: 850;
}

.reward-row button,
.referral-row button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
  cursor: pointer;
  font-weight: 850;
}

.reward-row button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.upgrade-modal {
  width: min(500px, 100%);
}

.membership-upgrade-row .print-link {
  margin-top: 8px;
  width: fit-content;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}

.payment-pending_review,
.payment-pending_stripe {
  color: #9a5600;
  background: #fff2d8;
}

.payment-paid {
  color: #166534;
  background: #dcfce7;
}

.payment-rejected,
.payment-failed {
  color: #991b1b;
  background: #fee2e2;
}

.payment-actions {
  display: grid;
  gap: 8px;
}

.payment-actions button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
  cursor: pointer;
  font-weight: 800;
}

.payment-actions button[data-payment-action="rejected"] {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.dashboard {
  width: min(1280px, calc(100% - 32px));
  margin: 28px auto 46px;
}

.admin-auth-shell {
  width: min(560px, calc(100% - 32px));
  margin: 48px auto;
}

.admin-auth-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(234, 223, 210, 0.92);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 239, 0.94));
  box-shadow: var(--shadow);
}

.admin-auth-card h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 36px);
}

.admin-auth-card > span {
  color: var(--muted);
  line-height: 1.7;
}

.admin-auth-form {
  margin-top: 6px;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 360px);
  gap: 18px;
  margin-bottom: 20px;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
  padding: 24px 26px;
  border: 1px solid rgba(234, 223, 210, 0.86);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(255, 244, 228, 0.94)),
    #fffdf9;
  box-shadow: var(--shadow-soft);
}

.dashboard-head .section-title {
  margin-bottom: 0;
}

.hero-overview {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 36%),
    linear-gradient(135deg, rgba(15, 39, 34, 0.94), rgba(47, 123, 100, 0.86));
  box-shadow: var(--shadow);
}

.hero-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-overview strong {
  font-size: clamp(36px, 4vw, 44px);
  line-height: 1;
}

.hero-overview > p:last-of-type {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hero-meta span,
.panel-tip,
.orders-toolbar-note {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.hero-meta span {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-actions,
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-actions button,
.panel-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
  cursor: pointer;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stats > div {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 134px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(234, 223, 210, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(145deg, #fffdf9 0%, #faf3e7 72%),
    #fffdf9;
  box-shadow: var(--shadow-soft);
}

.stats > div::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(232, 93, 39, 0.1);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #fff !important;
  background: linear-gradient(135deg, var(--deep), var(--green));
  font-size: 14px;
  font-weight: 950 !important;
}

.stats span {
  color: var(--muted);
  font-weight: 800;
}

.stats strong {
  color: var(--deep-2);
  font-size: 34px;
  line-height: 1;
}

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

.members-panel {
  margin-bottom: 18px;
}

.members-tools {
  grid-template-columns: minmax(0, 1fr);
}

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

.member-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(234, 223, 210, 0.86);
  border-radius: 16px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 241, 0.86));
  box-shadow: var(--shadow-soft);
}

.member-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.member-card-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.member-card-head p {
  margin: 0;
  color: var(--muted);
}

.member-card-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-card-stats > div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.92);
}

.member-card-stats strong {
  color: var(--deep-2);
  font-size: 20px;
  line-height: 1;
}

.member-card-stats span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.member-card-meta {
  display: grid;
  gap: 8px;
}

.member-card-meta span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  background: rgba(255, 255, 255, 0.74);
}

.member-card-meta strong {
  color: var(--deep-2);
  font-size: 12px;
}

.member-card-meta em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.member-tier {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 850;
}

.tier-silver {
  color: #475569;
  background: #e2e8f0;
}

.tier-gold {
  color: #9a5600;
  background: #fff2d8;
}

.tier-diamond {
  color: #1d4ed8;
  background: #dbeafe;
}

.orders-panel {
  padding: 22px;
  border: 1px solid rgba(234, 223, 210, 0.86);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.96), rgba(255, 247, 237, 0.88)),
    #fffdf9;
  box-shadow: var(--shadow-soft);
}

.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.panel-head h2,
.mini-head h2 {
  margin: 0;
}

.panel-head p,
.mini-head span {
  margin: 6px 0 0;
  color: var(--muted);
}

.panel-tip {
  color: var(--deep-2);
  background: rgba(232, 245, 242, 0.9);
}

.orders-toolbar-note {
  margin: 2px 0 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.quick-status-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-status-chips button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #eadccf;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--deep-2);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-weight: 800;
}

.quick-status-chips .status-chip {
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.quick-status-chips .status-chip:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.quick-status-chips button strong {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  padding: 0 6px;
  color: var(--accent);
  background: #fff2e6;
  font-size: 12px;
}

.quick-status-chips button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--deep), var(--green));
}

.quick-status-chips button.active strong {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.dashboard-side {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.insight-panel {
  padding: 18px;
  border: 1px solid rgba(234, 223, 210, 0.86);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 244, 0.92)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.mini-head {
  margin-bottom: 14px;
}

.summary-stack {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 48px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(234, 223, 210, 0.46);
}

.summary-row.compact {
  grid-template-columns: minmax(0, 1fr) auto;
}

.summary-row strong,
.summary-row em {
  font-style: normal;
  font-weight: 850;
  color: var(--deep-2);
}

.summary-row span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.summary-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #f3e8db;
}

.summary-meter span {
  display: block;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.order-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(234, 223, 210, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(180deg, #fffdf9, #fffaf4);
  overflow: hidden;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.order-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.order-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.order-card.status-preparing::before {
  background: #f59e0b;
}

.order-card.status-delivery::before {
  background: #2563eb;
}

.order-card.status-done::before {
  background: #16a34a;
}

.order-card.status-cancelled::before {
  background: #9ca3af;
}

.order-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 16px;
}

.order-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-topline .category {
  margin: 0;
}

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

.order-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: #fff3e4;
  font-size: 13px;
  font-weight: 750;
}

.order-side strong {
  font-size: 21px;
}

.order-side {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  align-content: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.order-side select {
  min-height: 40px;
  font-weight: 750;
}

.print-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 10px;
  padding: 0 12px;
  color: var(--deep-2);
  background: #fff1df;
  font-weight: 850;
}

.order-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.order-items span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #e8f5f2;
  padding: 7px 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.order-items span small {
  color: var(--deep-2);
  font-size: 12px;
}

.member-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green) !important;
  background: #e8f5f2;
  font-weight: 800;
}

.note {
  color: var(--warn) !important;
}

.delivery-line {
  margin: 6px 0 !important;
  color: var(--deep-2) !important;
  font-weight: 850;
}

@media (max-width: 1120px) {
  .dashboard-hero,
  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .dashboard {
    width: min(100%, calc(100% - 20px));
    margin: 18px auto 34px;
  }

  .dashboard-head,
  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

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

  .member-card-stats,
  .dashboard-tools,
  .members-grid {
    grid-template-columns: 1fr;
  }

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 45, 42, 0.58);
  backdrop-filter: blur(8px);
}

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

.promo-modal,
.member-modal {
  position: relative;
  width: min(440px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 26px;
  background: #fffaf4;
  box-shadow: 0 26px 70px rgba(13, 45, 42, 0.28);
}

.promo-modal {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 45, 42, 0.98), rgba(232, 93, 39, 0.94)),
    var(--deep);
}

.promo-modal::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 210, 138, 0.2);
  border-radius: 7px;
  pointer-events: none;
}

.promo-modal .eyebrow {
  color: #ffd28a;
}

.promo-modal h2,
.member-modal h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.12;
}

.promo-modal p {
  line-height: 1.6;
}

.promo-modal button:not(.modal-close) {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  color: var(--deep-2);
  background: #ffd28a;
  cursor: pointer;
  font-weight: 900;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 255, 255, 0.18);
  font-size: 24px;
  line-height: 1;
}

.member-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
  border-radius: 16px;
  padding: 6px;
  background: #fff1df;
}

.member-tabs button {
  min-height: 38px;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
}

.member-tabs button.active {
  color: #fff;
  background: var(--deep);
}

.member-dashboard {
  width: min(1080px, calc(100% - 32px));
  margin: 30px auto 42px;
}

body.member-page {
  color: #222;
  background:
    radial-gradient(circle at top left, rgba(79, 122, 69, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #faf8f2 100%);
}

.member-page .topbar {
  min-height: 78px;
  color: #222;
  background: rgba(250, 248, 242, 0.92);
  border-bottom: 1px solid rgba(34, 34, 34, 0.06);
  box-shadow: 0 18px 36px rgba(35, 69, 44, 0.06);
  backdrop-filter: blur(18px);
}

.member-page nav {
  gap: 10px;
}

.member-page nav a,
.member-page .nav-button {
  color: rgba(34, 34, 34, 0.72);
}

.member-page nav a:hover,
.member-page .nav-button:hover,
.member-page nav a[aria-current="page"] {
  color: var(--deep-2);
  background: rgba(79, 122, 69, 0.08);
}

.member-page .member-dashboard {
  width: min(1240px, calc(100% - 40px));
  display: grid;
  gap: 22px;
  margin: 28px auto 42px;
}

.member-page .member-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 20px;
  padding: 32px;
  color: var(--ink);
  border: 1px solid rgba(34, 34, 34, 0.06);
  background:
    radial-gradient(circle at top right, rgba(79, 122, 69, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 242, 0.96));
  box-shadow: 0 18px 40px rgba(35, 69, 44, 0.08);
}

.member-page .eyebrow {
  color: var(--green);
  letter-spacing: 0.12em;
}

.member-page .member-hero h1 {
  color: var(--deep-2);
  font-family: "Noto Sans TC", "Segoe UI", Arial, sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.member-page .member-hero > div > span {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.75;
}

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

.member-page .member-summary > div {
  gap: 10px;
  min-height: 128px;
  border: 1px solid rgba(34, 34, 34, 0.06);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(35, 69, 44, 0.05);
}

.member-page .member-summary span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.member-page .member-summary strong {
  color: var(--deep-2);
  font-size: 28px;
}

.member-page .orders-panel,
.member-page .insight-panel {
  border: 1px solid rgba(34, 34, 34, 0.06);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 242, 0.94));
  box-shadow: 0 16px 34px rgba(35, 69, 44, 0.06);
}

.member-page .orders-panel {
  padding: 26px;
}

.member-page .insight-panel {
  padding: 22px;
}

.member-page .panel-head h2,
.member-page .mini-head h2 {
  color: var(--deep-2);
}

.member-page .panel-head p,
.member-page .mini-head span,
.member-page .message,
.member-page .empty-panel,
.member-page .summary-row span,
.member-page .order-meta span,
.member-page .order-card p {
  color: var(--muted);
}

.member-page #memberRefreshBtn,
.member-page .membership-card button,
.member-page .reward-row button,
.member-page .referral-row button,
.member-page .print-link,
.member-page button[type="submit"] {
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
  box-shadow: 0 14px 28px rgba(23, 51, 45, 0.14);
}

.member-page .ghost-link {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(35, 69, 44, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.member-page .member-benefits {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.member-page .summary-row {
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(34, 34, 34, 0.05);
}

.member-page .membership-card.is-current {
  background: linear-gradient(180deg, #edf7f0, #fffdf9);
  box-shadow: inset 0 0 0 1px rgba(47, 123, 100, 0.14);
}

.member-page .empty-panel {
  border-style: solid;
  border-color: rgba(35, 69, 44, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.member-page .order-card {
  border-radius: 24px;
  border: 1px solid rgba(34, 34, 34, 0.05);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 248, 242, 0.96));
  box-shadow: 0 12px 28px rgba(35, 69, 44, 0.05);
}

.member-page .order-side {
  border-radius: 20px;
  background: rgba(250, 248, 242, 0.96);
}

.member-page .order-items span {
  background: #eef5ed;
  color: var(--green);
}

.member-page .status-badge {
  background: linear-gradient(135deg, var(--deep), var(--green));
}

.member-page .member-modal {
  border: 1px solid rgba(34, 34, 34, 0.06);
  background: linear-gradient(180deg, #ffffff, #faf8f2);
}

.member-page .site-footer {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(34, 34, 34, 0.08);
  padding-top: 20px;
}

.member-footer-brand {
  display: grid;
  gap: 4px;
}

.member-footer-brand strong {
  color: var(--deep-2);
}

.member-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.member-footer-nav a {
  min-height: 36px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
}

.member-footer-nav a:hover {
  color: var(--deep-2);
  background: rgba(79, 122, 69, 0.08);
}

.member-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15, 39, 34, 0.96), rgba(47, 123, 100, 0.82)),
    var(--deep);
  box-shadow: var(--shadow);
}

.member-hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.08;
}

.member-hero > div > span {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.member-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-summary:empty {
  display: none;
}

.member-summary > div {
  display: grid;
  align-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.member-summary span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.member-summary strong {
  font-size: 24px;
}

.status-badge {
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: var(--deep);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.status-badge.status-preparing {
  background: #f59e0b;
}

.status-badge.status-delivery {
  background: #2563eb;
}

.status-badge.status-done {
  background: #16a34a;
}

.status-badge.status-cancelled {
  background: #9ca3af;
}

.print-link {
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.receipt-shell {
  width: min(820px, calc(100% - 32px));
  margin: 28px auto;
}

.receipt-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.receipt-actions button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  font-weight: 900;
}

.receipt {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.receipt-head,
.receipt-total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.receipt-head {
  border-bottom: 2px solid var(--deep);
  padding-bottom: 18px;
}

.receipt-head p,
.receipt-head h1 {
  margin: 0;
}

.receipt-head p {
  color: var(--accent);
  font-weight: 900;
}

.receipt-head h1 {
  font-size: 34px;
}

.receipt-shop {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
  font-weight: 750;
}

.receipt-head > strong {
  color: var(--deep);
  font-size: 28px;
}

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

.receipt-meta div,
.receipt-address {
  border-radius: 8px;
  padding: 12px;
  background: #fff7ed;
}

.receipt-meta span,
.receipt-address span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.receipt-meta strong,
.receipt-address strong {
  display: block;
  margin-top: 4px;
}

.receipt-address p {
  margin: 8px 0 0;
  color: var(--warn);
  font-weight: 800;
}

.receipt-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
}

.receipt-table th,
.receipt-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
}

.receipt-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.receipt-total {
  align-items: center;
  margin-top: 18px;
  border-radius: 18px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--deep), var(--green));
}

.receipt-total span {
  font-weight: 900;
}

.receipt-total strong {
  font-size: 30px;
}

.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.site-footer-note {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

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

  .order-pane {
    position: static;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

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

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

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

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding: 14px 18px;
  }

  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  nav a,
  .nav-button {
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
  }

  .layout,
  .dashboard {
    width: min(100% - 24px, 1200px);
    margin-top: 18px;
  }

  .brand-logo-rt {
    height: 48px;
  }

  .site-footer {
    width: min(100% - 24px, 1200px);
    margin-bottom: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-visual {
    display: none;
  }

  .section-title h1 {
    font-size: 34px;
  }

  .menu-card {
    flex-direction: column;
    align-items: stretch;
  }

  .food-image {
    width: 100%;
    height: 150px;
    flex-basis: auto;
  }

  .item-actions,
  .order-side {
    justify-items: stretch;
  }

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

  .dashboard-head {
    display: grid;
    align-items: stretch;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-actions,
  .dashboard-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .summary-row,
  .summary-row.compact {
    grid-template-columns: 1fr;
  }

  .ghost-link {
    justify-content: center;
  }

  .ad-banner,
  .member-status {
    align-items: stretch;
    flex-direction: column;
  }

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

  .member-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

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

  .member-page .topbar {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 72px;
    padding: 12px 16px;
  }

  .member-page nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .member-page nav::-webkit-scrollbar {
    display: none;
  }

  .member-page nav a {
    white-space: nowrap;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }

  .member-page .member-dashboard,
  .member-page .site-footer {
    width: min(100% - 24px, 1240px);
  }

  .member-page .member-hero,
  .member-page .orders-panel,
  .member-page .insight-panel {
    padding: 20px;
  }

  .member-page .member-summary,
  .member-page .member-benefits {
    grid-template-columns: 1fr;
  }

  .member-page .site-footer {
    flex-direction: column;
    align-items: stretch;
    padding-top: 18px;
  }

  .member-footer-nav {
    justify-content: flex-start;
  }
}

.product-tools {
  display: grid;
  gap: 12px;
}

.product-tool-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-import-box {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.product-import-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(36, 54, 38, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.product-tools .message {
  margin: 0;
}

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

  .receipt-actions {
    display: none;
  }

  .receipt-shell {
    width: 100%;
    margin: 0;
  }

  .receipt {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
