@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/geist-sans@5.2.5/files/geist-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/geist-sans@5.2.5/files/geist-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/geist-sans@5.2.5/files/geist-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/geist-sans@5.2.5/files/geist-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/geist-mono@5.2.5/files/geist-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --spx-accent: #4a89ff;
  --spx-surface-0: #09090b;
  --spx-surface-1: #111318;
  --spx-foreground: #fafafa;
  --spx-muted: #a1a1aa;
  --spx-muted-75: rgba(161, 161, 170, 0.75);
  --spx-muted-55: rgba(161, 161, 170, 0.55);
  --spx-border: rgba(255, 255, 255, 0.06);
  --spx-card: rgba(255, 255, 255, 0.025);
  --spx-card-2: rgba(255, 255, 255, 0.03);
  --spx-emerald: #34d399;
  --spx-emerald-text: #34d399;
  --spx-emerald-bg: rgba(52, 211, 153, 0.1);
  --spx-font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --spx-mono: "Geist Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body.spx-page {
  min-height: 100%;
  font-family: var(--spx-font);
  color: var(--spx-foreground);
  background: var(--spx-surface-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.spx-page [hidden] { display: none !important; }

.spx-preview-pill {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.9);
  border: 1px solid var(--spx-border);
  color: var(--spx-muted);
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* ── Shell grid 2fr / 3fr like Shoppex ── */
.spx-shell {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .spx-shell { grid-template-columns: 1fr; }
}

/* ── Left summary panel ── */
.spx-summary {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--spx-border);
  background-color: var(--spx-surface-1);
  background-image:
    radial-gradient(120% 90% at -10% -10%, color-mix(in srgb, var(--spx-accent) 18%, transparent) 0%, transparent 55%),
    radial-gradient(90% 70% at 110% 110%, color-mix(in srgb, var(--spx-accent) 18%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, transparent 30%, color-mix(in srgb, var(--spx-accent) 18%, transparent) 140%);
}

@media (max-width: 1024px) {
  .spx-summary { border-right: none; border-bottom: 1px solid var(--spx-border); }
}

.spx-summary__scroll {
  flex: 1;
  padding: 32px 24px 32px;
  overflow-y: auto;
}

@media (min-width: 640px) {
  .spx-summary__scroll { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1024px) {
  .spx-summary__scroll { padding: 56px 48px 32px; }
}

.spx-summary__inner {
  max-width: 420px;
  margin: 0 auto;
}

.spx-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--spx-muted-75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.spx-back:hover { color: var(--spx-foreground); }

.spx-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.spx-brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--spx-border);
}

.spx-brand__name {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--spx-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spx-section-label {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--spx-muted-75);
}

.spx-product-card {
  border-radius: 16px;
  background: var(--spx-card);
  padding: 16px;
}

.spx-product-card + .spx-product-card { margin-top: 12px; }

.spx-product-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.spx-product-row__img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--spx-border);
}

.spx-product-row__body { flex: 1; min-width: 0; }

.spx-product-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.spx-product-row__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--spx-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spx-product-row__price {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--spx-foreground);
}

.spx-product-row__desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--spx-muted-75);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spx-product-row__qty {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--spx-muted-55);
}

.spx-summary-block { margin-top: 32px; }

.spx-summary-lines { display: flex; flex-direction: column; gap: 8px; }

.spx-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--spx-muted-75);
}

.spx-summary-line span:last-child {
  font-variant-numeric: tabular-nums;
  color: rgba(250, 250, 250, 0.7);
}

.spx-summary-line--paid span:last-child { color: var(--spx-emerald); }

.spx-summary-total {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--spx-border);
}

.spx-summary-total__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--spx-muted-75);
}

.spx-summary-total__value {
  margin-top: 6px;
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  color: var(--spx-foreground);
}

.spx-summary-foot {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 20px 24px;
}

@media (min-width: 640px) { .spx-summary-foot { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) { .spx-summary-foot { padding: 20px 48px; } }

.spx-summary-foot__inner {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spx-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--spx-muted-75);
}

