:root {
  color-scheme: dark;
  --bg: #090a0c;
  --panel: #141519;
  --panel-2: #1c1d22;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f0ea;
  --muted: #8e8f96;
  --soft: #c8c1b2;
  --gold: #d7a94d;
  --ember: #ff533d;
  --red: #c61f2b;
  --diamond: #d9eef8;
  --neon-green: #47ff6a;
  --neon-blue: #5aa7ff;
  --neon-pink: #ff8eb9;
  --green: #8dcc95;
  --shadow: rgba(0, 0, 0, 0.45);
}

/* Staff identity and manager backoffice */
.staff-login-card {
  max-width: 520px;
  margin: 10vh auto 0;
}

.staff-login-form,
.management-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.staff-login-form label,
.management-search label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.staff-login-form input,
.management-search input {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.staff-login-form button,
.management-search button,
.management-row button,
.management-search-result {
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4b2b, #d91d1d);
  color: white;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.staff-session-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.staff-session-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.staff-session-actions a {
  color: #ffd5b8;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.staff-customer-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(215, 169, 77, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 169, 77, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.035);
}

.staff-customer-summary div {
  min-width: 0;
}

.staff-customer-summary span,
.staff-success-details span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-customer-summary strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--text);
  font-size: 19px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-shell {
  width: min(1180px, 100%);
}

.management-card {
  min-height: calc(100vh - 48px);
}

.management-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.management-stats article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.management-stats span,
.management-row span,
.management-search-result span,
.management-member-heading p {
  color: var(--muted);
  font-size: 12px;
}

.management-results,
.management-list {
  display: grid;
  gap: 9px;
}

.management-results > [data-search-result-list] {
  display: grid;
  gap: 9px;
}

.management-load-more {
  justify-self: center;
  margin-top: 3px;
}

.management-search-result {
  width: 100%;
  display: grid;
  gap: 5px;
  justify-items: start;
  text-align: left;
  background: rgba(255, 255, 255, 0.055);
}

.management-member {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.management-member-heading,
.management-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.management-member-heading h3,
.management-columns h3 {
  margin: 3px 0;
}

.management-backfill {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid rgba(215, 169, 77, 0.24);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 169, 77, 0.1), transparent 52%),
    rgba(255, 255, 255, 0.025);
}

.management-customer-recovery {
  border-color: rgba(255, 76, 43, 0.42);
}

.management-backfill > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  padding: 16px 18px;
  color: var(--muted);
  cursor: pointer;
}

.management-backfill > summary::marker {
  color: var(--gold);
}

.management-backfill > summary span:first-child {
  display: grid;
  gap: 3px;
}

.management-backfill > summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.management-backfill > summary strong {
  color: #f4d38c;
  font-size: 18px;
}

.management-backfill > summary > span:last-child {
  font-size: 12px;
  text-align: right;
}

.management-backfill[open] > summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(215, 169, 77, 0.055);
}

.management-backfill-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

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

