:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --surface-3: #f1f3f7;
  --ink: #0d1016;
  --ink-2: #1f2630;
  --muted: #6b7280;
  --muted-2: #8a8a8a;
  --line: rgba(13, 16, 22, 0.1);
  --line-strong: rgba(13, 16, 22, 0.18);
  --accent: #2563eb;
  --accent-bright: #38bdf8;
  --accent-ink: #ffffff;
  --accent-hover: #1d4ed8;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --radius-sm: 10px;
  --radius: 12px;
  --radius-lg: 18px;
  --content: 1200px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", monospace;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(15, 23, 42, 0.06), 0 16px 36px rgba(15, 23, 42, 0.08);
  --shadow-primary: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 28px rgba(13, 16, 22, 0.18);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090b15;
  --surface: #111827;
  --surface-2: #151b2e;
  --surface-3: #1d2740;
  --ink: #f5f6f8;
  --ink-2: #d4d4d4;
  --muted: #8b95a3;
  --muted-2: #6a6a6a;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #60a5fa;
  --accent-bright: #67e8f9;
  --accent-hover: #93c5fd;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.4), 0 16px 36px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 24px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input {
  color: inherit;
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg-grid {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, black 35%, transparent 88%);
  opacity: 0.55;
  animation: bg-grid-drift 60s linear infinite;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.48;
  will-change: transform, opacity;
}

.bg-orb.one {
  width: 620px;
  height: 620px;
  top: -10%;
  left: 18%;
  background: radial-gradient(circle, var(--accent-bright) 0%, transparent 66%);
  animation: bg-orb-drift-a 28s ease-in-out infinite alternate;
}

.bg-orb.two {
  width: 540px;
  height: 540px;
  top: 30%;
  right: 8%;
  background: radial-gradient(circle, #5b8def 0%, transparent 66%);
  animation: bg-orb-drift-b 34s ease-in-out infinite alternate;
}

.bg-orb.three {
  width: 480px;
  height: 480px;
  top: -8%;
  right: 28%;
  background: radial-gradient(circle, #a78bfa 0%, transparent 66%);
  animation: bg-orb-drift-c 38s ease-in-out infinite alternate;
}

html[data-theme="dark"] .bg-orb {
  opacity: 0.32;
  filter: blur(80px);
}

.bg-scan {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent);
  opacity: 0.6;
  animation: bg-scan 8s ease-in-out infinite;
}

.bg-spot {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-bright) 22%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s var(--ease);
  will-change: transform, opacity;
}

@keyframes bg-grid-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(56px, 56px); }
}

@keyframes bg-orb-drift-a {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.08); }
}

@keyframes bg-orb-drift-b {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-70px, 50px) scale(0.95); }
}

@keyframes bg-orb-drift-c {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -50px) scale(1.04); }
}

@keyframes bg-scan {
  0% { opacity: 0; transform: translateY(0); }
  10%, 90% { opacity: 0.6; }
  100% { opacity: 0; transform: translateY(100vh); }
}

.page-shell {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 14px 24px;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  transition: border-color 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.top-nav {
  display: flex;
  max-width: var(--content);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.brand-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9px;
}

.brand-copy {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.1;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.nav-links a::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 1.5px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.icon-btn:hover {
  background: var(--surface-3);
  color: var(--ink);
}

.icon-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

html[data-theme="dark"] .theme-sun {
  display: none;
}

html[data-theme="light"] .theme-moon,
html:not([data-theme="dark"]) .theme-moon {
  display: none;
}

main {
  margin-top: 0;
}

.hero {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-top: 8px;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: clamp(96px, 13vw, 168px) 24px clamp(80px, 10vw, 128px);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg)) 0%, var(--bg) 100%),
    radial-gradient(60% 40% at 50% 12%, rgba(251, 191, 36, 0.12), transparent 70%);
  text-align: center;
}