.spx-legal a {
  color: var(--spx-muted-75);
  text-decoration: none;
}
.spx-legal a:hover { color: var(--spx-foreground); }

.spx-powered {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--spx-muted-75);
}

.spx-powered a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--spx-muted-75);
  text-decoration: none;
}
.spx-powered a:hover { color: var(--spx-foreground); }
.spx-powered strong { color: var(--spx-foreground); font-weight: 500; }

/* ── Right main panel ── */
.spx-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--spx-surface-0);
}

.spx-main__scroll {
  flex: 1;
  padding: 32px 24px 32px;
}

@media (min-width: 640px) { .spx-main__scroll { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) { .spx-main__scroll { padding: 56px 48px 32px; } }

.spx-main__inner {
  max-width: 560px;
  margin: 0 auto;
}

.spx-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 24px;
}

@media (min-width: 1024px) { .spx-toolbar { margin-bottom: 32px; } }

.spx-icon-btn {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--spx-border);
  background: transparent;
  color: var(--spx-muted-75);
  cursor: pointer;
}
.spx-icon-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--spx-foreground);
}

.spx-status-stack { display: flex; flex-direction: column; gap: 24px; }

/* Success card */
.spx-card {
  border-radius: 12px;
  border: 1px solid var(--spx-border);
  background: var(--spx-card);
  padding: 20px;
}

.spx-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.spx-success__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--spx-emerald-bg);
  display: grid;
  place-items: center;
  color: var(--spx-emerald);
}

.spx-success__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--spx-emerald-text);
}

.spx-success__sub {
  font-size: 14px;
  color: var(--spx-muted-75);
}

/* Keys delivery */
.spx-keys-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.spx-keys-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spx-keys-sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--spx-muted-75);
}

.spx-chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

.spx-chip {
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid var(--spx-border);
  background: var(--spx-card-2);
  color: var(--spx-foreground);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.spx-chip:hover { background: rgba(255, 255, 255, 0.06); }

.spx-key-list { display: flex; flex-direction: column; gap: 8px; }

.spx-key-item {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 10px;
  align-items: center;
  padding: 14px 14px 14px 16px;
  border-radius: 12px;
  background: var(--spx-card-2);
  border: 1px solid var(--spx-border);
}

.spx-key-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--spx-muted-75);
  margin-bottom: 6px;
}
.spx-key-label svg { color: var(--spx-emerald); flex-shrink: 0; }

.spx-key-value {
  font-family: var(--spx-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #f4f4f5;
  word-break: break-all;
  line-height: 1.35;
}

.spx-copy-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--spx-border);
  background: transparent;
  color: var(--spx-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.spx-copy-btn:hover,
.spx-copy-btn.is-copied {
  color: var(--spx-foreground);
  background: rgba(255, 255, 255, 0.04);
}

/* Details card */
.spx-details-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--spx-emerald-text);
}

.spx-inline-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--spx-card-2);
  margin-bottom: 12px;
}

.spx-inline-product__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  color: rgba(250, 250, 250, 0.5);
  flex-shrink: 0;
}

.spx-inline-product__body { flex: 1; min-width: 0; }

