:root {
  color-scheme: dark;
  --red: #e50923;
  --deep-red: #8a0014;
  --ink: #111217;
  --paper: #f7f8fb;
  --muted: #737782;
  --line: rgba(229, 9, 35, 0.16);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 4%, rgba(229, 9, 35, 0.35), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
    #070609;
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(20, 22, 28, 0.1);
  border-radius: 12px;
  background: #f2f3f7;
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 0 12px;
}

input:focus {
  border-color: rgba(229, 9, 35, 0.5);
  box-shadow: 0 0 0 3px rgba(229, 9, 35, 0.08);
}

.phone-preview {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 18px;
}

.mobile-app {
  position: relative;
  width: min(100%, 430px);
  min-height: min(900px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: #f4f5f8;
  box-shadow: var(--shadow);
}

.mobile-app::-webkit-scrollbar {
  width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
  background: linear-gradient(180deg, rgba(244, 245, 248, 0.96), rgba(244, 245, 248, 0.78));
  backdrop-filter: blur(12px);
}

.location-button,
.table-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.location-button {
  min-width: 0;
  flex: 1 1 auto;
  gap: 8px;
  padding: 0;
  max-width: 260px;
}

.location-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(229, 9, 35, 0.12);
}

.table-pill {
  flex: 0 0 auto;
  border: 1px solid rgba(229, 9, 35, 0.18);
  padding: 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.table-pill strong {
  margin-left: 5px;
  color: var(--red);
}

.tab-page {
  display: none;
  padding: 0 14px 92px;
}

.tab-page.active {
  display: block;
}

.hero-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #210006, #09090d 58%, #41000a);
  color: white;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-copy span {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 8px 0 8px;
  color: white;
  font-size: 42px;
  line-height: 1;
}

.hero-copy p {
  max-width: 230px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.game-card,
.points-card,
.content-card,
.reserve-card,
.profile-card {
  margin-top: 14px;
  border: 1px solid rgba(20, 22, 28, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(10, 10, 14, 0.08);
}

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
}

.section-kicker,
.page-title span,
.points-card span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
p {
  margin: 0;
}

h2 {
  margin-top: 7px;
  font-size: 19px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

.red-button {
  min-height: 40px;
  border-radius: 10px;
  padding: 0 14px;
  background: linear-gradient(135deg, #fa1831, #a70018);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(229, 9, 35, 0.24);
}

.points-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 20px;
}

.points-card.tall {
  display: block;
  min-height: 150px;
  background:
    linear-gradient(120deg, rgba(229, 9, 35, 0.08), transparent 58%),
    white;
}

.points-card strong {
  display: block;
  margin: 8px 0;
  font-size: 45px;
  line-height: 1;
}

.points-card em {
  color: var(--red);
  font-size: 16px;
  font-style: normal;
}

.speed-ring {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 8px solid rgba(229, 9, 35, 0.16);
  border-top-color: var(--red);
  border-radius: 99px;
  background: linear-gradient(145deg, #fff, #eceef3);
}

.speed-ring span {
  color: var(--deep-red);
  font-size: 24px;
  font-weight: 900;
}

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

.quick-grid button {
  display: grid;
  min-height: 82px;
  place-items: center;
  border-radius: 16px;
  background: white;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(10, 10, 14, 0.07);
}

.quick-grid span {
  font-size: 26px;
}

.invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 132px;
  margin-top: 14px;
  border-radius: 18px;
  padding: 20px;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.76), rgba(55, 0, 10, 0.78)),
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  color: white;
}

.invite-banner p {
  color: rgba(255, 255, 255, 0.75);
}

.content-card,
.reserve-card,
.profile-card {
  padding: 16px;
}

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

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.member-bind-card .red-button {
  width: 100%;
}

.home-bind-form .red-button {
  width: 100%;
}

.wechat-login-box {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.wechat-login-box p {
  font-size: 12px;
}

.wechat-login-button {
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #19c15f, #07883d);
  color: white;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(7, 136, 61, 0.18);
}

.compact-bind-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.compact-bind-form .field {
  margin-bottom: 0;
}

.compact-bind-form .red-button {
  min-width: 118px;
}

.home-member-summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.home-member-summary .avatar {
  width: 54px;
  font-size: 24px;
}

.home-member-summary strong,
.home-member-summary p {
  display: block;
  overflow-wrap: anywhere;
}

.home-member-points {
  min-width: 96px;
  border-radius: 14px;
  padding: 9px 10px;
  background: rgba(229, 9, 35, 0.08);
  text-align: right;
}

.home-member-points span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.home-member-points strong {
  display: block;
  color: var(--red);
  font-size: 24px;
  line-height: 1;
}

.home-order-card {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(20, 22, 28, 0.06);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(10, 10, 14, 0.08);
}

.home-order-card .card-heading {
  margin-bottom: 4px;
}

.home-order-card .card-heading h2 {
  margin-top: 4px;
}

.home-menu-feed {
  max-height: 370px;
  overflow-y: auto;
  padding-right: 2px;
}

.home-menu-feed::-webkit-scrollbar {
  width: 0;
}

.home-cart-drawer {
  bottom: 70px;
  margin-top: 12px;
}

#logoutMemberButton {
  background: transparent;
  color: var(--muted);
}

.card-heading button {
  background: transparent;
  color: var(--muted);
}

.activity-row,
.exchange-row,
.profile-line {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(20, 22, 28, 0.06);
}

.activity-row:first-of-type {
  border-top: 0;
}

.activity-icon {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(145deg, #ffeced, #ffb7c0);
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.activity-icon.dark {
  background: linear-gradient(145deg, #272832, #08090d);
  color: white;
}

.status-hot {
  color: var(--red);
  font-weight: 900;
}

.page-title {
  padding: 14px 4px 8px;
}

.page-title h1 {
  margin-top: 4px;
  font-size: 28px;
}

.category-bar {
  position: sticky;
  top: 62px;
  z-index: 8;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  background: linear-gradient(180deg, #f4f5f8 70%, rgba(244, 245, 248, 0));
}

.category-bar::-webkit-scrollbar {
  height: 0;
}

.category-bar button {
  flex: 0 0 auto;
  min-height: 34px;
  border-radius: 99px;
  padding: 0 14px;
  background: white;
  color: var(--muted);
  box-shadow: 0 8px 20px rgba(10, 10, 14, 0.06);
}

.category-bar button.active {
  background: var(--red);
  color: white;
}

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

.food-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 12px;
  background: white;
  box-shadow: 0 12px 30px rgba(10, 10, 14, 0.08);
}

.food-thumb {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 60% 30%, rgba(255, 255, 255, 0.88), transparent 22%),
    linear-gradient(145deg, #ffccd1, #e50923 55%, #1d0509);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

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

.food-card h2 {
  margin: 0 0 5px;
  font-size: 17px;
}

.food-card strong {
  color: var(--red);
  font-size: 18px;
}

.add-button {
  display: grid;
  width: 34px;
  min-height: 34px;
  place-items: center;
  border-radius: 99px;
  background: var(--red);
  color: white;
  font-size: 24px;
  line-height: 1;
}

.cart-drawer {
  position: sticky;
  right: 14px;
  bottom: calc(92px + env(safe-area-inset-bottom));
  left: 14px;
  z-index: 28;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  max-height: min(230px, 34vh);
  margin: 0 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  padding: 14px;
  background: rgba(20, 22, 28, 0.94);
  color: white;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.cart-drawer.is-empty {
  display: none;
}

.tab-page.has-floating-cart {
  padding-bottom: 300px;
}

.cart-drawer p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.customer-cart-items {
  display: grid;
  gap: 5px;
  max-height: 112px;
  margin: 6px 0;
  overflow-y: auto;
}

.customer-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}

.customer-cart-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-cart-row > div {
  display: grid;
  grid-template-columns: 24px 24px 24px;
  align-items: center;
  text-align: center;
}

.customer-cart-row button {
  display: grid;
  min-height: 24px;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.profile-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.avatar {
  display: grid;
  place-items: center;
  width: 64px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #262832, #e50923);
  color: white;
  font-size: 30px;
  font-weight: 900;
}

.level-progress {
  height: 9px;
  overflow: hidden;
  margin-top: 9px;
  border-radius: 99px;
  background: #e1e3e9;
}

.level-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #ff7b8a);
}

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

.rules-grid span {
  border-radius: 12px;
  padding: 10px;
  background: #f0f1f5;
  color: #2a2d35;
  font-size: 13px;
}

.exchange-row,
.profile-line {
  grid-template-columns: minmax(0, 1fr) auto;
}

.exchange-row strong,
.profile-line strong {
  color: var(--red);
}

.reserve-card h2 {
  margin: 8px 0;
}

.reserve-card button {
  width: 100%;
  margin-top: 14px;
}

.note-text {
  color: #4f535d;
}

.member-log-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(20, 22, 28, 0.06);
}

.member-log-row:first-of-type {
  border-top: 0;
}

.member-log-row strong,
.member-log-row small {
  display: block;
}

.member-log-row small {
  margin-top: 4px;
  color: var(--muted);
}

.member-log-delta {
  min-width: 72px;
  padding-right: 4px;
  color: var(--red);
  font-weight: 900;
  text-align: right;
}

.bottom-tabs {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px 12px 12px;
  border-top: 1px solid rgba(20, 22, 28, 0.06);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.bottom-tabs button {
  min-height: 42px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.bottom-tabs button.active {
  background: rgba(229, 9, 35, 0.1);
  color: var(--red);
}

.customer-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 30;
  width: min(360px, calc(100vw - 40px));
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(17, 18, 23, 0.94);
  color: white;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.customer-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 520px) {
  .phone-preview {
    display: block;
    min-height: 100vh;
    padding: 0;
  }

  .mobile-app {
    width: 100%;
    min-height: 100vh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .topbar {
    padding-inline: 14px;
  }

  .location-button {
    max-width: calc(100% - 92px);
  }

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

  .game-card .red-button {
    width: 100%;
  }

  .points-card {
    grid-template-columns: minmax(0, 1fr) 78px;
    padding: 16px;
  }

  .points-card strong {
    font-size: 36px;
  }

  .speed-ring span {
    font-size: 19px;
  }

  .quick-grid {
    gap: 7px;
  }

  .quick-grid button {
    min-width: 0;
    min-height: 76px;
    padding: 6px 2px;
    font-size: 12px;
  }

  .food-card {
    grid-template-columns: 68px minmax(0, 1fr) 34px;
    gap: 10px;
  }

  .food-thumb {
    width: 68px;
  }
}

/* 2026 immersive member-club refresh */
:root {
  --red: #cf2439;
  --red-bright: #ef3f52;
  --deep-red: #7d111f;
  --gold: #dfa94d;
  --gold-light: #f0c875;
  --teal: #52d8d1;
  --ink: #f7f1e8;
  --paper: #151316;
  --surface: #191619;
  --surface-strong: #211b1e;
  --muted: #9e9590;
  --line: rgba(223, 169, 77, 0.17);
  --shadow: 0 22px 64px rgba(0, 0, 0, 0.42);
}

html {
  background: #070607;
}

body {
  background:
    linear-gradient(90deg, rgba(223, 169, 77, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(223, 169, 77, 0.02) 1px, transparent 1px),
    linear-gradient(135deg, rgba(125, 17, 31, 0.22), transparent 36%),
    linear-gradient(315deg, rgba(22, 93, 96, 0.1), transparent 32%),
    #070607;
  background-size: 74px 74px, 74px 74px, auto, auto, auto;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

button,
input {
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    color 170ms ease,
    box-shadow 170ms ease;
}

button:active {
  transform: scale(0.97);
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(82, 216, 209, 0.72);
  outline-offset: 2px;
}

input {
  border: 1px solid rgba(223, 169, 77, 0.15);
  border-radius: 8px;
  background: rgba(6, 6, 7, 0.62);
  color: #fff9ef;
}

input::placeholder {
  color: #746d69;
}

input:focus {
  border-color: rgba(82, 216, 209, 0.65);
  box-shadow: 0 0 0 3px rgba(82, 216, 209, 0.08);
}

.phone-preview {
  padding: 24px;
}

.mobile-app {
  scrollbar-color: rgba(223, 169, 77, 0.2) transparent;
  border: 1px solid rgba(223, 169, 77, 0.24);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(165, 31, 43, 0.055), transparent 260px),
    #100e10;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(255, 255, 255, 0.018),
    0 0 50px rgba(165, 31, 43, 0.1);
}

.mobile-app::-webkit-scrollbar {
  width: 4px;
}

.mobile-app::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(223, 169, 77, 0.18);
}

.topbar {
  padding: 15px 17px 13px;
  border-bottom: 1px solid rgba(223, 169, 77, 0.1);
  background:
    linear-gradient(90deg, rgba(165, 31, 43, 0.06), transparent),
    rgba(14, 12, 14, 0.86);
  backdrop-filter: blur(22px) saturate(1.2);
}

.location-button {
  gap: 10px;
  color: var(--ink);
}

.location-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: left;
}

.location-copy small {
  color: #8f7761;
  font-size: 8px;
  font-weight: 900;
}

.location-copy strong {
  color: #fff7eb;
  font-size: 14px;
}

.pin-dot {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background:
    url("/higr-emblem.svg") center / 110% no-repeat,
    #090809;
  box-shadow:
    0 0 0 1px rgba(223, 169, 77, 0.4),
    0 0 20px rgba(165, 31, 43, 0.22);
}

.table-pill {
  min-height: 36px;
  border: 1px solid rgba(223, 169, 77, 0.25);
  border-radius: 6px;
  background: rgba(223, 169, 77, 0.055);
  color: #8f857e;
  font-size: 11px;
}

.table-pill strong {
  color: var(--gold-light);
  font-size: 13px;
}

.tab-page {
  padding: 12px 14px 100px;
}

.tab-page.active {
  animation: pageEnter 340ms cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.hero-card {
  min-height: 250px;
  border: 1px solid rgba(223, 169, 77, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(44, 6, 13, 0.9), rgba(7, 7, 10, 0.92) 56%, rgba(20, 66, 72, 0.68)),
    #0c090c;
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.38),
    inset 0 0 70px rgba(165, 31, 43, 0.08);
}

.hero-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(120deg, transparent 52%, rgba(223, 169, 77, 0.08) 52.2%, transparent 52.5%);
  background-size: 42px 42px, 42px 42px, auto;
}

.hero-card::after {
  position: absolute;
  right: -20px;
  bottom: -22px;
  z-index: 1;
  width: 210px;
  height: 210px;
  content: "";
  opacity: 0.14;
  background: url("/higr-emblem.svg") center / contain no-repeat;
  filter: saturate(0.9);
  transform: rotate(-12deg);
}

#heroCanvas {
  z-index: 0;
  opacity: 0.82;
}

.hero-copy {
  z-index: 2;
  min-height: 250px;
  padding: 28px 26px;
}

.hero-copy::before {
  width: 42px;
  height: 2px;
  margin-bottom: 18px;
  content: "";
  background: linear-gradient(90deg, var(--red-bright), var(--gold));
  box-shadow: 0 0 18px rgba(223, 169, 77, 0.2);
}

.hero-copy span {
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
}

.hero-copy h1 {
  max-width: 290px;
  margin: 9px 0 12px;
  font-size: 43px;
  font-weight: 780;
  line-height: 1.02;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
}

.hero-copy p {
  max-width: 245px;
  color: rgba(245, 235, 226, 0.68);
  font-size: 13px;
}

.game-card,
.points-card,
.content-card,
.reserve-card,
.profile-card,
.food-card {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(223, 169, 77, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.024), transparent 46%),
    rgba(25, 22, 25, 0.94);
  box-shadow:
    0 15px 36px rgba(0, 0, 0, 0.25),
    inset 0 1px rgba(255, 255, 255, 0.018);
}

.game-card::before,
.points-card::before,
.content-card::before,
.reserve-card::before,
.profile-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 58px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--gold));
  opacity: 0.75;
}