.management-backfill-grid input,
.management-backfill-grid select,
.management-backfill-reason input {
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.management-backfill-reason {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.management-backfill-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.management-backfill-submit .staff-note {
  margin: 0;
}

.management-backfill-submit button {
  min-height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff4b2b, #d91d1d);
  color: white;
  padding: 0 22px;
  font-weight: 850;
  cursor: pointer;
}

.management-backfill-submit button:disabled {
  cursor: wait;
  opacity: 0.65;
}

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

.management-row {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.management-row > div {
  display: grid;
  gap: 4px;
}

.management-row button {
  min-height: 38px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.1);
}

.management-tabs {
  display: flex;
  gap: 8px;
  margin: 20px 0;
  padding-bottom: 14px;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.management-tabs button {
  min-width: max-content;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-weight: 850;
}

.management-tabs button.is-active {
  border-color: rgba(215, 169, 77, 0.42);
  background: rgba(215, 169, 77, 0.12);
  color: #f4d38c;
}

.management-tab-panel[hidden] {
  display: none;
}

.management-section-heading,
.analytics-export {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.management-section-heading h3,
.management-section-heading p,
.analytics-export h3,
.analytics-export p {
  margin: 0;
}

.management-section-heading > p {
  max-width: 480px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: right;
}

.staff-admin-form,
.staff-admin-row,
.analytics-filter {
  display: grid;
  gap: 10px;
  align-items: end;
}

.staff-admin-form {
  grid-template-columns: 1.2fr 0.9fr 0.9fr auto;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(215, 169, 77, 0.22);
  border-radius: 12px;
  background: rgba(215, 169, 77, 0.045);
}

.staff-admin-row {
  grid-template-columns: 1.15fr 0.9fr 0.8fr 0.9fr auto auto auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.staff-admin-summary {
  display: none;
}

.staff-admin-form label,
.staff-admin-row label,
.analytics-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-admin-form input,
.staff-admin-form select,
.staff-admin-row input,
.staff-admin-row select,
.analytics-filter input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  padding: 0 11px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
}

.staff-admin-form button,
.staff-admin-row button,
.analytics-filter button,
.analytics-export-buttons button {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  background: linear-gradient(135deg, #ff4b2b, #d91d1d);
  color: #fff;
  font-weight: 850;
}

.staff-admin-form button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.staff-admin-form button.is-loading::before {
  width: 14px;
  height: 14px;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  content: "";
  display: inline-block;
  vertical-align: -2px;
  animation: staff-button-spin 0.7s linear infinite;
}

@keyframes staff-button-spin {
  to { transform: rotate(360deg); }
}

.staff-admin-row .staff-delete-button {
  border: 1px solid rgba(255, 91, 77, 0.48);
  background: rgba(255, 75, 43, 0.08);
  color: #ff8b7e;
}

.staff-admin-row .staff-delete-button:hover {
  border-color: rgba(255, 91, 77, 0.78);
  background: rgba(255, 75, 43, 0.17);
}

.staff-admin-row .staff-delete-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.management-staff-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.staff-inactive-group {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.staff-inactive-group > summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.management-audit {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.management-audit-row small {
  display: block;
  margin-top: 5px;
  color: #c2a66d;
  font-size: 10px;
  line-height: 1.45;
}

.staff-location-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}

.staff-location-switch button {
  display: grid;
  gap: 3px;
  min-height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  text-align: left;
}

.staff-location-switch button.is-active {
  border-color: rgba(215, 169, 77, 0.62);
  background: linear-gradient(135deg, rgba(215, 169, 77, 0.18), rgba(255, 75, 43, 0.08));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(215, 169, 77, 0.12);
}

.staff-location-switch span,
.staff-location-switch small {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-location-switch strong {
  color: inherit;
  font-size: 18px;
}

.staff-location-context,
.staff-location-empty {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.staff-location-empty {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-align: center;
}

.staff-active-toggle {
  display: flex !important;
  min-height: 42px;
  align-items: center;
  gap: 7px !important;
}

.staff-active-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.analytics-filter {
  grid-template-columns: 180px 180px auto;
  justify-content: start;
  margin-bottom: 8px;
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0;
}

.analytics-preview-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 5px 9px;
  border: 1px solid rgba(231, 179, 81, 0.34);
  border-radius: 999px;
  color: #e7b351;
  background: rgba(231, 179, 81, 0.08);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analytics-preview-badge[hidden] {
  display: none;
}

.member-growth-overview {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(0, 2.28fr);
  gap: 12px;
  margin: 16px 0;
}

.analytics-today-card {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 310px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(231, 179, 81, 0.38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 14%, rgba(242, 75, 53, 0.18), transparent 44%),
    linear-gradient(145deg, rgba(231, 179, 81, 0.12), rgba(255, 255, 255, 0.025));
}

.analytics-today-card::after {
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(231, 179, 81, 0.14);
  border-radius: 50%;
  content: "";
}

.analytics-today-card h3,
.analytics-today-card p {
  margin: 0;
}

.analytics-today-card h3 {
  margin-top: 8px;
  color: var(--text);
  font-size: clamp(18px, 2vw, 25px);
}

.analytics-today-card > strong {
  margin: 18px 0 12px;
  color: #f7f1e8;
  font-size: clamp(58px, 8vw, 88px);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.analytics-today-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.analytics-member-trend {
  min-height: 310px;
  padding: 18px 20px 14px;
}

.analytics-chart-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.analytics-chart-heading h3,
.analytics-chart-heading p {
  margin: 0;
}

.analytics-card .analytics-chart-heading h3 {
  margin: 0;
}

.analytics-chart-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.analytics-chart-heading > strong {
  color: #e7b351;
  font-size: 11px;
  text-align: right;
}

.member-trend-chart {
  position: relative;
  min-height: 240px;
}

.member-trend-chart svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  overflow: visible;
}

.member-trend-grid {
  stroke: rgba(255, 255, 255, 0.09);
  stroke-width: 1;
}

.member-trend-axis {
  fill: #918e96;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
}

.member-trend-line {
  fill: none;
  stroke: #e7b351;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.member-trend-point {
  fill: #141416;
  stroke: #ffcf70;
  stroke-width: 3;
}

.analytics-chart-empty,
.analytics-chart-zero-note {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.analytics-chart-empty {
  display: grid;
  min-height: 220px;
  margin: 0;
  place-items: center;
}

.analytics-chart-zero-note {
  position: absolute;
  inset: 45% 16px auto;
  margin: 0;
}

.analytics-kpis article {
  display: grid;
  gap: 6px;
  min-height: 86px;
  align-content: center;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.analytics-kpis span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.analytics-kpis strong {
  color: var(--text);
  font-size: 24px;
}

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

.analytics-card {
  min-width: 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.analytics-card h3 {
  margin: 0 0 10px;
}

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

.analytics-table-row {
  display: grid;
  grid-auto-columns: minmax(86px, 1fr);
  grid-auto-flow: column;
  min-width: 440px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.analytics-table-row span {
  padding: 9px 7px;
  color: #d8d4cc;
  font-size: 11px;
}

.analytics-table-head {
  border-top: 0;
  background: rgba(215, 169, 77, 0.07);
}

.analytics-table-head span {
  color: #d7a94d;
  font-weight: 850;
}

.analytics-export {
  margin-top: 16px;
  padding: 15px;
  border: 1px solid rgba(215, 169, 77, 0.2);
  border-radius: 12px;
  background: rgba(215, 169, 77, 0.045);
}

.analytics-export-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.analytics-export-buttons button {
  background: rgba(255, 255, 255, 0.1);
}

/* Compact mobile-first membership dashboard */
.analytics-location-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.analytics-location-switch button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 9px 8px;
  background: rgba(255, 255, 255, 0.028);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.analytics-location-switch button.is-active {
  border-color: rgba(215, 169, 77, 0.62);
  background: linear-gradient(135deg, rgba(215, 169, 77, 0.2), rgba(255, 75, 43, 0.1));
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(215, 169, 77, 0.1);
}

.analytics-location-switch button:focus-visible {
  outline: 3px solid rgba(255, 75, 43, 0.6);
  outline-offset: 2px;
}

.analytics-range-control,
.analytics-disclosure {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.028);
}

.analytics-range-control > summary,
.analytics-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 14px;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.analytics-range-control > summary::-webkit-details-marker,
.analytics-disclosure > summary::-webkit-details-marker {
  display: none;
}

.analytics-range-control > summary::after,
.analytics-disclosure > summary::after {
  color: var(--muted);
  content: "›";
  font-size: 20px;
  line-height: 1;
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.analytics-range-control[open] > summary::after,
.analytics-disclosure[open] > summary::after {
  transform: rotate(-90deg);
}

.analytics-range-control > summary span,
.analytics-disclosure > summary span {
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.analytics-range-control > summary strong,
.analytics-disclosure > summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.analytics-range-control .analytics-filter {
  margin: 0;
  padding: 0 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 14px;
}

.analytics-total-context {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0 10px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.analytics-total-context span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.analytics-total-context strong {
  color: #f0d28d;
  font-size: 15px;
}

.analytics-key-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.analytics-key-card {
  display: grid;
  min-height: 142px;
  align-content: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.032);
}

.analytics-key-card.is-today {
  border-color: rgba(238, 71, 48, 0.34);
  background: linear-gradient(145deg, rgba(238, 71, 48, 0.13), rgba(255, 255, 255, 0.025));
}

.analytics-key-card.is-growth {
  border-color: rgba(231, 179, 81, 0.32);
  background: linear-gradient(145deg, rgba(231, 179, 81, 0.11), rgba(255, 255, 255, 0.025));
}

.analytics-key-card p,
.analytics-key-card h3,
.analytics-key-card span {
  margin: 0;
}

.analytics-key-card h3 {
  margin-top: 5px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.15;
}

.analytics-key-card > strong {
  margin: 12px 0 7px;
  color: #f7f1e8;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.analytics-key-card > span {
  min-height: 16px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.analytics-key-card > span[data-tone="up"] {
  color: #86d89c;
}

.analytics-key-card > span[data-tone="down"] {
  color: #ff8b7a;
}

.analytics-member-trend {
  min-height: 0;
  margin-top: 0;
  padding: 16px 18px 12px;
}

.analytics-window-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
}

.analytics-window-switch button {
  min-height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 11px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.analytics-window-switch button.is-active {
  background: rgba(231, 179, 81, 0.15);
  color: #f0cc78;
}

.analytics-trend-total {
  display: block;
  margin: 4px 0 0;
  color: #e7b351;
  font-size: 11px;
}

.analytics-secondary-sections {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.analytics-disclosure[open] {
  border-color: rgba(215, 169, 77, 0.22);
}

.analytics-disclosure-body {
  padding: 0 13px 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 12px;
}

.analytics-disclosure .analytics-table-row {
  min-width: 360px;
}

.staff-action-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-action-heading,
.staff-action-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.staff-action-heading {
  margin-bottom: 10px;
}

.staff-action-heading h4,
.staff-action-heading p,
.staff-action-item p {
  margin: 0;
}

.staff-action-heading h4 {
  color: var(--text);
  font-size: 13px;
}

.staff-action-heading p,
.staff-action-heading > strong {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.staff-action-heading > strong {
  flex: 0 0 auto;
  color: #e7b351;
}

.staff-action-list {
  display: grid;
  max-height: 560px;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(215, 169, 77, 0.5) transparent;
}

.staff-action-item {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.staff-action-item-heading strong {
  color: #f2ece2;
  font-size: 12px;
}

.staff-action-item-heading time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.staff-action-item > p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.staff-action-item .staff-action-member {
  color: #d8d4cc;
  font-weight: 750;
}

.staff-action-item .staff-action-detail {
  color: #e7b351;
}

.staff-action-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.analytics-export-disclosure .analytics-export-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: stretch;
}

.analytics-export-disclosure .analytics-export-buttons button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  color: var(--text);
}

@media (max-width: 720px) {
  .staff-login-form,
  .management-search,
  .management-backfill-grid,
  .management-columns,
  .management-stats {
    grid-template-columns: 1fr;
  }

  .staff-admin-form,
  .staff-admin-row,
  .analytics-filter,
  .analytics-grid,
  .analytics-kpis,
  .member-growth-overview {
    grid-template-columns: 1fr;
  }

  .management-staff-list {
    gap: 10px;
  }

  .staff-admin-item {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.032);
  }

  .staff-admin-item[open] {
    border-color: rgba(215, 169, 77, 0.3);
    background: rgba(215, 169, 77, 0.045);
  }

  .staff-admin-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 14px;
    gap: 10px;
    align-items: center;
    min-height: 72px;
    padding: 13px 14px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
  }

  .staff-admin-summary::-webkit-details-marker {
    display: none;
  }

  .staff-admin-summary::after {
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    content: "";
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 160ms ease;
  }

  .staff-admin-item[open] .staff-admin-summary::after {
    transform: rotate(225deg) translate(-1px, -1px);
  }

  .staff-admin-summary-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
  }

  .staff-admin-summary-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .staff-admin-summary-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .staff-admin-summary-status {
    padding: 5px 8px;
    border: 1px solid rgba(110, 217, 139, 0.28);
    border-radius: 999px;
    background: rgba(110, 217, 139, 0.09);
    color: #8ee4a5;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .staff-admin-summary-status.is-inactive {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
  }

  .staff-admin-item .staff-admin-row {
    padding: 15px 14px 14px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0;
    background: rgba(0, 0, 0, 0.12);
  }

  .analytics-today-card {
    min-height: 190px;
  }

  .analytics-member-trend {
    min-height: 0;
    padding-inline: 12px;
  }

  .analytics-chart-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .analytics-chart-heading > strong {
    text-align: left;
  }

  .management-section-heading,
  .analytics-export,
  .management-backfill-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .management-backfill > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .management-backfill > summary > span:last-child {
    text-align: left;
  }

  .management-backfill-grid input,
  .management-backfill-grid select,
  .management-backfill-reason input,
  .management-backfill-submit button {
    min-height: 58px;
    font-size: 16px;
  }

  .management-section-heading > p {
    text-align: left;
  }

  .analytics-export-buttons {
    justify-content: flex-start;
  }

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

  .analytics-key-card {
    min-height: 128px;
    padding: 13px;
  }

  .analytics-key-card h3 {
    font-size: 13px;
  }

  .analytics-key-card > strong {
    font-size: 36px;
  }

  .member-trend-chart {
    min-height: 200px;
  }

  .member-trend-chart svg {
    min-height: 190px;
  }

  .analytics-range-control .analytics-filter {
    gap: 9px;
  }

  .analytics-export-disclosure .analytics-export-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .staff-action-list {
    max-height: 480px;
  }

  .staff-action-item-heading {
    display: grid;
    gap: 3px;
  }

  .staff-action-heading {
    display: grid;
    gap: 3px;
  }

  .staff-action-heading > strong {
    justify-self: start;
  }

  .staff-action-item-heading time {
    justify-self: start;
  }

  .staff-session-actions {
    justify-content: flex-start;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(168, 33, 28, 0.16), transparent 30%),
    linear-gradient(135deg, #070708 0%, #101114 45%, #070708 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(280px, 390px);
  gap: 32px;
  min-height: 100vh;
  justify-content: center;
  align-items: start;
  padding: 32px;
}

.customer-app-shell {
  display: grid;
  min-height: 100vh;
  justify-content: center;
  align-items: start;
  padding: 32px;
}

.phone-frame,
.side-preview > section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(26, 27, 31, 0.96), rgba(11, 12, 14, 0.98));
  box-shadow: 0 26px 80px var(--shadow);
}

.phone-frame {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 64px);
  max-height: 900px;
  border-radius: 34px;
  padding: 22px 20px 34px;
}

.customer-frame {
  width: min(430px, calc(100vw - 36px));
  overflow-y: auto;
}

.customer-view {
  display: none;
}

.customer-view.active {
  display: block;
}

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

.top-bar,
.section-heading,
.wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.brand-logo {
  display: block;
  width: 124px;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
}

.top-bar .brand-logo {
  margin-bottom: 7px;
}

.register-hero .brand-logo {
  width: 116px;
  margin-bottom: 10px;
}

.staff-card-heading .brand-logo {
  width: 132px;
  margin-bottom: 10px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 31px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 8px;
  font-size: 20px;
}

h3 {
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 13px;
  text-transform: uppercase;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wallet-placeholder {
  opacity: 0.92;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.wallet-placeholder:hover,
.wallet-placeholder:focus-visible {
  border-color: rgba(238, 174, 66, 0.72);
  background: rgba(238, 174, 66, 0.12);
  transform: translateY(-1px);
}

.apple-wallet-badge-button {
  display: grid;
  flex: 0 0 auto;
  width: 150px;
  height: 54px;
  padding: 5px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.apple-wallet-badge-button img {
  display: block;
  width: 140px;
  height: auto;
}

.apple-wallet-badge-button:focus-visible {
  outline: 2px solid rgba(238, 174, 66, 0.9);
  outline-offset: 2px;
}

.customer-top-bar {
  display: grid;
  gap: 11px;
}

.customer-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.customer-utility-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.customer-top-bar .brand-logo {
  width: 132px;
  margin-bottom: 0;
}

.customer-top-bar h1 {
  font-size: clamp(27px, 7vw, 31px);
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .apple-wallet-badge-button {
    width: 133px;
    height: 48px;
    padding: 4px;
  }

  .apple-wallet-badge-button img {
    width: 125px;
    height: auto;
  }

  .customer-top-bar .brand-logo {
    width: 118px;
  }

  .customer-top-bar h1 {
    font-size: 25px;
  }
}

.member-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(215, 169, 77, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 20%, rgba(215, 169, 77, 0.13), transparent 48%),
    rgba(255, 255, 255, 0.035);
}

.member-context strong,
.member-context span {
  display: block;
}

.member-context strong {
  font-size: 14px;
}

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

.member-context-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.member-context-actions span {
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}

.member-context-actions button {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.member-context-actions button:active {
  transform: translateY(1px);
}

.register-page {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.register-hero {
  padding: 16px;
  border: 1px solid rgba(255, 83, 61, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 83, 61, 0.21), transparent 40%),
    radial-gradient(circle at 18% 4%, rgba(215, 169, 77, 0.12), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    #111216;
  box-shadow:
    0 0 34px rgba(255, 83, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.register-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 102px;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.register-badge-art {
  width: 102px;
  height: 102px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(255, 83, 61, 0.34));
}

.register-hero h2 {
  margin: 7px 0 0;
  max-width: 230px;
  font-size: 30px;
  line-height: 1;
}

.register-hero p:not(.eyebrow) {
  margin: 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.register-card {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.06), transparent 48%),
    rgba(255, 255, 255, 0.025);
}

.register-form {
  display: grid;
  gap: 11px;
}

.register-form label {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.register-form input,
.register-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  padding: 0 12px;
}

.register-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(200, 193, 178, 0.75) 50%) calc(100% - 17px) 18px / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(200, 193, 178, 0.75) 50%, transparent 50%) calc(100% - 11px) 18px / 6px 6px no-repeat,
    rgba(0, 0, 0, 0.24);
  padding-right: 27px;
}

.register-form .phone-field input {
  min-height: 52px;
  border-color: rgba(255, 83, 61, 0.28);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 83, 61, 0.1), transparent 44%),
    rgba(0, 0, 0, 0.3);
  font-size: 18px;
  font-weight: 800;
}

.register-optional-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 10px;
}

.birthday-selects {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 8px;
}

.register-form input::placeholder {
  color: rgba(200, 193, 178, 0.42);
}

.register-form button,
.register-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ember), #a91520);
  color: white;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(255, 83, 61, 0.18);
}

.register-link.secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.register-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}

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

.register-note[data-tone="error"] {
  color: var(--gold);
}

.start-shell {
  align-items: center;
}

.start-frame {
  min-height: auto;
  max-height: none;
  padding-bottom: 24px;
}

.start-frame .top-bar {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.start-frame .top-bar .brand-logo {
  width: 132px;
  margin-bottom: 8px;
}

.start-frame h1 {
  font-size: 30px;
}

.start-page {
  gap: 12px;
  margin-top: 16px;
}

.start-page .register-hero {
  padding: 18px;
  border-color: rgba(255, 83, 61, 0.34);
  background:
    radial-gradient(circle at 82% 44%, rgba(255, 83, 61, 0.24), transparent 36%),
    radial-gradient(circle at 18% 0%, rgba(215, 169, 77, 0.1), transparent 44%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.062), rgba(255, 255, 255, 0.018)),
    #111216;
}

.start-page .register-hero-top {
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 14px;
  margin-bottom: 0;
}

.start-page .register-badge-art {
  width: 112px;
  height: 112px;
}

.start-page .register-hero h2 {
  margin-top: 0;
  max-width: 250px;
  font-size: 30px;
  line-height: 0.98;
}

.start-hero-copy {
  margin: 11px 0 0;
  max-width: 230px;
  color: rgba(200, 193, 178, 0.76);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.start-form[hidden],
.start-returning-card[hidden],
.start-signup-panel[hidden] {
  display: none;
}

.start-form {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 83, 61, 0.1), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(255, 255, 255, 0.025);
}

.start-form .phone-field {
  gap: 9px;
}

.start-form .phone-field input {
  min-height: 54px;
}

.start-form button {
  min-height: 48px;
  font-size: 16px;
}

.start-returning-card h2,
.start-signup-panel h2 {
  margin: 5px 0 7px;
  font-size: 25px;
  line-height: 1;
}

.start-returning-card p:not(.eyebrow),
.start-signup-panel p:not(.eyebrow) {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.start-actions {
  display: grid;
  gap: 10px;
}

.register-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0;
  margin: 15px 0 0;
  list-style: none;
}

.register-benefits article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.register-benefits span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(255, 113, 83, 0.95), rgba(129, 22, 24, 0.95));
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.register-benefits strong,
.register-benefits small {
  display: block;
}

.register-benefits strong {
  font-size: 13px;
  line-height: 1.15;
}

.register-benefits small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.reward-hero {
  margin: 26px 0 12px;
  padding: 18px 16px 16px;
  border: 1px solid rgba(255, 83, 61, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 6%, rgba(255, 83, 61, 0.18), transparent 48%),
    radial-gradient(circle at 50% 64%, rgba(215, 169, 77, 0.08), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    #111216;
  box-shadow:
    0 0 34px rgba(255, 83, 61, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -24px 36px rgba(0, 0, 0, 0.22);
}

.hero-intro {
  text-align: center;
}

.hero-intro h2 {
  margin: 7px 0 8px;
  font-size: 31px;
  line-height: 1;
}

.hero-intro p:not(.eyebrow) {
  margin: 0 auto;
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-progress {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  margin: 26px 0 18px;
}

.customer-page .hero-progress {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 20px;
  margin: 24px 0 16px;
  text-align: center;
}

.customer-page .hero-copy h2 {
  font-size: 31px;
}

.reward-hero .hero-copy {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.reward-hero .hero-copy h2 {
  margin: 0;
  font-size: 25px;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.hero-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.hero-action.primary {
  border-color: rgba(255, 83, 61, 0.42);
  background: linear-gradient(135deg, var(--ember), #a91520);
  box-shadow: 0 0 22px rgba(255, 83, 61, 0.18);
}

.progress-ring {
  --ring-progress: 216deg;
  display: grid;
  width: 142px;
  height: 142px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(var(--ember) 0 var(--ring-progress), rgba(255, 255, 255, 0.08) var(--ring-progress) 360deg),
    radial-gradient(circle, rgba(255, 78, 49, 0.2), transparent 64%);
  box-shadow: 0 0 44px rgba(255, 66, 43, 0.32);
}

.progress-ring.complete {
  --ring-progress: 360deg;
}

.locked-preview-mode .progress-ring {
  background:
    conic-gradient(rgba(124, 127, 136, 0.22) 0 360deg),
    radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 66%);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.32);
}

.ring-core {
  display: flex;
  flex-direction: column;
  width: 104px;
  height: 104px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #25262b, #0c0d10 65%);
}

.ring-core span {
  font-size: 42px;
  font-weight: 800;
  line-height: 0.82;
}

.ring-core small {
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.hero-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-copy h2 {
  font-size: 24px;
  line-height: 1.1;
}

.momo-panel,
.staff-panel,
.wallet-card,
.stamp-result {
  border-radius: 8px;
}

.primary-reward-card,
.home-summary,
.reward-card,
.next-reward-card,
.how-it-works {
  border-radius: 8px;
}

.next-reward-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 12px;
  padding: 15px;
  border: 1px solid rgba(215, 169, 77, 0.28);
  background:
    radial-gradient(circle at 16% 30%, rgba(215, 169, 77, 0.14), transparent 46%),
    rgba(255, 255, 255, 0.035);
}

.next-reward-card h2,
.next-reward-card p {
  margin: 0;
}

.next-reward-card h2 {
  margin: 4px 0 5px;
  font-size: 22px;
}

.next-reward-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.reward-meter {
  display: grid;
  min-width: 78px;
  justify-items: center;
  padding: 10px 8px;
  border: 1px solid rgba(215, 169, 77, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 169, 77, 0.18), transparent 64%),
    rgba(255, 255, 255, 0.035);
}

.reward-meter strong {
  color: var(--gold);
  font-size: 18px;
}

.reward-meter span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.how-it-works {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.06), transparent 48%),
    rgba(255, 255, 255, 0.025);
}

.step-list {
  display: grid;
  gap: 9px;
}

.step-list article {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
}

.step-list article > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 113, 83, 0.95), rgba(129, 22, 24, 0.95));
  color: white;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(255, 83, 61, 0.22);
}

.step-list strong,
.step-list p {
  display: block;
  margin: 0;
}

.step-list strong {
  font-size: 13px;
}

.step-list p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.primary-reward-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid rgba(255, 83, 61, 0.3);
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 83, 61, 0.2), transparent 46%),
    linear-gradient(145deg, rgba(255, 83, 61, 0.11), rgba(255, 255, 255, 0.035));
}