.spx-inline-product__name {
  font-size: 14px;
  font-weight: 500;
  color: var(--spx-foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spx-inline-product__desc {
  font-size: 12px;
  color: var(--spx-muted-75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spx-inline-product__price {
  text-align: right;
  flex-shrink: 0;
}

.spx-inline-product__price strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.spx-inline-product__price small {
  font-size: 12px;
  color: var(--spx-muted-75);
  font-variant-numeric: tabular-nums;
}

.spx-meta-rows { display: flex; flex-direction: column; gap: 10px; }

.spx-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
}

.spx-meta-row__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--spx-muted-75);
  flex-shrink: 0;
}
.spx-meta-row__label svg { opacity: 0.6; }

.spx-meta-row__value {
  font-weight: 500;
  text-align: right;
  word-break: break-all;
  color: rgba(250, 250, 250, 0.8);
}

.spx-meta-row__value--mono {
  font-family: var(--spx-mono);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.spx-pay-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spx-pay-pill__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.spx-total-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--spx-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.spx-total-row span:last-child {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

/* Next steps */
.spx-next-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.spx-next-head svg { color: rgba(161, 161, 170, 0.6); margin-top: 2px; flex-shrink: 0; }

.spx-next-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spx-next-sub {
  font-size: 14px;
  color: var(--spx-muted-75);
  margin-top: 2px;
}

.spx-next-item {
  border-radius: 8px;
  background: var(--spx-card-2);
  padding: 10px 12px;
}

.spx-next-item__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}
.spx-next-item__title svg { opacity: 0.4; flex-shrink: 0; }

.spx-next-rich {
  font-size: 14px;
  line-height: 1.6;
  color: var(--spx-muted-75);
  word-break: break-word;
}
.spx-next-rich p { margin: 8px 0; }
.spx-next-rich a {
  color: var(--spx-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Review */
.spx-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.spx-review__title { font-size: 14px; font-weight: 600; }
.spx-review__sub { margin-top: 4px; font-size: 13px; color: var(--spx-muted-75); }

.spx-review-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid rgba(250, 204, 21, 0.28);
  background: rgba(250, 204, 21, 0.08);
  color: #facc15;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.spx-receipt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--spx-muted-75);
}

/* Trust footer */
.spx-trust-wrap {
  padding: 0 24px 24px;
}

@media (min-width: 640px) { .spx-trust-wrap { padding-left: 40px; padding-right: 40px; } }
@media (min-width: 1024px) { .spx-trust-wrap { padding: 0 48px 40px; } }

.spx-trust {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 20px;
  font-size: 12px;
  color: var(--spx-muted-75);
}

.spx-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.spx-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #181b22;
  border: 1px solid var(--spx-border);
  color: var(--spx-foreground);
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.2s ease;
  pointer-events: none;
  z-index: 100;
}
.spx-toast.is-visible { opacity: 1; transform: translateY(0); }

/* ── Frozen Reborn premium pass ── */
:root {
  --spx-surface-0-rgb: 7, 9, 14;
  --spx-panel-rgb: 13, 17, 25;
  --spx-card-solid: #0f131c;
  --spx-card-hover: rgba(255, 255, 255, 0.045);
  --spx-accent-soft: rgba(74, 137, 255, 0.13);
  --spx-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body.spx-page {
  background:
    radial-gradient(circle at 78% -12%, rgba(74, 137, 255, 0.09), transparent 30%),
    rgb(var(--spx-surface-0-rgb));
}

.spx-summary {
  background-color: rgb(var(--spx-panel-rgb));
  background-image:
    radial-gradient(100% 65% at 0% 0%, rgba(74, 137, 255, 0.2), transparent 62%),
    radial-gradient(80% 60% at 100% 100%, rgba(30, 90, 210, 0.14), transparent 70%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.018), transparent 45%);
}

@media (min-width: 1025px) {
  .spx-summary {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }

  .spx-summary__scroll {
    scrollbar-width: none;
  }

  .spx-summary__scroll::-webkit-scrollbar { display: none; }
}

.spx-back {
  width: fit-content;
  padding: 7px 10px 7px 8px;
  margin-left: -8px;
  border-radius: 9px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.spx-back:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-2px);
}

.spx-brand__logo {
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(74, 137, 255, 0.16), rgba(5, 8, 14, 0.55));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.08);
}

.spx-brand__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #7ca8ff;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spx-product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.11);
}

.spx-product-card::after {
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(74, 137, 255, 0.08);
  filter: blur(30px);
  content: "";
  pointer-events: none;
}

.spx-product-art {
  position: relative;
  display: grid;
  width: 80px;
  height: 80px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(130, 175, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 25% 20%, rgba(120, 177, 255, 0.4), transparent 36%),
    linear-gradient(145deg, #173a78, #0b1220 72%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.spx-product-art::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 12px 12px;
  content: "";
  mask-image: linear-gradient(to bottom right, black, transparent 80%);
}

.spx-product-art__shine {
  position: absolute;
  top: -38px;
  left: -20px;
  width: 34px;
  height: 150px;
  transform: rotate(32deg);
  background: rgba(255, 255, 255, 0.11);
  filter: blur(4px);
}

.spx-product-art img {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.35));
}