.game-card {
  padding: 18px;
  background:
    linear-gradient(110deg, rgba(165, 31, 43, 0.16), transparent 48%),
    rgba(25, 22, 25, 0.96);
}

.section-kicker,
.page-title span,
.points-card span {
  color: var(--gold-light);
  font-size: 11px;
}

h1,
h2,
.activity-row strong,
.profile-card strong {
  color: #fff8ef;
}

h2 {
  font-size: 18px;
}

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

.red-button {
  min-height: 42px;
  border: 1px solid rgba(235, 83, 99, 0.62);
  border-radius: 6px;
  background:
    linear-gradient(135deg, #d63045, #861422 74%),
    var(--deep-red);
  color: #fffaf2;
  box-shadow:
    0 12px 24px rgba(125, 17, 31, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.1);
}

.red-button:hover {
  border-color: rgba(255, 130, 141, 0.72);
  background: linear-gradient(135deg, #ea4053, #a31d2d 74%);
  box-shadow: 0 14px 30px rgba(125, 17, 31, 0.42), 0 0 20px rgba(207, 36, 57, 0.1);
}

.home-member-card {
  background:
    linear-gradient(120deg, rgba(82, 216, 209, 0.055), transparent 48%),
    rgba(24, 22, 25, 0.96);
}

.wechat-login-box {
  padding: 10px;
  border: 1px solid rgba(82, 216, 209, 0.14);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(82, 216, 209, 0.08), transparent 56%),
    rgba(7, 10, 12, 0.42);
}

.wechat-login-button {
  border: 1px solid rgba(82, 216, 209, 0.42);
  border-radius: 6px;
  background:
    linear-gradient(135deg, #20b566, #086a44),
    #0a4b34;
  color: #f6fff9;
  box-shadow:
    0 12px 24px rgba(7, 85, 53, 0.24),
    0 0 18px rgba(82, 216, 209, 0.08);
}

.compact-bind-form {
  border-top: 1px solid rgba(223, 169, 77, 0.1);
  padding-top: 12px;
}

.card-heading {
  margin-bottom: 12px;
}

.card-heading button,
#logoutMemberButton {
  color: #b8a177;
  font-size: 12px;
}

.note-text {
  color: #9d948e;
}

.points-card {
  grid-template-columns: minmax(0, 1fr) 94px;
  min-height: 154px;
  padding: 20px;
  background:
    linear-gradient(118deg, rgba(151, 24, 40, 0.28), transparent 54%),
    linear-gradient(300deg, rgba(82, 216, 209, 0.09), transparent 44%),
    #1c171a;
}

.home-order-card {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(223, 169, 77, 0.16);
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(128deg, rgba(165, 31, 43, 0.14), transparent 38%),
    linear-gradient(310deg, rgba(82, 216, 209, 0.065), transparent 46%),
    rgba(20, 18, 21, 0.96);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.3),
    inset 0 1px rgba(255, 255, 255, 0.018);
}