html[data-theme="dark"] .hero {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 11%, #0a0d12) 0%, var(--bg) 100%),
    radial-gradient(60% 40% at 50% 12%, rgba(251, 191, 36, 0.08), transparent 70%);
}

.hero::before {
  position: absolute;
  inset: -20% -5% 0;
  z-index: -2;
  background:
    radial-gradient(50% 60% at 50% 10%, color-mix(in srgb, var(--accent) 24%, transparent) 0%, transparent 65%),
    radial-gradient(35% 50% at 12% 40%, color-mix(in srgb, #f59e0b 12%, transparent) 0%, transparent 70%),
    radial-gradient(35% 50% at 88% 40%, color-mix(in srgb, #06b6d4 18%, transparent) 0%, transparent 70%);
  content: "";
  filter: blur(28px);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 6%, transparent) 1px, transparent 1px);
  background-position: center top;
  background-size: 56px 56px;
  content: "";
  mask-image: radial-gradient(ellipse 70% 70% at 50% 35%, black 35%, transparent 80%);
  opacity: 0.65;
}

.hero-copy {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow,
.product-hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 7px 14px 7px 12px;
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 7%, var(--surface-2));
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hero .eyebrow::before,
.product-hero-copy .eyebrow::before {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
  content: "";
  animation: pulse-dot 2s ease-in-out infinite;
}

.product-hero-copy .eyebrow-channel {
  border-color: color-mix(in srgb, #6366f1 38%, var(--line));
  background: color-mix(in srgb, #6366f1 9%, var(--surface-2));
}

.product-hero-copy .eyebrow-channel::before {
  background: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.22);
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent); }
  50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--success) 10%, transparent); }
}

.hero-copy h1,
.product-hero-copy h1,
.section-heading h2 {
  margin: 0;
  background: linear-gradient(180deg, var(--ink) 0%, color-mix(in srgb, var(--ink) 72%, var(--muted)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: 16ch;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(44px, 7vw, 76px);
  text-wrap: balance;
}

.hero-text,
.section-text,
.footer-text,
.product-copy p,
.product-hero-copy p,
.lookup-item-meta,
.detail-notes,
.purchase-note,
.lookup-hint {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.65;
}

.hero-text {
  max-width: 52ch;
  margin: 24px auto 0;
  color: var(--ink-2);
  font-size: 17px;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.hero-trust {
  display: grid;
  max-width: 1080px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 56px auto 0;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  text-align: left;
  backdrop-filter: saturate(140%) blur(8px);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.hero-trust-item:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  transform: translateY(-1px);
}

.hero-trust-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-3));
  color: var(--accent);
}

.hero-trust-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.hero-trust-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.hero-trust-text b {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.hero-trust-text span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.step-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}