.spx-summary-total__value {
  background: linear-gradient(100deg, #ffffff 18%, #a9c7ff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.spx-toolbar {
  justify-content: space-between;
}

.spx-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--spx-muted-75);
  font-size: 12px;
  font-weight: 500;
}

.spx-live-status > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spx-emerald);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.09), 0 0 14px rgba(52, 211, 153, 0.45);
}

.spx-icon-btn {
  background: rgba(255, 255, 255, 0.025);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.spx-icon-btn:hover { transform: translateY(-1px); }
.spx-theme-moon { display: none; }

.spx-card {
  border-color: rgba(255, 255, 255, 0.075);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.016));
  box-shadow: var(--spx-shadow);
}

.spx-success-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 22px;
  background:
    radial-gradient(circle at 50% -35%, rgba(52, 211, 153, 0.13), transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014));
}

.spx-success-card::before {
  position: absolute;
  top: 0;
  left: 18%;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 234, 212, 0.48), transparent);
  content: "";
}

.spx-success__icon {
  border: 1px solid rgba(52, 211, 153, 0.18);
  box-shadow: 0 0 34px rgba(52, 211, 153, 0.12), inset 0 1px rgba(255, 255, 255, 0.08);
}

.spx-success__meta {
  margin-top: 8px;
  color: var(--spx-muted-55);
  font-size: 11px;
}

.spx-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 370px;
  margin: 24px auto 0;
}

.spx-progress__line {
  position: absolute;
  top: 12px;
  right: 16.6%;
  left: 16.6%;
  height: 1px;
  background: linear-gradient(90deg, #34d399, #5eead4);
  opacity: 0.42;
}

.spx-progress__step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 7px;
}

.spx-progress__step > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 50%;
  background: #10241f;
  color: #5eead4;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.04);
}

.spx-progress__step svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.spx-progress__step small {
  color: var(--spx-muted-75);
  font-size: 10px;
  font-weight: 550;
}

.spx-delivery-card {
  border-color: rgba(74, 137, 255, 0.14);
}

.spx-keys-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}

.spx-section-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(74, 137, 255, 0.16);
  border-radius: 10px;
  background: var(--spx-accent-soft);
  color: #82adff;
}

.spx-section-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.spx-count-badge {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  margin-left: 4px;
  place-items: center;
  border: 1px solid rgba(74, 137, 255, 0.16);
  border-radius: 6px;
  background: rgba(74, 137, 255, 0.1);
  color: #8ab2ff;
  font-size: 10px;
  vertical-align: 1px;
}

.spx-chip {
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.spx-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 137, 255, 0.2);
  background: rgba(74, 137, 255, 0.08);
}

.spx-key-item {
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.spx-key-item:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 137, 255, 0.16);
  background: rgba(74, 137, 255, 0.04);
}

