:root {
  color-scheme: dark;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --ink: #172033;
  --text: #2f3a4c;
  --muted: #647084;
  --line: #dbe2ea;
  --line-strong: #c5ceda;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-soft: #e8f6f3;
  --accent: #d9234e;
  --amber: #b7791f;
  --blue: #2563eb;
  --success: #15803d;
  --danger: #b91c1c;
  --shadow: 0 18px 42px rgba(24, 36, 56, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #eef3f7 0, #f8fafc 310px, var(--bg) 100%);
  color: var(--ink);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.55;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.topbar,
.site-header,
main {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 42px;
  color: var(--muted);
  font-size: 13px;
}

.topbar-status,
.topbar-links,
nav,
.actions,
.meta-row,
.notice-strip,
.tag-row,
.rule-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar a:hover,
nav a:hover {
  color: var(--brand);
}

.live-dot,
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.12);
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 16px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  color: #fff;
  font-weight: 900;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-size: 18px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

nav {
  justify-content: flex-end;
  color: #344156;
  font-size: 14px;
}

nav a {
  padding: 7px 10px;
  border-radius: 8px;
}

nav a:hover {
  background: #fff;
}

.nav-button {
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-weight: 800;
}

.nav-button:hover {
  background: #fff;
  color: var(--brand);
}

.notice-strip {
  justify-content: center;
  margin: 4px 0 22px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  box-shadow: 0 8px 24px rgba(36, 49, 71, 0.06);
}

.notice-strip span,
.notice-strip strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notice-strip svg {
  width: 16px;
  height: 16px;
}

.notice-strip strong {
  color: var(--accent);
}

.product-layout,
.status-layout,
.metric-grid {
  display: grid;
  gap: 22px;
}

.product-layout {
  grid-template-columns: minmax(320px, 0.95fr) minmax(380px, 1.05fr);
  align-items: stretch;
}

.product-media,
.product-panel,
.checkout-panel,
.flow-panel,
.details-tabs,
.claim-panel,
.support-panel,
.ops-console {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(145deg, #10221f 0%, #173a35 44%, #f6f9fb 44%, #edf3f6 100%);
}

.product-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 30px 30px;
}

.visual-topline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #d9f8ef;
  font-size: 13px;
}

.visual-topline strong {
  color: #fff;
}

.account-visual {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(420px, 100%);
  margin: 50px auto 0;
}

.visual-card {
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.visual-card.main {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.visual-card.side {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(310px, 82%);
  margin-left: auto;
  padding: 14px 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.15);
}

.visual-card.side.accent {
  margin-right: auto;
  margin-left: 0;
}

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

.visual-card strong {
  color: var(--ink);
}

.visual-card h2 {
  margin: 0;
  font-size: 24px;
}

.visual-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.country-chip {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #111827;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 900;
}

.masked-line {
  width: 58%;
  height: 12px;
  border-radius: 999px;
  background: #d5dde8;
}

.masked-line.wide {
  width: 88%;
}

.credential-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.credential-row span {
  color: var(--muted);
  font-size: 12px;
}

.credential-row strong {
  font-size: 13px;
  word-break: break-word;
}

.secure-lock {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 800;
}

.secure-lock svg {
  width: 18px;
}

.product-panel {
  padding: 32px;
}

.meta-row {
  color: var(--muted);
  font-size: 13px;
}

.pill,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 12px;
}

.tag-row {
  margin: 16px 0 0;
}

.tag-row span:nth-child(2n) {
  background: #eef2ff;
  color: #1d4ed8;
}

.tag-row span:nth-child(3n) {
  background: #fff7ed;
  color: #9a3412;
}

.pill.muted {
  background: #eef2f7;
  color: #475569;
}

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

h1 {
  margin: 18px 0 8px;
  font-size: clamp(31px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted);
  font-size: 17px;
}

.warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #8a3a0a;
}

.warning svg {
  flex: 0 0 auto;
  width: 20px;
  margin-top: 2px;
}

.commerce-strip {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(110px, 0.55fr) minmax(170px, 0.8fr);
  gap: 14px;
  margin: 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.commerce-strip strong {
  display: block;
  color: var(--ink);
}

.label,
label > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
}

label > span small {
  margin-left: 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.price {
  color: var(--accent);
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

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

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

textarea {
  min-height: 110px;
  padding: 12px;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #647084 50%),
    linear-gradient(135deg, #647084 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 18px,
    calc(100% - 12px) 18px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
}

.icon-btn,
.primary-btn,
.ghost-btn,
.tab,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.icon-btn {
  background: #eef2f7;
  color: var(--ink);
}

.icon-btn svg,
.primary-btn svg,
.ghost-btn svg,
.danger-btn svg {
  width: 18px;
  height: 18px;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  color: #38445a;
}

.terms-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

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

.purchase-reminder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.purchase-reminder svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
  flex: 0 0 auto;
}

.primary-btn {
  padding: 0 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.primary-btn:hover {
  background: var(--brand-dark);
}

.ghost-btn {
  padding: 0 18px;
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.ghost-btn:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.danger-btn {
  padding: 0 16px;
  border-color: #fecaca;
  background: #fff1f2;
  color: #be123c;
  font-weight: 900;
}

.status-layout {
  grid-template-columns: minmax(430px, 1.25fr) minmax(300px, 0.75fr);
  margin-top: 24px;
}

.checkout-panel,
.flow-panel,
.details-tabs,
.claim-panel,
.support-panel,
.ops-console {
  padding: 28px;
}

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

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading span,
.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.section-heading p {
  max-width: 760px;
  color: var(--muted);
  margin-bottom: 0;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 28px;
}

.empty-state.compact {
  min-height: 160px;
}

.empty-state svg {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: var(--brand);
}

.empty-state strong {
  color: var(--ink);
  font-size: 18px;
}

.empty-state p {
  max-width: 430px;
  margin: 8px auto 0;
}

.empty-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 18px;
}

.empty-flow span {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.empty-flow b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
}

.empty-order-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.empty-order-actions .primary-btn,
.empty-order-actions .ghost-btn {
  min-width: 148px;
}

.order-view {
  display: grid;
  gap: 16px;
}

.order-head,
.claim-head,
.delivery-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.order-head h3 {
  margin: 2px 0 0;
  font-size: 24px;
  word-break: break-all;
}

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

.progress-rail div,
.metric-card,
.rule-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.progress-rail div {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 78px;
  color: var(--muted);
  font-size: 13px;
}

.progress-rail svg {
  width: 20px;
  height: 20px;
}

.progress-rail .done {
  background: var(--brand-soft);
  border-color: #b7e3da;
  color: var(--brand-dark);
  font-weight: 800;
}

.customer-order-progress {
  margin-top: 0;
}

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

.data-line {
  min-width: 0;
}

.data-line span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.data-line strong {
  display: block;
  margin-top: 3px;
  word-break: break-all;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-waiting {
  color: #92400e;
  background: #fef3c7;
}

.status-delivered {
  color: #166534;
  background: #dcfce7;
}

.status-failed {
  color: #991b1b;
  background: #fee2e2;
}

.pay-board,
.delivery-card,
.claim-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 18px;
}

.pay-board {
  display: grid;
  gap: 14px;
}

.pay-board p {
  color: var(--muted);
  margin-bottom: 0;
}

.payment-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.payment-tip svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: var(--brand);
}

.pay-amount {
  display: grid;
  gap: 2px;
}

.pay-amount span,
.pay-amount small {
  color: var(--muted);
}

.pay-amount strong {
  color: var(--accent);
  font-size: 34px;
  line-height: 1.1;
}

.pay-board code,
.card-content code {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  background: #111827;
  color: #e7f7f3;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.qr-pay-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-pay-card img {
  width: 156px;
  height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-pay-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.qr-pay-card strong {
  display: block;
  margin: 4px 0 8px;
  font-size: 20px;
}

.qr-pay-card p {
  margin: 0;
}

.simulate-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.delivery-card.success {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.delivery-title {
  justify-content: flex-start;
}

.delivery-title svg {
  width: 20px;
  color: var(--brand);
}

.delivery-title h3 {
  margin: 0;
}

.flow-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.flow-list li::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
}

.flow-list strong,
.flow-list span {
  display: block;
}

.flow-list span {
  color: var(--muted);
  font-size: 14px;
}

.ops-console,
.details-tabs,
.claim-panel,
.support-panel {
  margin-top: 24px;
}

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

.metric-card {
  padding: 18px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin: 8px 0 2px;
  font-size: 32px;
  line-height: 1;
}

.rule-grid {
  margin-top: 16px;
}

.rule-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--text);
  font-size: 14px;
}

.rule-item svg {
  width: 17px;
  color: var(--brand);
}

.tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab {
  padding: 0 16px;
  background: #eef2f7;
  color: #344156;
  font-weight: 900;
}

.tab.active {
  background: var(--ink);
  color: #fff;
}

.tab-content ul {
  margin: 0;
  padding-left: 20px;
}

.tab-content li + li {
  margin-top: 8px;
}

.tab-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.tab-summary strong {
  color: var(--ink);
  font-size: 16px;
}

.tab-summary span {
  max-width: 640px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.tab-card-list {
  display: grid;
  gap: 10px;
}

.tab-info-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

.tab-info-card b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
}

.tab-info-card span {
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

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

.claim-form label {
  display: grid;
  gap: 7px;
}

.claim-reminder {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -2px 0 16px;
}

.claim-reminder span,
.claim-reminder a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.claim-reminder svg {
  width: 15px;
  height: 15px;
  color: var(--brand);
  flex: 0 0 auto;
}

.claim-input-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.claim-result {
  margin-top: 16px;
  min-height: 58px;
}

.claim-panel.active-view .claim-result:empty::before {
  content: "输入订单交付码后，这里会显示订单状态。";
  color: var(--muted);
}

.support-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 48px;
}

.support-panel p {
  max-width: 560px;
  color: var(--muted);
  margin-bottom: 0;
}

.support-copy {
  margin-top: 8px;
}

.support-contact {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.support-contact span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.support-contact strong {
  color: var(--ink);
  font-size: 18px;
  letter-spacing: 0;
}

.support-copy-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.support-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: min(440px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.support-checklist svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

.card-content {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 16px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  z-index: 10;
}

.customer-page {
  --lux-bg: #f7f8f5;
  --lux-panel: #ffffff;
  --lux-ink: #111b18;
  --lux-text: #31413d;
  --lux-muted: #6b7773;
  --lux-line: #dce4df;
  --lux-line-strong: #b9c8c1;
  --lux-deep: #15231f;
  --lux-jade: #2f7b6a;
  --lux-gold: #b58b42;
  --lux-rose: #b23a55;
  --lux-soft: #eef6f2;
  background:
    linear-gradient(90deg, rgba(17, 27, 24, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 27, 24, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbf8 0%, #f5f7f2 46%, #edf4f1 100%);
  background-size: 46px 46px, 46px 46px, auto;
  color: var(--lux-ink);
}

.customer-page .brand-mark {
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: #f8f3e7;
  box-shadow: 0 14px 30px rgba(21, 35, 31, 0.16);
}

.customer-page .brand strong {
  color: var(--lux-ink);
  font-size: 23px;
  letter-spacing: 0;
}

.customer-page .brand small {
  color: var(--lux-muted);
}

.customer-header,
.customer-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.customer-header {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 16px 0;
  background: rgba(247, 248, 245, 0.82);
  backdrop-filter: blur(16px);
}

.customer-header nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.customer-header nav a,
.customer-header nav .nav-button {
  min-width: 54px;
  color: #050709;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  padding: 8px 12px;
  border: 1px solid rgba(215, 181, 106, 0.86);
  border-radius: 8px;
  background: linear-gradient(180deg, #f3d57c 0%, #d7b56a 100%);
}

.customer-header nav a:hover,
.customer-header nav .nav-button:hover {
  border-color: #f8dea0;
  background: linear-gradient(180deg, #ffe8a7 0%, #ddb96a 100%);
  color: #050709;
}

.store-signal {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 8px 0 18px;
  border: 1px solid rgba(21, 35, 31, 0.14);
  border-radius: 8px;
  background: var(--lux-deep);
  box-shadow: 0 22px 48px rgba(21, 35, 31, 0.14);
}

.store-signal span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #edf7f1;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.store-signal svg {
  width: 17px;
  height: 17px;
  color: #d7b56a;
}

.customer-page i[data-lucide] {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
}

.store-signal i[data-lucide] {
  width: 17px;
  height: 17px;
}

.customer-hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 22px;
  align-items: start;
}

.customer-page .product-preview,
.customer-page .buy-card,
.payment-section .checkout-panel,
.customer-info article {
  border: 1px solid rgba(185, 200, 193, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 56px rgba(24, 42, 37, 0.11);
}

.customer-page .product-preview {
  position: relative;
  min-height: 646px;
  overflow: hidden;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(47, 123, 106, 0.08), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8faf8 100%);
}

.customer-page .product-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--lux-deep), var(--lux-jade), var(--lux-gold));
}

.customer-page .product-preview::after {
  content: "";
  position: absolute;
  right: -90px;
  top: 58px;
  width: 260px;
  height: 260px;
  opacity: 0.06;
  background:
    repeating-linear-gradient(135deg, var(--lux-deep) 0 2px, transparent 2px 13px);
  transform: rotate(8deg);
}

.product-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.picker-heading,
.category-filters,
.product-list,
.market-list-summary,
.category-area,
.catalog-toolbar {
  position: relative;
  z-index: 1;
}

.picker-heading {
  display: grid;
  gap: 8px;
}

.picker-heading h2 {
  margin: 4px 0 0;
  color: var(--lux-ink);
  font-size: 30px;
  line-height: 1.16;
}

.picker-heading p {
  margin: 0;
  color: var(--lux-muted);
}

.shop-search {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 66px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(47, 123, 106, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(21, 35, 31, 0.055);
}

.shop-search svg {
  width: 18px;
  height: 18px;
  margin-left: 15px;
  color: var(--lux-jade);
}

.shop-search input {
  min-height: 46px;
  border: 0;
  padding: 0 8px;
  background: transparent;
  box-shadow: none;
}

.shop-search input:focus {
  box-shadow: none;
}

.market-list-summary {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(47, 123, 106, 0.18);
  border-radius: 8px;
  background: rgba(238, 246, 242, 0.72);
  color: var(--lux-text);
  font-size: 13px;
  font-weight: 900;
}

.shop-search button {
  min-height: 34px;
  margin-right: 7px;
  border: 0;
  border-radius: 8px;
  background: var(--lux-soft);
  color: var(--lux-jade);
  font-size: 13px;
  font-weight: 900;
}

.hot-keywords {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.hot-keywords span {
  color: var(--lux-muted);
  font-size: 13px;
  font-weight: 900;
}

.hot-keywords button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
  color: var(--lux-text);
  font-size: 13px;
  font-weight: 800;
}

.hot-keywords button:hover {
  border-color: var(--lux-jade);
  color: var(--lux-jade);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(185, 200, 193, 0.76);
  border-radius: 8px;
  background: #f8faf7;
}

.catalog-toolbar span {
  color: var(--lux-muted);
  font-size: 13px;
}

.catalog-toolbar strong {
  color: var(--lux-jade);
  font-size: 13px;
}

.category-area {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid var(--lux-line);
  border-bottom: 1px solid var(--lux-line);
}

.category-area > span {
  color: var(--lux-muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 34px;
  white-space: nowrap;
}

.category-filter-wrap {
  min-width: 0;
}

.category-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 8px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}

.category-toggle {
  display: none;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
  color: var(--lux-text);
  font-weight: 900;
}

.category-toggle.hidden {
  display: none;
}

.category-filters::-webkit-scrollbar,
.product-list::-webkit-scrollbar {
  width: 8px;
}

.category-filters::-webkit-scrollbar-thumb,
.product-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #c8d6cf;
}

.category-chip {
  justify-content: flex-start;
  min-height: 34px;
  min-width: 0;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #51615c;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-chip:hover {
  border-color: var(--lux-line);
  background: #f6f8f6;
  color: var(--lux-jade);
}

.category-chip.active {
  border-color: rgba(47, 123, 106, 0.24);
  background: var(--lux-soft);
  color: var(--lux-jade);
  box-shadow: inset 0 0 0 1px rgba(47, 123, 106, 0.08);
}

.product-list {
  display: grid;
  gap: 10px;
  max-height: 354px;
  overflow: auto;
  padding-right: 4px;
}

.product-option {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 98px;
  padding: 15px 16px 15px 18px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--lux-ink);
  text-align: left;
  box-shadow: 0 10px 22px rgba(21, 35, 31, 0.035);
}

.product-option::before {
  content: "";
  position: absolute;
  inset: 14px auto 14px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: #d7b56a;
  opacity: 0;
}

.product-option:hover {
  border-color: var(--lux-line-strong);
  background: #fbfcfa;
  transform: translateY(-1px);
}

.product-option.active {
  border-color: rgba(47, 123, 106, 0.46);
  background: linear-gradient(180deg, #fbfffd, #eef7f3);
  box-shadow: 0 16px 34px rgba(47, 123, 106, 0.11);
}

.product-option.active::before {
  opacity: 1;
  background: var(--lux-jade);
}

.option-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.option-top strong {
  min-width: 0;
  color: var(--lux-ink);
  font-size: 15px;
}

.option-top em {
  color: var(--lux-rose);
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.product-option span:not(.option-top),
.product-option small {
  color: var(--lux-muted);
}

.product-empty {
  display: grid;
  gap: 4px;
  min-height: 94px;
  place-content: center;
  border: 1px dashed var(--lux-line-strong);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--lux-muted);
  text-align: center;
}

.product-empty strong {
  color: var(--lux-ink);
}

.stock-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(181, 139, 66, 0.28);
  border-radius: 8px;
  background: rgba(181, 139, 66, 0.08);
}

.stock-notice strong,
.stock-notice span {
  display: block;
}

.stock-notice strong {
  color: var(--lux-ink);
  font-size: 15px;
}

.stock-notice span {
  color: var(--lux-muted);
  font-size: 13px;
}

.stock-notice a {
  flex: 0 0 auto;
  display: grid;
  min-height: 34px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  color: var(--lux-jade);
  font-size: 13px;
  font-weight: 900;
}

.market-help-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 12px;
}