.step-num {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.featured-section,
.lookup-panel,
.product-stage {
  padding: clamp(32px, 4.5vw, 56px) 0 clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  max-width: 760px;
  gap: 10px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.1;
}

.section-heading .eyebrow {
  margin-bottom: 0;
}

.section-text {
  color: var(--muted);
  font-size: 15px;
}

.button,
.card-link {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
}

.button:hover,
.card-link:hover {
  border-color: var(--line-strong);
  background: var(--surface-3);
  transform: translateY(-1px);
}

.button:disabled,
.card-link[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #2563eb, #0891b2);
  box-shadow: var(--shadow-primary);
  color: var(--accent-ink);
}

.button-primary:hover {
  border-color: transparent;
  background: linear-gradient(135deg, #1d4ed8, #0e7490);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 10px 26px color-mix(in srgb, var(--accent) 38%, transparent);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--ink);
}

.button-danger {
  border-color: color-mix(in srgb, var(--danger) 42%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: color-mix(in srgb, var(--danger) 72%, var(--ink));
}

.button-pay-hero {
  width: 100%;
  height: 46px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 550;
}

.button-small {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.card-link {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #ffffff) 0%, var(--surface-2) 100%);
  box-shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.45);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card-live:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.product-card-channel {
  border-color: color-mix(in srgb, #2563eb 34%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #2563eb 7%, var(--surface)) 0%, var(--surface-2) 72%);
}

.product-card-channel:hover {
  border-color: #4f46e5;
  box-shadow: 0 18px 40px -18px rgba(79, 70, 229, 0.5);
}

.product-card-channel::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #06b6d4, #22c55e);
  content: "";
}

.product-media,
.product-hero-media {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

.product-media {
  height: 228px;
  min-height: 228px;
  border-bottom: 1px solid var(--line);
}

.product-media-live,
.product-hero-media-live {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.product-hero-media img {
  width: min(72%, 280px);
  height: min(72%, 280px);
  object-fit: contain;
}

.product-soldout-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  padding: 6px 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  background: rgba(15, 18, 24, 0.72);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-8deg);
  white-space: nowrap;
}

.product-copy {
  display: flex;
  min-height: 296px;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.product-plan-mark,
.product-card-status {
  display: inline-flex;
  height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.product-plan-mark {
  border: 1px solid color-mix(in srgb, #2563eb 24%, var(--line));
  background: color-mix(in srgb, #2563eb 10%, var(--surface));
  color: color-mix(in srgb, #1d4ed8 72%, var(--ink));
}

.product-card-status {
  border: 1px solid color-mix(in srgb, #22c55e 28%, var(--line));
  background: color-mix(in srgb, #22c55e 11%, var(--surface));
  color: color-mix(in srgb, #15803d 72%, var(--ink));
}

.product-copy h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.24;
}

.product-summary {
  display: block;
  overflow: visible;
  min-height: 112px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.62;
  white-space: pre-line;
}

.product-badges,
.detail-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.product-badge,
.detail-chip {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}

.product-stock {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.product-stock-ok {
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.product-stock-warn {
  border-color: color-mix(in srgb, #f59e0b 32%, transparent);
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  color: #b45309;
}

.product-stock-low {
  border-color: color-mix(in srgb, #ef4444 32%, transparent);
  background: color-mix(in srgb, #ef4444 14%, transparent);
  color: #b91c1c;
}

.product-stock-out {
  border-color: var(--line);
  background: var(--surface-3);
  color: var(--muted);
  text-decoration: line-through;
}

.product-meta-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.product-price-stack {
  display: grid;
  gap: 2px;
}

.product-price-stack strong,
.product-detail-price {
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.product-price-original {
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: line-through;
}

.product-page,
.lookup-page {
  margin-top: 0;
}

.product-stage {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  border-top: 0;
}

.product-hero-media {
  aspect-ratio: 4 / 4.5;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.product-hero-copy .eyebrow {
  margin-bottom: 16px;
}

.product-hero-copy h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  text-align: left;
}

.product-hero-copy .hero-text {
  max-width: none;
  margin: 14px 0 0;
  font-size: 15.5px;
  text-align: left;
}

.product-price-cluster {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.product-detail-price {
  font-size: 32px;
}

.product-detail-price-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.product-price-save {
  display: inline-flex;
  height: 24px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--success) 30%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: color-mix(in srgb, var(--success) 55%, var(--ink));
  font-size: 12px;
  font-weight: 600;
}

.promo-price-hint {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.promo-price-hint.is-loading {
  color: var(--muted);
}

.promo-price-hint.is-valid {
  color: color-mix(in srgb, var(--success) 55%, var(--ink));
}

.promo-price-hint.is-invalid {
  color: color-mix(in srgb, var(--danger) 70%, var(--ink));
}

.guest-form,
.lookup-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.guest-field,
.lookup-field {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.guest-field input,
.lookup-field input,
.lookup-field textarea {
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.lookup-field textarea {
  height: auto;
  min-height: 118px;
  padding: 12px;
  resize: vertical;
  font-family: var(--font-mono);
  line-height: 1.55;
}

.guest-field input:hover,
.lookup-field input:hover,
.lookup-field textarea:hover {
  border-color: var(--line-strong);
}

.guest-field input:focus,
.lookup-field input:focus,
.lookup-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
  outline: none;
}

.guest-field input::placeholder,
.lookup-field input::placeholder,
.lookup-field textarea::placeholder {
  color: var(--muted-2);
}

.input-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 12%, transparent);
}

.field-error {
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.5;
}

.field-hint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.field-helper-link {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.field-helper-link:hover {
  text-decoration: underline;
}

.session-steps {
  display: grid;
  gap: 8px;
  margin: 4px 0 2px;
}

.session-step {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
}

.session-step-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.session-step strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.session-step span:not(.session-step-number) {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.55;
}

.session-step a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.session-step a:hover {
  text-decoration: underline;
}

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

.payment-section-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.payment-method-card {
  display: inline-flex;
  width: 100%;
  height: 50px;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.payment-method-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
}

.payment-method-card.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.payment-method-icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.payment-method-icon-alipay {
  background: #1677ff;
}

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.form-status-error {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
  color: color-mix(in srgb, var(--danger) 60%, var(--ink));
}

.form-status-success {
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
  color: color-mix(in srgb, var(--success) 55%, var(--ink));
}

.detail-notes,
.purchase-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13.5px;
}

.backend-proof {
  display: inline-flex;
  width: fit-content;
  margin: 12px 0 0;
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, var(--success) 24%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 8%, var(--surface));
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.order-actions[hidden] {
  display: none;
}

.order-actions-note {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.payment-save-dialog {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.payment-save-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 12, 18, 0.58);
  backdrop-filter: blur(5px);
}

.payment-save-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  padding: 34px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.payment-save-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.payment-save-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
}

.payment-save-text,
.payment-save-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.payment-save-fields {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.payment-save-field {
  display: grid;
  grid-template-columns: minmax(70px, 0.55fr) minmax(0, 1fr) auto;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.payment-save-field span {
  color: var(--muted);
  font-size: 15px;
}

.payment-save-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.payment-result-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--success);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.payment-result-link:hover {
  text-decoration: underline;
}

.payment-save-pay {
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  font-size: 18px;
}

.payment-pay-panel {
  width: min(100%, 520px);
  text-align: center;
}

.payment-pay-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
}

.payment-pay-brand strong {
  color: var(--ink);
  font-size: 18px;
}

.payment-pay-logo {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--success) 70%, white);
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.payment-alipay-icon {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 22px;
  background: #3478f6;
  color: #fff;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.payment-qr-frame {
  position: relative;
  width: min(76vw, 292px);
  aspect-ratio: 1;
  margin: 28px auto 18px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.14);
}

.payment-qr-corners::before,
.payment-qr-corners::after,
.payment-qr-frame::before,
.payment-qr-frame::after {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--success);
  content: "";
}

.payment-qr-frame::before {
  top: -6px;
  left: -6px;
  border-top: 3px solid;
  border-left: 3px solid;
  border-radius: 8px 0 0 0;
}

.payment-qr-frame::after {
  right: -6px;
  bottom: -6px;
  border-right: 3px solid;
  border-bottom: 3px solid;
  border-radius: 0 0 8px 0;
}

.payment-qr-corners::before {
  top: -6px;
  right: -6px;
  border-top: 3px solid;
  border-right: 3px solid;
  border-radius: 0 8px 0 0;
}

.payment-qr-corners::after {
  bottom: -6px;
  left: -6px;
  border-bottom: 3px solid;
  border-left: 3px solid;
  border-radius: 0 0 0 8px;
}

.payment-qr-code {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  gap: 2px;
}

.payment-qr-code span {
  background: #05070a;
}

.payment-qr-loading {
  display: grid;
  place-items: center;
}

.payment-scan-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 22px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--success) 10%, var(--surface));
  color: var(--success);
  font-size: 15px;
  font-weight: 800;
}

.payment-scan-tip span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.payment-pay-summary {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 22px;
  border-radius: 18px;
  background: var(--surface-2);
  text-align: left;
}

.payment-pay-summary div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.payment-pay-summary dt {
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.payment-pay-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-align: right;
}

.payment-pay-order {
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.payment-result-link-center {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.payment-home-link {
  width: 100%;
  margin-top: 18px;
}

.detail-notes {
  display: grid;
  gap: 6px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.lookup-panel {
  max-width: 680px;
  margin-inline: auto;
  border-top: 0;
}

.lookup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.lookup-result {
  margin-top: 28px;
}

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

.lookup-item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.lookup-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.lookup-item-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lookup-item-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lookup-item-meta + .lookup-item-meta {
  margin-top: 2px;
}

.status-pill {
  display: inline-flex;
  height: 22px;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}

.status-success {
  border-color: color-mix(in srgb, var(--success) 30%, var(--line));
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: color-mix(in srgb, var(--success) 55%, var(--ink));
}

.status-warning {
  border-color: color-mix(in srgb, var(--warning) 30%, var(--line));
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: color-mix(in srgb, var(--warning) 55%, var(--ink));
}

.status-danger {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  background: color-mix(in srgb, var(--danger) 12%, transparent);
  color: color-mix(in srgb, var(--danger) 55%, var(--ink));
}

.cdk-block {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}

.cdk-label {
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cdk-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.cdk-code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  word-break: break-all;
}

.cdk-meta {
  color: var(--muted);
  font-size: 12.5px;
}

.lookup-hint,
.placeholder-note {
  padding: 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.placeholder-note.danger {
  border-color: color-mix(in srgb, var(--danger) 30%, var(--line));
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
  color: color-mix(in srgb, var(--danger) 60%, var(--ink));
}

.lookup-support-card {
  display: grid;
  gap: 14px;
  margin-top: 0;
  padding: 18px;
  border: 2px solid color-mix(in srgb, var(--accent) 72%, var(--line));
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

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

.lookup-support-head strong {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}

.lookup-support-wechat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.lookup-support-wechat span {
  color: var(--muted);
  font-size: 13px;
}

.lookup-support-wechat strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.lookup-support-qr {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.lookup-support-qr img {
  width: min(260px, 72vw);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 8px;
}

.lookup-support-qr p,
.lookup-support-copy {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lookup-support-copy {
  font-size: 13.5px;
}

.admin-recharge-panel {
  max-width: 1120px;
}

.admin-recharge-toolbar {
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
}

.admin-recharge-result {
  margin-top: 18px;
}

.admin-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 2px 0 22px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.admin-tab {
  min-width: 120px;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: calc(var(--radius-sm) - 2px);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.admin-tab-pane[hidden] {
  display: none;
}

.admin-page-stack {
  display: grid;
  gap: 22px;
}

.admin-tool-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-tool-head strong {
  color: var(--ink);
  font-size: 16px;
}

.admin-tool-head span {
  color: var(--muted);
  font-size: 12.5px;
}

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

.lookup-field select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}

.lookup-field .admin-native-multi {
  display: none;
}

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

.admin-cdk-channel-hint {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.45;
}

.admin-channel-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.admin-channel-choice:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary) 48%, var(--line));
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
}

.admin-channel-choice input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.lookup-field textarea {
  width: 100%;
  min-height: 128px;
  padding: 12px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  line-height: 1.55;
}

.admin-cdk-result {
  margin-top: 18px;
}

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

.admin-product-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.admin-product-mode span,
.admin-product-mode em {
  color: var(--muted);
  font-size: 12.5px;
  font-style: normal;
}

.admin-product-mode strong {
  color: var(--ink);
  font-size: 13.5px;
}

.admin-product-mode.is-editing {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}

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

.admin-cover-upload-field input[type="file"] {
  padding: 9px 10px;
}

.admin-product-active {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
}

.admin-product-active input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.admin-product-actions {
  justify-content: flex-start;
}

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

.admin-product-description {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.admin-recharge-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.admin-recharge-head,
.admin-recharge-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-recharge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

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

.admin-recharge-grid div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.admin-recharge-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.admin-recharge-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13.5px;
}

.admin-token-block {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.admin-token-block pre {
  max-height: 180px;
  margin: 8px 0 12px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.55;
}

.admin-recharge-actions {
  margin-top: 14px;
}

.admin-recharge-done {
  justify-content: flex-start;
  color: var(--success);
  font-size: 13.5px;
  font-weight: 700;
}

.admin-recharge-actions input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.admin-pagination strong {
  color: var(--ink);
}

/* ---------- Redeem ---------- */
.redeem-page {
  display: grid;
  gap: 24px;
  padding-top: clamp(28px, 5vw, 58px);
}

.redeem-hero {
  display: grid;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.redeem-hero .section-heading {
  margin-bottom: 0;
}

.redeem-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.redeem-flow span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.redeem-flow b {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface-3));
  color: var(--accent);
  font-size: 11px;
}

.redeem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.redeem-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, transparent), var(--surface-2));
  box-shadow: var(--shadow-card);
}

.redeem-card-main,
.redeem-side,
.redeem-query {
  padding: 22px;
}

.redeem-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.redeem-card-head .eyebrow {
  margin-bottom: 6px;
}

.redeem-card-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.2;
}

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

.redeem-preview {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: 12px;
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--surface);
}

.redeem-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.redeem-preview-head strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
}

.redeem-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}

.redeem-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.redeem-side {
  position: sticky;
  top: 84px;
}

.redeem-result {
  display: grid;
  gap: 12px;
}

.redeem-tips {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.redeem-tips strong {
  color: var(--ink);
  font-size: 13.5px;
}

.redeem-tips p {
  margin: 0;
}

.redeem-query {
  margin-top: 4px;
}

.redeem-query-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  align-items: start;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer .eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

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

.footer-text {
  color: var(--muted);
  font-size: 13.5px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--ink);
}

.hero,
.featured-section,
.lookup-panel,
.product-stage {
  animation: rise-up 480ms var(--ease) both;
}

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

@media (max-width: 1100px) {
  .product-stage,
  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .product-stage {
    gap: 32px;
  }

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

  .product-hero-media {
    max-width: 480px;
  }
}

@media (max-width: 900px) {
  .hero-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-recharge-grid {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    display: flex;
  }

  .admin-tab {
    flex: 1;
    min-width: 0;
  }

  .admin-recharge-toolbar,
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 0 16px 56px;
  }

  .site-header {
    margin: 0 -16px;
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-copy h1,
  .section-heading h2 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .product-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .redeem-layout,
  .redeem-query-grid {
    grid-template-columns: 1fr;
  }

  .redeem-side {
    position: static;
  }

  .hero-actions,
  .lookup-actions {
    flex-direction: column;
  }

  .hero-actions .button,
  .lookup-actions .button {
    width: 100%;
  }

  .product-meta-row,
  .lookup-item-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-strip {
    gap: 10px;
    font-size: 12.5px;
  }

  .payment-save-dialog {
    align-items: end;
    padding: 12px;
  }

  .payment-save-panel {
    padding: 30px 18px 22px;
    border-radius: 16px;
  }

  .payment-save-panel h2 {
    padding-right: 28px;
    font-size: 22px;
  }

  .payment-save-field {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .payment-save-field span {
    grid-column: 1 / -1;
  }

  .payment-save-field strong {
    font-size: 18px;
  }

  .payment-pay-brand {
    margin-bottom: 18px;
    gap: 8px;
    font-size: 13px;
  }

  .payment-alipay-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    font-size: 40px;
  }

  .payment-qr-frame {
    padding: 18px;
  }

  .payment-pay-summary {
    padding: 18px;
  }

  .payment-pay-summary div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .payment-pay-summary dd {
    font-size: 16px;
  }
}

@media (max-width: 560px) {
  .hero-trust {
    grid-template-columns: 1fr;
  }

  .product-hero-media {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
