/* China King — rewards + account components. Ported from the Thai Kitchen site (2026-11-05) and
   re-themed to China King's tokens (site.css): red/gold, Bebas Neue display, Inter body. */
:root { --green: #255b3b; --serif: "Bebas Neue", Impact, sans-serif; --sans: "Inter", -apple-system, sans-serif; }

.eyebrow { color: var(--gold); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }

.title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 0.95; letter-spacing: 0.02em; }

.lead { color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

.cluster { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.04;
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0.78rem 1.15rem;
  font-weight: 800;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.primary:hover {
  background: var(--red-deep);
}

.button.disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.button.primary.disabled,
.button.primary[aria-disabled="true"] {
  background: rgba(28,21,18, 0.24);
  color: rgba(28,21,18, 0.68);
}

.button.dark {
  background: var(--fg);
  color: var(--bg-2);
}

.button.ghost {
  border-color: var(--line);
  background: rgba(255,255,255,0.6);
  color: var(--fg);
}

.button.rewards-points-chip {
  min-height: 46px;
  gap: 0.32rem;
  border-color: rgba(37, 91, 59, 0.24);
  background: rgba(37, 91, 59, 0.1);
  color: var(--green);
}

.button.rewards-points-chip span,
.button.rewards-points-chip small {
  line-height: 1;
}

.button.rewards-points-chip span {
  font-size: 1.08rem;
  font-weight: 900;
}

.button.rewards-points-chip small {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button.light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.button.full {
  width: 100%;
}

.rewards-preview {
  position: relative;
  align-self: center;
  height: clamp(300px, 28vw, 380px);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(28,21,18, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(28,21,18, 0.18);
}

.rewards-preview img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.rewards-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,21,18, 0.02), rgba(28,21,18, 0.42));
}

.rewards-preview-card {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(210px, calc(100% - 2.5rem));
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  color: var(--fg);
  padding: 0.9rem 1rem;
  box-shadow: 0 20px 50px rgba(28,21,18, 0.22);
  text-align: center;
}

.rewards-preview-card span,
.rewards-preview-card b {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.rewards-preview-card span {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.rewards-preview-card strong {
  display: block;
  margin: 0.1rem 0;
  font-family: var(--sans);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
}

.rewards-preview-card b {
  font-size: 1.02rem;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group.full {
  grid-column: 1 / -1;
}

.rewards-page {
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(251,247,241,0.9)),
    radial-gradient(circle at 12% 16%, rgba(200,22,31,0.10), transparent 32%),
    var(--bg-2);
}

.rewards-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.74fr);
  gap: 2rem;
  align-items: center;
}

.rewards-copy {
  max-width: 650px;
}

.rewards-copy .title {
  margin-top: 0.6rem;
}

.benefit-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
}

.benefit-list article {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.7);
  padding: 1rem;
}

.benefit-list span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg-2);
  font-weight: 900;
  font-size: 0.82rem;
}

.rewards-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 30px 70px rgba(28,21,18, 0.16);
}

.rewards-card h2 {
  margin: 0.45rem 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.rewards-card p {
  color: var(--muted);
  line-height: 1.65;
}

.rewards-form {
  display: none;
}

.rewards-form.active {
  display: block;
}

.rewards-status {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.9rem 1rem;
  font-weight: 800;
  line-height: 1.45;
}

.rewards-status[data-tone="success"] {
  border-color: rgba(37, 91, 59, 0.24);
  background: rgba(37, 91, 59, 0.08);
  color: var(--green);
}

.rewards-status[data-tone="error"] {
  border-color: rgba(200,22,31,0.24);
  background: rgba(200,22,31,0.08);
  color: var(--red-deep);
}

.rewards-status[data-tone="info"] {
  background: rgba(184,137,46,0.10);
  color: var(--muted);
}

.points-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  padding: 1.1rem;
}

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

.points-panel strong {
  font-family: var(--sans);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.rewards-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(37, 91, 59, 0.22);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  padding: 0.95rem 1.1rem;
  box-shadow: 0 18px 45px rgba(28,21,18, 0.22);
  font-weight: 800;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.rewards-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.account-page {
  background: var(--bg-2);
}

.account-hero {
  padding: 44px 0 38px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96), rgba(251,247,241,0.9)),
    var(--bg-2);
}

.account-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.account-head-row .title {
  margin-top: 0.45rem;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.account-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 55px rgba(28,21,18, 0.12);
}

