/* ═══════════════════════════════════════════════════════════════
   /shop — page-specific styles. Builds on the CSS variables in
   style.css (--bg, --bg-card, --accent, --accent-bright, etc).
   ═══════════════════════════════════════════════════════════════ */

.shop-body {
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(212,116,42,.08), transparent 60%),
    var(--bg);
}

/* ── Steam auth strip (thin bar between nav and page-header) ──
   Same pattern as .status-bar on the homepage: opaque, thin, sits
   above the page-header. Auth state is right-aligned. */
.shop-authbar {
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
  padding: .5rem 0;
  position: relative;
  z-index: 1;
}
.shop-authbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 34px;
}
@media (max-width: 640px) {
  .shop-authbar__inner { justify-content: flex-start; }
}

/* ── Header (slim, no main nav) ─────────────────────────────────── */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 15, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.shop-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.shop-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .95rem;
}
.shop-brand:hover { color: var(--accent-bright); }
.shop-brand__logo { width: 34px; height: 34px; object-fit: contain; border-radius: 4px; }
.shop-brand__name { white-space: nowrap; }

/* ── Auth state in header ───────────────────────────────────────── */
.shop-auth { display: flex; align-items: center; gap: .75rem; }
/* Hidden by default; only the matching data-state element is shown. Fixes
   the case where the "…" placeholder lingered next to the avatar after the
   auth fetch resolved to signed-in. */
.shop-auth__loading { color: var(--text-dim); font-size: .8rem; display: none; }
.shop-auth[data-state="loading"]    .shop-auth__loading { display: block; }
.shop-auth[data-state="signed-out"] .shop-auth__signin  { display: flex; }
.shop-auth[data-state="signed-in"]  .shop-auth__user    { display: flex; }

.shop-auth__signin {
  display: none;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  background: var(--bg-card-alt);
  color: var(--text);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.shop-auth__signin:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--bg-card);
  box-shadow: 0 0 12px var(--accent-glow);
}
.shop-auth__signin-icon {
  width: 14px; height: 14px;
  background: var(--accent-bright);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='black'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='10' fill='black'/></svg>") center/contain no-repeat;
  display: inline-block;
}

.shop-auth__user {
  display: none;
  align-items: center;
  gap: .6rem;
}
.shop-auth__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  object-fit: cover;
}
.shop-auth__name {
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-auth__signout {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: .35rem .65rem;
  border-radius: var(--radius);
  font-size: .75rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
  transition: color .15s, border-color .15s;
}
.shop-auth__signout:hover {
  color: var(--accent-bright);
  border-color: var(--border-hi);
}

/* ── Main content ──────────────────────────────────────────────── */
.shop-main { padding: 2.5rem 0 4rem; min-height: calc(100vh - var(--nav-h) - 120px); }
.shop-intro { text-align: center; margin-bottom: 2.5rem; }
.shop-title {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.shop-lede {
  color: var(--text-muted);
  max-width: 56ch;
  margin: 0 auto;
  font-size: .95rem;
}

/* ── Product grid ──────────────────────────────────────────────── */
.shop-grid {
  display: grid;
  /* auto-fit + minmax keeps cards a readable width whether there are 3, 4,
     or any number — they wrap into rows as the viewport narrows. */
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

/* ── /support: single centered card ────────────────────────────── */
.shop-aside {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: .9rem;
}
.shop-aside a {
  color: var(--accent-bright);
  font-weight: 600;
  white-space: nowrap;
}
.shop-aside a:hover { color: #fff; }

.support-wrap {
  display: flex;
  justify-content: center;
}
.support-wrap .product-card { width: 100%; max-width: 320px; }

.support-disclaimer {
  margin-top: 1rem;
  color: var(--text-dim);
  font-size: .72rem;
  line-height: 1.5;
}

.support-anon {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .25rem 0 .85rem;
  cursor: pointer;
  user-select: none;
  color: var(--text);
  font-size: .85rem;
  line-height: 1.45;
}
.support-anon input {
  margin-top: .2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.support-anon__hint {
  color: var(--text-muted);
  font-size: .78rem;
}

.support-modal__actions {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}
.support-modal__actions .btn-shop { flex: 1; }

/* ── Product card ──────────────────────────────────────────────── */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent-glow),
    0 0 24px var(--accent-glow),
    0 8px 32px rgba(0,0,0,.4);
  transform: translateY(-2px);
}

.product-card__help {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-hi);
  background: var(--bg-inset);
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: color .15s, border-color .15s, background .15s;
  z-index: 2;
}
.product-card__help:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: var(--bg-card);
}

/* ── Card art (placeholder gradient + stenciled letter) ───────── */
.product-card__art {
  position: relative;
  height: 160px;
  border-radius: 6px;
  margin-bottom: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1c1c1f;
}
.product-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 12px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.18) 0 1px, transparent 1px 8px);
  pointer-events: none;
}
/* When a real image is dropped into /images/shop/, it covers the entire art
   panel. The stenciled letter underneath stays as a fallback for when the
   image is missing (onerror hides the <img>). */