.home-order-card::before {
  position: absolute;
  inset: 0 auto auto 0;
  width: 74px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
}

.home-order-card .card-heading {
  position: relative;
  z-index: 1;
}

.home-order-card .card-heading button {
  color: #d4b46f;
}

.home-order-card .category-bar {
  position: relative;
  top: auto;
  z-index: 1;
  margin-inline: -2px;
  background: transparent;
}

.home-menu-feed {
  position: relative;
  z-index: 1;
  max-height: 382px;
  overflow-y: auto;
  padding-right: 2px;
}

.home-menu-feed .food-card {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.points-card::after {
  position: absolute;
  right: 95px;
  bottom: -54px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(223, 169, 77, 0.08);
  content: "";
  transform: rotate(45deg);
}

.points-card strong {
  position: relative;
  z-index: 1;
  margin: 10px 0;
  background: linear-gradient(180deg, #fff9e8, #e8b95f);
  background-clip: text;
  color: transparent;
  font-size: 43px;
}

.points-card em {
  color: var(--teal);
  font-size: 13px;
}

.speed-ring {
  position: relative;
  z-index: 1;
  border: 6px solid rgba(223, 169, 77, 0.14);
  border-top-color: var(--gold);
  border-right-color: var(--red-bright);
  background:
    radial-gradient(circle, rgba(165, 31, 43, 0.2), transparent 62%),
    #100e10;
  box-shadow: 0 0 24px rgba(223, 169, 77, 0.08);
}

.speed-ring span {
  color: var(--gold-light);
  font-size: 20px;
}

.quick-grid {
  gap: 8px;
  margin-top: 12px;
}

.quick-grid button {
  min-height: 82px;
  border: 1px solid rgba(223, 169, 77, 0.11);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent),
    #181518;
  color: #d8cec4;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.quick-grid button:hover {
  border-color: rgba(223, 169, 77, 0.3);
  background:
    linear-gradient(145deg, rgba(165, 31, 43, 0.12), rgba(223, 169, 77, 0.04)),
    #1b171a;
  color: #fff7ec;
  transform: translateY(-3px);
}

.quick-grid span {
  filter: saturate(0.72);
  font-size: 24px;
}

.invite-banner {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid rgba(223, 169, 77, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(105deg, rgba(9, 8, 10, 0.96), rgba(82, 12, 24, 0.82)),
    #140c0f;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.27);
}

.invite-banner::after {
  position: absolute;
  top: -45px;
  right: 82px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(223, 169, 77, 0.12);
  content: "";
  transform: rotate(45deg);
}

.invite-banner > * {
  position: relative;
  z-index: 1;
}

.activity-row,
.exchange-row,
.profile-line {
  border-top-color: rgba(223, 169, 77, 0.1);
}

.activity-row > span:not(.status-hot) {
  color: #a89d95;
}

.activity-icon {
  border: 1px solid rgba(239, 63, 82, 0.24);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(239, 63, 82, 0.19), rgba(223, 169, 77, 0.06)),
    #211518;
  color: #f17884;
}

.activity-icon.dark {
  border-color: rgba(82, 216, 209, 0.18);
  background:
    linear-gradient(145deg, rgba(82, 216, 209, 0.11), transparent),
    #111417;
  color: var(--teal);
}

.status-hot {
  color: #f06473;
}

.page-title {
  position: relative;
  margin-bottom: 8px;
  padding: 16px 4px 14px 16px;
  border-bottom: 1px solid rgba(223, 169, 77, 0.11);
}

.page-title::before {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 64px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.page-title h1 {
  color: #fff7ec;
  font-size: 29px;
}

.category-bar {
  top: 61px;
  padding: 10px 0 13px;
  background: linear-gradient(180deg, #100e10 76%, rgba(16, 14, 16, 0));
}

.category-bar button {
  min-height: 34px;
  border: 1px solid rgba(223, 169, 77, 0.12);
  border-radius: 6px;
  background: #191619;
  color: #938a84;
  box-shadow: none;
}

.category-bar button.active {
  border-color: rgba(239, 63, 82, 0.58);
  background: linear-gradient(135deg, #b91f33, #74111d);
  color: #fff8ef;
  box-shadow: 0 8px 20px rgba(125, 17, 31, 0.26);
}

.food-card {
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 13px;
  margin-top: 0;
  padding: 11px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.food-card:hover {
  border-color: rgba(223, 169, 77, 0.27);
  background:
    linear-gradient(110deg, rgba(165, 31, 43, 0.09), transparent 48%),
    #1d191c;
  transform: translateY(-2px);
}

.food-thumb {
  width: 78px;
  border: 1px solid rgba(223, 169, 77, 0.13);
  border-radius: 7px;
  background:
    linear-gradient(145deg, rgba(165, 31, 43, 0.48), rgba(223, 169, 77, 0.13)),
    #1a1114;
}

.food-thumb img {
  transition: transform 260ms ease, filter 260ms ease;
}

.food-card:hover .food-thumb img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.04);
}

.food-card h2 {
  color: #f7eee5;
}

.food-card strong {
  color: var(--gold-light);
}

.add-button {
  width: 36px;
  min-height: 36px;
  border: 1px solid rgba(239, 63, 82, 0.54);
  border-radius: 50%;
  background: linear-gradient(135deg, #d82e43, #831320);
  box-shadow: 0 8px 18px rgba(125, 17, 31, 0.28);
}

.cart-drawer {
  bottom: calc(78px + env(safe-area-inset-bottom));
  border: 1px solid rgba(223, 169, 77, 0.25);
  border-radius: 8px;
  background:
    linear-gradient(110deg, rgba(165, 31, 43, 0.12), transparent 48%),
    rgba(14, 12, 14, 0.96);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.customer-cart-row button {
  border: 1px solid rgba(223, 169, 77, 0.12);
  border-radius: 4px;
  background: rgba(223, 169, 77, 0.07);
}

.profile-card {
  background:
    linear-gradient(110deg, rgba(82, 216, 209, 0.06), transparent 50%),
    rgba(25, 22, 25, 0.96);
}

.avatar {
  border: 1px solid rgba(223, 169, 77, 0.35);
  background:
    linear-gradient(145deg, rgba(223, 169, 77, 0.2), rgba(165, 31, 43, 0.46)),
    #151013;
  color: #f8ce7d;
  box-shadow: 0 0 24px rgba(165, 31, 43, 0.15);
}

.level-progress {
  background: rgba(255, 255, 255, 0.07);
}

.level-progress span {
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  box-shadow: 0 0 14px rgba(82, 216, 209, 0.16);
}

.rules-grid span {
  border: 1px solid rgba(223, 169, 77, 0.1);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(165, 31, 43, 0.06), transparent),
    rgba(8, 8, 9, 0.54);
  color: #c9c0b8;
}

.exchange-row strong,
.profile-line strong {
  color: var(--gold-light);
}

.member-log-row {
  border-top-color: rgba(223, 169, 77, 0.1);
}

.member-log-row small {
  color: var(--muted);
}

.member-log-delta {
  color: var(--gold-light);
}

.bottom-tabs {
  gap: 2px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(223, 169, 77, 0.14);
  background: rgba(14, 12, 14, 0.94);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px) saturate(1.2);
}

.bottom-tabs button {
  position: relative;
  display: grid;
  min-height: 52px;
  place-items: center;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #7f7772;
  font-size: 11px;
}

.bottom-tabs button::before {
  display: block;
  color: #8e847d;
  content: "◆";
  font-size: 11px;
}

.bottom-tabs button[data-tab-target="homePage"]::before {
  content: "⌂";
  font-size: 17px;
}

.bottom-tabs button[data-tab-target="pointsPage"]::before {
  content: "◇";
  font-size: 16px;
}

.bottom-tabs button[data-tab-target="orderPage"]::before {
  content: "+";
  font-size: 19px;
  font-weight: 400;
}

.bottom-tabs button[data-tab-target="reservePage"]::before {
  content: "□";
  font-size: 15px;
}

.bottom-tabs button[data-tab-target="profilePage"]::before {
  content: "●";
  font-size: 11px;
}

.bottom-tabs button.active {
  border-color: rgba(223, 169, 77, 0.16);
  background:
    linear-gradient(135deg, rgba(165, 31, 43, 0.18), rgba(223, 169, 77, 0.04)),
    rgba(255, 255, 255, 0.015);
  color: #f0c978;
}

.bottom-tabs button.active::before {
  color: #f0c978;
  filter: drop-shadow(0 0 8px rgba(223, 169, 77, 0.28));
}

.customer-toast {
  border: 1px solid rgba(82, 216, 209, 0.34);
  border-radius: 7px;
  background: rgba(10, 18, 20, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.52), 0 0 24px rgba(82, 216, 209, 0.08);
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  body {
    background: #100e10;
  }

  .phone-preview {
    padding: 0;
  }

  .mobile-app {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar {
    padding-inline: 14px;
  }

  .hero-card {
    min-height: 238px;
  }

  .hero-copy {
    min-height: 238px;
    padding: 24px 22px;
  }

  .hero-copy h1 {
    font-size: 39px;
  }

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

  .points-card strong {
    font-size: 36px;
  }

  .quick-grid button {
    min-height: 78px;
  }

  .compact-bind-form {
    grid-template-columns: 1fr;
  }

  .compact-bind-form .red-button {
    width: 100%;
  }

  .home-order-card {
    padding: 14px 12px;
  }

  .home-menu-feed {
    max-height: none;
    overflow: visible;
  }
}

.profile-member-card,
.profile-wine-card,
#profileActionsCard,
#profileOrdersCard {
  overflow: hidden;
}

.profile-member-summary {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.profile-member-summary.guest {
  grid-template-columns: 54px minmax(0, 1fr);
}

.profile-member-summary.guest .red-button {
  grid-column: 1 / -1;
  width: 100%;
}

.profile-member-summary .avatar {
  width: 54px;
  min-height: 54px;
  font-size: 20px;
}

.profile-member-copy {
  min-width: 0;
}

.profile-member-copy strong,
.profile-member-copy p {
  display: block;
  overflow-wrap: anywhere;
}

.profile-member-copy p {
  margin-top: 4px;
  font-size: 12px;
}

.profile-points-chip {
  min-width: 96px;
  border: 1px solid rgba(223, 169, 77, 0.14);
  border-radius: 8px;
  padding: 9px 10px;
  background:
    linear-gradient(135deg, rgba(165, 31, 43, 0.18), rgba(223, 169, 77, 0.06)),
    rgba(8, 8, 9, 0.38);
  text-align: right;
}

.profile-points-chip span,
.profile-points-chip em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.profile-points-chip strong {
  display: block;
  color: var(--gold-light);
  font-size: 24px;
  line-height: 1.1;
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-action-grid button {
  display: grid;
  min-height: 72px;
  place-items: center;
  gap: 6px;
  border: 1px solid rgba(223, 169, 77, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(165, 31, 43, 0.08), rgba(223, 169, 77, 0.04)),
    rgba(10, 10, 12, 0.3);
  color: #d8d0ca;
  font-size: 12px;
  font-weight: 800;
}

.profile-action-grid span {
  display: grid;
  width: 30px;
  min-height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(223, 169, 77, 0.12);
  color: var(--gold-light);
  font-size: 13px;
}

.profile-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid rgba(223, 169, 77, 0.1);
}

.profile-order-row:first-of-type {
  border-top: 0;
}

.profile-order-row strong,
.profile-order-row small {
  display: block;
  overflow-wrap: anywhere;
}

.profile-order-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.profile-order-row span {
  color: var(--gold-light);
  font-weight: 900;
}

.profile-empty {
  border: 1px dashed rgba(223, 169, 77, 0.18);
  border-radius: 8px;
  padding: 14px;
  color: var(--muted);
  text-align: center;
}

.profile-card-footnote {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.customer-wine-list {
  display: grid;
  gap: 10px;
}

.customer-wine-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(223, 169, 77, 0.12);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(145deg, rgba(165, 31, 43, 0.14), rgba(48, 245, 255, 0.05)),
    rgba(8, 8, 10, 0.42);
}

.customer-wine-row.is-expired {
  border-color: rgba(255, 78, 94, 0.34);
  background:
    linear-gradient(145deg, rgba(165, 31, 43, 0.2), rgba(18, 18, 22, 0.82)),
    rgba(8, 8, 10, 0.62);
}

.customer-wine-bottle {
  display: grid;
  place-items: center;
  width: 58px;
  min-height: 58px;
  overflow: hidden;
  border: 1px solid rgba(223, 169, 77, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 10%, rgba(223, 169, 77, 0.24), transparent 45%),
    rgba(0, 0, 0, 0.36);
  color: var(--gold-light);
  font-size: 18px;
  font-weight: 900;
}

.customer-wine-bottle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-wine-main {
  min-width: 0;
}

.customer-wine-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.customer-wine-title strong {
  overflow-wrap: anywhere;
  color: #fffaf5;
  font-size: 15px;
}

.customer-wine-title span {
  border: 1px solid rgba(74, 223, 165, 0.24);
  border-radius: 999px;
  padding: 3px 8px;
  color: #65f0bd;
  font-size: 11px;
  font-weight: 900;
}

.customer-wine-row.is-expired .customer-wine-title span {
  border-color: rgba(255, 78, 94, 0.34);
  color: #ff9aa5;
}

.customer-wine-main p,
.customer-wine-main small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
  font-size: 12px;
}

.wine-code-button {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 1px solid rgba(223, 169, 77, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(165, 31, 43, 0.96), rgba(214, 31, 53, 0.88));
  color: #fff;
  font-weight: 950;
  letter-spacing: 0;
}

.wine-code-button:disabled {
  opacity: 0.42;
  background: linear-gradient(135deg, rgba(75, 69, 77, 0.86), rgba(44, 42, 48, 0.9));
  color: rgba(255, 255, 255, 0.58);
}

.customer-wine-code {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  margin-top: 10px;
  border: 1px solid rgba(74, 223, 165, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(31, 199, 126, 0.08);
}

.customer-wine-code span,
.customer-wine-code em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.customer-wine-code strong {
  color: #68f6c1;
  font-size: 28px;
  letter-spacing: 2px;
}

.customer-wine-code em {
  grid-column: 1 / -1;
}

.customer-wine-logs {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  border-top: 1px solid rgba(223, 169, 77, 0.1);
  padding-top: 12px;
}

.customer-wine-logs strong {
  color: var(--gold-light);
  font-size: 13px;
}

.customer-wine-logs p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 520px) {
  .profile-member-summary {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .profile-member-summary .avatar {
    width: 48px;
    min-height: 48px;
  }

  .profile-points-chip {
    grid-column: 1 / -1;
    text-align: left;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Consumer app shell: keep the bottom tabs visible while the active page scrolls. */
.mobile-app {
  display: flex;
  height: min(900px, calc(100vh - 36px));
  min-height: min(900px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  flex: 0 0 auto;
}

.location-button {
  max-width: min(260px, calc(100% - 128px));
}

.table-pill {
  max-width: 112px;
}

.tab-page {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 18px;
}

.tab-page::-webkit-scrollbar {
  width: 0;
}

.bottom-tabs {
  position: relative;
  bottom: auto;
  width: 100%;
  flex: 0 0 auto;
}

.bottom-tabs button {
  min-width: 0;
}

.home-bind-form {
  display: none;
}

@media (max-width: 520px) {
  .mobile-app {
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
  }

  .cart-drawer {
    right: 10px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    left: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(118px, 0.48fr);
    margin: 0 10px 8px;
    padding: 12px;
  }

  .tab-page.has-floating-cart {
    padding-bottom: 292px;
  }

  .bottom-tabs {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* Motion polish for the customer app. */
.mobile-app {
  isolation: isolate;
}

.topbar,
.hero-card,
.home-order-card,
.game-card,
.points-card,
.content-card,
.reserve-card,
.profile-card,
.food-card,
.invite-banner,
.quick-grid button,
.bottom-tabs,
.bottom-tabs button,
.red-button,
.wechat-login-button,
.add-button,
.category-bar button,
.profile-action-grid button {
  position: relative;
}

.hero-card::before {
  animation: heroGridDrift 11s linear infinite;
}

.hero-copy h1 {
  animation: headlineGlow 4.8s ease-in-out infinite;
}

.game-card::before,
.points-card::before,
.content-card::before,
.reserve-card::before,
.profile-card::before {
  box-shadow: 0 0 18px rgba(223, 169, 77, 0.32);
  animation: edgeGlow 3.6s ease-in-out infinite;
}

.home-order-card,
.game-card,
.points-card,
.content-card,
.reserve-card,
.profile-card,
.food-card,
.invite-banner {
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    filter 220ms ease;
}

.home-order-card:hover,
.game-card:hover,
.points-card:hover,
.content-card:hover,
.reserve-card:hover,
.profile-card:hover,
.food-card:hover,
.invite-banner:hover {
  border-color: rgba(223, 169, 77, 0.28);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(165, 31, 43, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.025);
  filter: saturate(1.04);
  transform: translateY(-2px);
}

.fx-ready {
  opacity: 0;
  filter: saturate(0.88);
  transform: translateY(14px) scale(0.988);
}

.fx-ready.fx-in {
  animation: revealUp 560ms cubic-bezier(0.2, 0.72, 0.2, 1) var(--fx-delay, 0ms) both;
}

.red-button,
.wechat-login-button,
.add-button,
.quick-grid button,
.category-bar button,
.profile-action-grid button,
.bottom-tabs button {
  overflow: hidden;
  transform: translateZ(0);
}

.red-button::after,
.wechat-login-button::after,
.add-button::after {
  position: absolute;
  inset: -45% auto -45% -120%;
  z-index: 1;
  width: 68%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-18deg);
  animation: buttonSweep 3.8s ease-in-out infinite;
}

.red-button,
.wechat-login-button {
  box-shadow:
    0 10px 24px rgba(125, 17, 31, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.16);
}

.wechat-login-button {
  animation: wechatPulse 3.2s ease-in-out infinite;
}

.add-button {
  animation: addButtonPulse 2.8s ease-in-out infinite;
}

.bottom-tabs::before {
  position: absolute;
  inset: 0 12px auto;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(223, 169, 77, 0.7), rgba(82, 216, 209, 0.45), transparent);
  opacity: 0.72;
  animation: navScan 4.2s ease-in-out infinite;
}

.bottom-tabs button.active {
  box-shadow:
    0 0 0 1px rgba(223, 169, 77, 0.12),
    0 0 22px rgba(165, 31, 43, 0.22),
    inset 0 1px rgba(255, 255, 255, 0.05);
  animation: activeNavGlow 3.6s ease-in-out infinite;
}

.tap-host {
  isolation: isolate;
}

.tap-ripple {
  position: absolute;
  z-index: 3;
  border-radius: 999px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 248, 232, 0.42), rgba(223, 169, 77, 0.18) 42%, transparent 68%);
  transform: scale(0);
  animation: tapRipple 540ms ease-out both;
}

@keyframes revealUp {
  from {
    opacity: 0;
    filter: saturate(0.88);
    transform: translateY(14px) scale(0.988);
  }
  to {
    opacity: 1;
    filter: saturate(1);
    transform: translateY(0) scale(1);
  }
}

@keyframes heroGridDrift {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 42px 42px, -42px 42px, 120px 0;
  }
}

@keyframes headlineGlow {
  0%,
  100% {
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
  }
  50% {
    text-shadow: 0 14px 34px rgba(0, 0, 0, 0.48), 0 0 18px rgba(223, 169, 77, 0.18);
  }
}

@keyframes edgeGlow {
  0%,
  100% {
    opacity: 0.58;
    width: 58px;
  }
  50% {
    opacity: 1;
    width: 88px;
  }
}

@keyframes buttonSweep {
  0%,
  52% {
    left: -120%;
  }
  74%,
  100% {
    left: 145%;
  }
}

@keyframes addButtonPulse {
  0%,
  100% {
    box-shadow: 0 8px 18px rgba(125, 17, 31, 0.28);
  }
  50% {
    box-shadow: 0 8px 18px rgba(125, 17, 31, 0.28), 0 0 18px rgba(239, 63, 82, 0.36);
  }
}

@keyframes wechatPulse {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(17, 141, 81, 0.22), inset 0 1px rgba(255, 255, 255, 0.16);
  }
  50% {
    box-shadow: 0 12px 30px rgba(17, 171, 93, 0.34), 0 0 22px rgba(36, 208, 123, 0.14), inset 0 1px rgba(255, 255, 255, 0.18);
  }
}

@keyframes navScan {
  0%,
  100% {
    opacity: 0.28;
    transform: translateX(-18%);
  }
  50% {
    opacity: 0.84;
    transform: translateX(18%);
  }
}

@keyframes activeNavGlow {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.16);
  }
}

@keyframes tapRipple {
  to {
    opacity: 0;
    transform: scale(2.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-ready,
  .fx-ready.fx-in {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* Premium hero card: black-gold membership pass. */
.hero-card {
  min-height: 276px;
  isolation: isolate;
  border: 1px solid rgba(239, 207, 133, 0.34);
  border-radius: 12px;
  background:
    radial-gradient(circle at 76% 28%, rgba(223, 169, 77, 0.22), transparent 24%),
    radial-gradient(circle at 18% 18%, rgba(165, 31, 43, 0.36), transparent 34%),
    radial-gradient(circle at 86% 88%, rgba(82, 216, 209, 0.13), transparent 38%),
    linear-gradient(135deg, #21050b 0%, #0a090c 48%, #101817 100%);
  box-shadow:
    0 24px 62px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 244, 214, 0.04),
    inset 0 1px rgba(255, 255, 255, 0.06),
    inset 0 -70px 120px rgba(0, 0, 0, 0.24);
}

.hero-card::before {
  inset: 1px;
  border-radius: 11px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(115deg, transparent 36%, rgba(223, 169, 77, 0.08) 36.2%, transparent 36.8%, transparent 58%, rgba(82, 216, 209, 0.06) 58.2%, transparent 58.8%);
  background-size: 44px 44px, 44px 44px, auto;
  opacity: 0.86;
}

.hero-card::after {
  top: 32px;
  right: -64px;
  bottom: auto;
  width: 230px;
  height: 230px;
  opacity: 0.105;
  filter: saturate(0.92) drop-shadow(0 0 18px rgba(223, 169, 77, 0.24));
  transform: rotate(-10deg);
  animation: emblemDrift 8s ease-in-out infinite;
}

#heroCanvas {
  opacity: 0.44;
  mix-blend-mode: screen;
}

.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 116px;
  grid-template-rows: auto auto;
  min-height: 276px;
  align-items: center;
  gap: 14px 14px;
  padding: 24px 18px 18px;
  text-shadow: none;
}

.hero-copy::before {
  position: absolute;
  inset: auto 18px 16px;
  width: auto;
  height: 1px;
  margin: 0;
  content: "";
  background: linear-gradient(90deg, rgba(239, 63, 82, 0.72), rgba(223, 169, 77, 0.72), rgba(82, 216, 209, 0.42), transparent);
  box-shadow: 0 0 18px rgba(223, 169, 77, 0.24);
}

.hero-copy::after {
  position: absolute;
  inset: -70% auto -70% -46%;
  z-index: 2;
  width: 40%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 226, 0.16), transparent);
  transform: skewX(-22deg);
  animation: heroLaser 5.6s ease-in-out infinite;
}

.hero-main,
.hero-member-pass,
.hero-perks {
  position: relative;
  z-index: 3;
}

.hero-main {
  min-width: 0;
}

.hero-status-row {
  display: flex;
  max-width: 220px;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.hero-status-row .hero-eyebrow {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  border: 1px solid rgba(223, 169, 77, 0.28);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(223, 169, 77, 0.08);
  color: var(--gold-light);
  font-size: 11px;
  font-weight: 900;
}

.hero-status-row em {
  display: inline-grid;
  min-height: 22px;
  place-items: center;
  border: 1px solid rgba(82, 216, 209, 0.22);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(82, 216, 209, 0.06);
  color: rgba(175, 240, 236, 0.86);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
}

.hero-title-stack h1 {
  max-width: 220px;
  margin: 0;
  background: linear-gradient(180deg, #fffdf6 0%, #ffe0a1 42%, #f8f8f8 100%);
  background-clip: text;
  color: transparent;
  font-size: 41px;
  font-weight: 900;
  line-height: 0.98;
  text-shadow: none;
}

.hero-title-stack strong {
  display: block;
  margin-top: 8px;
  color: rgba(223, 169, 77, 0.78);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero-main p {
  max-width: 210px;
  margin-top: 12px;
  color: rgba(247, 237, 228, 0.74);
  font-size: 12px;
  line-height: 1.6;
}

.hero-member-pass {
  justify-self: end;
  width: 106px;
  min-height: 142px;
  border: 1px solid rgba(239, 207, 133, 0.34);
  border-radius: 12px;
  padding: 12px 9px 10px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(223, 169, 77, 0.16), rgba(165, 31, 43, 0.12)),
    rgba(12, 10, 12, 0.74);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(223, 169, 77, 0.12),
    inset 0 1px rgba(255, 255, 255, 0.08);
  animation: passFloat 4.8s ease-in-out infinite;
}

.hero-member-pass::before {
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(223, 169, 77, 0.14);
  border-radius: 9px;
  content: "";
  pointer-events: none;
}

.hero-member-pass::after {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--teal);
  box-shadow: 0 0 16px rgba(82, 216, 209, 0.58);
}

.pass-orbit {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  margin: 6px auto 0;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(223, 169, 77, 0.2), transparent 58%),
    rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.pass-orbit::before {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  content: "";
  background: conic-gradient(from 90deg, rgba(223, 169, 77, 0), rgba(223, 169, 77, 0.85), rgba(239, 63, 82, 0.45), rgba(82, 216, 209, 0.45), rgba(223, 169, 77, 0));
  animation: passOrbit 6.5s linear infinite;
}

.pass-orbit::after {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  content: "";
  background: #0b090b;
}

.pass-orbit img {
  position: absolute;
  z-index: 1;
  width: 66px;
  opacity: 0.3;
}

.pass-orbit span {
  position: relative;
  z-index: 2;
  color: #ffe2a2;
  font-size: 23px;
  font-weight: 950;
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(223, 169, 77, 0.35);
}

.hero-member-pass small {
  display: block;
  margin-top: 12px;
  color: rgba(247, 224, 170, 0.72);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 2px;
  text-align: center;
}

.hero-perks {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-perks span {
  display: flex;
  min-width: 0;
  min-height: 45px;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(223, 169, 77, 0.16);
  border-radius: 8px;
  padding: 8px 9px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent),
    rgba(8, 8, 10, 0.42);
  color: rgba(247, 237, 228, 0.58);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.hero-perks b {
  display: block;
  margin-bottom: 3px;
  color: #f0c978;
  font-size: 12px;
  font-weight: 950;
}

@keyframes heroLaser {
  0%,
  58% {
    left: -46%;
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  100% {
    left: 128%;
    opacity: 0;
  }
}

@keyframes emblemDrift {
  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-7px) rotate(-7deg);
  }
}

@keyframes passFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes passOrbit {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 380px) {
  .hero-copy {
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 12px 10px;
    padding-inline: 16px;
  }

  .hero-title-stack h1 {
    font-size: 36px;
  }

  .hero-member-pass {
    width: 94px;
    min-height: 128px;
    padding-inline: 7px;
  }

  .pass-orbit {
    width: 68px;
    height: 68px;
  }

  .pass-orbit img {
    width: 58px;
  }

  .hero-perks span {
    padding-inline: 7px;
    font-size: 9px;
  }
}

/* HiGr service-home refresh: premium layout inspired by service mini-apps. */
#homePage .hero-card {
  min-height: 330px;
  border-color: rgba(240, 200, 117, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 75% 24%, rgba(240, 200, 117, 0.22), transparent 23%),
    radial-gradient(circle at 12% 0%, rgba(207, 36, 57, 0.34), transparent 32%),
    linear-gradient(142deg, #17070b 0%, #09090d 50%, #11201f 100%);
}

#homePage .hero-copy {
  grid-template-columns: minmax(0, 1fr) 135px;
  min-height: 330px;
  padding: 26px 18px 18px;
}

#homePage .hero-title-stack h1 {
  max-width: 250px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  line-height: 1.02;
}