.account-summary {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.account-stat {
  display: grid;
  align-content: center;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem 1rem;
}

.account-stat span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.account-stat strong {
  font-size: 1.02rem;
  line-height: 1.25;
}

.account-stat.points {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg-2);
}

.account-stat.points span {
  color: rgba(255,255,255,0.72);
}

.account-stat.points strong {
  font-size: 2.1rem;
  line-height: 1;
}

.account-status,
.account-loading,
.account-error,
.account-empty {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.95rem 1rem;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.account-status {
  margin-top: 1.35rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
}

.account-status[hidden] {
  display: none;
}

.account-status[data-tone="success"] {
  border-color: rgba(37, 91, 59, 0.24);
  background: rgba(37, 91, 59, 0.08);
  color: var(--green);
}

.account-status[data-tone="error"],
.account-error {
  border-color: rgba(200,22,31,0.24);
  background: rgba(200,22,31,0.08);
  color: var(--red-deep);
}

.account-content-section {
  padding: 44px 0 80px;
}

.account-content {
  overflow: hidden;
}

.account-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem;
}

.account-tab {
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 900;
}

.account-tab.active {
  border-color: var(--line);
  background: var(--fg);
  color: var(--bg-2);
}

.account-panel {
  padding: 1.25rem;
}

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

.account-panel-head h2 {
  margin: 0.35rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.account-list {
  display: grid;
  gap: 0.75rem;
}

.account-order,
.account-ledger-event {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.95rem 1.1rem;
}

.account-order-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.account-order-main span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.account-order-main h3 {
  margin: 0.3rem 0 0.1rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.15;
}

.account-ledger-event h3 {
  margin: 0.25rem 0;
  font-size: 1.05rem;
}

.account-order-main p,
.account-ledger-event p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.account-order-main > strong {
  flex: 0 0 auto;
  font-size: 1.2rem;
}

.account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.account-row span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  border-radius: 999px;
  background: rgba(28,21,18, 0.06);
  padding: 0.25rem 0.65rem;
}

.account-row .chip-location {
  background: rgba(184,137,46,0.14);
  color: var(--gold);
}

.account-row .chip-type {
  background: rgba(184,137,46,0.18);
  color: #7d5b1e;
  text-transform: capitalize;
}

.account-row .chip-status {
  background: rgba(37, 91, 59, 0.11);
  color: var(--green);
  text-transform: capitalize;
}

.account-row .chip-points.positive {
  background: rgba(37, 91, 59, 0.11);
  color: var(--green);
}

.account-row .chip-points.negative {
  background: rgba(200,22,31,0.09);
  color: var(--red-deep);
}

.account-ledger-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.account-empty {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  background: rgba(37, 91, 59, 0.07);
}

.account-empty strong {
  color: var(--fg);
  font-size: 1.05rem;
}

.account-load-more {
  margin-top: 1rem;
}

.account-load-more[hidden] {
  display: none;
}

.account-order[role="button"] {
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.account-order[role="button"]:hover,
.account-order[role="button"]:focus-visible {
  border-color: rgba(200,22,31,0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(28,21,18, 0.1);
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
}

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

.account-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28,21,18, 0.46);
  backdrop-filter: blur(3px);
}

.account-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 30px 70px rgba(28,21,18, 0.3);
}

.account-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.account-modal-card h2 {
  margin: 0.3rem 0 0.65rem;
  font-family: var(--sans);
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
}

.modal-items {
  list-style: none;
  display: grid;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  padding: 0;
}

.modal-item {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
  padding: 0.7rem 0.85rem;
}

.modal-item-qty {
  min-width: 26px;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 900;
}

.modal-item > div {
  display: grid;
  flex: 1;
  gap: 0.15rem;
}

.modal-item small {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.4;
}

.modal-item .modal-item-notes {
  font-style: italic;
}