.ready-rewards {
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(255, 83, 61, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 83, 61, 0.13), transparent 54%),
    rgba(255, 255, 255, 0.025);
}

.ready-rewards.no-rewards {
  border-color: rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 52%),
    rgba(255, 255, 255, 0.025);
}

.reward-empty-copy {
  display: none;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.ready-rewards.no-rewards .reward-empty-copy {
  display: block;
}

.compact-heading {
  margin-bottom: 10px;
}

.compact-heading h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.compact-heading span,
.page-heading span {
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

.featured-reward {
  box-shadow:
    0 0 28px rgba(255, 83, 61, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pass-note {
  grid-template-columns: 1fr auto;
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.065), transparent 46%),
    rgba(255, 255, 255, 0.025);
}

.member-code {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.member-code span {
  color: var(--gold);
}

.member-qr-shell {
  display: grid;
  width: 150px;
  min-width: 150px;
  aspect-ratio: 1;
  place-items: center;
  padding: 5px;
  border: 1px solid rgba(215, 169, 77, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.24);
}

.member-qr-trigger {
  cursor: pointer;
}

.member-qr-trigger:focus-visible {
  outline: 2px solid rgba(215, 169, 77, 0.72);
  outline-offset: 3px;
}

.member-qr {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  padding: 3px;
  border-radius: 6px;
  background: #f4efe4;
}

.member-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-zoom-backdrop {
  position: fixed;
  inset: 0;
  z-index: 34;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
}

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

.qr-zoom-card {
  position: relative;
  display: grid;
  width: min(356px, 100%);
  justify-items: center;
  border: 1px solid rgba(215, 169, 77, 0.28);
  border-radius: 8px;
  padding: 22px 20px 20px;
  background:
    linear-gradient(180deg, rgba(28, 29, 33, 0.98), rgba(14, 15, 18, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  text-align: center;
}

.qr-zoom-card h2,
.qr-zoom-card p {
  margin: 0;
}

.qr-zoom-card h2 {
  margin-top: 4px;
  font-size: 30px;
  line-height: 1.05;
}

.qr-zoom-card p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.qr-zoom-code {
  width: min(280px, calc(100vw - 90px));
  margin-top: 18px;
  padding: 8px;
  border-radius: 8px;
}

.qr-zoom-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.reward-pass-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
}

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

.reward-pass-modal {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  width: min(390px, 100%);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  border: 1px solid rgba(255, 83, 61, 0.28);
  border-radius: 8px;
  padding: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 83, 61, 0.17), transparent 44%),
    radial-gradient(circle at 50% 54%, rgba(215, 169, 77, 0.12), transparent 50%),
    #16171b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  text-align: center;
}

.reward-pass-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0 0 -34px auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-height: 620px) {
  .reward-pass-backdrop {
    place-items: start center;
    padding: 12px;
  }

  .reward-pass-modal {
    padding: 14px 18px 16px;
  }

  .reward-pass-art {
    width: 76px;
    height: 76px;
    margin-bottom: 8px;
  }

  .reward-pass-art img {
    max-height: 86px;
  }

  .reward-pass-modal h2 {
    font-size: 28px;
  }

  .reward-pass-qr-wrap {
    width: 154px;
    height: 154px;
    margin: 12px auto 10px;
  }

  .reward-pass-qr {
    width: 124px;
  }
}

.reward-pass-art {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  margin: 4px auto 14px;
}

.reward-pass-art img {
  display: block;
  max-width: 100%;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(215, 169, 77, 0.28));
}

.reward-pass-modal h2,
.reward-pass-modal p {
  margin: 0;
}

.reward-pass-modal h2 {
  margin-top: 5px;
  font-size: 32px;
  line-height: 1.04;
}

.reward-pass-status {
  margin-top: 8px !important;
  color: var(--soft);
  font-size: 16px;
  font-weight: 800;
}

.reward-pass-qr-wrap {
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  margin: 18px auto 14px;
  border: 1px solid rgba(215, 169, 77, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(215, 169, 77, 0.16), transparent 58%),
    rgba(255, 255, 255, 0.05);
}

.reward-pass-qr {
  width: 142px;
}

.reward-pass-rules {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.28;
  list-style: none;
}

.reward-pass-rules li {
  padding: 0;
}

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
}

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

.login-modal {
  position: relative;
  width: min(390px, 100%);
  border: 1px solid rgba(215, 169, 77, 0.26);
  border-radius: 8px;
  padding: 20px;
  background:
    radial-gradient(circle at 85% 0%, rgba(215, 169, 77, 0.16), transparent 48%),
    radial-gradient(circle at 0% 30%, rgba(255, 83, 61, 0.12), transparent 45%),
    #16171b;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.login-modal h2,
.login-modal p {
  margin: 0;
}

.login-modal h2 {
  margin-top: 5px;
  font-size: 30px;
  line-height: 1.05;
}

.login-modal > p:not(.eyebrow),
.login-helper {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.38;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 0 12px;
  font-size: 16px;
  font-weight: 850;
}

.login-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ember), #a91520);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

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

.login-helper[data-tone="error"] {
  color: var(--gold);
}

.primary-reward-card h2,
.primary-reward-card p {
  margin: 0;
}

.primary-reward-card h2 {
  margin: 4px 0 6px;
}

.primary-reward-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
}

.primary-reward-card button,
.reward-card button {
  min-width: 74px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ember), #a91520);
  color: white;
  font-weight: 800;
}

.momo-panel {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 12px 0 28px;
  padding: 14px;
  border: 1px solid rgba(215, 169, 77, 0.18);
  background: linear-gradient(135deg, rgba(215, 169, 77, 0.12), rgba(255, 255, 255, 0.03));
}

.momo-panel.reward-ready {
  border-color: rgba(215, 169, 77, 0.34);
  background:
    radial-gradient(circle at 8% 50%, rgba(215, 169, 77, 0.22), transparent 42%),
    linear-gradient(135deg, rgba(215, 169, 77, 0.13), rgba(255, 255, 255, 0.03));
}

.momo-panel h3,
.momo-panel p {
  margin: 0;
}

.momo-panel p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.badge-section {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.page-heading {
  align-items: flex-start;
  margin: 22px 0 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.page-heading h2 {
  margin: 0;
  font-size: 28px;
}

.prestige-stage-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  margin: 24px 0 0;
  padding: 22px 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid rgba(215, 169, 77, 0.18);
  text-align: center;
}

.prestige-medal-shell {
  width: min(220px, 66vw);
  aspect-ratio: 1 / 1;
}

.prestige-medal {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 22px rgba(215, 169, 77, 0.13));
}

.prestige-medal-zh {
  display: none;
  width: 100%;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 3px solid #f3bd55;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 205, 97, 0.3), transparent 31%),
    linear-gradient(145deg, #8c241c, #3b1110 68%, #160909);
  color: #f9d478;
  box-shadow: inset 0 0 0 4px #642017, inset 0 0 0 6px rgba(255, 203, 89, 0.58), 0 8px 20px rgba(0, 0, 0, 0.38);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.55);
}

.prestige-medal-zh b {
  font-family: Georgia, serif;
  font-size: clamp(30px, 8vw, 48px);
  line-height: 0.9;
}

.prestige-medal-zh small {
  margin-top: 7px;
  font-size: clamp(10px, 2.6vw, 14px);
  font-weight: 900;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

html[lang="zh-Hans"] .prestige-medal { display: none; }
html[lang="zh-Hans"] .prestige-medal-zh { display: flex; }

.prestige-stage-copy {
  display: grid;
  justify-items: center;
  gap: 5px;
  max-width: 340px;
}

.prestige-stage-copy small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prestige-stage-copy strong {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 39px;
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.prestige-stage-copy span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.prestige-stage-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.prestige-stage-track::before {
  position: absolute;
  top: 23px;
  right: 16.66%;
  left: 16.66%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gold) 0 74%, rgba(255, 83, 61, 0.72) 74% 100%);
}

.prestige-stage-track li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
}

.prestige-stage-marker {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: var(--muted);
  background: #111114;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
}

.prestige-stage-track li > strong {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.prestige-stage-track li > small {
  color: #6f7077;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.prestige-stage-track li.is-complete .prestige-stage-marker {
  border-color: rgba(215, 169, 77, 0.78);
  color: #15120c;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(215, 169, 77, 0.18);
}

.prestige-stage-track li.is-complete > strong,
.prestige-stage-track li.is-complete > small {
  color: var(--gold);
}

.prestige-stage-track li.is-current .prestige-stage-marker {
  border-color: #ff5d47;
  color: #fff;
  background: linear-gradient(135deg, #ff5d47, #b31320);
  box-shadow: 0 0 0 4px rgba(255, 83, 61, 0.13), 0 0 20px rgba(255, 83, 61, 0.42);
}

.prestige-stage-track li.is-current > strong {
  color: #ff5d47;
}

.prestige-stage-track li.is-current > small {
  color: var(--text);
}

.prestige-cycle-progress {
  display: grid;
  width: 100%;
  gap: 6px;
  text-align: left;
}

.prestige-cycle-progress > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.prestige-cycle-progress > span strong {
  color: var(--gold);
  font-size: 22px;
}

.prestige-cycle-progress-track {
  overflow: hidden;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.prestige-cycle-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #bb812c, var(--gold));
  box-shadow: 0 0 12px rgba(215, 169, 77, 0.26);
  transition: width 360ms ease;
}

.prestige-stage-card.is-complete .prestige-stage-copy strong {
  color: var(--gold);
  font-size: 36px;
}

.prestige-stage-card.is-complete .prestige-cycle-progress-track i {
  background: linear-gradient(90deg, #bb812c, #f1c76b);
}

.badge-heading-progress {
  display: grid;
  width: min(58%, 230px);
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.badge-heading-progress > [data-badge-count] {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.next-badge-goal {
  display: grid;
  max-width: 230px;
  gap: 2px;
}

.next-badge-goal small {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.next-badge-goal strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.2;
}

.next-badge-goal span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
}

.lifetime-benefit-icon {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  text-shadow: 0 0 16px rgba(215, 169, 77, 0.48);
}

.home-summary {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.mini-badge-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.mini-badge-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 83, 61, 0.1), transparent 48%),
    rgba(255, 255, 255, 0.025);
  filter: drop-shadow(0 0 14px rgba(255, 72, 43, 0.22));
}

.reward-section {
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
}

.next-reward-section {
  margin-top: 6px;
}

.reward-section:first-of-type {
  border-top: 0;
}

.reward-instance-list {
  display: contents;
}

.reward-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 16% 30%, rgba(255, 83, 61, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.035);
}

.reward-card.available {
  border-color: rgba(255, 83, 61, 0.24);
}

.reward-card.plush {
  border-color: rgba(215, 169, 77, 0.28);
  min-height: 86px;
}

.reward-card.upcoming,
.reward-card.redeemed {
  grid-template-columns: 58px 1fr;
}

.reward-card strong,
.reward-card span {
  display: block;
}

.reward-card strong {
  font-size: 16px;
}

.reward-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.reward-badge-icon {
  display: grid;
  justify-self: center;
  width: 58px;
  height: 58px;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(215, 169, 77, 0.14), transparent 60%);
}