#homePage .home-drink-art {
  position: relative;
  z-index: 3;
  justify-self: end;
  width: 134px;
  height: 168px;
}

.home-drink-glass {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 92px;
  height: 92px;
  border: 2px solid rgba(255, 245, 213, 0.42);
  border-radius: 16px 16px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 -30px 52px rgba(231, 143, 31, 0.28), 0 16px 42px rgba(0, 0, 0, 0.42);
  transform: rotate(-6deg);
}

.home-drink-glass span {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 6px;
  height: 42px;
  border-radius: 8px 8px 18px 18px;
  background: linear-gradient(180deg, #f0b94f, #9d4817);
}

.home-drink-glass i {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
}

.home-drink-glass i:first-child {
  left: 20px;
  top: 28px;
  transform: rotate(14deg);
}

.home-drink-glass i:nth-child(2) {
  right: 20px;
  top: 22px;
  transform: rotate(-18deg);
}

.home-drink-stick {
  position: absolute;
  right: 46px;
  top: 10px;
  width: 4px;
  height: 108px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8a15a, #7a351b);
  transform: rotate(24deg);
}

.home-drink-art b {
  position: absolute;
  right: -10px;
  top: 8px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(82, 216, 209, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 42px rgba(82, 216, 209, 0.12);
}

#homePage .hero-perks span {
  min-height: 48px;
}

#homePage .home-member-card {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(82, 216, 209, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(22, 19, 22, 0.94);
}