.rank-board,
.buyer-guide {
  min-width: 0;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.mini-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.mini-heading span {
  color: var(--lux-ink);
  font-weight: 900;
}

.mini-heading strong {
  color: var(--lux-gold);
  font-size: 13px;
}

.rank-board ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-board button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #f8faf7;
  color: var(--lux-text);
  text-align: left;
}

.rank-board button:hover {
  background: var(--lux-soft);
}

.rank-board em {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--lux-deep);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.rank-board span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-board strong {
  color: var(--lux-rose);
  font-size: 13px;
}

.buyer-guide p {
  margin: 0;
  color: var(--lux-muted);
  font-size: 14px;
}

.customer-page .buy-card {
  position: sticky;
  top: 92px;
  overflow: hidden;
  padding: 30px;
}

.customer-page .buy-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--lux-gold), var(--lux-jade), var(--lux-deep));
}

.buy-card .meta-row {
  justify-content: space-between;
}

.customer-page .pill,
.customer-page .tag-row span {
  border: 1px solid rgba(47, 123, 106, 0.14);
  background: var(--lux-soft);
  color: var(--lux-jade);
}

.customer-page .pill.muted {
  border-color: var(--lux-line);
  background: #f4f6f3;
  color: var(--lux-muted);
}

.buy-card h1 {
  margin: 18px 0 8px;
  color: var(--lux-ink);
  font-size: clamp(34px, 4.1vw, 52px);
}

.buy-card .subtitle {
  max-width: 680px;
  color: var(--lux-muted);
}

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

.service-row span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #f8faf7;
  color: var(--lux-text);
  font-size: 13px;
  font-weight: 800;
}

.service-row svg {
  width: 16px;
  height: 16px;
  color: var(--lux-gold);
}

.stock-status-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid rgba(181, 139, 66, 0.32);
  border-radius: 8px;
  background: rgba(181, 139, 66, 0.10);
}

.stock-status-card svg {
  width: 18px;
  height: 18px;
  color: var(--lux-gold);
}

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

.stock-status-card strong {
  color: var(--lux-ink);
  font-size: 14px;
}

.stock-status-card span {
  color: var(--lux-muted);
  font-size: 13px;
}

.stock-status-card a {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  color: var(--lux-jade);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.buy-card .purchase-grid {
  grid-template-columns: minmax(150px, 0.75fr) minmax(220px, 1fr);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(190px, 1fr);
  gap: 18px;
  align-items: end;
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid var(--lux-line);
  border-bottom: 1px solid var(--lux-line);
}

.customer-page .price {
  color: var(--lux-rose);
}

.customer-page input,
.customer-page select {
  min-height: 48px;
  border-color: var(--lux-line);
  background-color: #fff;
}

.customer-page input:focus,
.customer-page select:focus {
  border-color: var(--lux-jade);
  box-shadow: 0 0 0 4px rgba(47, 123, 106, 0.12);
}

.customer-page .icon-btn {
  background: #f0f4f1;
}

.customer-page .primary-btn {
  min-height: 48px;
  background: var(--lux-deep);
  box-shadow: 0 14px 28px rgba(21, 35, 31, 0.18);
}

.customer-page .primary-btn:hover {
  background: #243832;
}

.customer-page .ghost-btn {
  min-height: 48px;
  border-color: var(--lux-line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.customer-page .ghost-btn:hover {
  border-color: var(--lux-jade);
  color: var(--lux-jade);
}

.customer-page .terms-check {
  color: var(--lux-text);
}

.buy-note {
  margin: 12px 0 0;
  color: var(--lux-muted);
  font-size: 14px;
}

.payment-section {
  margin-top: 22px;
}

.payment-section .checkout-panel {
  padding: 28px;
}

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

.customer-info article {
  padding: 20px;
}

.customer-info svg {
  width: 22px;
  height: 22px;
  color: var(--lux-gold);
  margin-bottom: 10px;
}

.customer-info h3 {
  margin-bottom: 6px;
}

.customer-info p {
  margin: 0;
  color: var(--lux-muted);
  font-size: 14px;
}

.customer-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
}

.customer-order-head h3 {
  margin: 2px 0 4px;
  font-size: 24px;
  word-break: break-all;
}

.customer-order-head p {
  margin: 0;
  color: var(--lux-muted);
}

.customer-order-actions {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.order-copy-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 13px;
}

.customer-order-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.customer-order-meta .data-line {
  padding: 14px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #f8faf7;
}

.customer-page .pay-board,
.customer-page .delivery-card,
.customer-page .claim-result {
  border-color: var(--lux-line);
  background: #fff;
}

.customer-page .pay-amount strong {
  color: var(--lux-rose);
  font-size: 42px;
}

.customer-page .details-tabs,
.customer-page .claim-panel,
.customer-page .support-panel {
  border-color: var(--lux-line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(24, 42, 37, 0.075);
}

.mobile-buy-bar {
  display: none;
}

.mobile-order-link {
  display: none;
}

.customer-account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid rgba(185, 200, 193, 0.82);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 246, 242, 0.92)),
    linear-gradient(90deg, rgba(181, 139, 66, 0.12), transparent);
  box-shadow: 0 20px 46px rgba(24, 42, 37, 0.09);
}

.account-copy h2 {
  margin: 12px 0 8px;
  font-size: 26px;
}

.account-copy p {
  max-width: 760px;
  color: var(--lux-muted);
  margin-bottom: 0;
}

.account-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
}

.account-card span,
.account-card small {
  display: block;
  color: var(--lux-muted);
}

.account-card strong {
  display: block;
  margin: 4px 0;
  color: var(--lux-ink);
  font-size: 24px;
  letter-spacing: 0;
}

.account-actions {
  display: grid;
  gap: 10px;
  min-width: 148px;
}

.account-actions .primary-btn,
.account-actions .ghost-btn {
  width: 100%;
}

.profile-panel {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(185, 200, 193, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(24, 42, 37, 0.075);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.profile-card,
.profile-orders-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
}

.profile-status-row span,
.profile-status-row small,
.profile-orders-head small,
.profile-order-card small {
  display: block;
  color: var(--lux-muted);
}

.profile-status-row strong {
  display: block;
  margin: 6px 0;
  color: var(--lux-ink);
  font-size: 25px;
  line-height: 1.18;
}

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

.profile-login-inline.hidden {
  display: none;
}

.profile-login-inline label {
  display: grid;
  gap: 8px;
}

.profile-login-inline label span {
  color: var(--lux-muted);
  font-size: 13px;
  font-weight: 900;
}

.profile-save-code {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(215, 181, 106, 0.32);
  border-radius: 8px;
  background: rgba(215, 181, 106, 0.10);
}

.profile-save-code.hidden {
  display: none;
}

.profile-save-code span,
.profile-save-code small {
  color: var(--lux-muted);
}

.profile-save-code strong {
  color: var(--lux-gold);
  font-size: 25px;
  line-height: 1.1;
}

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

.profile-save-actions .ghost-btn {
  width: 100%;
  min-height: 42px;
}

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

.profile-actions .primary-btn,
.profile-actions .ghost-btn {
  width: 100%;
  min-height: 46px;
}

.profile-actions .hidden,
.profile-logout.hidden {
  display: none;
}

.profile-logout {
  width: 100%;
  margin-top: 18px;
}

.profile-orders-head,
.profile-order-title,
.profile-order-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-orders-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.profile-orders-head span,
.profile-order-title strong {
  color: var(--lux-ink);
  font-weight: 900;
}

.profile-orders {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
}

.profile-order-empty,
.profile-order-card {
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
}

.profile-order-empty {
  padding: 22px;
  text-align: center;
}

.profile-order-empty svg {
  color: var(--lux-gold);
}

.profile-order-empty strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--lux-ink);
}

.profile-order-empty p {
  margin: 0;
}

.profile-empty-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.profile-empty-steps span {
  display: grid;
  gap: 6px;
  justify-items: center;
  min-width: 0;
  padding: 10px 6px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: rgba(238, 246, 242, 0.72);
  color: var(--lux-text);
  font-size: 12px;
  font-weight: 900;
}

.profile-empty-steps b {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--lux-deep);
  color: #fff;
  font-size: 12px;
}

.profile-empty-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.profile-empty-actions .primary-btn,
.profile-empty-actions .ghost-btn {
  width: 100%;
  min-height: 42px;
}

.profile-empty-actions.single-action {
  grid-template-columns: 1fr;
}

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

.profile-order-main {
  min-width: 0;
}

.profile-order-title {
  justify-content: space-between;
}

.profile-order-title strong,
.profile-order-meta span,
.profile-order-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-order-meta {
  flex-wrap: wrap;
  margin: 7px 0 4px;
  color: var(--lux-muted);
  font-size: 13px;
}

.profile-order-note {
  margin: 6px 0 4px;
  color: var(--lux-text);
  font-size: 13px;
  line-height: 1.45;
}

.profile-order-actions {
  display: grid;
  gap: 8px;
  min-width: 132px;
}

.profile-order-action {
  min-height: 42px;
  padding: 0 13px;
}

.profile-order-copy {
  min-height: 38px;
  padding: 0 12px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(13, 24, 21, 0.52);
  backdrop-filter: blur(8px);
}