.reward-badge-icon img {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 184, 64, 0.32));
}

/*
 * Safari on iOS can flicker while scrolling a transparent WebP that has a
 * drop-shadow filter. Keep the Diamond reward artwork static and render its
 * glow on the container instead, which avoids repeated image compositing.
 */
.reward-card.diamond-reward .reward-badge-icon {
  background: radial-gradient(circle at 50% 50%, rgba(240, 68, 199, 0.24), transparent 66%);
}

.reward-card.diamond-reward .reward-badge-icon img {
  filter: none;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.upcoming-reward-icon {
  background: radial-gradient(circle at 50% 50%, rgba(215, 169, 77, 0.09), transparent 62%);
}

.upcoming-reward-icon img {
  filter: drop-shadow(0 0 10px rgba(215, 169, 77, 0.16));
}

.momo-reward-icon {
  display: grid;
  justify-self: center;
  width: 58px;
  height: 58px;
  place-items: center;
  background: radial-gradient(circle at 50% 52%, rgba(215, 169, 77, 0.18), transparent 66%);
}

.momo-reward-icon img {
  display: block;
  width: 44px;
  height: 76px;
  object-fit: contain;
  transform: translateY(-4px);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(215, 169, 77, 0.24));
}

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

.badge-card-slot {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: start;
}

.badge-card-slot > .badge-card {
  width: 100%;
}

.review-hero-slot {
  display: contents;
}

.review-hero-slot > .google-review-link {
  grid-column: 3;
  margin-top: 7px;
}

.google-review-link {
  display: inline-flex;
  width: max-content;
  min-width: 0;
  max-width: 100%;
  min-height: 31px;
  padding: 5px 2px 4px;
  align-items: center;
  justify-self: center;
  gap: 5px;
  border: 0;
  border-radius: 4px;
  color: #f0eee9;
  background: transparent;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: none;
  transition: color 160ms ease, opacity 160ms ease;
}

.google-review-logo {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  object-fit: contain;
}

.google-review-link-copy {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  padding: 0 1px 3px;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid rgba(219, 168, 63, 0.72);
  white-space: nowrap;
}

.google-review-external-icon {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  opacity: 0.72;
  filter: invert(94%) sepia(8%) saturate(168%) hue-rotate(352deg) brightness(99%) contrast(91%);
}

.google-review-link:hover,
.google-review-link:focus-visible {
  color: #ffffff;
}

.google-review-link:hover .google-review-link-copy,
.google-review-link:focus-visible .google-review-link-copy {
  border-bottom-color: rgba(239, 187, 73, 1);
}

.google-review-link:focus-visible {
  outline: 2px solid rgba(239, 187, 73, 0.42);
  outline-offset: 3px;
}

.badge-card {
  --lit: 0.12;
  --neon: var(--ember);
  --tube-dim: rgba(102, 104, 111, 0.32);
  position: relative;
  display: grid;
  min-height: 138px;
  padding: 0;
  place-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    #111216;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -16px 26px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  perspective: 900px;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.badge-card::before {
  display: none;
  content: "";
}

.badge-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.16);
}

.badge-card-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 136px;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.78, 0.22, 1);
}

.badge-card.is-flipped .badge-card-inner {
  transform: rotateY(180deg);
}

.badge-face {
  grid-area: 1 / 1;
  display: grid;
  width: 100%;
  min-height: 136px;
  box-sizing: border-box;
  border-radius: 8px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.badge-front {
  padding: 12px 8px 10px;
  place-items: center;
}

.badge-back {
  align-content: center;
  gap: 5px;
  padding: 13px 10px;
  text-align: center;
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 22%, color-mix(in srgb, var(--neon) 18%, transparent), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.badge-back-art {
  display: block;
  width: 74px;
  height: 74px;
  margin: 0 auto;
  object-fit: contain;
  transform: scale(var(--badge-art-scale, 1));
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--neon) 28%, transparent));
}

.badge-card strong {
  display: block;
  min-height: 31px;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.badge-back strong {
  min-height: 0;
  color: var(--text);
}

.badge-back-label {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-back-copy,
.badge-back-reward {
  color: #e6e1d8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.badge-back-reward {
  color: #d7a94d;
}

.badge-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}

.badge-status-line,
.badge-reward-line {
  display: block;
}

.badge-status-line {
  color: var(--muted);
}

.badge-reward-line {
  margin-top: 2px;
  color: #c7cad3;
}

.badge-card.has-reward small {
  color: #c7cad3;
}

.badge-card.bonus-reward .badge-reward-line {
  color: #d7a94d;
}

.badge-card.locked {
  --lit: 0;
  --tube-dim: rgba(156, 159, 168, 0.5);
  color: #777b86;
  border-color: rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    #111216;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -16px 26px rgba(0, 0, 0, 0.24);
}

.badge-card.locked::before {
  opacity: 0;
}

.badge-card.locked strong {
  color: #7f838e;
}

.badge-card.locked small {
  color: #a9abb3;
}

.badge-card.locked .badge-art {
  filter: none;
  opacity: 1;
}

.badge-card.locked .badge-back strong,
.badge-card.locked .badge-back-copy {
  color: #c7cad3;
}

.badge-card.progress .badge-art {
  filter: none;
  opacity: 1;
}

.badge-card.unlocked {
  --lit: 1;
  border-color: color-mix(in srgb, var(--neon) 44%, rgba(255, 255, 255, 0.1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 28px rgba(0, 0, 0, 0.22);
}

.badge-card.gold.unlocked {
  --neon: var(--gold);
}

.badge-card.table-moment {
  --neon: #f044c7;
}

.badge-card.table-moment.unlocked {
  border-color: color-mix(in srgb, #f044c7 44%, rgba(255, 255, 255, 0.1));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.01)),
    #111016;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -18px 28px rgba(0, 0, 0, 0.24);
}

.badge-card.diamond.unlocked,
.badge-card.diamond.progress {
  --neon: #91e4ff;
}

.badge-card.progress {
  --lit: 0.54;
  border-color: color-mix(in srgb, var(--neon) 28%, rgba(255, 255, 255, 0.08));
}

.badge-card.progress.gold {
  --neon: var(--gold);
}

.badge-icon {
  --icon-neon: var(--neon);
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 8px;
  border-radius: 42% 42% 34% 34%;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 20%), transparent), transparent 46%),
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(145deg, #222329, #090a0c);
  box-shadow:
    inset 3px 3px 8px rgba(255, 255, 255, 0.05),
    inset -5px -6px 10px rgba(0, 0, 0, 0.6),
    0 12px 24px rgba(0, 0, 0, 0.32);
}

.badge-card .badge-art {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 6px;
  object-fit: contain;
  filter: none;
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, #000 0 76%, rgba(0, 0, 0, 0.92) 88%, transparent 100%);
  mask-image: radial-gradient(circle closest-side at 50% 50%, #000 0 76%, rgba(0, 0, 0, 0.92) 88%, transparent 100%);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  transform: scale(var(--badge-art-scale, 1));
  transform-origin: center;
}

.badge-card.gold .badge-art,
.badge-card.table-moment .badge-art,
.badge-card.diamond .badge-art,
.badge-card.weekday-flame-card .badge-art,
.badge-card.lunch-flame-card .badge-art,
.badge-card.birthday-grill-card .badge-art,
.badge-card.late-grill-card .badge-art,
.badge-card.review-hero-card .badge-art {
  filter: none;
}

.diamond-showcase .state-unlocked {
  filter: drop-shadow(0 0 18px rgba(185, 79, 255, 0.4));
}

.weekday-showcase .state-unlocked {
  filter: drop-shadow(0 0 18px rgba(67, 255, 82, 0.38));
}

.lunch-showcase .state-unlocked {
  filter: drop-shadow(0 0 18px rgba(255, 173, 45, 0.4));
}

.birthday-showcase .state-unlocked {
  filter: drop-shadow(0 0 18px rgba(255, 128, 36, 0.38));
}

.review-showcase .state-unlocked {
  filter: drop-shadow(0 0 18px rgba(55, 255, 119, 0.4));
}

.locked-preview-mode .badge-card.locked .badge-art {
  filter: none;
  opacity: 1;
}

.badge-icon::before,
.badge-icon::after {
  position: absolute;
  content: "";
}

.badge-icon::after {
  inset: 12px;
  border: 2px solid color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 76%), var(--tube-dim));
  border-radius: inherit;
  opacity: calc(0.28 + var(--lit) * 0.72);
  box-shadow:
    0 0 calc(4px + 15px * var(--lit)) color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 72%), transparent),
    inset 0 0 calc(3px + 8px * var(--lit)) color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 38%), transparent);
}

.fire::before {
  left: 20px;
  top: 12px;
  width: 20px;
  height: 31px;
  border: 3px solid color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 88%), var(--tube-dim));
  border-radius: 58% 32% 58% 32%;
  transform: rotate(18deg);
  box-shadow:
    0 0 calc(5px + 16px * var(--lit)) color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 72%), transparent),
    inset 0 0 calc(3px + 8px * var(--lit)) color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 40%), transparent);
}

.collector::before {
  inset: 17px;
  border: 2px solid color-mix(in srgb, var(--gold) calc(var(--lit) * 86%), var(--tube-dim));
  border-radius: 50%;
  box-shadow: 0 0 calc(5px + 14px * var(--lit)) color-mix(in srgb, var(--gold) calc(var(--lit) * 70%), transparent);
}

.legend::before {
  left: 15px;
  top: 15px;
  width: 28px;
  height: 28px;
  border: 2px solid color-mix(in srgb, var(--ember) calc(var(--lit) * 86%), var(--tube-dim));
  transform: rotate(45deg);
  box-shadow: 0 0 calc(5px + 14px * var(--lit)) color-mix(in srgb, var(--ember) calc(var(--lit) * 70%), transparent);
}

.gold-stamp::before,
.host::before,
.circle::before {
  inset: 14px;
  border: 2px solid color-mix(in srgb, var(--gold) calc(var(--lit) * 86%), var(--tube-dim));
  border-radius: 50%;
  box-shadow: 0 0 calc(5px + 14px * var(--lit)) color-mix(in srgb, var(--gold) calc(var(--lit) * 70%), transparent);
}

.host::before {
  border-radius: 8px;
}

.circle::before {
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--gold) calc(var(--lit) * 12%), transparent),
    0 0 calc(5px + 14px * var(--lit)) color-mix(in srgb, var(--gold) calc(var(--lit) * 70%), transparent);
}

.crew::before,
.table::before {
  left: 13px;
  right: 13px;
  top: 25px;
  height: 12px;
  border: 2px solid color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 78%), var(--tube-dim));
  border-radius: 12px;
  box-shadow: 0 0 calc(5px + 14px * var(--lit)) color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 64%), transparent);
}

.diamond::before {
  --icon-neon: #91e4ff;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border: 2px solid color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 86%), var(--tube-dim));
  transform: rotate(45deg);
  box-shadow: 0 0 calc(5px + 16px * var(--lit)) color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 74%), transparent);
}

.weekday::before,
.lunch::before,
.late::before,
.birthday::before,
.review::before {
  inset: 16px;
  border: 2px solid color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 86%), var(--tube-dim));
  border-radius: 50%;
  box-shadow: 0 0 calc(5px + 15px * var(--lit)) color-mix(in srgb, var(--icon-neon) calc(var(--lit) * 70%), transparent);
}

.lunch::before {
  --icon-neon: var(--gold);
  border-radius: 4px 4px 50% 50%;
}

.late::before {
  --icon-neon: var(--neon-blue);
  box-shadow: inset 8px 0 0 rgba(174, 181, 214, 0.2);
}

.birthday::before {
  border-radius: 50% 50% 8px 8px;
  --icon-neon: var(--neon-pink);
}

.review::before {
  --icon-neon: var(--neon-green);
  border-radius: 6px;
}

.bottom-nav {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(13, 14, 17, 0.88);
  backdrop-filter: blur(16px);
}

.customer-frame .bottom-nav {
  position: sticky;
  bottom: 0;
  margin-top: 22px;
  z-index: 3;
}