.product-card__art-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.product-card__art-letter {
  position: relative;
  font-family: "Impact", "Arial Black", system-ui, sans-serif;
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(240, 144, 74, .25);
  text-shadow:
     2px  2px 0 rgba(0,0,0,.5),
    -1px -1px 0 rgba(255,255,255,.04);
  letter-spacing: .04em;
  user-select: none;
}
.product-card__art--flag {
  background-image:
    linear-gradient(135deg, #2b1d12 0%, #0e0e0f 60%, #1a1306 100%);
}
.product-card__art--wallpaper {
  background-image:
    linear-gradient(135deg, #1a2118 0%, #0e0e0f 60%, #0c1108 100%);
}
.product-card__art--wallpaper::after {
  /* Subtle brick pattern overlay */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(transparent 50%, rgba(0,0,0,.25) 50%),
    linear-gradient(90deg, rgba(0,0,0,.18) 1px, transparent 1px);
  background-size: 100% 24px, 48px 100%;
  opacity: .6;
  pointer-events: none;
}
.product-card__art--support {
  background-image:
    radial-gradient(circle at 50% 50%, rgba(212,116,42,.25), transparent 60%),
    linear-gradient(135deg, #1a1410 0%, #0e0e0f 70%);
}
.product-card__art--tag {
  background-image:
    linear-gradient(135deg, #14181c 0%, #0e0e0f 60%, #1a1410 100%);
}
.product-card__art--killfeed {
  background-image:
    radial-gradient(circle at 30% 40%, rgba(217, 79, 79, .18), transparent 60%),
    linear-gradient(135deg, #1a0e0e 0%, #0e0e0f 60%, #181012 100%);
}
.product-card__art--support .product-card__art-letter {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 6rem;
  color: rgba(240, 144, 74, .35);
}

/* ── Card text + price ──────────────────────────────────────────── */
.product-card__title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: .3rem;
  padding-right: 2.25rem;
}
.product-card__price {
  color: var(--accent-bright);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: .9rem;
  font-feature-settings: "tnum" 1;
}
.product-card__price-sub {
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.product-card__desc {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

/* ── Support card: amount input ─────────────────────────────────── */
.product-card__amount { margin-bottom: 1rem; }
.product-card__amount-label {
  display: block;
  color: var(--text-muted);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.product-card__amount-input {
  display: flex;
  align-items: center;
  background: var(--bg-inset);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 0 .65rem;
  transition: border-color .15s;
}
.product-card__amount-input:focus-within { border-color: var(--accent); }
.product-card__amount-symbol {
  color: var(--text-muted);
  font-weight: 600;
  margin-right: .35rem;
}
.product-card__amount-input input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  padding: .55rem 0;
  outline: none;
  -moz-appearance: textfield;
}
.product-card__amount-input input::-webkit-outer-spin-button,
.product-card__amount-input input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
.product-card__amount-hint {
  margin-top: .3rem;
  color: var(--text-dim);
  font-size: .72rem;
}
.product-card__amount-hint.is-error { color: var(--red); }

/* ── Primary buy button ─────────────────────────────────────────── */
.btn-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .75rem 1rem;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #1a0c04;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, box-shadow .15s, transform .05s;
}
.btn-shop:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 18px var(--accent-glow);
  color: #1a0c04;
}
.btn-shop:active { transform: translateY(1px); }
.btn-shop:disabled {
  filter: grayscale(.4) brightness(.7);
  cursor: not-allowed;
  box-shadow: none;
}

/* "Sign in with Steam to purchase" variant — visually consistent but
   clearly different state. */
.btn-shop--signin {
  background: var(--bg-card-alt);
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-shop--signin:hover {
  background: var(--bg-card);
  color: #fff;
  border-color: var(--accent);
}

/* ── Modal ──────────────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.modal[hidden] { display: none !important; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(4px);
}
.modal__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  border-radius: 8px;
  padding: 1.6rem 1.6rem 1.4rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}
.modal__close {
  position: absolute;
  top: .55rem; right: .65rem;
  width: 32px; height: 32px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: color .15s;
}
.modal__close:hover { color: var(--accent-bright); }
.modal__title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .03em;
  margin-bottom: .9rem;
  padding-right: 1.5rem;
}
.modal__body { color: var(--text); font-size: .9rem; line-height: 1.55; }
.modal__body p + p { margin-top: .7rem; }

/* Wider modal variant for the commission checkout form */
.modal__card--wide { max-width: 560px; }

/* ── Commission checkout modal ──────────────────────────────────── */
.commission-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .75rem;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
}
.commission-summary__art {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 4px;
  background-color: #1c1c1f;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}
.commission-summary__name {
  color: #fff;
  font-weight: 700;
  letter-spacing: .02em;
}
.commission-summary__price {
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: .15rem;
  font-feature-settings: "tnum" 1;
}

.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  color: var(--text-muted);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.form-field select {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-hi);
  color: var(--text);
  padding: .65rem .7rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  cursor: pointer;
}
.form-field select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.form-field input[type="text"] {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-hi);
  color: var(--text);
  padding: .55rem .7rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
}
.form-field input[type="text"]:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.form-field textarea {
  width: 100%;
  background: var(--bg-inset);
  border: 1px solid var(--border-hi);
  color: var(--text);
  padding: .6rem .7rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.45;
  resize: vertical;
  min-height: 64px;
}
.form-field__optional {
  color: var(--text-dim);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.form-field__hint {
  margin-top: .3rem;
  color: var(--text-dim);
  font-size: .72rem;
}
.form-field__hint.is-error { color: var(--red); }

.commission-instructions {
  color: var(--text);
  font-size: .85rem;
  margin: 1rem 0;
  line-height: 1.5;
}

.commission-terms {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: 1rem 0 .9rem;
  cursor: pointer;
  user-select: none;
}
.commission-terms input {
  margin-top: .2rem;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.commission-terms span {
  color: var(--text);
  font-size: .85rem;
  line-height: 1.45;
}

.commission-error {
  color: #f5a08a;
  background: rgba(217, 79, 79, .08);
  border: 1px solid var(--red-dim);
  padding: .55rem .75rem;
  border-radius: var(--radius);
  margin-bottom: .8rem;
  font-size: .85rem;
}
.commission-error[hidden] { display: none !important; }

.commission-proceed { margin-top: .25rem; }
.commission-proceed.is-loading .commission-proceed__label::after {
  content: "…";
  display: inline-block;
  margin-left: .3rem;
}

/* ── Group Tag modal ──────────────────────────────────────────── */
.tag-servers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem;
}
@media (max-width: 520px) { .tag-servers { grid-template-columns: 1fr; } }
.tag-server {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .65rem;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.tag-server:hover { border-color: var(--border-hi); }
.tag-server input {
  accent-color: var(--accent);
  width: 16px; height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.tag-server__name {
  color: var(--text);
  font-size: .87rem;
  font-weight: 500;
}
.tag-server--checked {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-glow), transparent 80%), var(--bg-inset);
}
.tag-server--checked .tag-server__name { color: #fff; font-weight: 600; }

.tag-color {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--bg-inset);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: .5rem .65rem;
}
.tag-color input[type="color"] {
  width: 40px; height: 32px;
  background: none;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}
.tag-color__swatch {
  display: none; /* not needed — the native picker shows it */
}
.tag-color__hex {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: .85rem;
  color: var(--text-muted);
}
.tag-color__preview {
  margin-left: auto;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: .02em;
  padding: .25rem .55rem;
  border-radius: 3px;
  background: rgba(0,0,0,.4);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

.tag-grouprow {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 1rem;
}
@media (max-width: 480px) { .tag-grouprow { grid-template-columns: 1fr; } }

.tag-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 1.1rem 0 .85rem;
  padding: .7rem .9rem;
  background: var(--bg-inset);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
}
.tag-total span { color: var(--text-muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.tag-total strong { color: var(--accent-bright); font-size: 1.4rem; font-feature-settings: "tnum" 1; }

/* Warning callout used in modal bodies */
.shop-warn {
  margin-top: .9rem;
  padding: .75rem .85rem;
  border: 1px solid #6a3a1a;
  background: rgba(212, 116, 42, .08);
  border-radius: var(--radius);
  color: #f5c89a;
  font-size: .85rem;
  line-height: 1.5;
}
.shop-warn strong { color: var(--accent-bright); }

/* ── Toast ─────────────────────────────────────────────────────── */
.shop-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-card);
  border: 1px solid var(--accent);
  color: var(--text);
  padding: .75rem 1.15rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 18px var(--accent-glow);
  font-size: .88rem;
  transition: transform .25s ease-out;
  z-index: 300;
  max-width: 90vw;
}
.shop-toast[hidden] { display: none !important; }
.shop-toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ── Footer ────────────────────────────────────────────────────── */
.shop-footer {
  border-top: 1px solid var(--border);
  padding: 1.2rem 0;
  background: var(--bg-inset);
}
.shop-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-muted);
}
.shop-footer__links {
  display: flex;
  gap: 1rem;
  list-style: none;
}
.shop-footer__links a { color: var(--text-muted); }
.shop-footer__links a:hover { color: var(--accent-bright); }

@media (max-width: 600px) {
  .shop-header__inner { gap: .5rem; }
  .shop-brand__name { display: none; }
  .shop-auth__name { max-width: 12ch; }
  .shop-main { padding: 1.5rem 0 3rem; }
}

/* ── Receipt page (/shop/success, /shop/cancel) ───────────────── */
.receipt {
  max-width: 620px;
  margin: 2rem auto 0;
  padding: 2rem 2rem 1.75rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
}
.receipt__state[hidden] { display: none !important; }

.receipt__badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border: 2px solid currentColor;
}
.receipt__badge--success { color: var(--green); }
.receipt__badge--heart   { color: #ff5e5e; }
.receipt__badge--neutral { color: var(--text-muted); }

.receipt__title {
  color: #fff;
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .85rem;
}
.receipt__lede {
  color: var(--text);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0 auto 1.5rem;
  max-width: 50ch;
}

.receipt__cta { margin: 1.25rem 0; }
.receipt__cta .btn-shop { max-width: 320px; margin: 0 auto; display: inline-flex; }
.receipt__cta-hint {
  margin-top: .7rem;
  color: var(--text-muted);
  font-size: .82rem;
}
.receipt__cta-hint code,
.receipt__details code {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  padding: 0 .35rem;
  border-radius: 3px;
  font-size: .85em;
  color: var(--accent-bright);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
}

.receipt__details {
  text-align: left;
  margin: 1.5rem auto 1rem;
  max-width: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-inset);
  padding: .25rem .85rem;
}
.receipt__details > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.receipt__details > div:last-child { border-bottom: none; }
.receipt__details dt {
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: .72rem;
  margin-top: .15rem;
}
.receipt__details dd {
  color: var(--text);
  text-align: right;
  word-break: break-word;
  max-width: 60%;
  white-space: pre-wrap;
}
.receipt__copy {
  margin-left: .5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-hi);
  color: var(--text-muted);
  font-family: inherit;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 3px;
  cursor: pointer;
  vertical-align: middle;
  transition: color .15s, border-color .15s, background .15s;
}
.receipt__copy:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
}
.receipt__copy.is-copied {
  color: var(--green);
  border-color: var(--green-dim);
  background: rgba(76, 175, 110, .08);
}

.receipt__footer-links {
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: .85rem;
}
.receipt__footer-links a { color: var(--accent-bright); }
.receipt__footer-links a:hover { color: #fff; }
.receipt__footer-links span { margin: 0 .35rem; color: var(--text-dim); }

/* Spinner for the "Processing your order…" state */
.receipt__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border-hi);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: receiptSpin 0.9s linear infinite;
}
@keyframes receiptSpin {
  to { transform: rotate(360deg); }
}