.auth-card {
  position: relative;
  width: min(460px, 100%);
  padding: 28px;
  border: 1px solid rgba(185, 200, 193, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

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

.auth-card p {
  color: var(--lux-muted);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  min-height: 38px;
}

.auth-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  margin-top: 16px;
}

.generated-code {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(47, 123, 106, 0.24);
  border-radius: 8px;
  background: var(--lux-soft);
}

.generated-code span,
.generated-code small {
  display: block;
  color: var(--lux-muted);
}

.generated-code strong {
  display: block;
  margin: 4px 0;
  color: var(--lux-jade);
  font-size: 28px;
  letter-spacing: 0;
}

.generated-code-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
  margin-top: 12px;
}

.generated-code-actions .primary-btn,
.generated-code-actions .ghost-btn {
  min-height: 42px;
}

.customer-page .customer-main {
  width: min(1260px, calc(100% - 36px));
}

.customer-page .customer-hero {
  grid-template-columns: minmax(620px, 1.25fr) minmax(360px, 0.75fr);
}

.customer-page .product-preview {
  min-height: 720px;
}

.market-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.market-stats span {
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
  color: var(--lux-muted);
  font-size: 13px;
  font-weight: 800;
}

.market-stats strong {
  color: var(--lux-ink);
  font-size: 18px;
}

.market-section-title,
.market-list-head {
  position: relative;
  z-index: 1;
}

.market-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}

.market-section-title span {
  color: var(--lux-ink);
  font-weight: 900;
}

.market-section-title strong {
  color: var(--lux-muted);
  font-size: 13px;
}

.category-snapshot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.category-tile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #fff;
  color: var(--lux-ink);
  text-align: left;
  box-shadow: 0 10px 22px rgba(21, 35, 31, 0.035);
}

.module-tile {
  min-height: 84px;
}

.category-tile:hover,
.category-tile.active {
  border-color: rgba(47, 123, 106, 0.42);
  background: #f4faf7;
}

.category-tile span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--lux-deep);
  color: #f8f3e7;
  font-weight: 900;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--lux-deep);
  color: #fff !important;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0;
}

.category-tile strong,
.category-tile small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-tile strong {
  font-size: 14px;
}

.category-tile small {
  color: var(--lux-muted);
  font-size: 12px;
}

.market-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px 96px 82px;
  gap: 12px;
  min-height: 34px;
  padding: 0 14px;
  align-items: center;
  border: 1px solid var(--lux-line);
  border-radius: 8px;
  background: #f3f7f4;
  color: var(--lux-muted);
  font-size: 12px;
  font-weight: 900;
}

.market-list-head span:not(:first-child) {
  text-align: center;
}

.customer-page .product-list {
  max-height: 420px;
}

.customer-page .product-option {
  grid-template-columns: 44px minmax(0, 1fr) 82px 94px 78px;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 13px 14px;
}

.customer-page .product-option:hover {
  transform: none;
}

.product-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #eef6f2;
  color: var(--lux-jade) !important;
  font-weight: 900;
}

.product-icon .app-icon {
  width: 42px;
  height: 42px;
}

.category-tile .app-wechat,
.product-icon .app-wechat,
.app-wechat {
  background: #07c160;
}

.category-tile .app-tiktok,
.product-icon .app-tiktok,
.app-tiktok {
  background: #101b1b;
}

.category-tile .app-facebook,
.product-icon .app-facebook,
.app-facebook {
  background: #1877f2;
}

.category-tile .app-gpt,
.product-icon .app-gpt,
.app-gpt {
  background: #101820;
}

.category-tile .app-gemini,
.product-icon .app-gemini,
.app-gemini {
  background: #1d4ed8;
}

.category-tile .app-claude,
.product-icon .app-claude,
.app-claude {
  background: #b7791f;
}

.category-tile .app-grok,
.product-icon .app-grok,
.app-grok {
  background: #111827;
}

.category-tile .app-ai,
.product-icon .app-ai,
.app-ai {
  background: #4c1d95;
}

.category-tile .app-apple,
.product-icon .app-apple,
.app-apple {
  background: #334155;
}

.category-tile .app-cursor,
.product-icon .app-cursor,
.app-cursor {
  background: #2563eb;
}

.category-tile .app-instagram,
.product-icon .app-instagram,
.app-instagram {
  background: #c13584;
}

.category-tile .app-gmail,
.category-tile .app-email,
.product-icon .app-gmail,
.product-icon .app-email,
.app-gmail,
.app-email {
  background: #2f7b6a;
}

.category-tile .app-telegram,
.product-icon .app-telegram,
.app-telegram {
  background: #229ed9;
}

.category-tile .app-twitter,
.product-icon .app-twitter,
.app-twitter {
  background: #111827;
}

.category-tile .app-linkedin,
.product-icon .app-linkedin,
.app-linkedin {
  background: #0a66c2;
}

.category-tile .app-reddit,
.product-icon .app-reddit,
.app-reddit {
  background: #ff4500;
}

.category-tile .app-discord,
.product-icon .app-discord,
.app-discord {
  background: #5865f2;
}

.category-tile .app-game,
.product-icon .app-game,
.app-game {
  background: #b88a34;
}

.category-tile .app-other,
.product-icon .app-other,
.app-other {
  background: #53645f;
}