.home-member-summary.compact {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
}

.home-service-title {
  margin: 16px 2px 0;
  color: #fff7ee;
  font-size: 20px;
  font-weight: 950;
}

.quick-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.quick-grid button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  min-height: 96px;
  place-items: initial;
  align-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 18px 14px;
  text-align: left;
}

.quick-grid button.primary {
  background:
    linear-gradient(145deg, rgba(207, 36, 57, 0.34), rgba(24, 21, 24, 0.96)),
    #171315;
}

.quick-grid button.wide {
  grid-column: 1 / -1;
  min-height: 82px;
}

.quick-grid button span {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(223, 169, 77, 0.2);
  border-radius: 9px;
  color: var(--gold-light);
  background: rgba(223, 169, 77, 0.08);
  font-size: 18px;
}

.quick-grid button strong {
  color: #fff7ee;
  font-size: 20px;
  font-weight: 950;
}

.quick-grid button small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 850;
}

.order-auth-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 12px;
  border-color: rgba(32, 200, 117, 0.22);
  background:
    linear-gradient(135deg, rgba(32, 200, 117, 0.13), rgba(255, 255, 255, 0.02)),
    rgba(14, 12, 14, 0.94);
}

.order-auth-card.is-hidden {
  display: none;
}

.order-auth-card h2 {
  color: #fff7ee;
  font-size: 18px;
}