.spx-copy-btn,
.spx-mini-copy {
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.spx-copy-btn:hover,
.spx-copy-btn.is-copied,
.spx-mini-copy:hover,
.spx-mini-copy.is-copied {
  border-color: rgba(74, 137, 255, 0.2);
  background: rgba(74, 137, 255, 0.1);
  color: #91b7ff;
}

.spx-details-title {
  color: var(--spx-foreground);
  font-size: 15px;
}

.spx-order-id-wrap {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.spx-mini-copy {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--spx-border);
  border-radius: 7px;
  background: transparent;
  color: var(--spx-muted-75);
  cursor: pointer;
}

.spx-mini-copy svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.spx-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.spx-next-rich .spx-primary-link,
.spx-next-rich .spx-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.spx-next-rich .spx-primary-link {
  background: var(--spx-accent);
  color: white;
  box-shadow: 0 8px 20px rgba(74, 137, 255, 0.18);
}

.spx-next-rich .spx-secondary-link {
  border: 1px solid var(--spx-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--spx-foreground);
}

.spx-next-rich .spx-primary-link:hover,
.spx-next-rich .spx-secondary-link:hover {
  transform: translateY(-1px);
}

.spx-toast {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

/* Working light mode */
html.spx-light {
  color-scheme: light;
  --spx-surface-0: #f7f9fc;
  --spx-surface-1: #eef3fb;
  --spx-surface-0-rgb: 247, 249, 252;
  --spx-panel-rgb: 239, 244, 252;
  --spx-foreground: #111827;
  --spx-muted: #64748b;
  --spx-muted-75: rgba(51, 65, 85, 0.74);
  --spx-muted-55: rgba(51, 65, 85, 0.52);
  --spx-border: rgba(15, 23, 42, 0.09);
  --spx-card: rgba(255, 255, 255, 0.65);
  --spx-card-2: rgba(15, 23, 42, 0.035);
  --spx-card-hover: rgba(15, 23, 42, 0.055);
  --spx-shadow: 0 16px 42px rgba(26, 54, 93, 0.07);
}

.spx-light body.spx-page {
  background:
    radial-gradient(circle at 78% -12%, rgba(74, 137, 255, 0.11), transparent 32%),
    #f7f9fc;
}

.spx-light .spx-summary {
  background-image:
    radial-gradient(100% 65% at 0% 0%, rgba(74, 137, 255, 0.18), transparent 62%),
    radial-gradient(80% 60% at 100% 100%, rgba(30, 90, 210, 0.08), transparent 70%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.85), transparent 48%);
}

.spx-light .spx-card,
.spx-light .spx-product-card {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.spx-light .spx-success-card {
  background:
    radial-gradient(circle at 50% -35%, rgba(16, 185, 129, 0.12), transparent 50%),
    rgba(255, 255, 255, 0.75);
}

.spx-light .spx-summary-line span:last-child,
.spx-light .spx-meta-row__value,
.spx-light .spx-key-value {
  color: rgba(15, 23, 42, 0.82);
}

.spx-light .spx-progress__step > span {
  background: #e8f8f2;
}

.spx-light .spx-inline-product__icon,
.spx-light .spx-pay-pill__icon,
.spx-light .spx-key-item,
.spx-light .spx-next-item {
  background: rgba(15, 23, 42, 0.035);
}

.spx-light .spx-theme-sun { display: none; }
.spx-light .spx-theme-moon { display: block; }

@media (max-width: 640px) {
  .spx-summary__scroll { padding-top: 24px; }
  .spx-brand { margin-bottom: 34px; }
  .spx-product-art { width: 68px; height: 68px; }
  .spx-product-art img { width: 46px; height: 46px; }
  .spx-success-card { padding-inline: 16px; }
  .spx-card { padding: 16px; }
  .spx-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
  .spx-meta-row__value,
  .spx-order-id-wrap {
    width: 100%;
    justify-content: space-between;
    text-align: left;
  }
  .spx-key-value { font-size: 12px; }
  .spx-trust { gap: 12px 18px; }
}

/* ── Live order tracker ── */
.spx-lookup-card {
  display: grid;
  justify-items: center;
  padding: 38px;
  text-align: center;
}

.spx-lookup-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(74, 137, 255, 0.18);
  border-radius: 16px;
  background: rgba(74, 137, 255, 0.1);
  color: #82adff;
  box-shadow: 0 0 36px rgba(74, 137, 255, 0.1);
}

.spx-lookup-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.spx-lookup-copy h2 {
  margin: 5px 0 7px;
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.spx-lookup-copy p {
  max-width: 390px;
  color: var(--spx-muted-75);
  font-size: 13px;
  line-height: 1.55;
}

.spx-lookup-field {
  width: min(100%, 420px);
  margin-top: 25px;
  text-align: left;
}

.spx-lookup-field > span {
  display: block;
  margin-bottom: 8px;
  color: var(--spx-muted-75);
  font-size: 11px;
  font-weight: 600;
}

.spx-lookup-field > div {
  display: flex;
  gap: 8px;
}

.spx-lookup-field input {
  min-width: 0;
  flex: 1;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--spx-border);
  border-radius: 9px;
  outline: none;
  background: var(--spx-card-2);
  color: var(--spx-foreground);
  font: 500 12px var(--spx-mono);
  text-transform: uppercase;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.spx-lookup-field input:focus {
  border-color: rgba(74, 137, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(74, 137, 255, 0.08);
}

.spx-lookup-field button {
  min-width: 108px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #4a89ff, #3578df);
  color: white;
  font: 600 12px var(--spx-font);
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(74, 137, 255, 0.18);
}

.spx-form-status {
  min-height: 18px;
  margin-top: 12px;
  color: var(--spx-muted-75);
  font-size: 12px;
}

.spx-form-status.is-error { color: #fb7185; }

.spx-success-card.is-pending {
  background:
    radial-gradient(circle at 50% -35%, rgba(245, 158, 11, 0.13), transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014));
}

.spx-success-card.is-pending .spx-success__icon,
.spx-success-card.is-pending .spx-success__title {
  color: #fbbf24;
}

.spx-success-card.is-pending .spx-success__icon {
  border-color: rgba(245, 158, 11, 0.18);
  background: rgba(245, 158, 11, 0.09);
}

.spx-success-card.is-error {
  background:
    radial-gradient(circle at 50% -35%, rgba(244, 63, 94, 0.13), transparent 50%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.014));
}

.spx-success-card.is-error .spx-success__icon,
.spx-success-card.is-error .spx-success__title {
  color: #fb7185;
}

.spx-progress__step > span {
  border-color: var(--spx-border);
  background: #151922;
  color: var(--spx-muted-55);
  font-size: 10px;
  font-weight: 600;
}

.spx-progress__step.is-complete > span {
  border-color: rgba(52, 211, 153, 0.28);
  background: #10241f;
  color: #5eead4;
}

.spx-progress__step.is-complete small { color: #9ddcca; }

.spx-live-status > span:first-child.is-pending {
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.09), 0 0 14px rgba(245, 158, 11, 0.4);
}

.spx-delivery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--spx-border);
}