.bottom-nav button {
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.bottom-nav .active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.side-preview {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 32px;
}

.side-preview > section {
  padding: 18px;
}

.badge-showcase {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 77, 48, 0.13), transparent 48%),
    linear-gradient(180deg, rgba(22, 23, 27, 0.98), rgba(8, 9, 11, 0.98));
}

.badge-showcase h2 {
  margin: 4px 0 6px;
}

.table-moment-showcase {
  background:
    radial-gradient(circle at 50% 18%, rgba(240, 68, 199, 0.14), transparent 46%),
    radial-gradient(circle at 50% 70%, rgba(92, 42, 132, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(22, 20, 27, 0.98), rgba(8, 8, 11, 0.98));
}

.showcase-copy {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.state-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.state-pair article {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.055), transparent 45%),
    #090a0c;
}

.state-pair img {
  width: 126px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.table-moment-showcase .state-unlocked {
  filter: drop-shadow(0 0 18px rgba(240, 68, 199, 0.34));
}

.table-moment-showcase .state-locked {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.44));
}

.state-pair span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.diamond-showcase {
  background:
    radial-gradient(circle at 50% 18%, rgba(155, 75, 255, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(22, 23, 27, 0.98), rgba(8, 9, 11, 0.98));
}

.weekday-showcase {
  background:
    radial-gradient(circle at 50% 18%, rgba(67, 255, 82, 0.14), transparent 48%),
    linear-gradient(180deg, rgba(22, 23, 27, 0.98), rgba(8, 9, 11, 0.98));
}

.lunch-showcase {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 173, 45, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(22, 23, 27, 0.98), rgba(8, 9, 11, 0.98));
}

.review-showcase {
  background:
    radial-gradient(circle at 50% 18%, rgba(55, 255, 119, 0.14), transparent 48%),
    radial-gradient(circle at 50% 72%, rgba(34, 145, 112, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(22, 23, 27, 0.98), rgba(8, 9, 11, 0.98));
}

.birthday-showcase {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 128, 36, 0.14), transparent 48%),
    radial-gradient(circle at 50% 72%, rgba(144, 54, 32, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(22, 23, 27, 0.98), rgba(8, 9, 11, 0.98));
}

.birthday-showcase .state-locked {
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.44));
}

.gold-showcase {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 184, 64, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(22, 23, 27, 0.98), rgba(8, 9, 11, 0.98));
}

.gold-showcase .progress-state-row img {
  filter: drop-shadow(0 0 18px rgba(255, 184, 64, 0.34));
}

.progress-state-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.progress-state-row article {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 9px 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.055), transparent 45%),
    #090a0c;
}

.progress-state-row img {
  width: 84px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.locked-preview-mode .state-pair img,
.locked-preview-mode .progress-state-row img {
  filter:
    brightness(1.24)
    contrast(1.08)
    saturate(0.62)
    drop-shadow(0 12px 18px rgba(0, 0, 0, 0.4));
}

.locked-preview-mode .diamond-showcase .state-unlocked {
  filter: drop-shadow(0 0 24px rgba(185, 79, 255, 0.46));
}

.locked-preview-mode .weekday-showcase .state-unlocked {
  filter: drop-shadow(0 0 24px rgba(67, 255, 82, 0.42));
}

.locked-preview-mode .lunch-showcase .state-unlocked {
  filter: drop-shadow(0 0 24px rgba(255, 173, 45, 0.46));
}

.locked-preview-mode .review-showcase .state-unlocked {
  filter: drop-shadow(0 0 24px rgba(55, 255, 119, 0.46));
}

.progress-state-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.selected-badge-preview {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 76, 44, 0.12), transparent 48%),
    #090a0c;
}

.selected-badge-preview img {
  width: 190px;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  filter: none;
}

.state-pair img,
.progress-state-row img,
.selected-badge-preview img,
.table-moment-showcase .state-locked,
.table-moment-showcase .state-unlocked,
.diamond-showcase .state-unlocked,
.weekday-showcase .state-unlocked,
.lunch-showcase .state-unlocked,
.birthday-showcase .state-locked,
.birthday-showcase .state-unlocked,
.review-showcase .state-unlocked,
.gold-showcase .progress-state-row img,
.locked-preview-mode .state-pair img,
.locked-preview-mode .progress-state-row img,
.locked-preview-mode .diamond-showcase .state-unlocked,
.locked-preview-mode .weekday-showcase .state-unlocked,
.locked-preview-mode .lunch-showcase .state-unlocked,
.locked-preview-mode .review-showcase .state-unlocked {
  filter: none;
  -webkit-mask-image: radial-gradient(circle closest-side at 50% 50%, #000 0 76%, rgba(0, 0, 0, 0.92) 88%, transparent 100%);
  mask-image: radial-gradient(circle closest-side at 50% 50%, #000 0 76%, rgba(0, 0, 0, 0.92) 88%, transparent 100%);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.selected-badge-preview .large-icon {
  width: 150px;
  height: 150px;
  margin: 10px auto 8px;
  --lit: 0;
  --tube-dim: rgba(156, 159, 168, 0.5);
}

.locked-preview-mode .selected-badge-preview.locked-preview {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.055), transparent 48%),
    #090a0c;
}

.selected-badge-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.wallet-card {
  min-height: 210px;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 82, 55, 0.28), transparent 42%),
    linear-gradient(145deg, #26201b, #090a0c 70%);
}

.wallet-header p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.wallet-header h2 {
  margin: 0;
}

.wallet-header span {
  color: var(--gold);
  font-weight: 800;
}

.qr-mark {
  width: 96px;
  height: 96px;
  margin: 20px auto 14px;
  border: 8px solid #ece8de;
  background:
    linear-gradient(90deg, #ece8de 12px, transparent 12px 20px, #ece8de 20px 32px, transparent 32px),
    linear-gradient(#ece8de 12px, transparent 12px 20px, #ece8de 20px 32px, transparent 32px),
    #16171a;
  background-size: 32px 32px;
}

.wallet-card > p {
  margin-bottom: 12px;
  text-align: center;
}

.wallet-card button,
.staff-panel .primary {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ember), #a91520);
  color: white;
  font-weight: 800;
}

.staff-panel label {
  display: block;
  margin: 12px 0;
  color: var(--muted);
  font-size: 12px;
}

.staff-panel input,
.staff-panel select {
  width: 100%;
  height: 42px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 0 12px;
}

.allocation {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid rgba(215, 169, 77, 0.24);
  border-radius: 8px;
  background: rgba(215, 169, 77, 0.08);
}

.warning {
  margin: 12px 0 0;
  color: #ddb87a;
  font-size: 12px;
  line-height: 1.4;
}

.stamp-result {
  text-align: center;
}

.stamp-burst {
  display: grid;
  width: 86px;
  height: 86px;
  margin: 0 auto 14px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 222, 146, 0.95), rgba(255, 83, 61, 0.85) 48%, rgba(146, 21, 30, 0.15) 72%, transparent 74%);
  box-shadow: 0 0 42px rgba(255, 73, 49, 0.48);
  animation: stampPulse 1.8s ease-in-out infinite;
}

.locked-preview-mode .stamp-burst {
  background:
    radial-gradient(circle, rgba(126, 128, 137, 0.24), rgba(38, 39, 45, 0.9) 58%, rgba(0, 0, 0, 0.2) 72%, transparent 74%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 32px rgba(0, 0, 0, 0.38);
  animation: none;
}

.stamp-burst span {
  color: #190a04;
  font-size: 30px;
  font-weight: 900;
}

.stamp-result p {
  color: var(--muted);
}

.stamp-result strong {
  color: var(--gold);
}

@keyframes stampPulse {
  0%, 100% {
    transform: scale(0.98);
    filter: brightness(0.95);
  }
  50% {
    transform: scale(1.04);
    filter: brightness(1.18);
  }
}

.staff-checkout-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
}

.direct-scan-shell {
  padding-top: 16px;
}

.staff-scan-shell {
  width: min(520px, calc(100vw - 32px));
}

.staff-visit-shell {
  width: min(760px, calc(100vw - 32px));
}

.staff-back-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.staff-checkout-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.staff-checkout-header h1,
.staff-checkout-header p {
  margin: 0;
}

.staff-checkout-header h1 {
  margin-top: 4px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1;
}

.staff-checkout-header p:not(.eyebrow) {
  margin-top: 10px;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.4;
}

.staff-header-actions,
.staff-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-header-actions {
  justify-content: flex-end;
}

.staff-header-actions a,
.staff-button-row button,
.manual-member-form button,
.checkout-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: linear-gradient(135deg, var(--ember), #a91520);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.staff-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.staff-flow-strip article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.055), transparent 54%),
    rgba(255, 255, 255, 0.03);
}

.staff-flow-strip article:first-child {
  border-color: rgba(215, 169, 77, 0.28);
  background:
    radial-gradient(circle at 20% 0%, rgba(215, 169, 77, 0.16), transparent 56%),
    rgba(255, 255, 255, 0.04);
}

.staff-flow-strip article > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.075);
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.staff-flow-strip strong,
.staff-flow-strip small {
  display: block;
}

.staff-flow-strip strong {
  font-size: 13px;
}

.staff-flow-strip small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.staff-header-actions a,
.staff-button-row .secondary-button,
.manual-member-form .secondary-button,
.checkout-actions .secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.staff-button-row button:disabled,
.checkout-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.staff-checkout-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(380px, 1.12fr);
  gap: 14px;
  align-items: start;
}

.direct-scan-shell .staff-checkout-grid {
  align-items: stretch;
}

.staff-stack {
  display: grid;
  gap: 14px;
}

.staff-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 83, 61, 0.09), transparent 46%),
    rgba(255, 255, 255, 0.035);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

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

.staff-card-heading h2,
.staff-card-heading p {
  margin: 0;
}

.staff-card-heading h2 {
  margin-top: 3px;
  font-size: 24px;
}

.staff-card-heading > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-card-copy {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}

.scanner-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.035);
}

.scanner-running .scanner-status-dot {
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(141, 204, 149, 0.12), 0 0 22px rgba(141, 204, 149, 0.36);
}

.scanner-window {
  position: relative;
  overflow: hidden;
  display: grid;
  width: 100%;
  max-width: 100%;
  min-height: 300px;
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 1px solid rgba(215, 169, 77, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(215, 169, 77, 0.12), transparent 52%),
    #0b0c0f;
}

.scan-only-card .scanner-window {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.scan-only-card .scanner-window p {
  max-width: min(190px, calc(100% - 52px));
}

.scanner-window video {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scanner-running .scanner-window video {
  display: block;
}

.scanner-window p {
  max-width: 220px;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.scanner-running .scanner-window p {
  display: none;
}

.scanner-frame {
  position: absolute;
  z-index: 1;
  width: min(62%, 230px);
  aspect-ratio: 1;
  border: 2px solid rgba(215, 169, 77, 0.78);
  border-radius: 8px;
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.38),
    0 0 26px rgba(215, 169, 77, 0.22);
  opacity: 0.3;
}

.scanner-running .scanner-frame {
  opacity: 1;
}

.staff-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.staff-note[data-tone="error"] {
  color: var(--gold);
}

.primary-scan-actions {
  margin-bottom: 12px;
}

.primary-scan-actions button:first-child {
  min-height: 48px;
  flex: 1;
  font-size: 16px;
}

.manual-member-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}

.manual-member-form label,
.staff-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.manual-member-form input,
.staff-form-grid input,
.staff-form-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 0 11px;
}

.member-compact-strip {
  display: grid;
  grid-template-columns: minmax(150px, 1.8fr) repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.member-compact-strip div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.member-compact-strip small,
.member-compact-strip strong,
.member-compact-strip span {
  display: block;
}

.member-compact-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.member-compact-strip strong,
.member-compact-strip span {
  overflow: hidden;
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-compact-strip strong {
  color: var(--gold);
  font-size: 16px;
}

.member-compact-strip.is-loaded div:first-child small {
  color: var(--green);
}

.member-snapshot h2 {
  margin: 0;
  color: var(--gold);
  font-size: 28px;
}

.member-snapshot-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.member-snapshot-top p {
  margin: 0 0 4px;
}

.member-snapshot-top > span {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.member-snapshot.is-loaded .member-snapshot-top > span {
  border-color: rgba(141, 204, 149, 0.34);
  color: var(--green);
}

.member-snapshot dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.member-snapshot dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.member-snapshot dt,
.member-snapshot dd {
  margin: 0;
  font-size: 13px;
}

.member-snapshot dt {
  color: var(--muted);
}

.member-snapshot dd {
  color: var(--text);
  font-weight: 850;
  text-align: right;
}

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

.staff-impact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.staff-impact-strip article {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.staff-impact-strip article > span,
.staff-result-heading span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.staff-impact-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 24px;
}

.staff-impact-strip strong span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
}

.staff-check-row {
  grid-template-columns: 18px 1fr;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  text-transform: none;
}

.staff-check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--ember);
}