.order-auth-card .wechat-login-button {
  min-height: 42px;
  border-radius: 8px;
  font-size: 13px;
}

@media (max-width: 380px) {
  #homePage .hero-copy {
    grid-template-columns: minmax(0, 1fr) 112px;
  }

  #homePage .hero-title-stack h1 {
    font-size: 34px;
  }

  #homePage .home-drink-art {
    width: 112px;
    transform: scale(0.9);
    transform-origin: right center;
  }
}

/* Premium order page refresh. */
.order-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 12px;
  align-items: center;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid rgba(223, 169, 77, 0.22);
  border-radius: 12px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 15%, rgba(223, 169, 77, 0.18), transparent 28%),
    radial-gradient(circle at 10% 0%, rgba(207, 36, 57, 0.24), transparent 34%),
    linear-gradient(135deg, rgba(31, 20, 23, 0.96), rgba(6, 10, 12, 0.96));
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.36);
}

.order-hero-card .page-title {
  padding: 0;
}

.order-hero-card .page-title span {
  color: var(--gold-light);
}

.order-hero-card .page-title h1 {
  color: #fff7ee;
  font-size: 30px;
}

.order-hero-card .page-title p {
  margin-top: 8px;
  color: rgba(247, 237, 228, 0.62);
  font-size: 12px;
  line-height: 1.6;
}