.spx-delivery-actions p {
  min-width: 220px;
  flex: 1;
  color: var(--spx-muted-75);
  font-size: 11px;
  line-height: 1.45;
}

.spx-primary-link,
.spx-secondary-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 8px;
  font: 600 12px var(--spx-font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.spx-primary-link {
  border: 0;
  background: var(--spx-accent);
  color: white;
  box-shadow: 0 8px 20px rgba(74, 137, 255, 0.18);
}

.spx-secondary-link {
  border: 1px solid var(--spx-border);
  background: rgba(255, 255, 255, 0.035);
  color: var(--spx-foreground);
}

.spx-primary-link:hover,
.spx-secondary-link:hover { transform: translateY(-1px); }

.spx-refresh-button { appearance: none; }

.spx-payment-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.spx-payment-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--spx-border);
  border-radius: 9px;
  background: var(--spx-card-2);
  font-size: 12px;
}

.spx-payment-row > span { color: var(--spx-muted-75); }

.spx-payment-row > strong {
  overflow-wrap: anywhere;
  color: var(--spx-foreground);
  font: 500 12px var(--spx-mono);
}

.spx-payment-row > button {
  padding: 5px 8px;
  border: 1px solid var(--spx-border);
  border-radius: 6px;
  background: transparent;
  color: var(--spx-muted-75);
  font: 500 10px var(--spx-font);
  cursor: pointer;
}

.spx-light .spx-progress__step > span { background: #edf1f7; }
.spx-light .spx-progress__step.is-complete > span { background: #e8f8f2; }
.spx-light .spx-lookup-field input { background: white; }

@media (max-width: 520px) {
  .spx-lookup-card { padding: 28px 16px; }
  .spx-lookup-field > div { flex-direction: column; }
  .spx-lookup-field button { height: 42px; }
  .spx-payment-row { grid-template-columns: 1fr auto; }
  .spx-payment-row > span { grid-column: 1 / -1; }
}