.modal-item-end {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.modal-item-price {
  font-weight: 800;
}

.modal-item-reorder {
  border: 1px solid var(--red);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  padding: 0.2rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.modal-item-reorder:hover {
  background: var(--red);
  color: #fff;
}

.modal-item-reorder:disabled {
  opacity: 0.55;
  cursor: default;
}

.modal-actions {
  margin-top: 1.15rem;
}

/* Dashboard order card: chips + a Reorder button on one row. */
.account-order-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.account-order-foot .account-row {
  flex: 1;
  min-width: 0;
}

.account-reorder-btn {
  flex: 0 0 auto;
  border: 1px solid var(--red);
  border-radius: 999px;
  background: transparent;
  color: var(--red);
  padding: 0.42rem 0.95rem;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.account-reorder-btn:hover {
  background: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

.account-reorder-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.modal-totals {
  display: grid;
  gap: 0.4rem;
  margin: 1.15rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.modal-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.modal-totals dt,
.modal-totals dd {
  margin: 0;
}

.modal-totals .discount dd {
  color: var(--green);
  font-weight: 900;
}

.modal-totals .grand {
  margin-top: 0.3rem;
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  color: var(--fg);
  font-size: 1.08rem;
  font-weight: 900;
}

.modal-notes {
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(184,137,46,0.10);
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

@media (max-width: 920px) {
  /* Mobile keeps just the open/closed badge next to the burger; the sign-in
     and order buttons live in the drawer. */
  .nav-actions > :not(.hours-badge) {
    display: none;
  }

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

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

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

  .account-stat.points {
    grid-column: 1 / -1;
  }

  .rewards-preview, .rewards-preview img {
    height: 300px;
  }
}

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

  .section-head {
    display: block;
  }

  .rewards-page {
    align-items: start;
  }

  .rewards-card {
    padding: 1.35rem;
  }

  .benefit-list article {
    align-items: flex-start;
  }

  .rewards-preview, .rewards-preview img {
    height: 270px;
  }

  .rewards-preview-card {
    right: 1rem;
    bottom: 1rem;
  }

  .rewards-toast {
    right: 16px;
    bottom: 16px;
  }

  .account-tabs, .account-panel-head, .account-order-main {
    align-items: stretch;
    flex-direction: column;
  }

  .account-panel {
    padding: 1rem;
  }

  .account-ledger-event {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* Rewards catalog + milestones + settings (account page)             */
/* ------------------------------------------------------------------ */

.reward-location-field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.reward-location-field select {
  font: inherit;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.6rem 0.75rem;
  min-width: 200px;
  cursor: pointer;
}

.reward-milestone {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(37, 91, 59, 0.06);
  padding: 1.1rem 1.25rem 1.35rem;
  margin-bottom: 1.1rem;
}

.reward-milestone-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.reward-milestone-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.reward-milestone-points {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  color: var(--green);
}

.reward-milestone-next {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  max-width: 55%;
}

.reward-milestone-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(28,21,18, 0.1);
  overflow: visible;
}

.reward-milestone-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.4s ease;
  max-width: 100%;
}

.reward-milestone-ticks {
  position: absolute;
  inset: 0;
}

.reward-milestone-tick {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #ffffff;
  border: 2px solid rgba(28,21,18, 0.25);
}

.reward-milestone-tick.reached {
  background: var(--green);
  border-color: var(--green);
}

.reward-milestone-tick span {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

.reward-catalog {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.reward-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.reward-card.locked {
  opacity: 0.62;
}

.reward-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reward-card-media img {
  width: 100%;
  height: 100%;
  display: block;
}

/* The full photo, centered — never cropped (portrait bottle drinks show whole). */
.reward-card-media-photo {
  position: relative;
  object-fit: contain;
}

/* "Blurred fill": a scaled-up, blurred copy of the same photo sits behind the
   centered image and fills the letterbox space, so narrow/portrait images look
   polished instead of showing flat bars. Hidden entirely when the photo already
   fills the frame. */
.reward-card-media-blur {
  position: absolute;
  inset: 0;
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(16px) saturate(1.1);
}

.reward-card-media--empty {
  background: linear-gradient(150deg, var(--bg-2), rgba(200, 80, 60, 0.08));
}

.reward-card-media--empty svg {
  width: 44px;
  height: 44px;
  color: var(--gold);
  opacity: 0.4;
}

.reward-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.9rem 1rem 1rem;
  flex: 1;
}

.reward-card-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.2;
  color: var(--fg);
}

.reward-card-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reward-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.reward-card-cost {
  font-weight: 900;
  color: var(--green);
  font-size: 0.95rem;
}

.reward-card-cost small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}

.reward-redeem {
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0.55rem 1rem;
  cursor: pointer;
  white-space: nowrap;
}

.reward-redeem:hover {
  filter: brightness(1.06);
}

.reward-redeem[disabled] {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}

/* Settings modal */
.settings-title {
  font-family: var(--sans);
}

.settings-lead {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.settings-form {
  display: grid;
  gap: 0.9rem;
}

.settings-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.settings-field input {
  font: inherit;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--fg);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.7rem 0.85rem;
}

.settings-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--fg);
  cursor: pointer;
}

.settings-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.settings-fine {
  margin: -0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
}

.settings-fine a {
  color: inherit;
  text-decoration: underline;
}

.settings-status {
  font-size: 0.88rem;
  font-weight: 700;
}

.settings-status[data-tone="error"] {
  color: var(--red-deep);
}

.settings-status[data-tone="success"] {
  color: var(--green);
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy .eyebrow, .hero-copy h1, .hero-copy p, .hero-copy .hero-ctas, .hero-poster {
    animation: none;
  }

  .hero-poster {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Catering + delivery promo (home page, 2026-10-20)
   ------------------------------------------------------------------------- */

/* Announcement bar above the nav (hidden until script.js decides). */
.announce-bar {
  background: var(--fg);
  color: #f6eadb;
  font-size: 0.92rem;
}

.announce-bar[hidden] {
  display: none;
}

.announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 42px;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  text-align: center;
}

.announce-text b {
  display: inline-block;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.announce-icon {
  display: inline-block;
  width: 2.05rem;
  height: auto;
  margin-right: 0.45rem;
  color: var(--gold-soft);
  vertical-align: -0.38em;
  animation: announceDrive 2.4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .announce-icon {
    animation: none;
  }
}

.announce-link {
  flex-shrink: 0;
  color: var(--gold-soft);
  font-weight: 800;
  white-space: nowrap;
}

.announce-link:hover {
  color: #fff;
}

.announce-close {
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #d8c8b4;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
}

.announce-close:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .announce-detail {
    display: none;
  }

  .announce-inner {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    text-align: left;
    padding-right: 2.2rem;
    position: relative;
  }

  .announce-close {
    position: absolute;
    top: 0.45rem;
    right: 0.75rem;
  }
}

/* China King type overrides on the ported components */
.rewards-card h2, .account-panel-head h2, .account-modal-card h2, .settings-title, .reward-card-name, .account-order-main h3 { font-family: var(--serif); font-weight: 400; letter-spacing: 0.03em; }

.rewards-card h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }

.account-panel-head h2 { font-size: 1.9rem; }

.account-modal-card h2 { font-size: 1.8rem; }

.reward-card-name { font-size: 1.35rem; }

.account-order-main h3 { font-size: 1.45rem; }

.reward-milestone-points, .points-panel strong, .account-stat.points strong { font-family: var(--serif); letter-spacing: 0.04em; }

.points-panel strong { font-size: 3rem; }

.account-stat.points strong { font-size: 2.6rem; }

.reward-milestone-points { color: var(--red); }

.button { font-family: var(--sans); border-radius: 4px; }

.button.primary { background: var(--red); color: #fff; }

.button.primary:hover { background: var(--red-deep); }

.button.dark { background: var(--fg); color: #fff; }

.button.ghost { border-color: var(--line); background: rgba(255,255,255,0.6); color: var(--fg); }

.button.rewards-points-chip { border-color: rgba(184,137,46,0.45); background: rgba(232,199,108,0.22); color: #7d5b1e; }

.reward-redeem { background: var(--red); border-color: var(--red); border-radius: 4px; }

.reward-milestone { background: rgba(232,199,108,0.16); }

.reward-milestone-fill, .reward-milestone-tick.reached { background: var(--red); border-color: var(--red); }

.reward-card-cost { color: var(--red-deep); }

.account-tab.active { background: var(--red); border-color: var(--red); color: #fff; }

.account-stat.points { background: var(--red); border-color: var(--red); color: #fff; }

.account-hero { background: var(--bg-2); }

.rewards-page { background: radial-gradient(circle at 12% 16%, rgba(200,22,31,0.08), transparent 32%), var(--bg-2); }

.rewards-card { border-radius: 6px; }

.rewards-form input, .field-group input { width: 100%; font: inherit; font-size: 1.05rem; padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--fg); }

.field-group label { display: block; margin-bottom: 0.4rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.rewards-toast { background: var(--fg); border-color: var(--fg); }

.announce-bar { background: var(--fg); }

.announce-text b { background: var(--red); }