.order-hero-side {
  display: grid;
  min-height: 94px;
  place-items: center;
  border: 1px solid rgba(223, 169, 77, 0.2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
}

.order-hero-side strong {
  color: var(--gold-light);
  font-size: 21px;
}

.order-hero-side small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 850;
}

#orderPage .category-bar {
  top: 0;
  border-radius: 10px;
  padding: 10px 0 12px;
  background: linear-gradient(180deg, #100e10 76%, rgba(16, 14, 16, 0));
}

#orderPage .category-bar button {
  min-height: 34px;
  border: 1px solid rgba(223, 169, 77, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 237, 228, 0.62);
  box-shadow: none;
}

#orderPage .category-bar button.active {
  border-color: rgba(223, 169, 77, 0.5);
  background: linear-gradient(135deg, #fff2bd, #e1aa4a);
  color: #1a090c;
}

#orderPage .food-card {
  grid-template-columns: 86px minmax(0, 1fr) 42px;
  min-height: 112px;
  border: 1px solid rgba(223, 169, 77, 0.14);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(20, 18, 21, 0.94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.3);
}

#orderPage .food-thumb {
  width: 86px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background:
    radial-gradient(circle at 65% 28%, rgba(223, 169, 77, 0.22), transparent 30%),
    linear-gradient(145deg, #5c1220, #171114 58%, #0d1a19);
}