.staff-result-preview {
  display: grid;
  gap: 13px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.staff-result-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.staff-result-heading p,
.staff-result-heading h3 {
  margin: 0;
}

.staff-result-heading h3 {
  margin-top: 2px;
  color: var(--text);
  font-size: 18px;
  text-transform: none;
}

.staff-result-heading > span {
  color: var(--gold);
  text-align: right;
}

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

.staff-result-grid article {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.staff-result-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.staff-result-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 28px;
}

.staff-pill-section h3 {
  margin-bottom: 8px;
}

.staff-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.staff-pill {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
}

.staff-pill.good {
  border-color: rgba(141, 204, 149, 0.36);
  color: var(--green);
}

.staff-pill.reward,
.staff-pill.warn {
  border-color: rgba(215, 169, 77, 0.38);
  color: var(--gold);
}

.checkout-actions {
  justify-content: flex-end;
}

.checkout-submit-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(215, 169, 77, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 0% 0%, rgba(215, 169, 77, 0.12), transparent 54%),
    rgba(0, 0, 0, 0.18);
}

.checkout-submit-panel strong,
.checkout-submit-panel span {
  display: block;
}

.checkout-submit-panel strong {
  font-size: 15px;
}

.checkout-submit-panel span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.staff-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

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

.staff-modal {
  width: min(430px, 100%);
  border: 1px solid rgba(215, 169, 77, 0.28);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 15% 0%, rgba(215, 169, 77, 0.14), transparent 54%),
    #15161a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

.staff-modal h2,
.staff-modal p {
  margin: 0;
}

.staff-modal h2 {
  margin-top: 4px;
  font-size: 25px;
  line-height: 1.08;
}

.staff-modal p:not(.eyebrow) {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.38;
}

.staff-success-modal {
  width: min(520px, 100%);
  border-color: rgba(141, 204, 149, 0.42);
  background:
    radial-gradient(circle at 15% 0%, rgba(141, 204, 149, 0.18), transparent 54%),
    #15161a;
}

.staff-success-modal h2 {
  color: #f3fff4;
}

.staff-success-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.staff-success-details div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.staff-success-details strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 5px;
  color: var(--text);
  font-size: 17px;
}

.modal-actions {
  margin-top: 18px;
}

.modal-actions button {
  flex: 1;
}

.fire-tower {
  position: relative;
  display: grid;
  width: 58px;
  height: 150px;
  padding: 9px 7px 8px;
  align-self: center;
  border: 1px solid rgba(176, 132, 86, 0.34);
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent 15% 82%, rgba(0, 0, 0, 0.44)),
    #17181b;
  box-shadow:
    0 18px 30px rgba(0, 0, 0, 0.34),
    inset 2px 0 4px rgba(255, 255, 255, 0.06),
    inset -3px 0 5px rgba(0, 0, 0, 0.48);
}

.fire-tower-cap {
  position: absolute;
  inset: -5px 6px auto;
  height: 8px;
  border: 1px solid rgba(176, 132, 86, 0.36);
  border-radius: 5px;
  background: linear-gradient(#35363a, #111215);
}

.fire-tower-frame {
  display: grid;
  min-height: 0;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.38);
}

.fire-tower-segments {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 2px;
}

.fire-tower-segments span {
  flex: 1 1 0;
  min-height: 3px;
  border: 1px solid rgba(177, 182, 191, 0.32);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 42%),
    #22242a;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);
}

.fire-tower-segments span.is-lit {
  border-color: rgba(255, 103, 69, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 235, 196, 0.76), transparent 30%),
    #ff4b32;
  box-shadow:
    0 0 7px rgba(255, 69, 42, 0.82),
    inset 0 0 4px rgba(255, 222, 157, 0.8);
}

.fire-tower-segments span.is-lit:last-child {
  border-color: rgba(255, 192, 76, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 252, 218, 0.82), transparent 32%),
    #ff9c27;
  box-shadow:
    0 0 8px rgba(255, 151, 32, 0.92),
    inset 0 0 4px rgba(255, 244, 188, 0.86);
}

.fire-tower.is-receiving-stamp {
  animation: fire-tower-frame-pulse 4200ms ease-in-out both;
}

.fire-tower-segments span.is-lit.is-igniting {
  transform-origin: center;
  animation: fire-tower-segment-ignite 4200ms var(--ignition-delay, 0ms) ease-in-out both;
}

@keyframes fire-tower-segment-ignite {
  0% { opacity: 0.3; transform: scaleX(0.72); filter: brightness(0.45); }
  13% { opacity: 1; transform: scaleX(1.03); filter: brightness(2.15); }
  27% { opacity: 0.42; transform: scaleX(0.96); filter: brightness(0.62); }
  43% { opacity: 1; transform: scaleX(1.02); filter: brightness(1.95); }
  58% { opacity: 0.54; transform: scaleX(0.98); filter: brightness(0.76); }
  76% { opacity: 1; transform: scaleX(1.01); filter: brightness(1.58); }
  100% { opacity: 1; transform: scaleX(1); filter: brightness(1); }
}

@keyframes fire-tower-frame-pulse {
  0% { filter: brightness(1); }
  18% { filter: brightness(1.22); }
  34% { filter: brightness(1.04); }
  52% { filter: brightness(1.28); }
  70% { filter: brightness(1.08); }
  100% { filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .fire-tower.is-receiving-stamp,
  .fire-tower-segments span.is-lit.is-igniting {
    animation-duration: 0.01ms;
    animation-delay: 0ms;
  }
}

.customer-page .hero-progress {
  grid-template-columns: 70px minmax(0, 1fr);
  justify-items: stretch;
  gap: 18px;
  min-height: 150px;
  text-align: left;
}

.customer-page .hero-copy {
  justify-items: start;
  align-content: center;
  text-align: left;
}

.fire-tower-readout {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
}

.fire-tower-readout > span {
  color: #aeb0b7;
  font-size: 24px;
  font-weight: 750;
  line-height: 1;
}

.fire-tower-readout strong {
  color: var(--ember);
  font-size: 44px;
  font-weight: 900;
}

.fire-tower-readout small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.badge-card {
  min-height: 168px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.badge-card::before {
  inset: 16px 8px 36px;
  border-radius: 50%;
  filter: blur(22px);
  opacity: calc(var(--lit) * 0.18);
}

.badge-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.badge-card-inner,
.badge-face {
  min-height: 168px;
}

.badge-front {
  padding: 6px 4px 8px;
}

.badge-card:not(.is-focused) .badge-art {
  width: 119px;
  height: 119px;
  margin-bottom: 4px;
}

.badge-card:not(.is-focused) strong {
  min-height: 27px;
  font-size: 10.5px;
}

.badge-card:not(.is-focused) small {
  font-size: 9.5px;
}

.badge-card.locked,
.badge-card.progress,
.badge-card.unlocked,
.badge-card.gold.unlocked,
.badge-card.table-moment,
.badge-card.table-moment.unlocked,
.badge-card.diamond.unlocked,
.badge-card.diamond.progress {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

body.badge-focus-open {
  overflow: hidden;
}

body.badge-focus-open::before {
  position: fixed;
  inset: 0;
  z-index: 70;
  content: "";
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(14px);
}

.badge-card.is-focused {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 72;
  width: min(420px, calc(100vw - 28px));
  height: min(620px, 68dvh);
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--neon) 18%, transparent), transparent 46%),
    linear-gradient(155deg, #202126, #0d0e11 72%);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.74);
  transform: translate(-50%, -50%);
}

.badge-card.is-focused:hover {
  transform: translate(-50%, -50%);
}

.badge-card.is-focused::before {
  inset: 10% 12% 38%;
  opacity: calc(var(--lit) * 0.25);
}

.badge-card.is-focused .badge-card-inner,
.badge-card.is-focused .badge-face {
  height: 100%;
  min-height: 0;
}

.badge-card.is-focused .badge-front {
  align-content: center;
  padding: 32px 24px;
}

.badge-card.is-focused .badge-art {
  width: min(280px, 66vw);
  height: min(280px, 34vh);
  margin-bottom: 18px;
}

.badge-card.is-focused .badge-front strong {
  min-height: 0;
  font-size: 25px;
}

.badge-card.is-focused .badge-front small {
  margin-top: 10px;
  font-size: 15px;
}

.badge-card.is-focused .badge-back {
  align-content: start;
  gap: 9px;
  padding: 20px 30px 26px;
  overflow-y: auto;
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 16%, color-mix(in srgb, var(--neon) 18%, transparent), transparent 46%),
    linear-gradient(155deg, #202126, #0d0e11 72%);
}

.badge-card.is-focused .badge-back-art {
  width: min(270px, 68vw);
  height: min(270px, 32vh);
  margin-bottom: 2px;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--neon) 42%, transparent));
}

.badge-card.is-focused .badge-back strong {
  font-size: 32px;
  line-height: 1.05;
}

.badge-card.is-focused .badge-back-label {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: 0.13em;
}

.badge-card.is-focused .badge-back-copy,
.badge-card.is-focused .badge-back-reward {
  max-width: 330px;
  justify-self: center;
  font-size: 19px;
  line-height: 1.35;
}