.option-main {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.customer-page .option-top {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.customer-page .option-top strong {
  font-size: 15px;
}

.customer-page .option-top small {
  flex: 0 1 auto;
  min-width: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f2f5f3;
  color: var(--lux-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-subtitle {
  display: block;
  min-width: 0;
  color: var(--lux-muted) !important;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-tags {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.option-tags em {
  flex: 0 0 auto;
  max-width: 96px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef6f2;
  color: var(--lux-jade);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-stock,
.option-price {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  color: var(--lux-ink) !important;
}

.option-stock strong,
.option-price strong {
  color: var(--lux-ink);
  font-size: 18px;
  line-height: 1;
}

.option-price strong {
  color: var(--lux-rose);
}

.option-stock small,
.option-price small {
  color: var(--lux-muted);
  font-size: 12px;
}

.option-buy {
  display: grid;
  place-items: center;
  min-height: 36px;
  border-radius: 8px;
  background: var(--lux-deep);
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
}

.product-option.active .product-icon,
.product-option.active .option-buy {
  background: var(--lux-jade);
  color: #fff !important;
}

.product-option.unavailable .option-buy,
.product-option.unavailable.active .option-buy {
  border: 1px solid var(--lux-line);
  background: rgba(215, 181, 106, 0.12);
  color: var(--lux-gold) !important;
}

.product-option.unavailable .option-stock strong {
  color: var(--lux-muted);
  font-size: 13px;
}

.customer-page .buy-card {
  padding: 28px;
}

.buy-card h1 {
  font-size: clamp(30px, 3.1vw, 42px);
}

.console-page {
  background: #eef3f7;
}

.console-topbar,
.console-header {
  width: min(1320px, calc(100% - 32px));
}

.console-page main {
  width: min(1320px, calc(100% - 32px));
}

.console-hero h1 {
  margin-bottom: 8px;
  font-size: 38px;
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.35fr) minmax(280px, 0.65fr);
  gap: 22px;
  margin-top: 24px;
}

.console-list {
  display: grid;
  gap: 14px;
}

.console-order,
.stock-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 18px;
}

.console-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

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

.stock-card {
  display: grid;
  gap: 12px;
}

.stock-card code {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  background: #111827;
  color: #e7f7f3;
  white-space: pre-wrap;
  word-break: break-all;
}

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

.rule-stack .rule-item {
  justify-content: flex-start;
}

.console-page {
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #f7fafc 0, #edf3f7 360px, #eef3f7 100%);
  background-size: 46px 46px, auto;
}

.console-page .brand-mark {
  background: transparent;
}

.console-hero {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.11), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.console-hero-copy {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.console-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.console-workbench {
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(420px, 0.8fr);
  gap: 22px;
  margin-top: 24px;
}

.control-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.admin-form {
  display: grid;
  gap: 16px;
}

.stock-template-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #eef8f5;
}

.stock-template-box > div:first-child {
  display: grid;
  gap: 4px;
}

.stock-template-box span {
  color: #5e766f;
  font-size: 12px;
  font-weight: 900;
}

.stock-template-box strong {
  color: var(--ink);
  font-size: 14px;
}

.stock-template-box code {
  display: block;
  overflow-x: auto;
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #0f766e;
  font-size: 13px;
  line-height: 1.6;
  white-space: nowrap;
}

.stock-template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.safe-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: #eef8f5;
  color: #35524a;
  font-size: 13px;
  line-height: 1.6;
}

.safe-note svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand);
}

.form-row {
  display: grid;
  gap: 14px;
}

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

.form-row.three {
  grid-template-columns: minmax(120px, 0.7fr) minmax(120px, 0.7fr) minmax(150px, 0.6fr);
  align-items: end;
}

.switch-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.switch-line > span {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.switch-line input {
  width: 20px;
  min-height: 20px;
}

.switch-line strong {
  color: var(--ink);
  font-size: 14px;
}

.console-search {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.console-search svg {
  width: 18px;
  margin-left: 14px;
  color: var(--brand);
}

.console-search input {
  border: 0;
  background: transparent;
}

.console-search input:focus {
  box-shadow: none;
}

.products-admin-list {
  display: grid;
  gap: 12px;
  max-height: 780px;
  overflow: auto;
  padding-right: 4px;
}

.customers-panel {
  margin-top: 24px;
}

.customers-admin-list {
  display: grid;
  gap: 12px;
}

.customer-admin-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.customer-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.customer-admin-head h3 {
  margin: 2px 0 0;
  font-size: 24px;
  letter-spacing: 0.08em;
}

.order-grid .wide-line {
  grid-column: span 2;
}

.product-admin-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.product-admin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.product-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.product-admin-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.25;
}

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

.admin-product-meta span {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.source-meta span {
  background: #eef8f4;
  border-color: #c8e5da;
  color: #0f6b52;
}

.manual-delivery-form {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.manual-delivery-form textarea {
  min-height: 92px;
}

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

.product-actions .ghost-btn,
.product-actions .primary-btn,
.product-actions .danger-btn {
  min-width: 0;
  padding: 0 10px;
}

.stock-order-grid {
  grid-template-columns: minmax(420px, 0.78fr) minmax(560px, 1.22fr);
}

.stock-audit-panel {
  margin-bottom: 48px;
}

@media (max-width: 980px) {
  .product-layout,
  .status-layout,
  .metric-grid,
  .console-grid,
  .console-workbench,
  .customer-account,
  .stock-grid,
  .customer-hero,
  .customer-info,
  .customer-order-meta {
    grid-template-columns: 1fr;
  }

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

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

  .customer-page .buy-card {
    position: relative;
    top: auto;
  }
}

@media (max-width: 760px) {
  .site-header,
  .topbar,
  .support-panel,
  .customer-header,
  .customer-order-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .customer-order-actions {
    width: 100%;
    justify-items: stretch;
  }

  .order-copy-btn {
    width: 100%;
    justify-content: center;
  }

  nav,
  .topbar-links,
  .customer-header nav {
    justify-content: flex-start;
  }

  .purchase-grid,
  .claim-form,
  .category-area {
    grid-template-columns: 1fr;
  }

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

  .buy-card .purchase-grid,
  .service-row,
  .form-row.two,
  .form-row.three,
  .category-filters {
    grid-template-columns: 1fr;
  }

  .console-hero-copy,
  .product-admin-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-product-meta,
  .product-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-signal span {
    justify-content: flex-start;
    white-space: normal;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  .category-area > span {
    line-height: 1.3;
  }

  .category-filter-wrap {
    display: grid;
    gap: 8px;
  }

  .category-filters {
    max-height: none;
    overflow: visible;
  }

  .category-filters.is-collapsed .category-chip-extra {
    display: none;
  }

  .category-toggle:not(.hidden) {
    display: block;
  }

  .option-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .customer-page .product-preview {
    min-height: auto;
  }

  .product-media {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .topbar,
  .site-header,
  main,
  .customer-header,
  .customer-main {
    width: min(100% - 20px, 1200px);
  }

  .product-panel,
  .buy-card,
  .customer-page .buy-card,
  .customer-page .product-preview,
  .checkout-panel,
  .control-panel,
  .payment-section .checkout-panel,
  .flow-panel,
  .details-tabs,
  .claim-panel,
  .support-panel,
  .ops-console {
    padding: 20px;
  }

  .commerce-strip,
  .order-grid {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 32px;
  }

  .order-head,
  .claim-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .buy-card h1 {
    font-size: 34px;
  }

  .customer-page .pay-amount strong {
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .qr-pay-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .qr-pay-card img {
    width: min(220px, 100%);
    height: auto;
    justify-self: center;
  }

  .pay-board {
    padding: 16px;
  }

  .payment-tip {
    align-items: flex-start;
  }

  .pay-board .data-line code {
    margin-top: 6px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  body.customer-page {
    padding-bottom: 92px;
    background:
      linear-gradient(180deg, #fbfcf9 0%, #f4f8f4 52%, #edf4f1 100%);
  }

  .customer-page.has-active-order {
    padding-bottom: 0;
  }

  .customer-header,
  .customer-main {
    width: min(370px, calc(100vw - 20px));
    max-width: 370px;
    margin-right: 0;
    margin-left: 10px;
  }

  .customer-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0 10px;
    background: rgba(250, 252, 248, 0.9);
  }

  .customer-header .brand {
    min-width: 0;
  }

  .customer-header .brand-mark {
    width: 46px;
    height: 46px;
  }

  .customer-header .brand strong {
    font-size: 24px;
  }

  .customer-header nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .customer-header nav a,
  .customer-header nav .nav-button {
    min-width: 0;
    min-height: 38px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.54);
    border-color: rgba(220, 228, 223, 0.72);
    font-size: 13px;
  }

  .customer-account {
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px;
  }

  .account-copy h2 {
    font-size: 22px;
  }

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

  .account-card strong {
    font-size: 22px;
  }

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

  .auth-card {
    padding: 22px;
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .generated-code-actions {
    grid-template-columns: 1fr;
  }

  .store-signal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 8px 0 14px;
    box-shadow: 0 16px 34px rgba(21, 35, 31, 0.13);
  }

  .store-signal span {
    justify-content: flex-start;
    min-height: 50px;
    padding: 0 12px;
    white-space: normal;
    line-height: 1.25;
  }

  .customer-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .customer-page .buy-card {
    order: 2;
    position: relative;
    top: auto;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    border-color: rgba(181, 139, 66, 0.34);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcf9 100%);
  }

  .customer-page .product-preview {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-height: auto;
    padding: 20px;
  }

  .buy-card .meta-row {
    gap: 8px;
    align-items: flex-start;
  }

  .buy-card h1 {
    margin-top: 14px;
    font-size: 32px;
    line-height: 1.08;
  }

  .buy-card .subtitle {
    font-size: 15px;
  }

  .tag-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tag-row span {
    flex: 0 0 auto;
  }

  .service-row {
    display: flex;
    overflow-x: auto;
    max-width: 100%;
    gap: 8px;
    margin-top: 14px;
    padding-bottom: 2px;
  }

  .service-row span {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .stock-status-card {
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: start;
    margin-top: 12px;
  }

  .stock-status-card a {
    grid-column: 1 / -1;
    width: 100%;
  }

  .price-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 18px 0;
    padding: 16px 0;
  }

  .price-row strong {
    display: block;
    min-width: 0;
    font-size: 15px;
    word-break: break-word;
  }

  .buy-card .purchase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .purchase-reminder {
    grid-template-columns: 1fr;
  }

  .purchase-reminder span {
    justify-content: flex-start;
    min-height: 34px;
    font-size: 12px;
  }

  .claim-reminder {
    grid-template-columns: 1fr;
  }

  .claim-reminder span,
  .claim-reminder a {
    justify-content: flex-start;
    min-height: 34px;
    font-size: 12px;
  }

  .stepper {
    grid-template-columns: 54px 1fr 54px;
    min-width: 0;
  }

  .stepper input {
    min-width: 0;
  }

  .customer-page .icon-btn,
  .customer-page input,
  .customer-page select,
  .customer-page .primary-btn,
  .customer-page .ghost-btn {
    min-height: 50px;
  }

  .terms-check {
    padding: 12px;
    border: 1px solid var(--lux-line);
    border-radius: 8px;
    background: #f8faf7;
    font-size: 13px;
  }

  .buy-card .actions {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 10px;
  }

  .buy-card .actions .primary-btn,
  .buy-card .actions .ghost-btn {
    width: 100%;
    padding: 0 10px;
  }

  .picker-heading h2 {
    font-size: 25px;
  }

  .picker-heading p {
    font-size: 14px;
  }

  .shop-search {
    grid-template-columns: 38px minmax(0, 1fr) 58px;
  }

  .shop-search svg {
    margin-left: 13px;
  }

  .shop-search button {
    margin-right: 6px;
    font-size: 12px;
  }

  .market-list-summary {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hot-keywords {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hot-keywords span,
  .hot-keywords button {
    flex: 0 0 auto;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
  }

  .category-area {
    display: block;
    padding: 14px 0;
  }

  .category-area > span {
    display: block;
    margin-bottom: 10px;
    line-height: 1.3;
  }

  .category-filters {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 0 0 6px;
  }

  .category-chip {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 13px;
    border-color: var(--lux-line);
    background: #fff;
    font-size: 14px;
  }

  .category-chip.active {
    background: var(--lux-deep);
    border-color: var(--lux-deep);
    color: #fff;
  }

  .product-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .product-option {
    min-height: auto;
    padding: 16px 16px 16px 18px;
  }

  .option-top {
    align-items: flex-start;
    flex-direction: row;
  }

  .option-top strong {
    line-height: 1.35;
  }

  .product-option span:not(.option-top) {
    font-size: 14px;
  }

  .market-help-grid {
    grid-template-columns: 1fr;
  }

  .rank-board,
  .buyer-guide {
    padding: 13px;
  }

  .payment-section,
  .customer-info,
  .ops-console,
  .details-tabs,
  .claim-panel,
  .support-panel {
    margin-top: 14px;
  }

  .payment-section .checkout-panel,
  .customer-page .details-tabs,
  .customer-page .claim-panel,
  .customer-page .support-panel {
    padding: 20px;
  }

  .customer-info {
    grid-template-columns: 1fr;
  }

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

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

  .tab {
    min-height: 42px;
    padding: 0 8px;
    font-size: 13px;
  }

  .tab-summary {
    display: grid;
    gap: 6px;
    padding: 12px;
  }

  .tab-summary span {
    max-width: none;
    font-size: 13px;
  }

  .tab-info-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .tab-info-card b {
    width: 26px;
    height: 26px;
  }

  .tab-info-card span {
    font-size: 13px;
    line-height: 1.65;
  }

  .support-panel {
    align-items: flex-start;
  }

  .support-contact {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .support-copy-btn {
    width: 100%;
    justify-content: center;
  }

  .support-checklist {
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
  }

  .mobile-buy-bar {
    position: fixed;
    left: 10px;
    right: auto;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px 112px;
    gap: 8px;
    align-items: center;
    min-height: 72px;
    padding: 10px;
    border: 1px solid rgba(185, 200, 193, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(21, 35, 31, 0.24);
    backdrop-filter: blur(18px);
    width: min(370px, calc(100vw - 20px));
    transform: none;
  }

  .has-active-order .mobile-buy-bar {
    display: none;
  }

  .mobile-buy-bar div {
    min-width: 0;
  }

  .mobile-buy-bar span,
  .mobile-buy-bar small {
    display: block;
    overflow: hidden;
    color: var(--lux-muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-buy-bar span {
    color: var(--lux-ink);
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-buy-bar strong {
    display: block;
    color: var(--lux-rose);
    font-size: 20px;
    line-height: 1.1;
  }

  .mobile-buy-bar small {
    font-size: 12px;
  }

  .mobile-order-link {
    display: grid;
    place-items: center;
    gap: 4px;
    min-width: 0;
    min-height: 52px;
    padding: 0 6px;
    border: 1px solid rgba(185, 200, 193, 0.72);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--lux-ink);
    font-size: 12px;
    font-weight: 900;
  }

  .mobile-order-link svg {
    width: 17px;
    height: 17px;
    color: var(--lux-gold);
  }

  .mobile-order-link span {
    display: block;
    color: var(--lux-ink);
    line-height: 1;
  }

  .mobile-buy-bar .primary-btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    color: #fff;
    padding: 0 10px;
  }

  .mobile-buy-bar .primary-btn span {
    display: inline;
    color: #fff;
    white-space: nowrap;
  }

  .toast {
    right: 10px;
    bottom: 94px;
    max-width: calc(100% - 20px);
  }
}

@media (max-width: 760px) {
  .market-stats {
    grid-template-columns: 1fr;
  }

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

  .category-tile {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 66px;
    padding: 10px;
  }

  .category-tile span {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .market-list-head {
    display: none;
  }

  .customer-page .product-list {
    max-height: none;
    gap: 8px;
  }

  .customer-page .product-option {
    grid-template-columns: 36px minmax(0, 1fr) 68px;
    gap: 8px;
    min-height: 84px;
    padding: 10px;
  }

  .customer-page .product-icon {
    width: 34px;
    height: 34px;
  }

  .customer-page .product-icon .app-icon {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  .customer-page .option-main {
    grid-column: 2 / 4;
    gap: 3px;
  }

  .customer-page .option-top {
    gap: 6px;
  }

  .customer-page .option-top strong {
    font-size: 14px;
    line-height: 1.25;
  }

  .customer-page .option-top small {
    max-width: 92px;
    padding: 1px 6px;
    font-size: 11px;
  }

  .customer-page .option-stock {
    grid-column: 1 / 2;
    grid-row: 2;
    place-items: start center;
  }

  .customer-page .option-price {
    grid-column: 2 / 3;
    grid-row: 2;
    place-items: start;
  }

  .customer-page .option-buy {
    grid-column: 3 / 4;
    grid-row: 2;
    min-height: 30px;
    font-size: 12px;
  }

  .empty-flow {
    grid-template-columns: 1fr;
  }

  .empty-order-actions {
    width: 100%;
    flex-direction: column;
  }

  .empty-order-actions .primary-btn,
  .empty-order-actions .ghost-btn {
    width: 100%;
  }

  .stock-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .stock-notice a {
    width: 100%;
  }

  .option-subtitle {
    display: -webkit-box;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    white-space: normal;
  }

  .option-tags {
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .option-tags em {
    max-width: 72px;
    min-height: 20px;
    padding: 1px 6px;
    font-size: 11px;
  }

  .option-tags em:nth-child(n + 3) {
    display: none;
  }
}

/* Customer frontend: minimal dark theme */
body.customer-page {
  --lux-bg: #080b0e;
  --lux-panel: #101519;
  --lux-ink: #eef4f1;
  --lux-text: #c9d4cf;
  --lux-muted: #84918c;
  --lux-line: #243039;
  --lux-line-strong: #36444e;
  --lux-deep: #080b0e;
  --lux-jade: #4fbf9f;
  --lux-gold: #d7b56a;
  --lux-rose: #f07a8d;
  --lux-soft: #14211d;
  background: #080b0e;
  color: var(--lux-ink);
}

.customer-page .customer-header {
  background: rgba(8, 11, 14, 0.92);
  border-bottom: 1px solid var(--lux-line);
  backdrop-filter: blur(18px);
}

.customer-page .brand-mark {
  background: transparent;
  color: var(--lux-gold);
  box-shadow: none;
}

.customer-page .brand strong,
.customer-page h1,
.customer-page h2,
.customer-page h3,
.customer-page .data-line strong,
.customer-page .market-stats strong,
.customer-page .option-stock strong {
  color: var(--lux-ink);
}

.customer-page .brand small,
.customer-page p,
.customer-page .subtitle,
.customer-page .label,
.customer-page .data-line span,
.customer-page .section-heading p,
.customer-page .option-subtitle,
.customer-page .customer-info p {
  color: var(--lux-muted);
}

.customer-header nav a,
.customer-header nav .nav-button {
  border-color: rgba(215, 181, 106, 0.86);
  background: linear-gradient(180deg, #f3d57c 0%, #d7b56a 100%);
  color: #050709;
  font-weight: 900;
}

.customer-header nav a:hover,
.customer-header nav .nav-button:hover {
  border-color: #f8dea0;
  background: linear-gradient(180deg, #ffe8a7 0%, #ddb96a 100%);
  color: #050709;
}

.store-signal,
.customer-page .product-preview,
.customer-page .buy-card,
.payment-section .checkout-panel,
.customer-page .customer-order-head,
.customer-page .customer-order-meta .data-line,
.customer-page .progress-rail div,
.customer-page .details-tabs,
.customer-page .claim-panel,
.customer-page .support-panel,
.customer-page .profile-panel,
.customer-page .profile-card,
.customer-page .profile-orders-card,
.customer-page .profile-order-empty,
.customer-page .profile-order-card,
.customer-info article,
.support-checklist li,
.auth-card,
.mobile-buy-bar {
  border-color: var(--lux-line);
  background: var(--lux-panel);
  box-shadow: none;
}

.customer-page .progress-rail div {
  color: var(--lux-muted);
}

.customer-page .progress-rail .done {
  border-color: rgba(79, 191, 159, 0.46);
  background: #14211d;
  color: var(--lux-ink);
}

.customer-page .progress-rail .done svg {
  color: var(--lux-gold);
}

.store-signal {
  background: #0d1216;
}

.store-signal span {
  background: transparent;
  color: var(--lux-text);
}

.store-signal svg,
.customer-info svg,
.customer-page .section-heading span,
.customer-page .eyebrow,
.profile-order-empty svg {
  color: var(--lux-gold);
}

.customer-page .product-preview,
.customer-page .buy-card,
.customer-page .profile-panel {
  background: #101519;
}

.customer-page .product-preview::before,
.customer-page .buy-card::before {
  height: 1px;
  background: var(--lux-line-strong);
}

.customer-page .product-preview::after {
  display: none;
}

.customer-page .pill,
.customer-page .tag-row span,
.category-chip,
.market-stats span,
.product-empty,
.stock-notice,
.stock-status-card,
.profile-order-empty,
.profile-order-card,
.rank-board,
.buyer-guide,
.product-option,
.service-row span,
.price-row,
.terms-check,
.purchase-reminder span,
.claim-reminder span,
.claim-reminder a,
.market-list-summary,
.pay-board,
.delivery-card,
.claim-result,
.payment-tip,
.qr-pay-card {
  border-color: var(--lux-line);
  background: #0c1115;
  color: var(--lux-text);
}

.customer-page .purchase-reminder svg {
  color: var(--lux-gold);
}

.customer-page .terms-check.needs-check {
  border-color: rgba(220, 190, 111, 0.68);
  background: rgba(220, 190, 111, 0.10);
  box-shadow: inset 0 0 0 1px rgba(220, 190, 111, 0.16);
}

.customer-page .primary-btn.needs-confirm {
  border-color: rgba(220, 190, 111, 0.62);
  box-shadow: 0 0 0 3px rgba(220, 190, 111, 0.12);
}

.customer-page .claim-reminder svg {
  color: var(--lux-gold);
}

.customer-page .pill,
.customer-page .tag-row span,
.category-chip.active,
.product-option.active .product-icon,
.product-option.active .option-buy {
  color: var(--lux-ink);
  background: #15231f;
  border-color: rgba(79, 191, 159, 0.34);
}

.category-chip:hover,
.product-option:hover {
  border-color: var(--lux-line-strong);
  background: #111820;
  color: var(--lux-ink);
}

.product-option.active {
  border-color: rgba(79, 191, 159, 0.46);
  background: #121c19;
  box-shadow: none;
}

.customer-page .category-tile {
  border-color: #2a3740;
  background: linear-gradient(145deg, #121920 0%, #0d1217 100%);
  color: var(--lux-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 26px rgba(0, 0, 0, 0.18);
}

.customer-page .category-tile strong {
  color: #f2f7f4;
}

.customer-page .category-tile small {
  color: #9aa8a3;
}

.customer-page .category-tile:hover,
.customer-page .category-tile.active {
  border-color: rgba(79, 191, 159, 0.58);
  background: linear-gradient(145deg, #16241f 0%, #10181c 100%);
  box-shadow: inset 0 0 0 1px rgba(79, 191, 159, 0.12), 0 14px 30px rgba(0, 0, 0, 0.22);
}

.customer-page .category-tile.active strong {
  color: #ffffff;
}

.customer-page .category-tile.active small {
  color: #b6c7c1;
}

.product-option.active::before {
  background: var(--lux-jade);
}

.product-icon,
.app-icon,
.category-tile span {
  background: #182129;
  color: var(--lux-gold);
}

.customer-page .category-tile .app-icon,
.customer-page .category-tile span {
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.customer-page .category-tile .app-tiktok,
.customer-page .category-tile .app-twitter {
  background: #0a1118;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.option-price strong,
.customer-page .price,
.customer-page .pay-amount strong,
.mobile-buy-bar strong {
  color: var(--lux-gold);
}

.shop-search,
.console-search,
.customer-page input,
.customer-page select,
.customer-page textarea {
  border-color: var(--lux-line);
  background-color: #090d11;
  color: var(--lux-ink);
}

.shop-search input,
.shop-search button {
  color: var(--lux-ink);
}

.shop-search button,
.category-toggle,
.customer-page .ghost-btn,
.customer-page .icon-btn,
.tab {
  border-color: var(--lux-line);
  background: #111820;
  color: var(--lux-text);
  box-shadow: none;
}

.customer-page .primary-btn,
.tab.active {
  background: var(--lux-jade);
  color: #07100d;
  box-shadow: none;
}

.customer-page .primary-btn:hover {
  background: #6bd6b8;
}

.customer-page .primary-btn:disabled {
  background: #243039;
  color: #7f8a85;
}

.customer-page .profile-card,
.customer-page .profile-orders-card,
.customer-page .profile-order-empty,
.customer-page .profile-order-card {
  background: #0c1115;
}

.customer-page .profile-status-row strong,
.customer-page .profile-orders-head span,
.customer-page .profile-order-title strong,
.customer-page .profile-order-empty strong {
  color: var(--lux-ink);
}

.customer-page .profile-status-row span,
.customer-page .profile-status-row small,
.customer-page .profile-orders-head small,
.customer-page .profile-order-meta,
.customer-page .profile-order-note,
.customer-page .profile-order-card small {
  color: var(--lux-muted);
}

.customer-page .empty-flow span {
  border-color: var(--lux-line);
  background: #0c1115;
  color: var(--lux-text);
}

.customer-page .empty-flow b {
  background: var(--lux-soft);
  color: var(--lux-gold);
}

.customer-page .profile-empty-steps span {
  border-color: var(--lux-line);
  background: #111820;
  color: var(--lux-text);
}

.customer-page .profile-empty-steps b {
  background: var(--lux-soft);
  color: var(--lux-gold);
}

.customer-page .support-checklist li {
  background: #0c1115;
  color: var(--lux-text);
}

.customer-page .support-contact {
  border-color: var(--lux-line);
  background: #0c1115;
}

.customer-page .support-contact span {
  color: var(--lux-muted);
}

.customer-page .support-contact strong {
  color: var(--lux-gold);
}

.customer-page .support-checklist svg {
  color: var(--lux-gold);
}

.customer-page .stock-status-card {
  background: rgba(215, 181, 106, 0.10);
}

.customer-page .stock-status-card strong {
  color: var(--lux-ink);
}

.customer-page .stock-status-card span {
  color: var(--lux-muted);
}

.customer-page .payment-tip {
  background: rgba(79, 191, 159, 0.10);
}

.customer-page .payment-tip svg {
  color: var(--lux-jade);
}

.customer-page .claim-input-hint {
  color: var(--lux-muted);
}

.customer-page .tab-summary {
  border-color: var(--lux-line);
  background: rgba(20, 33, 29, 0.72);
}

.customer-page .tab-summary strong {
  color: var(--lux-ink);
}

.customer-page .tab-summary span {
  color: var(--lux-muted);
}

.customer-page .tab-info-card {
  border-color: var(--lux-line);
  background: #0c1115;
  color: var(--lux-text);
}

.customer-page .tab-info-card b {
  background: var(--lux-soft);
  color: var(--lux-gold);
}

.customer-page code,
.pay-board code,
.card-content code,
.stock-card code {
  background: #050709;
  color: #d9f8ef;
}

.auth-modal {
  background: rgba(0, 0, 0, 0.72);
}

.auth-close {
  background: #0c1115;
}

.mobile-buy-bar span {
  color: var(--lux-ink);
}

.mobile-buy-bar small {
  color: var(--lux-muted);
}

@media (max-width: 760px) {
  .customer-header {
    gap: 8px;
  }

  .customer-header nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .customer-header nav::-webkit-scrollbar,
  .store-signal::-webkit-scrollbar,
  .market-stats::-webkit-scrollbar {
    display: none;
  }

  .customer-header nav a,
  .customer-header nav .nav-button {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .store-signal {
    display: flex;
    gap: 8px;
    margin: 6px 0 10px;
    overflow-x: auto;
    border: 0;
    background: transparent;
    box-shadow: none;
    scrollbar-width: none;
  }

  .store-signal span {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid var(--lux-line);
    border-radius: 8px;
    background: #0d1216;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
  }

  .store-signal svg {
    width: 14px;
    height: 14px;
  }

  .customer-page .product-preview {
    padding: 18px;
  }

  .picker-heading {
    gap: 6px;
  }

  .picker-heading h2 {
    margin-top: 2px;
    font-size: 23px;
  }

  .picker-heading p {
    font-size: 13px;
    line-height: 1.5;
  }

  .market-stats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .market-stats span {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .market-stats strong {
    font-size: 14px;
  }

  .profile-panel {
    margin-top: 14px;
    padding: 18px;
  }

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

  .profile-actions {
    grid-template-columns: 1fr;
  }

  .profile-save-actions {
    grid-template-columns: 1fr;
  }

  .profile-empty-actions {
    grid-template-columns: 1fr;
  }

  .profile-status-row strong {
    font-size: 23px;
  }

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

  .profile-order-title {
    align-items: flex-start;
  }

  .profile-order-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-order-action {
    width: 100%;
  }

  .profile-order-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .profile-order-copy,
  .profile-order-action {
    min-height: 40px;
    padding: 0 10px;
  }
}

/* Customer payment polish */
.customer-page .buy-card .meta-row > span:not(.pill) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(79, 191, 159, 0.32);
  border-radius: 999px;
  background: rgba(79, 191, 159, 0.10);
  color: #aebdb8;
  font-size: 13px;
  font-weight: 800;
}

.customer-page .buy-card .meta-row > span:not(.pill) strong {
  margin: 0;
  color: #7de1bf;
  font-size: 13px;
  line-height: 1;
}

.customer-page .option-stock strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(79, 191, 159, 0.42);
  border-radius: 999px;
  background: rgba(79, 191, 159, 0.12);
  color: #7de1bf !important;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.customer-page .option-stock small {
  margin-top: 4px;
  color: #9aa8a3;
}

.customer-page .payment-section .checkout-panel,
.customer-page .support-panel {
  border-color: #2a3740;
  background: #0f151a !important;
  color: var(--lux-text);
}

.customer-page .order-view {
  display: grid;
  gap: 18px;
}

.customer-page .customer-order-head {
  border-color: #2b3842;
  background: linear-gradient(145deg, #111a21 0%, #0b1015 100%) !important;
}

.customer-page .customer-order-head h3 {
  color: #f3f8f5;
}

.customer-page .customer-order-head p {
  color: #aebdb8;
}

.customer-page .customer-order-meta .data-line {
  border-color: #26333d;
  background: #0b1015 !important;
}

.customer-page .pay-board {
  gap: 16px;
  padding: 22px;
  border-color: #30404a;
  background: linear-gradient(180deg, #111922 0%, #0a0f14 100%) !important;
}

.customer-page .pay-amount span {
  color: #aebdb8;
  font-weight: 900;
}

.customer-page .pay-amount strong {
  color: var(--lux-gold);
  font-size: clamp(40px, 5vw, 58px);
  letter-spacing: 0;
}

.customer-page .pay-amount small,
.customer-page .pay-board > p {
  color: #b5c4bf;
  font-weight: 800;
}

.customer-page .payment-tip {
  border-color: rgba(79, 191, 159, 0.42);
  background: rgba(79, 191, 159, 0.12) !important;
  color: #d7eee7;
}

.customer-page .payment-tip svg {
  color: #7de1bf;
}

.customer-page .pay-board .data-line {
  padding: 12px 0;
  border-top: 1px solid #24313a;
}

.customer-page .pay-board .data-line strong,
.customer-page .pay-board .data-line code {
  color: #edf6f3;
}

.customer-page .qr-pay-card {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-color: #2e3b45;
  background: #0d1419 !important;
}

.customer-page .qr-pay-card img {
  width: 210px;
  height: 210px;
  padding: 12px;
  border: 1px solid #e6eaed;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.customer-page .qr-pay-card span {
  color: #93a49f;
}

.customer-page .qr-pay-card strong {
  color: #f1f6f3;
  font-size: 22px;
}

.customer-page .qr-pay-card p {
  color: #aebdb8;
}

.customer-page .delivery-card {
  border-color: #2e3b45;
  background: #0d1419 !important;
}

.customer-page .support-jump-btn {
  width: fit-content;
  margin-top: 12px;
  border: 0;
  background: var(--lux-gold);
  color: #050709;
  font-weight: 900;
}

@media (max-width: 760px) {
  .customer-page .qr-pay-card {
    grid-template-columns: 1fr;
  }

  .customer-page .qr-pay-card img {
    width: min(100%, 260px);
    height: auto;
    aspect-ratio: 1;
  }
}

/* Commercial platform icon suite */
.app-icon,
.customer-page .category-tile .app-icon,
.product-icon .app-icon {
  --icon-a: #1b2730;
  --icon-b: #080c10;
  --icon-accent: #d7b56a;
  --icon-glow: rgba(215, 181, 106, 0.22);
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
    radial-gradient(circle at 76% 82%, var(--icon-glow), transparent 42%),
    linear-gradient(145deg, var(--icon-a) 0%, var(--icon-b) 100%) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -18px 28px rgba(0, 0, 0, 0.22),
    0 14px 28px rgba(0, 0, 0, 0.24),
    0 0 26px var(--icon-glow);
  transform: translateZ(0);
}

.app-icon::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.20), transparent 36%, rgba(255, 255, 255, 0.06));
  pointer-events: none;
}

.app-icon::after {
  content: "";
  position: absolute;
  inset: auto -20% -34% 28%;
  z-index: 0;
  height: 55%;
  border-radius: 999px;
  background: var(--icon-accent);
  opacity: 0.16;
  filter: blur(14px);
  pointer-events: none;
}

.app-icon svg {
  position: relative;
  z-index: 2;
  width: 29px;
  height: 29px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.36));
}

.app-icon-shine {
  position: absolute;
  top: 6px;
  left: 8px;
  z-index: 1;
  width: 18px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  filter: blur(3px);
  pointer-events: none;
}

.customer-page .category-tile {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 3px 14px;
}

.customer-page .category-tile .app-icon {
  grid-row: span 2;
}

.customer-page .product-icon {
  width: 46px;
  height: 46px;
  background: transparent !important;
  box-shadow: none;
}

.customer-page .product-option {
  grid-template-columns: 48px minmax(0, 1fr) 82px 94px 78px;
}

.customer-page .product-icon .app-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
}

.customer-page .product-icon .app-icon svg {
  width: 27px;
  height: 27px;
}

.customer-page .category-tile:hover .app-icon,
.customer-page .category-tile.active .app-icon,
.customer-page .product-option.active .app-icon {
  border-color: rgba(255, 255, 255, 0.20);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -18px 28px rgba(0, 0, 0, 0.22),
    0 16px 32px rgba(0, 0, 0, 0.30),
    0 0 32px var(--icon-glow);
}

.app-icon.app-gpt {
  --icon-a: #17382f;
  --icon-b: #071015;
  --icon-accent: #6ee7c2;
  --icon-glow: rgba(80, 220, 181, 0.34);
}

.app-icon.app-gemini {
  --icon-a: #4f6df7;
  --icon-b: #15246f;
  --icon-accent: #dbe6ff;
  --icon-glow: rgba(92, 124, 255, 0.38);
}

.app-icon.app-claude {
  --icon-a: #d59a45;
  --icon-b: #5c3517;
  --icon-accent: #ffe1ad;
  --icon-glow: rgba(225, 158, 72, 0.35);
}

.app-icon.app-grok,
.app-icon.app-twitter {
  --icon-a: #1c2633;
  --icon-b: #04070b;
  --icon-accent: #a7b7c9;
  --icon-glow: rgba(120, 143, 166, 0.26);
}

.app-icon.app-ai {
  --icon-a: #7a3ff0;
  --icon-b: #28135d;
  --icon-accent: #d9c7ff;
  --icon-glow: rgba(135, 86, 255, 0.36);
}

.app-icon.app-apple {
  --icon-a: #6f7b8b;
  --icon-b: #242a35;
  --icon-accent: #edf3f8;
  --icon-glow: rgba(190, 205, 220, 0.24);
}

.app-icon.app-gmail,
.app-icon.app-email {
  --icon-a: #4e9d87;
  --icon-b: #163a35;
  --icon-accent: #f6cf66;
  --icon-glow: rgba(78, 157, 135, 0.32);
}

.app-icon.app-cursor {
  --icon-a: #5f8bff;
  --icon-b: #102d87;
  --icon-accent: #bfe0ff;
  --icon-glow: rgba(70, 126, 255, 0.36);
}

.app-icon.app-facebook,
.app-icon.app-vk,
.app-icon.app-linkedin {
  --icon-a: #4086ff;
  --icon-b: #0b3c92;
  --icon-accent: #d8e8ff;
  --icon-glow: rgba(55, 125, 255, 0.36);
}

.app-icon.app-instagram {
  --icon-a: #f05a85;
  --icon-b: #6720b7;
  --icon-accent: #ffd37a;
  --icon-glow: rgba(225, 77, 150, 0.36);
}

.app-icon.app-tiktok {
  --icon-a: #1c2730;
  --icon-b: #030609;
  --icon-accent: #69f0dc;
  --icon-glow: rgba(105, 240, 220, 0.24);
}

.app-icon.app-telegram {
  --icon-a: #55b8f0;
  --icon-b: #11649d;
  --icon-accent: #e0f6ff;
  --icon-glow: rgba(72, 181, 236, 0.34);
}

.app-icon.app-ok {
  --icon-a: #f2a13a;
  --icon-b: #8a4a16;
  --icon-accent: #ffe0a3;
  --icon-glow: rgba(242, 161, 58, 0.34);
}

.app-icon.app-reddit {
  --icon-a: #ff7b45;
  --icon-b: #9d2f11;
  --icon-accent: #ffe2d5;
  --icon-glow: rgba(255, 101, 54, 0.34);
}

.app-icon.app-social {
  --icon-a: #6674ff;
  --icon-b: #283076;
  --icon-accent: #82f0d2;
  --icon-glow: rgba(102, 116, 255, 0.32);
}

.app-icon.app-game {
  --icon-a: #d7a64a;
  --icon-b: #5f3e16;
  --icon-accent: #fff0bc;
  --icon-glow: rgba(215, 166, 74, 0.34);
}

.app-icon.app-proxy {
  --icon-a: #6c7d75;
  --icon-b: #25312d;
  --icon-accent: #cfe6dc;
  --icon-glow: rgba(137, 161, 150, 0.25);
}

.app-icon.app-other {
  --icon-a: #697971;
  --icon-b: #232d29;
  --icon-accent: #d7b56a;
  --icon-glow: rgba(215, 181, 106, 0.25);
}

/* Cleaner platform color pass: keep category icons from all reading as black/gold. */
.customer-page .category-tile .app-icon,
.customer-page .product-icon .app-icon,
.app-icon {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(145deg, var(--icon-a) 0%, var(--icon-b) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -14px 24px rgba(0, 0, 0, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 18px var(--icon-glow);
}

.customer-page .category-tile .app-icon::after,
.customer-page .product-icon .app-icon::after,
.app-icon::after {
  opacity: 0.06;
  background: #ffffff;
}

.app-icon.app-gpt {
  --icon-a: #1fbf94;
  --icon-b: #116c59;
  --icon-accent: #dffcf4;
  --icon-glow: rgba(31, 191, 148, 0.28);
}

.app-icon.app-gemini {
  --icon-a: #7ea1ff;
  --icon-b: #3a55d8;
  --icon-accent: #ffffff;
  --icon-glow: rgba(90, 123, 255, 0.32);
}

.app-icon.app-claude {
  --icon-a: #e2aa58;
  --icon-b: #9c6725;
  --icon-accent: #fff1ca;
  --icon-glow: rgba(226, 170, 88, 0.26);
}

.app-icon.app-grok,
.app-icon.app-twitter {
  --icon-a: #3c4756;
  --icon-b: #121820;
  --icon-accent: #ffffff;
  --icon-glow: rgba(143, 160, 181, 0.20);
}

.app-icon.app-ai {
  --icon-a: #925eff;
  --icon-b: #5320b4;
  --icon-accent: #f3ecff;
  --icon-glow: rgba(146, 94, 255, 0.30);
}

.app-icon.app-apple {
  --icon-a: #a8b2c0;
  --icon-b: #56606d;
  --icon-accent: #ffffff;
  --icon-glow: rgba(190, 205, 220, 0.22);
}

.app-icon.app-gmail,
.app-icon.app-email {
  --icon-a: #ffffff;
  --icon-b: #dfe8e4;
  --icon-accent: #e6b949;
  --icon-glow: rgba(255, 255, 255, 0.20);
  color: #2a3a35 !important;
}

.app-icon.app-cursor {
  --icon-a: #7aa2ff;
  --icon-b: #315ce6;
  --icon-accent: #ffffff;
  --icon-glow: rgba(73, 118, 255, 0.30);
}

.app-icon.app-facebook,
.app-icon.app-vk,
.app-icon.app-linkedin {
  --icon-a: #5a92ff;
  --icon-b: #2357c8;
  --icon-accent: #ffffff;
  --icon-glow: rgba(54, 114, 255, 0.32);
}

.app-icon.app-instagram {
  --icon-a: #ff6b9d;
  --icon-b: #7a35e7;
  --icon-accent: #ffe28a;
  --icon-glow: rgba(240, 90, 152, 0.30);
}

.app-icon.app-tiktok {
  --icon-a: #1e2933;
  --icon-b: #05080c;
  --icon-accent: #6df2df;
  --icon-glow: rgba(105, 240, 220, 0.22);
}

.app-icon.app-telegram {
  --icon-a: #6cc8ff;
  --icon-b: #1683c5;
  --icon-accent: #ffffff;
  --icon-glow: rgba(72, 181, 236, 0.30);
}

.app-icon.app-ok {
  --icon-a: #ffb657;
  --icon-b: #d57222;
  --icon-accent: #ffffff;
  --icon-glow: rgba(242, 161, 58, 0.30);
}

.app-icon.app-reddit {
  --icon-a: #ff7d51;
  --icon-b: #e7471c;
  --icon-accent: #ffffff;
  --icon-glow: rgba(255, 101, 54, 0.30);
}

.app-icon.app-social {
  --icon-a: #7582ff;
  --icon-b: #4551d7;
  --icon-accent: #a8f4df;
  --icon-glow: rgba(102, 116, 255, 0.28);
}

.app-icon.app-game {
  --icon-a: #e2b25a;
  --icon-b: #a97525;
  --icon-accent: #fff7d8;
  --icon-glow: rgba(226, 178, 90, 0.26);
}

.app-icon.app-proxy {
  --icon-a: #93a39b;
  --icon-b: #53645f;
  --icon-accent: #ffffff;
  --icon-glow: rgba(137, 161, 150, 0.22);
}

.app-icon.app-other {
  --icon-a: #9ba79f;
  --icon-b: #5f6e68;
  --icon-accent: #ffffff;
  --icon-glow: rgba(160, 176, 168, 0.20);
}

/* Account category icons: direct platform colors, not the dark gold fallback. */
.customer-page .category-tile .app-icon {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(145deg, #344250 0%, #172029 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -10px 20px rgba(0, 0, 0, 0.16),
    0 8px 18px rgba(0, 0, 0, 0.22) !important;
}

.customer-page .category-tile .app-gpt {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.34), transparent 26%), linear-gradient(145deg, #35d0a7 0%, #11715d 100%) !important;
}

.customer-page .category-tile .app-gemini {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.36), transparent 26%), linear-gradient(145deg, #8ea7ff 0%, #3852de 100%) !important;
}

.customer-page .category-tile .app-claude {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.34), transparent 26%), linear-gradient(145deg, #e6b15f 0%, #9e6724 100%) !important;
}

.customer-page .category-tile .app-grok,
.customer-page .category-tile .app-twitter {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.28), transparent 26%), linear-gradient(145deg, #404b59 0%, #111821 100%) !important;
}

.customer-page .category-tile .app-ai {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.34), transparent 26%), linear-gradient(145deg, #9562ff 0%, #4f1fb1 100%) !important;
}

.customer-page .category-tile .app-apple {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.40), transparent 26%), linear-gradient(145deg, #aab5c2 0%, #56606d 100%) !important;
}

.customer-page .category-tile .app-gmail,
.customer-page .category-tile .app-email {
  color: #20312d !important;
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.58), transparent 28%), linear-gradient(145deg, #ffffff 0%, #dfe8e4 100%) !important;
}

.customer-page .category-tile .app-cursor,
.customer-page .category-tile .app-facebook,
.customer-page .category-tile .app-vk,
.customer-page .category-tile .app-linkedin {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.36), transparent 26%), linear-gradient(145deg, #5f94ff 0%, #2357c8 100%) !important;
}

.customer-page .category-tile .app-instagram {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.38), transparent 26%), linear-gradient(145deg, #ff6fa4 0%, #7a35e7 100%) !important;
}

.customer-page .category-tile .app-tiktok {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(145deg, #263241 0%, #080c12 100%) !important;
}

.customer-page .category-tile .app-telegram {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.36), transparent 26%), linear-gradient(145deg, #6ecbff 0%, #1683c5 100%) !important;
}

.customer-page .category-tile .app-ok {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.36), transparent 26%), linear-gradient(145deg, #ffb85d 0%, #d57222 100%) !important;
}

.customer-page .category-tile .app-reddit {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.36), transparent 26%), linear-gradient(145deg, #ff7d51 0%, #e7471c 100%) !important;
}

.customer-page .category-tile .app-social {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.34), transparent 26%), linear-gradient(145deg, #7582ff 0%, #4551d7 100%) !important;
}

.customer-page .category-tile .app-game {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.34), transparent 26%), linear-gradient(145deg, #d8a84e 0%, #9b6b22 100%) !important;
}

.customer-page .category-tile .app-proxy,
.customer-page .category-tile .app-other {
  background: radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.30), transparent 26%), linear-gradient(145deg, #93a39b 0%, #53645f 100%) !important;
}

/* Mobile storefront fixes */
.customer-page {
  overflow-x: hidden;
}

.customer-page .customer-order-head {
  order: 1;
}

.customer-page .pay-board {
  order: 2;
}

.customer-page .customer-order-progress {
  order: 3;
}

.customer-page .customer-order-meta {
  order: 4;
}

.customer-page .delivery-card {
  order: 5;
}

.customer-page .pay-amount {
  order: 1;
}

.customer-page .qr-pay-card {
  order: 2;
}

.customer-page .payment-tip {
  order: 3;
}

.customer-page .pay-board .data-line {
  order: 4;
}

.customer-page .pay-board > p {
  order: 5;
}

@media (max-width: 760px) {
  .customer-page .product-preview,
  .customer-page .product-list {
    overflow-x: hidden;
  }

  .customer-page .product-list {
    padding-bottom: 112px;
  }

  .customer-page .product-option {
    width: 100%;
    grid-template-columns: 74px minmax(0, 1fr) 96px;
    grid-template-rows: auto auto auto;
    gap: 8px 10px;
    align-items: start;
    min-height: 154px;
    padding: 14px 12px;
  }

  .customer-page .product-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 56px;
    height: 56px;
    align-self: start;
    justify-self: center;
    margin-top: 4px;
  }

  .customer-page .product-icon .app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .customer-page .product-icon .app-icon svg {
    width: 34px;
    height: 34px;
  }

  .customer-page .option-main {
    grid-column: 2 / 4;
    grid-row: 1;
    min-width: 0;
    gap: 6px;
  }

  .customer-page .option-top {
    align-items: flex-start;
    gap: 6px;
  }

  .customer-page .option-top strong {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.28;
    white-space: normal;
  }

  .customer-page .option-top small {
    max-width: 84px;
    flex: 0 0 auto;
  }

  .customer-page .option-subtitle {
    max-width: 100%;
    white-space: nowrap;
  }

  .customer-page .option-tags {
    flex-wrap: nowrap;
  }

  .customer-page .option-tags em {
    max-width: 88px;
  }

  .customer-page .option-stock {
    grid-column: 2 / 4;
    grid-row: 2;
    justify-self: start;
    place-items: start;
  }

  .customer-page .option-stock strong {
    min-width: 62px;
    min-height: 32px;
    padding: 0 14px;
    font-size: 14px;
  }

  .customer-page .option-price {
    grid-column: 2 / 3;
    grid-row: 3;
    align-self: center;
    justify-self: start;
    place-items: start;
    max-width: 100%;
    padding-right: 4px;
  }

  .customer-page .option-price strong {
    font-size: 22px;
    line-height: 1;
  }

  .customer-page .option-price small {
    font-size: 11px;
  }

  .customer-page .option-buy {
    grid-column: 3 / 4;
    grid-row: 3;
    align-self: center;
    justify-self: stretch;
    min-height: 42px;
    border-radius: 10px;
    font-size: 14px;
  }

  .customer-page .pay-board {
    gap: 12px;
    padding: 16px;
  }

  .customer-page .pay-amount strong {
    font-size: 42px;
  }

  .customer-page .qr-pay-card {
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
  }

  .customer-page .qr-pay-card img {
    width: 148px;
    height: 148px;
    aspect-ratio: 1;
    padding: 8px;
    border-radius: 12px;
  }

  .customer-page .qr-pay-card strong {
    font-size: 18px;
  }

  .customer-page .qr-pay-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  .customer-page .customer-order-progress,
  .customer-page .customer-order-meta {
    margin-top: 0;
  }
}

@media (max-width: 390px) {
  .customer-page .product-option {
    grid-template-columns: 66px minmax(0, 1fr) 86px;
    padding: 12px 10px;
  }

  .customer-page .product-icon,
  .customer-page .product-icon .app-icon {
    width: 50px;
    height: 50px;
  }

  .customer-page .qr-pay-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .customer-page .qr-pay-card img {
    width: 132px;
    height: 132px;
  }
}

/* Customer module navigation */
.customer-page [data-view]:not(.active-view) {
  display: none !important;
}

.customer-page [data-view] {
  contain: layout paint;
}

.customer-page [data-view].active-view {
  animation: moduleViewIn 180ms ease both;
}

.customer-header nav a.active-view-link,
.customer-header nav .nav-button.active-view-link {
  color: #050709;
  border-color: #ffe7a0;
  background: linear-gradient(180deg, #ffe9ad 0%, #e6bf66 100%);
  box-shadow: 0 10px 24px rgba(215, 181, 106, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  .customer-page [data-view].active-view {
    animation: none;
  }

  .customer-page:not([data-active-view="product"]) .mobile-buy-bar {
    display: none !important;
  }

  html,
  body.customer-page {
    scroll-behavior: auto !important;
  }

  .customer-page .customer-header,
  .customer-page .mobile-buy-bar,
  .customer-page .auth-modal {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@keyframes moduleViewIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile comfort pass: make the shop feel like a native product list. */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 118px;
  }

  body.customer-page {
    padding-bottom: 104px;
    background: #080d10;
  }

  .customer-header {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 12px 12px 10px;
    border-bottom: 1px solid rgba(221, 230, 225, 0.08);
    background: rgba(8, 13, 16, 0.94);
    backdrop-filter: none;
  }

  .customer-main {
    width: min(430px, calc(100vw - 24px));
    max-width: 430px;
    margin: 0 auto;
  }

  .customer-page [data-view] {
    scroll-margin-top: 118px;
  }

  .customer-header .brand {
    gap: 10px;
  }

  .customer-header .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .customer-header .brand strong {
    color: #f5f7f4;
    font-size: 22px;
  }

  .customer-header .brand small {
    color: rgba(233, 238, 235, 0.62);
  }

  .customer-header nav {
    margin-top: 8px;
    padding: 0 0 3px;
  }

  .customer-header nav a,
  .customer-header nav .nav-button {
    min-height: 34px;
    padding: 7px 12px;
    border-color: rgba(223, 229, 225, 0.12);
    background: #10171d;
    color: rgba(246, 248, 245, 0.88);
    box-shadow: none;
  }

  .customer-header nav a.active-view-link,
  .customer-header nav .nav-button.active-view-link {
    border-color: rgba(245, 209, 112, 0.88);
    background: linear-gradient(180deg, #f7d776 0%, #d7b56a 100%);
    color: #070b0d;
  }

  .store-signal {
    display: none;
  }

  .store-signal span {
    border-color: rgba(223, 229, 225, 0.12);
    background: #10171d;
  }

  .customer-page .product-preview {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .customer-page .product-preview::before,
  .customer-page .product-preview::after {
    display: none;
  }

  .picker-heading {
    padding: 14px;
    border: 1px solid rgba(223, 229, 225, 0.12);
    border-radius: 16px;
    background:
      radial-gradient(circle at 86% 0%, rgba(245, 209, 112, 0.18), transparent 34%),
      linear-gradient(135deg, #111a20 0%, #0c1216 100%);
  }

  .picker-heading .pill {
    width: max-content;
  }

  .picker-heading h2 {
    max-width: 280px;
    color: #f7f8f4;
    font-size: 23px;
    line-height: 1.15;
  }

  .picker-heading p {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(233, 238, 235, 0.68);
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .market-stats {
    margin: 10px 0 12px;
  }

  .market-stats span,
  .market-list-summary {
    border-color: rgba(223, 229, 225, 0.1);
    background: #10171d;
  }

  .shop-search {
    min-height: 46px;
    border-radius: 14px;
    border-color: rgba(223, 229, 225, 0.1);
    background: #10171d;
  }

  .shop-search input,
  .shop-search button {
    color: #f5f7f4;
  }

  .market-section-title {
    margin: 16px 0 10px;
  }

  .market-section-title span {
    color: #f5f7f4;
    font-size: 18px;
  }

  .market-section-title strong {
    display: none;
  }

  .category-snapshot {
    display: flex;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto;
    padding: 0 2px 7px;
    scroll-snap-type: none;
    scrollbar-width: none;
  }

  .category-snapshot::-webkit-scrollbar {
    display: none;
  }

  .customer-page .category-tile {
    flex: 0 0 136px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 9px;
    min-height: 64px;
    padding: 10px;
    border-radius: 14px;
    background: #10171d;
    scroll-snap-align: none;
  }

  .customer-page .category-tile .app-icon,
  .customer-page .category-tile span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .customer-page .category-tile strong {
    color: #f5f7f4;
    font-size: 14px;
  }

  .customer-page .category-tile small {
    color: rgba(233, 238, 235, 0.58);
    font-size: 12px;
  }

  .customer-page .category-tile.active {
    border-color: rgba(92, 198, 169, 0.72);
    background: #10221d;
  }

  .category-area {
    margin-top: 0;
    padding: 0 0 8px;
  }

  .category-area > span {
    display: none;
  }

  .category-chip {
    min-height: 34px;
    border-radius: 999px;
    border-color: rgba(223, 229, 225, 0.12);
    background: #10171d;
    color: rgba(246, 248, 245, 0.84);
    font-size: 13px;
  }

  .category-filters.is-collapsed {
    display: none;
  }

  .category-chip.active {
    border-color: rgba(92, 198, 169, 0.72);
    background: #163128;
    color: #79d6bd;
  }

  .category-toggle:not(.hidden) {
    min-height: 34px;
    width: 100%;
    margin-top: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(245, 209, 112, 0.92);
  }

  .market-list-head {
    display: none;
  }

  .market-list-summary {
    justify-content: flex-start;
    min-height: 34px;
    margin: 2px 0 10px;
    padding: 0 12px;
    border-radius: 12px;
    color: rgba(233, 238, 235, 0.66);
  }

  .customer-page .product-list {
    gap: 10px;
    padding-bottom: 116px;
  }

  .customer-page .product-option {
    grid-template-columns: 50px minmax(0, 1fr) 82px;
    grid-template-rows: auto auto auto;
    gap: 5px 10px;
    min-height: 106px;
    padding: 12px;
    border-radius: 14px;
    border-color: rgba(223, 229, 225, 0.1);
    background: #10171d;
    content-visibility: auto;
    contain-intrinsic-size: 106px;
  }

  .customer-page .product-option.active {
    border-color: rgba(92, 198, 169, 0.78);
    background: #10221d;
  }

  .customer-page .product-icon,
  .customer-page .product-icon .app-icon {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .customer-page .option-main {
    grid-column: 2 / 3;
    grid-row: 1 / 4;
    gap: 6px;
    min-width: 0;
  }

  .customer-page .option-top {
    display: block;
  }

  .customer-page .option-top strong {
    display: -webkit-box;
    overflow: hidden;
    color: #f7f8f4;
    font-size: 15px;
    line-height: 1.34;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .customer-page .option-top small {
    display: none;
  }

  .customer-page .option-subtitle {
    display: none;
  }

  .customer-page .option-tags {
    gap: 6px;
    overflow: hidden;
  }

  .customer-page .option-tags em {
    max-width: 74px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(242, 247, 244, 0.94);
    color: #5bb99f;
    font-size: 12px;
  }

  .customer-page .option-tags em:nth-child(n + 3) {
    display: none;
  }

  .customer-page .option-stock {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    place-items: end;
  }

  .customer-page .option-stock strong {
    min-width: auto;
    min-height: 26px;
    padding: 0 10px;
    border: 1px solid rgba(92, 198, 169, 0.52);
    border-radius: 999px;
    background: rgba(92, 198, 169, 0.12);
    color: #79d6bd;
    font-size: 13px;
  }

  .customer-page .option-stock small {
    display: none;
  }

  .customer-page .option-price {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
    place-items: end;
  }

  .customer-page .option-price strong {
    color: #f5d170;
    font-size: 17px;
  }

  .customer-page .option-price small {
    display: none;
  }

  .customer-page .option-buy {
    grid-column: 3;
    grid-row: 3;
    justify-self: end;
    width: 72px;
    min-height: 32px;
    border-radius: 10px;
    background: #06090c;
    color: #f7f8f4 !important;
    font-size: 13px;
  }

  .customer-page .buy-card {
    margin-top: 12px;
    border-radius: 16px;
  }

  .mobile-buy-bar {
    left: 12px;
    right: 12px;
    bottom: 10px;
    width: auto;
    grid-template-columns: minmax(0, 1fr) 50px 108px;
    min-height: 66px;
    padding: 8px;
    border-radius: 13px;
    border-color: rgba(223, 229, 225, 0.14);
    background: rgba(12, 18, 22, 0.96);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: none;
  }

  .mobile-buy-bar span {
    color: #f7f8f4;
  }

  .mobile-buy-bar strong {
    color: #f5d170;
    font-size: 21px;
  }

  .mobile-order-link {
    min-height: 48px;
    border-color: rgba(223, 229, 225, 0.14);
    background: rgba(255, 255, 255, 0.07);
    color: #f7f8f4;
  }

  .mobile-order-link span {
    color: #f7f8f4;
  }

  .mobile-buy-bar .primary-btn {
    min-height: 48px;
  }

  .customer-page .app-icon::before,
  .customer-page .app-icon::after,
  .customer-page .app-icon-shine {
    display: none !important;
    filter: none !important;
  }

  .customer-page .app-icon svg {
    filter: none !important;
  }

  .customer-page .category-tile,
  .customer-page .product-option,
  .customer-page .mobile-buy-bar,
  .customer-page .picker-heading {
    box-shadow: none !important;
    transition: none !important;
  }

  .customer-page .customer-header nav a,
  .customer-page .customer-header nav .nav-button,
  .customer-page .category-chip,
  .customer-page .primary-btn,
  .customer-page .ghost-btn {
    transition: none !important;
  }
}

/* Runtime comfort pass: reduce mobile paint cost and keep long lists smooth.
   Category tiles stay fully rendered so the two-row mobile rail does not jump in size on first open. */
.customer-page .product-option {
  content-visibility: auto;
  contain-intrinsic-size: 104px;
}

@media (max-width: 820px) {
  .customer-page *,
  .customer-page *::before,
  .customer-page *::after {
    transition-duration: 0ms !important;
  }

  .customer-page .customer-header,
  .customer-page .mobile-buy-bar,
  .customer-page .auth-modal,
  .customer-page .buy-card,
  .customer-page .category-tile,
  .customer-page .product-option {
    box-shadow: none !important;
  }

  .customer-page .customer-header,
  .customer-page .mobile-buy-bar,
  .customer-page .auth-modal {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .customer-page .category-tile:hover,
  .customer-page .category-tile.active,
  .customer-page .product-option:hover,
  .customer-page .product-option.active {
    transform: none !important;
  }
}

/* Touch comfort pass: reduce mobile tap delay and noisy highlight states. */
.customer-page button,
.customer-page a,
.customer-page select,
.customer-page input,
.customer-page .category-tile,
.customer-page .product-option,
.customer-page .mobile-buy-bar {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 820px) {
  .customer-page .product-option:active,
  .customer-page .category-tile:active,
  .customer-page .primary-btn:active,
  .customer-page .ghost-btn:active,
  .customer-page .mobile-buy-bar .primary-btn:active {
    opacity: 0.88;
  }

  .customer-page .mobile-buy-bar {
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
  }
}

/* Final mobile buy bar trim: keep the purchase action close without hiding products. */
@media (max-width: 820px) {
  .customer-page .mobile-buy-bar {
    right: 8px;
    bottom: 8px;
    left: 8px;
    grid-template-columns: minmax(0, 1fr) 46px 96px;
    gap: 7px;
    min-height: 60px;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    border-radius: 14px;
  }

  .customer-page .mobile-buy-bar span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .customer-page .mobile-buy-bar strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
  }

  .customer-page .mobile-buy-bar small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
  }

  .customer-page .mobile-order-link,
  .customer-page .mobile-buy-bar .primary-btn {
    min-height: 44px;
    border-radius: 11px;
  }

  .customer-page .mobile-buy-bar .primary-btn span {
    font-size: 13px;
  }
}

/* Final mobile category rails override: keep account modules small and horizontally browsable. */
.customer-page .category-snapshot .category-rail-row {
  display: contents;
}

@media (max-width: 760px) {
  .customer-page .category-snapshot {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    margin-right: -10px;
    padding-right: 10px;
  }

  .customer-page .category-snapshot .category-rail-row {
    display: flex !important;
    gap: 6px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    padding: 1px 2px 3px;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .customer-page .category-snapshot .category-rail-row::-webkit-scrollbar {
    display: none;
  }

  .customer-page .category-snapshot .category-tile {
    flex: 0 0 118px !important;
    scroll-snap-align: start;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    min-height: 46px !important;
    padding: 7px 8px !important;
    gap: 6px !important;
    border-radius: 12px !important;
    contain: layout paint;
    touch-action: pan-x pan-y pinch-zoom;
    user-select: none;
  }

  .customer-page .category-snapshot .category-tile .app-icon,
  .customer-page .category-snapshot .category-tile > span {
    width: 30px !important;
    height: 30px !important;
    border-radius: 10px !important;
  }

  .customer-page .category-snapshot .category-tile .app-icon svg {
    width: 18px !important;
    height: 18px !important;
  }

  .customer-page .category-snapshot .category-tile strong {
    font-size: 12px !important;
  }

  .customer-page .category-snapshot .category-tile small {
    font-size: 10px !important;
  }
}

/* Keep both mobile category rows the same compact size; long names should not stretch the first row. */
@media (max-width: 760px) {
  .customer-page .category-snapshot .category-tile {
    flex-basis: 108px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 6px 7px !important;
    overflow: hidden;
    align-items: center;
  }

  .customer-page .category-snapshot .category-tile .app-icon,
  .customer-page .category-snapshot .category-tile > span {
    width: 28px !important;
    height: 28px !important;
    border-radius: 9px !important;
  }

  .customer-page .category-snapshot .category-tile strong,
  .customer-page .category-snapshot .category-tile small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.12;
  }

  .customer-page .category-snapshot .category-tile strong {
    font-size: 11px !important;
  }

  .customer-page .category-snapshot .category-tile small {
    font-size: 9px !important;
  }

  .customer-page .product-option {
    content-visibility: auto;
    contain: layout paint style;
    contain-intrinsic-size: 96px 100%;
  }

  .customer-page .load-more-products {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(231, 199, 111, 0.26);
    border-radius: 12px;
    background: rgba(231, 199, 111, 0.08);
    color: var(--text-main);
    font-weight: 900;
  }

  .customer-page .load-more-products small {
    display: block;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 10px;
  }
}

/* Let vertical page scrolling win when a mobile swipe starts on the account-category rails. */
@media (max-width: 760px) {
  .customer-page .category-snapshot .category-rail-row {
    overscroll-behavior-x: auto !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
  }

  .customer-page .category-snapshot .category-tile {
    scroll-snap-align: none !important;
    touch-action: auto !important;
  }
}

/* Mobile payment page readability: make amount, QR code, wallet, and order code easier to verify. */
@media (max-width: 820px) {
  .customer-page .payment-section .checkout-panel {
    padding: 12px;
    border-radius: 16px;
  }

  .customer-page .customer-order-head {
    gap: 10px;
  }

  .customer-page .customer-order-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    width: 100%;
  }

  .customer-page .order-copy-btn {
    justify-content: center;
    width: 100%;
    min-height: 38px;
  }

  .customer-page .customer-order-meta {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .customer-page .customer-order-meta .data-line {
    min-width: 0;
    padding: 10px;
    border-radius: 12px;
  }

  .customer-page .customer-order-meta .data-line:nth-child(2) {
    border-color: rgba(245, 209, 112, 0.32);
    background: rgba(245, 209, 112, 0.07);
  }

  .customer-page .pay-board {
    gap: 10px;
    padding: 12px;
    border-radius: 15px;
  }

  .customer-page .pay-amount {
    padding: 10px;
    border: 1px solid rgba(245, 209, 112, 0.22);
    border-radius: 13px;
    background: rgba(245, 209, 112, 0.06);
  }

  .customer-page .pay-amount strong {
    font-size: 30px;
    line-height: 1.05;
  }

  .customer-page .payment-tip {
    align-items: flex-start;
    padding: 10px;
    border-radius: 12px;
    line-height: 1.5;
  }

  .customer-page .pay-board .data-line {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 10px;
    align-items: start;
    padding: 10px 0;
  }

  .customer-page .pay-board .data-line > * {
    min-width: 0;
  }

  .customer-page .pay-board code {
    user-select: all;
    -webkit-user-select: all;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.45;
  }

  .customer-page .qr-pay-card {
    grid-template-columns: 1fr !important;
    justify-items: center;
    gap: 12px;
    padding: 12px;
    text-align: center;
  }

  .customer-page .qr-pay-card img {
    width: min(224px, 100%) !important;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 1;
  }

  .customer-page .qr-pay-card strong {
    font-size: 20px;
  }

  .customer-page .delivery-card {
    padding: 12px;
    border-radius: 14px;
  }
}

/* Mobile category comfort: keep the two account rails compact so products enter the first screen sooner. */
@media (max-width: 760px) {
  .customer-page .category-snapshot {
    gap: 5px !important;
    margin-top: 8px;
  }

  .customer-page .category-snapshot .category-rail-row {
    gap: 5px !important;
    padding: 0 2px 2px !important;
  }

  .customer-page .category-snapshot .category-tile {
    flex: 0 0 96px !important;
    grid-template-columns: 26px minmax(0, 1fr) !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 5px 6px !important;
    gap: 5px !important;
    border-radius: 10px !important;
  }

  .customer-page .category-snapshot .category-tile .app-icon,
  .customer-page .category-snapshot .category-tile > span {
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
  }

  .customer-page .category-snapshot .category-tile .app-icon svg {
    width: 15px !important;
    height: 15px !important;
  }

  .customer-page .category-snapshot .category-tile strong {
    font-size: 10.5px !important;
    line-height: 1.05;
  }

  .customer-page .category-snapshot .category-tile small {
    font-size: 8.5px !important;
    line-height: 1.05;
  }

  .customer-page .category-snapshot .category-rail-row {
    touch-action: pan-y pinch-zoom !important;
    cursor: grab;
  }

  .customer-page .category-snapshot .category-rail-row.is-horizontal-drag {
    scroll-behavior: auto !important;
    cursor: grabbing;
  }

  .customer-page .category-snapshot .category-rail-row.is-horizontal-drag .category-tile {
    pointer-events: none;
  }
}

/* Mobile China checkout comfort: keep price, payment, confirmation, and purchase action close together. */
@media (max-width: 760px) {
  .customer-page .buy-card {
    padding: 14px;
  }

  .customer-page .buy-card .meta-row {
    gap: 6px;
  }

  .customer-page .buy-card h1 {
    margin-top: 10px;
    font-size: 24px;
    line-height: 1.1;
  }

  .customer-page .buy-card .subtitle {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.45;
  }

  .customer-page .service-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .customer-page .service-row span {
    min-height: 32px;
    padding: 7px 6px;
    font-size: 10px;
  }

  .customer-page .price-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin: 12px 0;
    padding: 11px 0;
  }

  .customer-page .price-row .price {
    font-size: 30px;
    line-height: 1;
  }

  .customer-page .buy-card .purchase-grid {
    gap: 9px;
  }

  .customer-page .buy-card .purchase-grid label {
    gap: 6px;
  }

  .customer-page .purchase-reminder {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .customer-page .purchase-reminder span {
    min-height: 30px;
    padding: 6px 5px;
    justify-content: center;
    font-size: 10px;
    text-align: center;
  }

  .customer-page .terms-check {
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.4;
  }

  .customer-page .buy-card .actions {
    gap: 8px;
  }

  .customer-page .buy-card .actions .primary-btn,
  .customer-page .buy-card .actions .ghost-btn {
    min-height: 44px;
    border-radius: 12px;
    font-size: 13px;
  }

  .customer-page .buy-note {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
  }
}

/* Final storefront finish: stronger brand presence and clearer commercial product cards. */
.customer-page .brand-mark {
  border-color: rgba(231, 199, 111, 0.34);
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 232, 154, 0.20), transparent 36%),
    linear-gradient(145deg, #151b1f, #070a0d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(231, 199, 111, 0.08);
}

.customer-page .brand-mark img {
  filter: drop-shadow(0 6px 16px rgba(231, 199, 111, 0.22));
}

.customer-page .product-option {
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.customer-page .product-option:hover,
.customer-page .product-option.active {
  border-color: rgba(231, 199, 111, 0.40);
  background:
    linear-gradient(135deg, rgba(231, 199, 111, 0.075), rgba(79, 191, 159, 0.045)),
    #0b1014;
  box-shadow:
    inset 3px 0 0 rgba(79, 191, 159, 0.78),
    0 16px 34px rgba(0, 0, 0, 0.22);
}

.customer-page .product-option.active {
  transform: translateY(-1px);
}

.customer-page .option-price strong {
  color: #e6c56e;
  letter-spacing: 0;
}

.customer-page .product-option .option-buy {
  border: 1px solid rgba(231, 199, 111, 0.28);
  background: rgba(231, 199, 111, 0.10);
  color: #f4df9e !important;
}

.customer-page .product-option.active .option-buy {
  border-color: rgba(231, 199, 111, 0.52);
  background: linear-gradient(180deg, #efd37a, #cba451);
  color: #12100b !important;
}

/* Final visual polish pass: remove the green-heavy active tone and keep China storefront gold/black. */
.customer-page .product-option:hover,
.customer-page .product-option.active {
  border-color: rgba(231, 199, 111, 0.38);
  background:
    radial-gradient(circle at 0 0, rgba(231, 199, 111, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(18, 22, 24, 0.98), rgba(6, 8, 10, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 14px 34px rgba(0, 0, 0, 0.22);
}

.customer-page .product-option.active {
  box-shadow:
    inset 3px 0 0 rgba(231, 199, 111, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 42px rgba(0, 0, 0, 0.28);
}

.customer-page .product-option.active .option-stock strong {
  border-color: rgba(231, 199, 111, 0.45);
  background: rgba(231, 199, 111, 0.1);
  color: #f0d17b !important;
}

@media (max-width: 760px) {
  .customer-page .product-option.active {
    transform: none;
    box-shadow: inset 3px 0 0 rgba(231, 199, 111, 0.82);
  }
}

/* Mobile list density pass: show more useful catalog rows without changing checkout behavior. */
@media (max-width: 760px) {
  .customer-page .product-list {
    gap: 8px !important;
    padding-bottom: 96px !important;
  }

  .customer-page .product-option {
    grid-template-columns: 42px minmax(0, 1fr) 72px !important;
    grid-template-rows: auto auto auto !important;
    min-height: 86px !important;
    padding: 10px 10px 10px 12px !important;
    gap: 7px 9px !important;
    border-radius: 14px !important;
  }

  .customer-page .product-icon,
  .customer-page .product-icon .app-icon {
    grid-column: 1 !important;
    grid-row: 1 / 4 !important;
    width: 42px !important;
    height: 42px !important;
  }

  .customer-page .product-icon .app-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .customer-page .option-main {
    grid-column: 2 !important;
    grid-row: 1 / 4 !important;
    gap: 4px !important;
  }

  .customer-page .option-top strong {
    font-size: 14px !important;
    line-height: 1.18 !important;
  }

  .customer-page .option-top small,
  .customer-page .option-subtitle {
    display: none !important;
  }

  .customer-page .option-tags {
    gap: 4px !important;
  }

  .customer-page .option-tags em {
    max-width: 62px !important;
    min-height: 20px !important;
    padding: 0 7px !important;
    font-size: 10px !important;
  }

  .customer-page .option-tags em:nth-child(n + 3) {
    display: none !important;
  }

  .customer-page .option-stock {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  .customer-page .option-stock strong {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
  }

  .customer-page .option-stock small,
  .customer-page .option-price small {
    display: none !important;
  }

  .customer-page .option-price {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  .customer-page .option-price strong {
    font-size: 16px !important;
    line-height: 1 !important;
  }

  .customer-page .option-buy {
    grid-column: 3 !important;
    grid-row: 3 !important;
    min-height: 27px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }
}

/* Payment clarity pass: make amount, order code, and QR blocks easier to scan on mobile. */
.customer-page .pay-board {
  border-color: rgba(231, 199, 111, 0.26) !important;
  background:
    radial-gradient(circle at 100% 0, rgba(231, 199, 111, 0.10), transparent 32%),
    linear-gradient(180deg, rgba(12, 15, 17, 0.98), rgba(4, 6, 8, 0.98)) !important;
}

.customer-page .pay-amount {
  border: 1px solid rgba(231, 199, 111, 0.22);
  background: rgba(231, 199, 111, 0.055);
}

.customer-page .pay-amount strong {
  color: #f0d17b !important;
  font-variant-numeric: tabular-nums;
}

.customer-page .customer-order-meta .data-line,
.customer-page .pay-board .data-line {
  background: rgba(255, 255, 255, 0.025) !important;
}

.customer-page .customer-order-meta code,
.customer-page .pay-board code {
  user-select: all;
  -webkit-user-select: all;
  word-break: break-all;
}

.customer-page .qr-pay-card {
  border-color: rgba(231, 199, 111, 0.20) !important;
  background: rgba(255, 255, 255, 0.028) !important;
}

.customer-page .qr-pay-card img {
  background: #fff;
  padding: 8px;
  border-radius: 14px;
}

.customer-page .payment-tip {
  border-color: rgba(79, 191, 159, 0.24);
  background: rgba(79, 191, 159, 0.07);
}

@media (max-width: 760px) {
  .customer-page .pay-board {
    padding: 12px !important;
    gap: 10px !important;
    border-radius: 15px !important;
  }

  .customer-page .pay-amount {
    padding: 10px !important;
  }

  .customer-page .pay-amount strong {
    font-size: 30px !important;
    line-height: 1.05 !important;
  }

  .customer-page .qr-pay-card {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    justify-items: stretch !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  .customer-page .qr-pay-card img {
    width: 104px !important;
    height: 104px !important;
    padding: 6px;
  }

  .customer-page .qr-pay-card strong {
    font-size: 16px !important;
    line-height: 1.25 !important;
  }

  .customer-page .qr-pay-card p {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }
}

/* Empty-state clarity pass: make no-order screens feel like a clear next step. */
.customer-page .empty-state,
.customer-page .profile-order-empty {
  border-color: rgba(231, 199, 111, 0.18);
  background:
    radial-gradient(circle at 100% 0, rgba(231, 199, 111, 0.08), transparent 34%),
    #0a0e12;
}

.customer-page .empty-order-actions .primary-btn,
.customer-page .profile-empty-actions .primary-btn {
  background: linear-gradient(180deg, #ecd27a, #c8a14d);
  color: #100d08 !important;
}

.customer-page .empty-order-actions .ghost-btn,
.customer-page .profile-empty-actions .ghost-btn {
  border-color: rgba(231, 199, 111, 0.24);
  background: rgba(231, 199, 111, 0.07);
}

@media (max-width: 760px) {
  .customer-page .empty-state,
  .customer-page .profile-order-empty {
    justify-items: start;
    text-align: left;
    padding: 16px !important;
    border-radius: 15px !important;
  }

  .customer-page .empty-state p,
  .customer-page .profile-order-empty p {
    margin-left: 0;
    margin-right: 0;
  }
}