#orderPage .food-card em {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  border: 1px solid rgba(82, 216, 209, 0.18);
  border-radius: 999px;
  padding: 3px 8px;
  color: rgba(104, 238, 230, 0.78);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(82, 216, 209, 0.06);
}

.food-card em {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  border: 1px solid rgba(82, 216, 209, 0.18);
  border-radius: 999px;
  padding: 3px 8px;
  color: rgba(104, 238, 230, 0.78);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(82, 216, 209, 0.06);
}

#orderPage .food-card h2 {
  margin-top: 6px;
  color: #fff8ed;
}

#orderPage .food-card p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.food-card-bottom {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

#orderPage .food-card-bottom strong {
  color: var(--gold-light);
  font-size: 19px;
}

.food-card-bottom small {
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
}

#orderPage .add-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(223, 169, 77, 0.24);
  border-radius: 50%;
  background: linear-gradient(135deg, #fff0b5, #e1a440);
  color: #1a090c;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(223, 169, 77, 0.14);
}

#orderPage .add-button::after {
  display: none;
  content: none;
}

#orderPage .order-auth-card {
  margin-top: 12px;
}

/* Mobile width guard for the customer preview and mini-program mirror pages. */
body,
.phone-preview,
.mobile-app,
.tab-page {
  overflow-x: hidden;
}

.mobile-app,
.tab-page,
.content-card,
.profile-card,
.points-card,
.food-card,
.order-auth-card,
.home-member-card,
.invite-banner {
  max-width: 100%;
}

#pointsPage .member-bind-card {
  overflow: hidden;
  border-color: rgba(32, 200, 117, 0.18);
  background:
    linear-gradient(135deg, rgba(32, 200, 117, 0.09), rgba(223, 169, 77, 0.05)),
    rgba(18, 15, 18, 0.96);
}

#pointsPage .member-bind-card .card-heading,
#pointsPage .member-bind-card .field,
#pointsPage .member-bind-card .red-button,
#pointsPage .member-bind-card .note-text {
  min-width: 0;
  max-width: 100%;
}

#pointsPage .member-bind-card .red-button {
  white-space: normal;
}

/* Cart drawer compact layout: avoid black gaps and keep quantity controls centered. */
.cart-drawer {
  grid-template-columns: minmax(0, 1fr);
  bottom: calc(86px + env(safe-area-inset-bottom));
  max-height: min(220px, 30vh);
}

.customer-cart-row {
  grid-template-columns: minmax(0, 1fr) 96px;
}

.customer-cart-row > div {
  grid-template-columns: 28px 40px 28px;
  justify-content: end;
}

.customer-cart-row > div strong {
  display: grid;
  place-items: center;
  min-width: 0;
  text-align: center;
}

.cart-drawer .red-button,
.cart-drawer button#submitCustomerOrder {
  width: 100%;
}

.tab-page.has-floating-cart {
  padding-bottom: 270px;
}

/* Order page fixed submit bar and per-item quantity controls. */
.mobile-app > .cart-drawer.global-cart-drawer {
  position: relative;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 12;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1fr) 126px;
  gap: 10px;
  align-items: center;
  max-height: none;
  margin: 8px 14px 10px;
  border: 1px solid rgba(223, 169, 77, 0.28);
  border-radius: 16px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(165, 31, 43, 0.22), rgba(9, 8, 10, 0.96)),
    rgba(9, 8, 10, 0.98);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.mobile-app > .cart-drawer.global-cart-drawer.is-empty {
  display: none;
}

.tab-page.has-floating-cart {
  padding-bottom: 18px;
}

.cart-submit-copy {
  min-width: 0;
}

.cart-submit-copy strong {
  display: block;
  overflow: hidden;
  color: #fff8ed;
  font-size: 15px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-submit-copy p {
  overflow: hidden;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-app > .cart-drawer.global-cart-drawer .red-button {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff0b5, #e1a440);
  color: #1a090c;
  font-weight: 900;
}

#orderPage .food-card,
.home-menu-feed .food-card {
  grid-template-columns: 78px minmax(0, 1fr) 104px;
}

.menu-stepper {
  display: flex;
  width: 104px;
  min-width: 104px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.menu-stepper .add-button,
.menu-stepper .stepper-minus {
  display: grid;
  width: 32px;
  height: 32px;
  min-width: 0;
  min-height: 0;
  place-items: center;
  border-radius: 50%;
  line-height: 1;
}

.menu-stepper .add-button {
  border: 1px solid rgba(223, 169, 77, 0.24);
  background: linear-gradient(135deg, #fff0b5, #e1a440);
  color: #1a090c;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(223, 169, 77, 0.14);
}

.menu-stepper .stepper-minus {
  border: 1px solid rgba(223, 169, 77, 0.22);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 244, 214, 0.9);
  font-size: 18px;
  font-weight: 900;
}

.menu-stepper strong {
  display: grid;
  min-width: 18px;
  place-items: center;
  color: #fff8ed;
  font-size: 15px;
  font-weight: 900;
}