.badge-focus-close {
  position: fixed;
  top: calc(16dvh + max(10px, env(safe-area-inset-top)));
  right: max(18px, calc((100vw - 420px) / 2 + 12px));
  z-index: 74;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(20, 21, 25, 0.92);
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

body.badge-unlock-open {
  overflow: hidden;
}

.badge-unlock-celebration {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  place-items: center;
  background:
    radial-gradient(circle at 50% 39%, rgba(255, 73, 59, 0.2), transparent 40%),
    rgba(3, 3, 5, 0.97);
  opacity: 0;
  backdrop-filter: blur(20px);
  transition: opacity 0.4s ease;
}

.badge-unlock-celebration.is-visible {
  display: grid;
  opacity: 1;
}

.badge-unlock-celebration.is-closing {
  opacity: 0;
}

.badge-unlock-stage {
  position: relative;
  display: grid;
  width: min(430px, 100%);
  height: min(896px, calc(100dvh - max(24px, env(safe-area-inset-top)) - max(24px, env(safe-area-inset-bottom))));
  min-height: 620px;
  padding: clamp(24px, 4.2dvh, 38px) 24px 22px;
  place-items: center;
  align-content: start;
  gap: clamp(8px, 1.3dvh, 12px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 39%, rgba(255, 73, 59, 0.2), transparent 40%),
    #111215;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
}

.badge-unlock-chrome {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(ellipse at 50% 32%, rgba(105, 106, 112, 0.32), transparent 36%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0, rgba(255, 255, 255, 0.018) 1px, transparent 1px, transparent 3px),
    #111215;
}

.badge-unlock-eyebrow {
  margin-top: 2px;
  color: #ff8278;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.badge-unlock-progress {
  position: relative;
  width: 100%;
  height: clamp(44px, 6.2dvh, 58px);
  color: #f4f0e8;
  font-size: clamp(35px, 10vw, 45px);
  font-variant-numeric: tabular-nums;
  line-height: clamp(44px, 6.2dvh, 58px);
}

.badge-unlock-count-prior,
.badge-unlock-count-final {
  position: absolute;
  inset: 0;
}

.badge-unlock-count-prior {
  color: #a7a4a8;
}

.badge-unlock-art-wrap {
  position: relative;
  display: grid;
  width: min(332px, 80vw, 39dvh);
  height: min(332px, 80vw, 39dvh);
  margin-top: 2px;
  place-items: center;
}

.badge-unlock-art-wrap::before {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 73, 59, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 58px rgba(255, 73, 59, 0.2);
  content: "";
}

.badge-unlock-art {
  position: absolute;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: opacity, transform, filter;
}

.badge-unlock-art-final {
  z-index: 2;
  filter: drop-shadow(0 0 22px rgba(255, 73, 59, 0.52));
}

.badge-unlock-power-ring {
  position: absolute;
  z-index: 0;
  width: 94%;
  height: 94%;
  border: 2px solid rgba(255, 73, 59, 0.72);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 22px rgba(255, 73, 59, 0.55), inset 0 0 22px rgba(255, 73, 59, 0.25);
}

.badge-unlock-sparks {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.badge-unlock-sparks i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 2px;
  border-radius: 99px;
  background: #ff8278;
  box-shadow: 0 0 12px #ff493b;
  opacity: 0;
  transform-origin: -126px 50%;
}

.badge-unlock-sparks i:nth-child(1) { transform: rotate(8deg) translateX(126px); }
.badge-unlock-sparks i:nth-child(2) { transform: rotate(42deg) translateX(126px); }
.badge-unlock-sparks i:nth-child(3) { transform: rotate(83deg) translateX(126px); }
.badge-unlock-sparks i:nth-child(4) { transform: rotate(132deg) translateX(126px); }
.badge-unlock-sparks i:nth-child(5) { transform: rotate(176deg) translateX(126px); }
.badge-unlock-sparks i:nth-child(6) { transform: rotate(221deg) translateX(126px); }
.badge-unlock-sparks i:nth-child(7) { transform: rotate(266deg) translateX(126px); }
.badge-unlock-sparks i:nth-child(8) { transform: rotate(316deg) translateX(126px); }

.badge-unlock-copy {
  display: grid;
  gap: 7px;
  place-items: center;
  width: 100%;
}

.badge-unlock-stage h2 {
  max-width: 360px;
  margin: 0;
  color: #f4f0e9;
  font-size: clamp(31px, 10vw, 43px);
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.badge-unlock-kicker {
  color: #ff8278;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.badge-unlock-reward {
  margin: 3px 0 0;
  color: #e9ae47;
  font-size: clamp(18px, 5.5vw, 24px);
  font-weight: 950;
  line-height: 1.1;
}

.badge-unlock-stamp {
  margin-top: clamp(4px, 1.7dvh, 16px);
  padding: 10px 16px 8px;
  border: 2px solid #ff493b;
  border-radius: 8px;
  color: #ff8278;
  font-size: clamp(13px, 4vw, 17px);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255, 73, 59, 0.3), inset 0 0 14px rgba(255, 73, 59, 0.12);
}

.badge-unlock-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.badge-unlock-stage button {
  min-width: 150px;
  min-height: 44px;
}

.badge-unlock-stage .badge-unlock-skip {
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: #a4a5ad;
  font-size: 12px;
}

.badge-unlock-celebration.is-playing .badge-unlock-stage {
  animation: badge-unlock-stage-in 0.82s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.badge-unlock-celebration.is-playing .badge-unlock-eyebrow {
  animation: badge-unlock-eyebrow 6.5s both;
}

.badge-unlock-celebration.is-playing .badge-unlock-count-prior {
  animation: badge-unlock-prior-count 6.5s both;
}

.badge-unlock-celebration.is-playing .badge-unlock-count-final {
  animation: badge-unlock-final-count 6.5s both;
}

.badge-unlock-celebration.is-playing .badge-unlock-art-wrap {
  animation: badge-unlock-art-stage 6.5s both;
}

.badge-unlock-celebration.is-playing .badge-unlock-art-prior {
  animation: badge-unlock-prior-art 6.5s both;
}

.badge-unlock-celebration.is-playing .badge-unlock-art-final {
  animation: badge-unlock-final-art 6.5s both;
}

.badge-unlock-celebration.is-playing .badge-unlock-power-ring {
  animation: badge-unlock-ring 6.5s both;
}

.badge-unlock-celebration.is-playing .badge-unlock-sparks i {
  animation: badge-unlock-spark 6.5s both;
}

.badge-unlock-celebration.is-playing .badge-unlock-sparks i:nth-child(2) { animation-delay: 0.045s; }
.badge-unlock-celebration.is-playing .badge-unlock-sparks i:nth-child(3) { animation-delay: 0.09s; }
.badge-unlock-celebration.is-playing .badge-unlock-sparks i:nth-child(4) { animation-delay: 0.135s; }
.badge-unlock-celebration.is-playing .badge-unlock-sparks i:nth-child(5) { animation-delay: 0.18s; }
.badge-unlock-celebration.is-playing .badge-unlock-sparks i:nth-child(6) { animation-delay: 0.225s; }
.badge-unlock-celebration.is-playing .badge-unlock-sparks i:nth-child(7) { animation-delay: 0.27s; }
.badge-unlock-celebration.is-playing .badge-unlock-sparks i:nth-child(8) { animation-delay: 0.315s; }

.badge-unlock-celebration.is-playing .badge-unlock-copy,
.badge-unlock-celebration.is-playing .badge-unlock-stamp,
.badge-unlock-celebration.is-playing .badge-unlock-actions {
  animation: badge-unlock-copy-in 6.5s both;
}

.badge-unlock-celebration.is-playing .badge-unlock-stamp { animation-delay: 0.25s; }
.badge-unlock-celebration.is-playing .badge-unlock-actions { animation-delay: 0.45s; }

@keyframes badge-unlock-stage-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes badge-unlock-eyebrow {
  0%, 4% { opacity: 0; transform: translateY(-16px); }
  11%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes badge-unlock-prior-count {
  0%, 6% { opacity: 0; transform: translateY(18px); }
  12%, 22% { opacity: 1; transform: translateY(0); }
  27%, 100% { opacity: 0; transform: translateY(-18px); }
}

@keyframes badge-unlock-final-count {
  0%, 24% { opacity: 0; transform: translateY(18px); }
  32%, 100% { opacity: 1; transform: translateY(0); }
}

@keyframes badge-unlock-art-stage {
  0%, 5% { opacity: 0; transform: scale(0.84) rotate(-4deg); }
  14%, 50% { opacity: 1; transform: scale(1) rotate(0); }
  67% { transform: scale(1.018); }
  84%, 100% { opacity: 1; transform: scale(1); }
}

@keyframes badge-unlock-prior-art {
  0%, 7% { opacity: 0; transform: scale(0.96); }
  14%, 22% { opacity: 1; transform: scale(1); }
  27%, 100% { opacity: 0; transform: scale(0.98); }
}

@keyframes badge-unlock-final-art {
  0%, 23% { opacity: 0; transform: scale(0.93); filter: drop-shadow(0 0 22px rgba(255, 73, 59, 0.52)); }
  29% { opacity: 1; transform: scale(1.03); filter: drop-shadow(0 0 48px rgba(255, 73, 59, 0.82)); }
  36%, 100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 22px rgba(255, 73, 59, 0.52)); }
}

@keyframes badge-unlock-ring {
  0%, 24% { opacity: 0; transform: scale(0.72); }
  26% { opacity: 0.9; }
  39%, 100% { opacity: 0; transform: scale(1.28); }
}

@keyframes badge-unlock-spark {
  0%, 26% { opacity: 0; clip-path: inset(0 100% 0 0); }
  28% { opacity: 0.9; clip-path: inset(0 94% 0 0); }
  37% { opacity: 0; clip-path: inset(0 0 0 0); }
  100% { opacity: 0; }
}

@keyframes badge-unlock-copy-in {
  0%, 32% { opacity: 0; transform: translateY(22px); }
  43%, 100% { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .badge-unlock-celebration.is-playing .badge-unlock-stage,
  .badge-unlock-celebration.is-playing .badge-unlock-eyebrow,
  .badge-unlock-celebration.is-playing .badge-unlock-count-prior,
  .badge-unlock-celebration.is-playing .badge-unlock-count-final,
  .badge-unlock-celebration.is-playing .badge-unlock-art-wrap,
  .badge-unlock-celebration.is-playing .badge-unlock-art-prior,
  .badge-unlock-celebration.is-playing .badge-unlock-art-final,
  .badge-unlock-celebration.is-playing .badge-unlock-power-ring,
  .badge-unlock-celebration.is-playing .badge-unlock-sparks i,
  .badge-unlock-celebration.is-playing .badge-unlock-copy,
  .badge-unlock-celebration.is-playing .badge-unlock-stamp,
  .badge-unlock-celebration.is-playing .badge-unlock-actions {
    animation-duration: 0.01ms;
    animation-delay: 0ms;
  }
}

body.badge-focus-open .badge-focus-close {
  display: grid;
  place-items: center;
}

.customer-cinematic-event {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  background: #050506;
  transition: opacity 360ms ease;
}

.customer-cinematic-event.is-visible {
  opacity: 1;
}

.customer-cinematic-event.is-closing {
  opacity: 0;
  pointer-events: none;
}

.customer-cinematic-host {
  position: relative;
  overflow: hidden;
  background: #050506;
}

.customer-cinematic-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 430px;
  height: 932px;
  border: 0;
  background: #050506;
  transform-origin: 0 0;
}

.customer-cinematic-skip {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  z-index: 2;
  min-width: 76px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(244, 238, 228, 0.28);
  border-radius: 999px;
  color: #f4eee4;
  background: rgba(5, 5, 6, 0.72);
  font: 800 13px/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

body.customer-cinematic-open {
  overflow: hidden;
}

.privacy-note {
  display: grid;
  gap: 4px;
  margin: 18px 0 8px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.privacy-note p {
  margin: 0;
}

.privacy-note span {
  color: #c7cad3;
  font-weight: 800;
}

.privacy-note a {
  color: #aaa2ff;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

@media (max-width: 600px) {
  .prestige-stage-card {
    width: 84%;
    gap: 5px;
    margin: 12px auto 0;
    padding: 7px 0;
  }

  .prestige-medal-shell {
    width: min(90px, 28vw);
  }

  .prestige-medal {
    filter: drop-shadow(0 0 12px rgba(215, 169, 77, 0.12));
  }

  .prestige-stage-copy {
    gap: 2px;
  }

  .prestige-stage-copy strong {
    font-size: 20px;
    line-height: 1;
  }

  .prestige-stage-card.is-complete .prestige-stage-copy strong {
    font-size: 20px;
  }

  .prestige-stage-copy small {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .prestige-stage-copy span {
    max-width: 250px;
    font-size: 9px;
    line-height: 1.25;
  }

  .prestige-stage-track {
    margin-top: 1px;
  }

  .prestige-stage-marker {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .prestige-stage-track::before {
    top: 13px;
    height: 1px;
  }

  .prestige-stage-track li {
    gap: 2px;
  }

  .prestige-stage-track li > strong {
    font-size: 7px;
    letter-spacing: 0.04em;
  }

  .prestige-stage-track li > small {
    font-size: 6px;
    letter-spacing: 0.05em;
  }

  .prestige-stage-track li.is-current .prestige-stage-marker {
    box-shadow: 0 0 0 2px rgba(255, 83, 61, 0.12), 0 0 10px rgba(255, 83, 61, 0.34);
  }

  .prestige-cycle-progress {
    gap: 3px;
  }

  .prestige-cycle-progress > span {
    font-size: 10px;
  }

  .prestige-cycle-progress > span strong {
    font-size: 14px;
  }

  .prestige-cycle-progress-track {
    height: 3px;
  }

}

@media (max-width: 430px) {
  .prestige-stage-card {
    width: 84%;
    gap: 5px;
    margin: 12px auto 0;
    padding: 7px 0;
  }

  .prestige-medal-shell {
    width: min(90px, 28vw);
  }

  .prestige-medal {
    filter: drop-shadow(0 0 12px rgba(215, 169, 77, 0.12));
  }

  .prestige-stage-copy {
    gap: 2px;
  }

  .prestige-stage-copy strong {
    font-size: 20px;
    line-height: 1;
  }

  .prestige-stage-card.is-complete .prestige-stage-copy strong {
    font-size: 20px;
  }

  .prestige-stage-copy small {
    font-size: 8px;
    letter-spacing: 0.16em;
  }

  .prestige-stage-copy span {
    max-width: 250px;
    font-size: 9px;
    line-height: 1.25;
  }

  .prestige-stage-track {
    margin-top: 1px;
  }

  .prestige-stage-marker {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .prestige-stage-track::before {
    top: 13px;
    height: 1px;
  }

  .prestige-stage-track li {
    gap: 2px;
  }

  .prestige-stage-track li > strong {
    font-size: 7px;
    letter-spacing: 0.04em;
  }

  .prestige-stage-track li > small {
    font-size: 6px;
    letter-spacing: 0.05em;
  }

  .prestige-stage-track li.is-current .prestige-stage-marker {
    box-shadow: 0 0 0 2px rgba(255, 83, 61, 0.12), 0 0 10px rgba(255, 83, 61, 0.34);
  }

  .prestige-cycle-progress {
    gap: 3px;
  }

  .prestige-cycle-progress > span {
    font-size: 10px;
  }

  .prestige-cycle-progress > span strong {
    font-size: 14px;
  }

  .prestige-cycle-progress-track {
    height: 3px;
  }

  .badge-heading-progress {
    width: 100%;
    justify-items: start;
    text-align: left;
  }

  .next-badge-goal {
    max-width: none;
  }

  .fire-tower {
    width: 54px;
    height: 140px;
  }

  .customer-page .hero-progress {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    min-height: 140px;
    justify-items: stretch;
    text-align: left;
  }

  .fire-tower-readout strong {
    font-size: 40px;
  }

  .badge-card {
    min-height: 158px;
  }

  .badge-card-inner,
  .badge-face {
    min-height: 158px;
  }

  .badge-card.is-focused {
    height: 68dvh;
  }

  .badge-card.is-focused .badge-back {
    padding: 22px 20px 26px;
  }
}

@media (max-width: 860px) {
  .app-shell,
  .customer-app-shell {
    grid-template-columns: minmax(300px, 430px);
    padding: 18px;
  }

  .staff-checkout-shell {
    width: min(720px, calc(100vw - 24px));
    padding: 12px 0 34px;
  }

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

  .staff-header-actions {
    justify-content: flex-start;
  }

  .staff-checkout-grid,
  .staff-form-grid,
  .staff-flow-strip {
    grid-template-columns: 1fr;
  }

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

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

  .side-preview {
    position: static;
  }

  .phone-frame {
    min-height: 780px;
    max-height: none;
  }
}

@media (max-width: 430px) {
  .staff-card-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .staff-card-heading .staff-session-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .app-shell,
  .customer-app-shell {
    grid-template-columns: 1fr;
    padding: 0;
    justify-content: stretch;
  }

  .staff-checkout-shell {
    width: 100%;
    padding: 10px 12px 28px;
  }

  .staff-visit-shell {
    display: flex;
    min-height: 100dvh;
    padding: 8px;
  }

  .staff-visit-card {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: calc(100dvh - 16px);
    padding: 22px 18px;
  }

  .staff-customer-summary,
  .staff-success-details {
    grid-template-columns: 1fr;
  }

  .staff-customer-summary {
    margin-bottom: 16px;
  }

  .staff-visit-card form {
    display: flex;
    flex: 1;
    flex-direction: column;
  }

  .staff-visit-card .staff-card-heading {
    margin-bottom: 18px;
  }

  .staff-visit-card .staff-card-heading h2 {
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1;
  }

  .staff-visit-card .staff-back-link {
    min-height: 48px;
    padding: 0 14px;
  }

  .staff-visit-card .staff-form-grid {
    gap: 14px;
  }

  .staff-visit-card .staff-form-grid label {
    gap: 8px;
    font-size: 13px;
  }

  .staff-visit-card .staff-form-grid input,
  .staff-visit-card .staff-form-grid select {
    min-height: 56px;
    padding: 0 16px;
    font-size: 18px;
  }

  .staff-visit-card .staff-form-grid select {
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding: 0 18px;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 800;
  }

  .staff-visit-card .staff-check-row {
    min-height: 64px;
    grid-template-columns: 24px 1fr;
    padding: 0 16px;
    font-size: 16px;
  }

  .staff-visit-card .staff-check-row input {
    width: 24px;
    min-height: 24px;
  }

  .manual-member-form,
  .staff-result-grid,
  .staff-impact-strip,
  .member-compact-strip {
    grid-template-columns: 1fr;
  }

  .checkout-submit-panel,
  .staff-result-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .staff-visit-card .checkout-submit-panel {
    margin-top: auto;
    padding: 16px;
    gap: 16px;
  }

  .staff-visit-card .checkout-submit-panel strong {
    font-size: 19px;
  }

  .staff-visit-card .checkout-submit-panel span {
    font-size: 14px;
  }

  .staff-visit-card .checkout-actions {
    gap: 12px;
  }

  .staff-visit-card .checkout-actions button {
    min-height: 66px;
    font-size: 22px;
    line-height: 1.08;
  }

  .staff-visit-card .staff-note {
    font-size: 15px;
  }

  .staff-result-heading > span {
    text-align: left;
  }

  .staff-header-actions a,
  .staff-button-row button,
  .manual-member-form button,
  .checkout-actions button {
    width: 100%;
  }

  .phone-frame {
    width: 100%;
    min-height: 100vh;
    border-width: 0;
    border-radius: 0;
  }

  .start-frame {
    padding: 20px 16px 24px;
  }

  .start-frame .top-bar {
    gap: 12px;
  }

  .start-frame .top-bar .brand-logo {
    width: min(132px, 62vw);
  }

  .customer-frame {
    width: 100%;
  }

  .hero-progress {
    grid-template-columns: 64px minmax(0, 1fr);
    justify-items: stretch;
    text-align: left;
  }

  .primary-reward-card {
    grid-template-columns: 1fr;
  }

  .pass-note {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .member-qr-shell {
    width: 142px;
    min-width: 142px;
    justify-self: end;
  }

  .primary-reward-card button,
  .reward-card button {
    width: 100%;
  }

  .reward-card,
  .reward-card.available {
    grid-template-columns: 44px 1fr;
  }

  .reward-card button {
    grid-column: 1 / -1;
  }

  .ready-rewards .reward-card,
  .ready-rewards .reward-card.available {
    grid-template-columns: 44px 1fr auto;
  }

  .ready-rewards .reward-card button {
    grid-column: auto;
    width: auto;
    min-width: 64px;
  }

  .progress-ring {
    width: 116px;
    height: 116px;
  }

  .ring-core {
    width: 82px;
    height: 82px;
  }

  .ring-core span {
    font-size: 34px;
  }

  .badge-grid {
    gap: 8px;
  }

  .badge-card {
    min-height: 158px;
  }

  .badge-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 360px) {
  .start-frame .top-bar {
    align-items: flex-start;
  }

  .start-page .register-hero {
    padding: 16px;
  }

  .start-page .register-hero-top {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
  }

  .start-page .register-badge-art {
    width: 94px;
    height: 94px;
    justify-self: center;
    order: -1;
  }

  .start-page .register-hero h2 {
    max-width: 100%;
    font-size: clamp(24px, 12vw, 30px);
  }

  .start-hero-copy {
    max-width: 100%;
    font-size: 12px;
  }
}
body.customer-sync-pending {
  min-height: 100vh;
}

.customer-sync-status {
  display: none;
}

body.customer-sync-pending .customer-app-shell {
  visibility: hidden;
}

body.customer-sync-pending .customer-sync-status {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: #f5f2ee;
  background: #0e0f12;
  text-align: center;
}

.customer-sync-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: #ff4d3d;
  border-radius: 50%;
  animation: customer-sync-spin 0.8s linear infinite;
}

@keyframes customer-sync-spin {
  to {
    transform: rotate(360deg);
  }
}
/* Shared EN / 中文 switch. Kept compact so it remains usable on customer and staff mobile headers. */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: max-content;
  margin-left: auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(14, 14, 17, 0.72);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.language-switch button {
  min-width: 48px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #aaa8af;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.language-switch button.is-active {
  background: linear-gradient(135deg, #ff4b32, #e72222);
  color: #fff9f1;
  box-shadow: 0 5px 15px rgba(236, 48, 36, 0.24);
}

.customer-language-switch {
  position: relative;
  flex: 0 0 auto;
  margin-left: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.customer-language-switch .language-switch-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 48px;
  min-height: 44px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(18, 18, 21, 0.86);
  color: #f5f2ee;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24);
}

.customer-language-switch .language-switch-trigger > b {
  color: var(--gold);
  font-size: 12px;
  line-height: 1;
}

.customer-language-switch .language-switch-trigger > i {
  color: #aaa8af;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.customer-language-switch .language-switch-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 3px;
  width: 116px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  background: rgba(17, 18, 22, 0.98);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.48);
}

.customer-language-switch .language-switch-menu[hidden] {
  display: none;
}

.customer-language-switch .language-switch-menu button {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  text-align: left;
}

.badge-card.is-focused.birthday-grill-card .badge-back {
  align-content: start;
  gap: 0;
  padding: 22px 28px 28px;
  overflow-y: auto;
}

.badge-card.is-focused.birthday-grill-card .badge-back-art {
  width: min(210px, 58vw);
  height: min(210px, 26vh);
  margin-bottom: 10px;
}

.badge-card.is-focused.birthday-grill-card .badge-back strong {
  margin-bottom: 14px;
  font-size: 27px;
  line-height: 1.2;
}

.badge-card.is-focused.birthday-grill-card .badge-back-label {
  width: 100%;
  max-width: 340px;
  margin: 10px auto 6px;
  text-align: left;
}

.badge-card.is-focused.birthday-grill-card .badge-back-copy,
.badge-card.is-focused.birthday-grill-card .badge-back-reward {
  width: 100%;
  max-width: 340px;
  justify-self: center;
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

.badge-card.is-focused.birthday-grill-card .badge-back-reward {
  font-size: 17px;
}

html[lang="zh-Hans"] body,
html[lang="zh-Hans"] button,
html[lang="zh-Hans"] input,
html[lang="zh-Hans"] select {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
}

@media (max-width: 520px) {
  .page-heading#badges {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }

  .page-heading#badges > div:first-child {
    flex: 0 0 auto;
  }

  .page-heading#badges h2 {
    min-width: max-content;
    white-space: nowrap;
    writing-mode: horizontal-tb;
  }

  .page-heading#badges .badge-heading-progress {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    justify-items: end;
    text-align: right;
  }

  .badge-focus-close {
    top: calc(16dvh + max(8px, env(safe-area-inset-top)));
    right: 22px;
  }

  .language-switch button {
    min-width: 44px;
    padding-inline: 9px;
    font-size: 13px;
  }
}
.collection-journey.prestige-stage-card {
  display: grid; width: 100%; gap: 18px; padding: 26px 0; margin: 24px 0;
  scroll-margin-top: 20px;
}
.collection-journey .collection-heading { text-align: center; width: 100%; }
.collection-journey .collection-heading small { color: #999894; font-size: 12px; letter-spacing: .03em; }
.collection-journey .collection-heading h2 { margin: 12px 0 8px; font-family: inherit; color: #f3eee5; font-size: clamp(20px, 4.8vw, 30px); line-height: 1.35; letter-spacing: -.025em; }
.collection-journey .collection-heading p { margin: 0; color: #aaa8a3; font-size: 13px; line-height: 1.5; }
.collection-journey .prestige-stage-track { width: 100%; max-width: 430px; margin: 0; padding: 0 10px; }
.collection-journey .prestige-stage-track::before { top: 15px; left: 17%; right: 17%; height: 1px; background: #44443f; }
.collection-journey .prestige-stage-track li { gap: 5px; }
.collection-journey .prestige-stage-marker { width: 31px; height: 31px; font-size: 21px; border: 1px solid #55534e; background: #121415; box-shadow: none; color: #8f8e88; }
.collection-journey .prestige-stage-track li.is-current .prestige-stage-marker,
.collection-journey .prestige-stage-track li.is-complete .prestige-stage-marker { border-color: #dda847; color: #dda847; background: #191915; box-shadow: none; }
.collection-journey .prestige-stage-track li > strong { font-size: 12px; line-height: 1.4; color: #888982; }
.collection-journey .prestige-stage-track li.is-current > strong,
.collection-journey .prestige-stage-track li.is-complete > strong { color: #dda847; }
.collection-journey [data-prestige-step-status] { display: none; }
.collection-current { width: 100%; border: 1px solid #9e7934; border-radius: 12px; background: #1c1b17; box-shadow: inset 0 28px 80px #9d763314; overflow: hidden; }
.collection-current h3 { margin: 0 auto; width: fit-content; max-width: 100%; padding: 10px 22px; border-bottom: 1px solid #9e7934; border-radius: 0 0 12px 12px; color: #e0ae51; background: #2a2419; font-size: 16px; line-height: 1.4; text-align: center; }
.collection-prizes { display: flex; align-items: stretch; justify-content: center; padding: 14px 12px 0; }
.collection-prize { flex: 1 1 0; min-width: 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.collection-prize + .collection-prize:not([hidden]) { border-left: 1px solid #ffffff12; }
.collection-prize img { display: block; width: 100%; height: clamp(130px, 32vw, 210px); object-fit: contain; margin-bottom: 6px; }
.collection-prize strong { color: #f0e9de; font-size: clamp(13px, 3.5vw, 18px); line-height: 1.45; }
.collection-prize span { color: #e8e1d7; font-size: 13px; line-height: 1.5; }
.collection-prize.collection-lifetime { border: 0; }
.collection-lifetime img { width: 160px; border-radius: 50%; }
.collection-lifetime .prestige-medal-shell { width: 130px; margin: 0 auto 12px; }
.collection-lifetime .prestige-medal { width: 100%; height: auto; }
.collection-journey [hidden] { display: none !important; }
.collection-journey .prestige-cycle-progress { width: auto; margin: 16px 22px 18px; text-align: center; }
.collection-journey .prestige-cycle-progress > span { display: block; font-size: 17px; font-weight: 700; color: #f1e8d9; margin-bottom: 9px; }
.collection-journey .prestige-cycle-progress-track { height: 7px; background: #2a2a27; border: 1px solid #444239; border-radius: 20px; }
.collection-journey .prestige-cycle-progress-track i { background: #dca747; box-shadow: none; }
.collection-journey .prestige-cycle-progress p { color: #b5b0a6; font-size: 12px; line-height: 1.6; margin: 11px 0 0; }
.collection-rounds { width: 100%; display: grid; gap: 9px; }
.collection-round { display: grid; grid-template-columns: 32px 51px minmax(0, 1fr); align-items: center; gap: 10px; border: 1px solid #484740; border-radius: 10px; padding: 12px; background: #171818; }
.collection-round > b { font-family: Georgia, serif; font-size: 24px; font-weight: 400; color: #98978f; text-align: center; }
.collection-round > strong { font-size: 13px; color: #f0ede7; white-space: nowrap; }
.collection-round > div { font-size: 13px; line-height: 1.5; color: #f0ede7; }
.collection-round small { display: block; color: #9e9d96; font-size: 11px; }
.collection-round small:empty { display: none; }
.collection-round.is-complete [data-collection-round-status] { color: #dca747; }
.collection-journey .collection-badges-link { display: block; width: calc(100% - 20px); padding: 14px 18px; border-radius: 9px; background: #dda847; color: #16130d; font-weight: 750; font-size: 16px; line-height: 1.4; text-align: center; text-decoration: none; }
.collection-badges-link:hover { background: #edbc62; }
.collection-badges-link:focus-visible { outline: 3px solid #f6e0ad; outline-offset: 4px; }
