/* TopSideTraders — Arc Raiders poster aesthetic + neon stripe accents */
:root {
  --paper: #ecdfc4;          /* cream poster paper */
  --paper-warm: #e4d4b3;     /* slightly darker cream */
  --ink: #171c36;            /* deep navy ink */
  --ink-soft: #2a3151;       /* softer navy */
  --ink-line: #4a5274;       /* navy border line */

  --dark: #0a0d1a;           /* near-black for neon sections */
  --dark-alt: #111527;       /* slightly lifted dark */
  --dark-panel: #1a1f36;     /* card on dark */
  --dark-border: #2a3151;

  /* Neon accents */
  --blue: #2fb8ff;
  --green: #3ce783;
  --yellow: #ffd42a;
  --red: #ff3636;

  /* Legacy aliases so older selectors still work */
  --bg: var(--paper);
  --bg-alt: var(--paper-warm);
  --panel: #ffffff;
  --border: rgba(23, 28, 54, 0.18);
  --text: var(--ink);
  --muted: var(--ink-soft);

  --accent: var(--ink);
  --accent-hot: var(--red);
  --accent-dim: var(--ink-line);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Subtle paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(rgba(23,28,54,0.04) 1px, transparent 1px),
    radial-gradient(rgba(23,28,54,0.03) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 1px;
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
}
.container, .site-header, .site-footer, main, section { position: relative; z-index: 2; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; }
img, video, svg { max-width: 100%; height: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(236, 223, 196, 0.95);
  border-bottom: 2px solid var(--ink);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  width: 38px;
  height: 38px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 2px;
  position: relative;
  box-shadow: 3px 3px 0 var(--red);
  flex-shrink: 0;
  overflow: hidden;
}
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  font-weight: 900;
  letter-spacing: -0.5px;
  font-size: 17px;
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav a:hover { color: var(--red); }
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 8px 16px;
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--yellow);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.nav-cta:hover {
  color: var(--paper) !important;
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--yellow);
}

/* Cart icon in nav */
.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper) !important;
  width: 42px;
  height: 38px;
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--green);
  text-decoration: none !important;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.nav-cart:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--green);
  color: var(--paper) !important;
}
.cart-icon {
  font-size: 18px;
  filter: grayscale(1) brightness(2);
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--red);
  color: var(--paper);
  border: 2px solid var(--paper);
  font-size: 10px;
  font-weight: 900;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  opacity: 0;
  transform: scale(0.7);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.cart-badge.has-items {
  opacity: 1;
  transform: scale(1);
}

/* Add-to-cart toast */
.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 18px;
  border: 2px solid var(--green);
  border-radius: 2px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 5px 5px 0 var(--green);
  z-index: 100;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-toast.show { transform: translateY(0); }
.cart-toast strong {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}
.cart-toast span { color: var(--green); font-size: 18px; }

/* ============ Checkout page ============ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-items .sub-heading { margin-top: 16px; }

.line-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.line-item {
  display: grid;
  grid-template-columns: 64px 1fr auto auto 32px;
  align-items: center;
  gap: 14px;
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 12px;
  box-shadow: 3px 3px 0 var(--ink);
}
.li-img {
  width: 64px;
  height: 64px;
  background: var(--dark);
  border: 2px solid var(--ink);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.li-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.li-name {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  font-size: 15px;
  color: var(--ink);
}
.li-unit {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
}
.li-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.li-line {
  font-weight: 900;
  font-size: 18px;
  color: var(--red);
  min-width: 72px;
  text-align: right;
  letter-spacing: -0.3px;
}
.li-remove {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 16px;
  cursor: pointer;
  font-weight: 700;
}
.li-remove:hover { color: var(--red); }

@media (max-width: 600px) {
  .line-item {
    grid-template-columns: 56px 1fr 32px;
    grid-template-rows: auto auto;
    gap: 10px;
  }
  .li-qty, .li-line {
    grid-column: 2 / 3;
    justify-self: start;
  }
  .li-line { grid-row: 2; text-align: left; }
}

/* Free rewards on checkout */
.free-rewards {
  margin-top: 24px;
  background: var(--dark);
  color: var(--paper);
  border: 2px solid var(--green);
  border-radius: 2px;
  padding: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.free-rewards-header {
  font-size: 12px;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.free-rewards .reward-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px dashed rgba(236,223,196,0.18);
}
.free-rewards .reward-line:first-of-type { border-top: none; }
.free-rewards .reward-line img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: var(--dark-panel);
  padding: 4px;
  border-radius: 2px;
}
.free-rewards .reward-name { flex: 1; font-weight: 700; }
.free-rewards .reward-free {
  background: var(--green);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 1.5px;
}

/* Summary sidebar */
.checkout-summary {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-top: 6px solid var(--yellow);
  border-radius: 2px;
  padding: 20px;
  position: sticky;
  top: 90px;
  box-shadow: 5px 5px 0 var(--ink);
}
.checkout-summary .sub-heading {
  margin-top: 0;
  font-size: 20px;
  border-bottom-width: 2px;
}
.sum-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}
.sum-row.small { color: var(--ink-soft); font-size: 13px; font-weight: 600; }
.sum-row.total {
  border-top: 2px solid var(--ink);
  margin-top: 8px;
  padding-top: 14px;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.sum-row.total span:last-child { color: var(--red); }

/* Form */
.form-heading {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ink);
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 2px dashed rgba(23,28,54,0.25);
}
.checkout-form label {
  display: block;
  margin-bottom: 12px;
}
.checkout-form label span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
  color: var(--ink-soft);
}
.checkout-form input,
.checkout-form select {
  width: 100%;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
  outline: none;
  transition: box-shadow 0.1s ease;
}
.checkout-form input:focus,
.checkout-form select:focus {
  box-shadow: 3px 3px 0 var(--red);
  transform: translate(-1px, -1px);
}
.checkout-note {
  font-size: 11px;
  text-align: center;
  color: var(--ink-soft);
  margin: 12px 0 0;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ============ First-order popup ============ */
.tst-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 26, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tst-popup-overlay.show { opacity: 1; }

.tst-popup {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 2px;
  padding: 36px 32px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 10px 10px 0 var(--red);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.tst-popup-overlay.show .tst-popup { transform: translateY(0) scale(1); }

/* Neon stripe accent on top */
.tst-popup::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
}

.tst-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 2px;
  transition: all 0.1s ease;
}
.tst-popup-close:hover { background: var(--ink); color: var(--paper); }

.tst-popup-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  margin-bottom: 18px;
  box-shadow: 3px 3px 0 var(--yellow);
}
.tst-popup-badge-green { box-shadow: 3px 3px 0 var(--green); }

.tst-popup h2 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  color: var(--ink);
}

.tst-popup-sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 22px;
  font-weight: 500;
  line-height: 1.5;
}

.tst-popup-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.tst-popup-form input {
  width: 100%;
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 14px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
  outline: none;
  transition: box-shadow 0.1s ease, transform 0.1s ease;
}
.tst-popup-form input:focus {
  box-shadow: 3px 3px 0 var(--red);
  transform: translate(-1px, -1px);
}
.tst-popup-form .btn {
  width: 100%;
  font-size: 14px;
  padding: 14px;
}

.tst-popup-note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  font-weight: 500;
}
.tst-popup-dismiss {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  text-decoration: underline;
  font: inherit;
  cursor: pointer;
  padding: 0;
}
.tst-popup-dismiss:hover { color: var(--red); }

/* Reveal step */
.tst-popup-code {
  background: var(--ink);
  color: var(--yellow);
  font-family: "Courier New", monospace;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 4px;
  padding: 18px;
  text-align: center;
  border-radius: 2px;
  margin: 8px 0 18px;
  border: 2px dashed var(--yellow);
}

@media (max-width: 520px) {
  .tst-popup { padding: 30px 22px 22px; }
  .tst-popup h2 { font-size: 28px; }
  .tst-popup-code { font-size: 22px; letter-spacing: 3px; }
}

/* ============ Payment method picker (checkout form) ============ */
/* Stacked payment-method list (shared by checkout + account top-up).
   Each option is one full-width row: logo | name + sub | checkmark.
   Works equally well on mobile (single column) and desktop (still one
   column — these are short lists, no need to fan out). */
.pay-method-list,
.topup-methods,
.topup-methods-stacked {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.pay-method,
.topup-method {
  position: relative;
  cursor: pointer;
  display: block;
}
.pay-method input,
.topup-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pay-method-card,
.topup-method-card {
  display: grid;
  grid-template-columns: 36px 1fr 18px;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 10px 12px;
  text-align: left;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}
.pay-method:hover .pay-method-card,
.topup-method:hover .topup-method-card {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.pay-method input:checked + .pay-method-card,
.topup-method input:checked + .topup-method-card {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--red);
  transform: translate(-2px, -2px);
}
.pay-method-logo,
.topup-method-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 50%;
  padding: 2px;
}
.pay-method input:checked + .pay-method-card .pay-method-logo,
.topup-method input:checked + .topup-method-card .topup-method-logo {
  background: var(--paper);
}
.pay-method-logo-balance {
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.pay-method input:checked + .pay-method-card .pay-method-logo-balance {
  color: var(--yellow);
}
.pay-method-body,
.topup-method-body { min-width: 0; }
.pay-method-name,
.topup-method-name {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}
.pay-method-sub,
.topup-method-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 2px;
}
.pay-method input:checked + .pay-method-card .pay-method-sub,
.topup-method input:checked + .topup-method-card .topup-method-sub {
  color: rgba(236,223,196,0.75);
}
.pay-method-check,
.topup-method-check {
  font-size: 18px;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.1s ease;
  color: var(--green);
  justify-self: end;
}
.pay-method input:checked + .pay-method-card .pay-method-check,
.topup-method input:checked + .topup-method-card .topup-method-check {
  opacity: 1;
}
@media (max-width: 480px) {
  .pay-method-card,
  .topup-method-card { grid-template-columns: 28px 1fr 16px; gap: 10px; padding: 9px 10px; }
  .pay-method-logo,
  .topup-method-logo { width: 26px; height: 26px; }
  .pay-method-name,
  .topup-method-name { font-size: 13px; }
  .pay-method-sub,
  .topup-method-sub { font-size: 10px; }
}

/* ============ Payment-pending page ============ */
.pay-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}
@media (max-width: 900px) {
  .pay-grid { grid-template-columns: 1fr; }
}
.pay-status {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-left: 6px solid var(--yellow);
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--ink);
}
.pay-status.status-paid       { border-left-color: var(--green); }
.pay-status.status-progress   { border-left-color: var(--blue); }
.pay-status.status-delivered  { border-left-color: var(--green); }
.pay-status.status-cancelled  { border-left-color: var(--red); }
.pay-status-dot {
  width: 14px; height: 14px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-dot 1.6s ease-out infinite;
}
.status-paid .pay-status-dot,
.status-delivered .pay-status-dot { background: var(--green); animation: none; }
.status-progress .pay-status-dot { background: var(--blue); }
.status-cancelled .pay-status-dot { background: var(--red); animation: none; }
.pay-status-label { font-weight: 900; text-transform: uppercase; font-size: 16px; letter-spacing: -0.3px; }
.pay-status-id { font-family: "Courier New", monospace; font-size: 12px; color: var(--ink-soft); }

.pay-expiry {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}
.pay-expiry-icon { font-size: 18px; line-height: 1; }
.pay-expiry-countdown { font-family: "Courier New", monospace; font-size: 16px; font-weight: 900; letter-spacing: -0.5px; }
.pay-expiry-warning { background: var(--red); color: var(--paper); animation: pay-pulse 1.2s ease-in-out infinite; }
.pay-expiry-warning .pay-expiry-countdown { color: var(--paper); }
.pay-expiry-expired { background: var(--ink); color: var(--paper); }
.pay-expiry-expired a { color: var(--yellow); text-decoration: underline; }
@keyframes pay-pulse {
  0%, 100% { box-shadow: 3px 3px 0 var(--ink); }
  50%      { box-shadow: 3px 3px 0 var(--red); transform: translate(-1px, -1px); }
}

.pay-card {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  margin-bottom: 16px;
  box-shadow: 5px 5px 0 var(--ink);
}
.pay-card-header {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.pay-card-body { padding: 18px; }

.pay-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 2px dashed rgba(23,28,54,0.25);
  margin-bottom: 14px;
}
.pay-amount-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-soft); }
.pay-amount-value { font-size: 30px; font-weight: 900; letter-spacing: -1px; color: var(--ink); }
.pay-coin { font-size: 14px; color: var(--red); font-weight: 800; letter-spacing: 0; }

.pay-wallet-block {
  background: var(--dark);
  color: var(--paper);
  padding: 14px;
  border: 2px solid var(--ink);
  margin-bottom: 14px;
}
.pay-wallet-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pay-wallet-address {
  font-family: "Courier New", monospace;
  font-size: 14px;
  word-break: break-all;
  color: var(--paper);
  background: var(--dark-panel);
  padding: 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  border: 1px dashed rgba(236,223,196,0.3);
}

.pay-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 18px 0;
}
.pay-qr img {
  border: 4px solid var(--ink);
  background: white;
}
.pay-qr-caption {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pay-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}
.pay-steps li { margin-bottom: 6px; }
.pay-steps strong { color: var(--red); font-weight: 900; }

.pay-queue { text-align: center; padding: 20px; }
.queue-num { font-size: 56px; font-weight: 900; line-height: 1; color: var(--red); letter-spacing: -3px; }
.queue-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-soft); margin-top: 4px; }

.pay-refresh-note {
  font-size: 11px;
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 8px 0 0;
}

/* Card on-ramp panel */
.pay-card-card .pay-card-header {
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 60%, var(--green) 60%, var(--green) 100%);
  color: var(--paper);
}
.card-onramp-explainer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 14px;
  background: rgba(60,231,131,0.08);
  border: 1px solid rgba(60,231,131,0.3);
  border-radius: 2px;
}
.onramp-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.onramp-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onramp-step-body {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.onramp-step-body strong { font-weight: 900; color: var(--ink); }

.card-note {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}

.card-fallback {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed rgba(23,28,54,0.25);
}
.card-fallback summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
  padding: 4px 0;
  user-select: none;
}
.card-fallback summary:hover { color: var(--red); }
.card-fallback[open] summary { color: var(--ink); }

/* ============ Payment Confirmed / next-steps panel ============ */
.pay-card-confirmed .pay-card-header {
  background: var(--green);
  color: var(--ink);
}
.confirmed-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px dashed var(--ink-soft);
}
.confirmed-items {
  margin-bottom: 16px;
}
.confirmed-items-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.confirmed-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.confirmed-items-list li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  color: var(--ink);
}
.confirmed-items-list li:last-child { border-bottom: none; }
.confirmed-items-list strong {
  font-weight: 900;
  color: var(--ink);
  margin-right: 4px;
}
.confirmed-steps {
  margin: 18px 0;
  padding: 14px;
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 2px;
}
.confirmed-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  opacity: 0.55;
}
.confirmed-step:last-child { border-bottom: none; }
.confirmed-step.done,
.confirmed-step.active { opacity: 1; }
.cs-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  flex-shrink: 0;
  margin-top: 3px;
}
.confirmed-step.done .cs-dot {
  background: var(--green);
  border-color: var(--green);
}
.confirmed-step.active .cs-dot {
  background: var(--yellow);
  border-color: var(--yellow);
  animation: pulse-dot 1.6s ease-out infinite;
}
.cs-title {
  font-weight: 900;
  font-size: 13px;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.cs-sub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: 2px;
}
.confirmed-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

/* ============ Admin queue dashboard ============ */
.admin-body {
  background: var(--dark);
  color: var(--paper);
  min-height: 100vh;
  margin: 0;
}
.admin-body::before { display: none; }
/* Force the admin app visible — guard against any stale [hidden] attribute
   that earlier code paths might set. JS controls render via tab toggles,
   not by hiding the whole app. */
.admin-body #admin-app { display: block !important; }
.admin-body #admin-app[hidden] { display: block !important; }

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.admin-login-card {
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  padding: 36px 32px;
  max-width: 380px;
  width: 100%;
  box-shadow: 10px 10px 0 var(--red);
  position: relative;
}
.admin-login-card::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px;
  height: 5px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
}
.admin-login-card .brand-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  display: flex;
}
.admin-login-card h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}
.admin-login-card p {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0 0 18px;
  font-weight: 500;
}
.admin-login-card input {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--paper-warm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  outline: none;
  transition: box-shadow 0.1s ease;
}
.admin-login-card input:focus { box-shadow: 3px 3px 0 var(--red); transform: translate(-1px,-1px); }
.admin-error {
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
  margin: 10px 0 0;
  text-align: center;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--ink);
  padding: 14px 24px;
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%) 1;
  flex-wrap: wrap;
  gap: 14px;
}
.admin-header-left { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-title {
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: var(--paper);
}
.admin-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
}
.admin-header-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  border-right: 1px solid rgba(236,223,196,0.2);
}
.admin-stat:last-of-type { border-right: none; }
.admin-stat strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.admin-stat span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(236,223,196,0.6);
  margin-top: 2px;
}

.admin-main { padding: 20px 24px; }
.admin-toolbar { margin-bottom: 16px; }
.admin-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-filters .filter-btn {
  background: var(--dark-panel);
  color: var(--paper);
  border: 1px solid var(--dark-border);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-filters .filter-btn:hover { border-color: var(--yellow); }
.admin-filters .filter-btn.active { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.admin-orders {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(236,223,196,0.5);
  border: 1px dashed var(--dark-border);
  border-radius: 2px;
}

.adm-order {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-left: 5px solid var(--yellow);
  padding: 14px 18px;
}
.adm-status-paid       { border-left-color: var(--green); }
.adm-status-in_progress { border-left-color: var(--blue); }
.adm-status-delivered  { border-left-color: rgba(60,231,131,0.5); opacity: 0.7; }
.adm-status-cancelled  { border-left-color: var(--red); opacity: 0.5; }

.adm-pos {
  font-size: 32px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -2px;
  line-height: 1;
  align-self: start;
  font-family: "Courier New", monospace;
}
.adm-row-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.adm-status-pill {
  background: var(--yellow);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.adm-status-pill-paid { background: var(--green); }
.adm-status-pill-in_progress { background: var(--blue); color: var(--paper); }
.adm-status-pill-delivered { background: rgba(60,231,131,0.4); color: var(--paper); }
.adm-status-pill-cancelled { background: var(--red); color: var(--paper); }

.adm-id {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: rgba(236,223,196,0.7);
}
.adm-time {
  font-size: 11px;
  color: rgba(236,223,196,0.5);
  font-weight: 600;
}
.adm-total {
  margin-left: auto;
  font-size: 20px;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: -0.5px;
}

.adm-buyer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4px 16px;
  font-size: 12px;
  color: rgba(236,223,196,0.85);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(236,223,196,0.15);
}
.adm-buyer code {
  background: var(--dark);
  padding: 1px 5px;
  border-radius: 2px;
  font-family: "Courier New", monospace;
  color: var(--paper);
}

.adm-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}
.adm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.adm-item img {
  width: 28px;
  height: 28px;
  background: var(--dark);
  border: 1px solid rgba(236,223,196,0.2);
  border-radius: 2px;
  padding: 2px;
  object-fit: contain;
}
.adm-item-qty { color: var(--red); font-weight: 900; min-width: 30px; }
.adm-item-name { flex: 1; }
.adm-item-price { color: var(--green); font-weight: 800; }

.adm-rewards {
  background: rgba(60,231,131,0.08);
  border: 1px solid rgba(60,231,131,0.3);
  border-radius: 2px;
  padding: 8px 10px;
  margin-bottom: 12px;
}
.adm-reward { font-size: 12px; color: var(--green); font-weight: 600; }
.adm-reward strong { color: var(--paper); font-weight: 800; }

.adm-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px dashed rgba(236,223,196,0.15);
}
.adm-action {
  background: var(--dark);
  color: var(--paper);
  border: 1px solid var(--green);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.1s ease;
}
.adm-action:hover:not(:disabled) { background: var(--green); color: var(--ink); }
.adm-action:disabled { opacity: 0.4; cursor: not-allowed; }
.adm-action.adm-danger { border-color: var(--red); }
.adm-action.adm-danger:hover { background: var(--red); color: var(--paper); }

@media (max-width: 600px) {
  .admin-header { padding: 12px 16px; }
  .admin-stat { padding: 0 8px; }
  .admin-stat strong { font-size: 16px; }
  .adm-order { grid-template-columns: 40px 1fr; padding: 12px; }
  .adm-pos { font-size: 22px; }
  .adm-total { font-size: 16px; }
}

/* ============ Rat coverage banner ============ */
.rat-coverage-banner {
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--ink);
}
.rat-coverage-banner strong { font-weight: 900; }

/* Mk.4 promise banner — appears on category, bundles, checkout */
.mk4-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 12px 16px;
  margin: 0 0 20px;
  box-shadow: 4px 4px 0 var(--yellow);
  font-size: 13px;
  line-height: 1.4;
}
.mk4-badge {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 2px;
  flex-shrink: 0;
  text-transform: uppercase;
}
.mk4-text { flex: 1; }
.mk4-text strong { color: var(--yellow); font-weight: 900; }
@media (max-width: 600px) {
  .mk4-banner { font-size: 12px; padding: 10px 12px; gap: 10px; }
  .mk4-badge { font-size: 12px; padding: 4px 8px; }
}

/* Tier-unlocked chip in the reward ladder */
.pick-chip-unlocked {
  background: var(--green) !important;
  color: var(--ink) !important;
  font-weight: 900;
  letter-spacing: 0.3px;
}

/* ============ Live chat — minimal, single instance ============ */
#tst-chat-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  font-size: 24px;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--green);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#tst-chat-btn.open { box-shadow: 4px 4px 0 var(--red); }

#tst-chat-box {
  position: fixed;
  bottom: 86px;
  right: 18px;
  width: 340px;
  max-width: calc(100vw - 36px);
  height: 440px;
  max-height: calc(100vh - 120px);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}
#tst-chat-box[hidden] { display: none; }

.tst-chat-head {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#tst-chat-close {
  background: transparent;
  border: none;
  color: var(--paper);
  font-size: 16px;
  cursor: pointer;
  font-weight: 900;
  padding: 0 4px;
}

#tst-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: var(--paper-warm);
}
.tst-chat-empty {
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  padding: 24px 14px;
  font-weight: 500;
  line-height: 1.5;
}
.tst-chat-empty button {
  display: inline-block;
  margin-top: 10px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 8px 16px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
}
.tst-msg { margin-bottom: 8px; }
.tst-msg-admin { text-align: left; }
.tst-msg-user { text-align: right; }
.tst-bubble {
  display: inline-block;
  max-width: 80%;
  padding: 8px 11px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
  word-wrap: break-word;
  text-align: left;
}
.tst-msg-admin .tst-bubble { background: var(--paper); border: 1px solid var(--ink); color: var(--ink); border-bottom-left-radius: 2px; }
.tst-msg-user .tst-bubble  { background: var(--ink); color: var(--paper); border-bottom-right-radius: 2px; }

#tst-chat-form {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--paper-warm);
  border-top: 2px solid var(--ink);
}
#tst-chat-input {
  flex: 1;
  padding: 9px 10px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  border-radius: 2px;
}
#tst-chat-form button[type="submit"] {
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  padding: 0 14px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 2px;
}

@media (max-width: 600px) {
  #tst-chat-btn { bottom: 14px; right: 14px; width: 52px; height: 52px; font-size: 22px; }
  #tst-chat-box {
    bottom: 76px;
    right: 12px;
    width: calc(100vw - 24px);
    height: 60vh;
    max-height: 440px;
  }
  #tst-chat-input { font-size: 16px; } /* prevent iOS auto-zoom */
}

/* ============ Account dashboard ============ */
.acct-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}
.acct-embark {
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
  margin-top: 4px;
}

.acct-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 800px) { .acct-grid { grid-template-columns: 1fr; } }

.acct-balance-card, .acct-orders-card {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
}
.acct-balance-body { padding: 22px; }
.acct-balance-amount {
  font-size: 48px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 14px;
}
.topup-form {
  display: grid;
  gap: 10px;
}
.topup-form input {
  padding: 12px;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: 2px;
  outline: none;
}
.topup-form input:focus {
  box-shadow: 3px 3px 0 var(--red);
  transform: translate(-1px, -1px);
}
.topup-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.topup-preset {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 14px 8px;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topup-preset:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.topup-preset[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--green);
  transform: translate(-2px, -2px);
}
.topup-preset-amt {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.topup-preset-custom .topup-preset-amt { font-size: 14px; }
@media (max-width: 480px) {
  .topup-presets { grid-template-columns: repeat(3, 1fr); }
  .topup-preset { min-height: 52px; padding: 12px 6px; }
  .topup-preset-amt { font-size: 16px; }
}

.acct-orders-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.acct-order {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 14px;
}
.acct-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.acct-order-title { font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.3px; color: var(--ink); }
.acct-order-id { font-family: "Courier New", monospace; font-size: 11px; color: var(--ink-soft); }

.progress-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--dark);
  padding: 16px 12px 12px;
  border: 1px solid var(--ink);
  margin-bottom: 14px;
  position: relative;
}
.progress-cancelled {
  display: block;
  text-align: center;
  color: var(--red);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 16px;
}
.progress-step {
  text-align: center;
  position: relative;
}
.progress-step::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(236,223,196,0.2);
  z-index: 0;
}
.progress-step:last-child::after { display: none; }
.progress-step.reached::after { background: var(--green); }
.progress-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dark-panel);
  border: 2px solid rgba(236,223,196,0.4);
  color: rgba(236,223,196,0.6);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 6px;
}
.progress-step.reached .progress-dot {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}
.progress-step.current .progress-dot {
  box-shadow: 0 0 0 4px rgba(60,231,131,0.3);
  animation: pulse-dot 1.6s ease-out infinite;
}
.progress-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(236,223,196,0.6);
  line-height: 1.2;
}
.progress-step.reached .progress-label { color: var(--paper); }
.progress-step.current .progress-label { color: var(--green); }

.acct-order-items { display: flex; flex-direction: column; gap: 4px; }
.acct-order-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.acct-order-item img,
.acct-order-img-blank {
  width: 32px; height: 32px;
  background: var(--dark);
  border: 1px solid var(--ink);
  padding: 3px;
  object-fit: contain;
}
.acct-order-qty { color: var(--red); font-weight: 900; min-width: 28px; }
.acct-order-name { flex: 1; font-weight: 600; }
.acct-order-line { color: var(--green); font-weight: 800; }

/* === Top-up history (under the balance card) ===
   Compact 4-column rows so a long list doesn't dominate the page. Top-ups
   aren't deliveries, so they don't get the 4-stage progress tracker the
   real orders use. */
.acct-topup-history {
  border-top: 2px solid var(--ink);
  padding: 14px 22px 22px;
}
.acct-topup-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.acct-topup-history-head > span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.acct-topup-toggle {
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  letter-spacing: 0.3px;
}
.acct-topup-toggle:hover { color: var(--ink); }

.topup-list { display: flex; flex-direction: column; gap: 4px; }
.topup-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: var(--paper-warm, #f5efe2);
  border: 1px solid var(--ink);
  border-left: 4px solid var(--green);
  font-size: 12px;
}
.topup-row-pending   { border-left-color: var(--yellow); }
.topup-row-cancelled { border-left-color: var(--ink-soft); opacity: 0.65; }
.topup-row-amt {
  font-weight: 900;
  font-size: 14px;
  color: var(--green);
  letter-spacing: -0.3px;
  min-width: 70px;
}
.topup-row-cancelled .topup-row-amt { color: var(--ink-soft); text-decoration: line-through; }
.topup-row-meta { min-width: 0; }
.topup-row-date { font-weight: 700; color: var(--ink); }
.topup-row-id {
  font-family: "Courier New", monospace;
  font-size: 10px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topup-row-status {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  padding: 2px 6px;
  border: 1px solid var(--ink);
}
.topup-row-pending   .topup-row-status { background: var(--yellow); }
.topup-row-cancelled .topup-row-status { background: transparent; color: var(--ink-soft); border-color: var(--ink-soft); }
.topup-row-action:empty { display: none; }

@media (max-width: 540px) {
  .acct-topup-history { padding: 14px 14px 18px; }
  .topup-row { grid-template-columns: auto 1fr; row-gap: 4px; column-gap: 8px; }
  .topup-row-status { grid-column: 2; justify-self: end; }
  .topup-row-action { grid-column: 1 / -1; justify-self: stretch; }
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.form-hint strong { color: var(--red); font-weight: 900; }
.form-optional {
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
}
.checkout-form input::placeholder {
  color: rgba(23,28,54,0.35);
  font-weight: 500;
}

/* ============ Admin tabs / messages / users ============ */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--dark-border);
}
.admin-tab {
  background: transparent;
  color: rgba(236,223,196,0.6);
  border: none;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.admin-tab:hover { color: var(--paper); }
.admin-tab.active { color: var(--yellow); border-bottom-color: var(--yellow); }
.admin-tab span {
  background: var(--red);
  color: var(--paper);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 6px;
  font-weight: 900;
}

.admin-chat-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
  height: 70vh;
}
@media (max-width: 700px) { .admin-chat-layout { grid-template-columns: 1fr; height: auto; } }
.admin-convo-list {
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-convo {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--dark-border);
  color: var(--paper);
  text-align: left;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.1s ease;
}
.admin-convo:hover { background: rgba(236,223,196,0.05); }
.admin-convo.active { background: rgba(255,212,42,0.1); border-left: 3px solid var(--yellow); padding-left: 11px; }
.admin-convo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.admin-convo-name { font-weight: 800; font-size: 13px; font-family: "Courier New", monospace; }
.admin-convo-unread {
  background: var(--red);
  color: var(--paper);
  font-size: 10px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 8px;
}
.admin-convo-snippet { font-size: 12px; color: rgba(236,223,196,0.6); }

.admin-chat-pane {
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  display: flex;
  flex-direction: column;
}
.admin-chat-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(236,223,196,0.4);
}
.admin-chat-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--dark-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-chat-header strong { color: var(--yellow); font-family: "Courier New", monospace; }
.admin-chat-count { font-size: 11px; color: rgba(236,223,196,0.5); }
.admin-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}
.admin-chat-input {
  display: flex;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid var(--dark-border);
}
.admin-chat-input input {
  flex: 1;
  padding: 8px 10px;
  background: var(--dark);
  color: var(--paper);
  border: 1px solid var(--dark-border);
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.admin-chat-input input:focus { border-color: var(--yellow); }

.admin-users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--paper);
}
.admin-users-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--dark-panel);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--yellow);
  border-bottom: 1px solid var(--dark-border);
}
.admin-users-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--dark-border);
}
.admin-users-table code {
  background: var(--dark);
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 12px;
}
.user-balance { color: var(--green); font-weight: 900; }
.admin-users-table input {
  width: 70px;
  padding: 4px 6px;
  background: var(--dark);
  color: var(--paper);
  border: 1px solid var(--dark-border);
  font-family: inherit;
  font-size: 12px;
  margin-right: 4px;
}

/* Empty state */
.checkout-empty {
  text-align: center;
  padding: 80px 20px;
  border: 2px dashed var(--ink);
  background: var(--paper-warm);
  border-radius: 2px;
}
.checkout-empty h2 {
  font-size: 28px;
  margin: 0 0 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.checkout-empty p {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* Empty-cart recommendations */
.empty-recs {
  margin-top: 32px;
  text-align: left;
}
.empty-recs-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
  text-align: center;
}
.empty-recs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.empty-rec {
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 10px 8px 8px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.empty-rec:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}
.empty-rec-img {
  width: 56px;
  height: 56px;
  background: var(--ink);
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.empty-rec-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.empty-rec-name {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  color: var(--ink);
  line-height: 1.2;
}
.empty-rec-price {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 700;
}
.empty-rec-cta {
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  margin-top: 2px;
}
.empty-recs-browse {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: underline;
}
@media (max-width: 600px) {
  .empty-recs-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ============ Social-proof toast ============ */
.social-toast {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-left: 5px solid var(--green);
  padding: 10px 36px 10px 12px;
  box-shadow: 4px 4px 0 var(--ink);
  max-width: 320px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.35s ease;
}
.social-toast.show { opacity: 1; transform: translateY(0); }
.social-toast-thumb {
  width: 44px;
  height: 44px;
  background: var(--ink);
  border: 1px solid var(--ink);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.social-toast-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.social-toast-body { min-width: 0; flex: 1; }
.social-toast-line {
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.social-toast-line strong {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.social-toast-item {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.social-toast-foot {
  font-size: 10px;
  color: var(--ink-soft);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.social-toast-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 var(--green);
  animation: pulse-dot 1.6s ease-out infinite;
}
.social-toast-close {
  position: absolute;
  top: 4px; right: 6px;
  background: transparent;
  border: none;
  color: var(--ink-soft);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
}
.social-toast-close:hover { color: var(--red); }
@media (max-width: 600px) {
  .social-toast {
    left: 10px; right: 10px; bottom: 90px;
    max-width: none;
  }
}

/* ============ Promise strip (under hero) ============ */
.promise-strip {
  background: var(--ink);
  padding: 26px 0;
  position: relative;
  z-index: 2;
}
.promise-strip::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.promise-card {
  background: var(--paper);
  border: 2px solid var(--paper);
  padding: 16px 16px 14px;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  overflow: hidden;
}
.promise-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green);
}
.promise-card[data-color="yellow"]::before { background: var(--yellow); }
.promise-card[data-color="red"]::before    { background: var(--red); }
.promise-card[data-color="blue"]::before   { background: var(--blue); }
.promise-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--green);
}
.promise-card[data-color="yellow"]:hover { box-shadow: 4px 4px 0 var(--yellow); }
.promise-card[data-color="red"]:hover    { box-shadow: 4px 4px 0 var(--red); }
.promise-card[data-color="blue"]:hover   { box-shadow: 4px 4px 0 var(--blue); }
.promise-icon {
  font-size: 22px;
  margin-bottom: 6px;
  line-height: 1;
}
.promise-title {
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ink);
  margin-bottom: 4px;
}
.promise-sub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
  font-weight: 600;
}
@media (max-width: 760px) {
  .promise-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .promise-strip { padding: 18px 0; }
  .promise-card { padding: 12px 12px 10px; }
  .promise-icon { font-size: 18px; }
  .promise-title { font-size: 11px; }
  .promise-sub { font-size: 10.5px; line-height: 1.35; }
}

/* Hero */
.hero {
  padding: 100px 0 90px;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
}

/* Familiar Duck easter eggs — drift gently around the hero so the page has
   personality. Pure decoration: aria-hidden, no click target, no link. */
.hero-duck {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(2px 4px 0 rgba(23, 28, 54, 0.35));
  z-index: 1;
  animation: duck-bob 5s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-duck-1 {
  top: 14%;
  right: 8%;
  width: 90px;
  transform: rotate(-8deg);
  animation-delay: 0s;
}
.hero-duck-2 {
  bottom: 18%;
  right: 22%;
  width: 64px;
  transform: rotate(14deg);
  animation-delay: 1.2s;
  animation-duration: 6.5s;
}
.hero-duck-3 {
  top: 38%;
  right: 36%;
  width: 46px;
  transform: rotate(-20deg);
  opacity: 0.85;
  animation-delay: 2.4s;
  animation-duration: 4.2s;
}
@keyframes duck-bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -10px; }
}
@media (max-width: 760px) {
  /* Only keep the big duck on phones, hide the smaller two */
  .hero-duck-1 { width: 60px; top: 10%; right: 6%; }
  .hero-duck-2, .hero-duck-3 { display: none; }
}
@media (max-width: 480px) {
  /* Hide every duck/bobcat at phone widths so they don't overlap hero text */
  .hero-duck, .hero-bobcat { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-duck { animation: none; }
}

/* Bobcat Mk.4 floaters on the LEFT side of the hero — mirrors the ducks
   visually so the hero has weighted decoration on both sides. */
.hero-bobcat {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(2px 4px 0 rgba(23, 28, 54, 0.35));
  z-index: 1;
  animation: duck-bob 5s ease-in-out infinite;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-bobcat-1 {
  top: 18%;
  left: 6%;
  width: 110px;
  transform: rotate(8deg);
  animation-delay: 0.4s;
  animation-duration: 5.2s;
}
.hero-bobcat-2 {
  bottom: 16%;
  left: 20%;
  width: 78px;
  transform: rotate(-14deg);
  animation-delay: 1.6s;
  animation-duration: 6s;
}
.hero-bobcat-3 {
  top: 44%;
  left: 34%;
  width: 54px;
  transform: rotate(22deg);
  opacity: 0.8;
  animation-delay: 2.8s;
  animation-duration: 4.4s;
}
@media (max-width: 760px) {
  .hero-bobcat-1 { width: 72px; top: 14%; left: 4%; }
  .hero-bobcat-2, .hero-bobcat-3 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bobcat { animation: none; }
}
/* Neon diagonal stripes on the right side */
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 0;
  bottom: 0;
  width: 420px;
  background:
    linear-gradient(105deg,
      transparent 0, transparent 40%,
      var(--blue) 40%, var(--blue) 44%,
      transparent 44%, transparent 52%,
      var(--green) 52%, var(--green) 56%,
      transparent 56%, transparent 64%,
      var(--yellow) 64%, var(--yellow) 68%,
      transparent 68%, transparent 76%,
      var(--red) 76%, var(--red) 80%,
      transparent 80%);
  opacity: 0.85;
  pointer-events: none;
}
@media (max-width: 760px) { .hero::after { display: none; } }

.hero-badge {
  display: inline-block;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: var(--paper);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 0;
  margin-bottom: 28px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--red);
}
.hero h1 {
  font-size: 92px;
  line-height: 0.92;
  margin: 0 0 24px;
  letter-spacing: -3px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 720px;
}
.accent {
  display: inline-block;
  color: var(--paper);
  background: var(--ink);
  padding: 0 14px 4px;
  margin-top: 6px;
  position: relative;
}
.accent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
}
.hero-sub {
  color: var(--ink-soft);
  font-size: 18px;
  max-width: 580px;
  margin: 20px 0 36px;
  line-height: 1.5;
  font-weight: 500;
}
.hero-ctas { display: flex; gap: 14px; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  gap: 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 0;
  max-width: 620px;
}
.hero-stats > div {
  display: flex;
  flex-direction: column;
  padding: 18px 28px 18px 0;
  border-right: 1px solid rgba(23,28,54,0.2);
  flex: 1;
}
.hero-stats > div:last-child { border-right: none; }
.hero-stats > div:not(:first-child) { padding-left: 28px; }
.hero-stats strong {
  font-size: 32px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -1px;
}
.hero-stats > div:nth-child(1) strong { color: var(--ink); }
.hero-stats > div:nth-child(2) strong { color: var(--ink); }
.hero-stats > div:nth-child(3) strong { color: var(--red); }
.hero-stats > div:nth-child(4) strong { color: var(--ink); }
.hero-stats > div:nth-child(4) span { color: var(--red); }
.hero-stats span {
  color: var(--ink-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-top: 2px;
}

/* Buttons — poster style with offset shadow */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 2px;
  font-weight: 800;
  text-decoration: none;
  font-size: 14px;
  border: 2px solid var(--ink);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--red);
}
.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--red);
}
.btn-primary:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--red); }

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--blue);
}
.btn-ghost:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue);
}
.btn-ghost:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--blue); }

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--yellow);
}
.btn-sm:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 var(--yellow);
}

/* ============ Live Sold ticker — single-lane marquee ============ */
.ticker-bar {
  display: flex;
  align-items: stretch;
  background: var(--dark);
  color: var(--paper);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  height: 72px;
  position: relative;
  overflow: hidden;
  z-index: 3;
}
.ticker-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
  z-index: 3;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-right: 2px solid var(--ink);
  z-index: 2;
  flex-shrink: 0;
  position: relative;
}
.ticker-label::after {
  content: "";
  position: absolute;
  top: 0; right: -14px; bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, var(--ink), transparent);
  pointer-events: none;
  z-index: 2;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--green);
  animation: pulse-dot 1.6s ease-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(60,231,131,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(60,231,131,0); }
  100% { box-shadow: 0 0 0 0 rgba(60,231,131,0); }
}

.ticker-feed {
  flex: 1;
  position: relative;
  overflow: hidden;
}
/* Edge fade so cards ease in/out of view */
.ticker-feed::before,
.ticker-feed::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40px;
  z-index: 2;
  pointer-events: none;
}
.ticker-feed::before {
  left: 0;
  background: linear-gradient(90deg, var(--dark), transparent);
}
.ticker-feed::after {
  right: 0;
  background: linear-gradient(270deg, var(--dark), transparent);
}

.tk-lane {
  display: flex;
  align-items: center;
  height: 100%;
  width: 100%;
  gap: 10px;
  padding: 0 14px;
  overflow: hidden;
}

.tk-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-left: 3px solid var(--green);
  border-radius: 2px;
  padding: 6px 14px 6px 8px;
  height: 52px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 400ms ease-out, opacity 400ms ease-out;
}
.tk-card-entering {
  transform: translateX(-30px);
  opacity: 0;
}
.tk-card-leaving {
  transform: translateX(20px);
  opacity: 0;
}
.tk-card-real {
  border-left-color: var(--yellow);
  background: linear-gradient(90deg, rgba(255,212,42,0.18), var(--dark-panel) 60%);
  box-shadow: inset 0 0 0 1px var(--yellow);
}
.tk-live {
  background: var(--yellow);
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  padding: 2px 5px;
  border-radius: 2px;
  margin-right: 2px;
}
/* Multi-thumb stack per order */
.tk-thumbs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.tk-thumb {
  position: relative;
  width: 38px;
  height: 38px;
  background: var(--dark);
  border: 1px solid rgba(236,223,196,0.25);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  flex-shrink: 0;
}
.tk-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tk-thumb-qty {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--red);
  color: var(--paper);
  font-size: 9px;
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 8px;
  border: 1.5px solid var(--dark);
  min-width: 14px;
  text-align: center;
  line-height: 1.1;
}
.tk-thumb-more {
  background: var(--ink);
  color: var(--yellow);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.3px;
}
.tk-card-real .tk-thumb { border-color: rgba(255,212,42,0.4); }
.tk-body {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 4px;
}
.tk-item {
  color: var(--paper);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.2px;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  margin-left: 6px;
  border-left: 1px dashed rgba(236,223,196,0.18);
}
.tk-price {
  background: var(--green);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -0.2px;
  padding: 3px 7px;
  border-radius: 2px;
}
.tk-card-real .tk-price {
  background: var(--yellow);
}
.tk-check {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}
.tk-ago {
  color: rgba(236,223,196,0.55);
  font-size: 10px;
  font-weight: 700;
}

/* Mobile: keep the ticker visible but make it compact */
@media (max-width: 600px) {
  .ticker-bar { height: 60px; }
  .ticker-label { padding: 0 10px; font-size: 9px; letter-spacing: 1px; gap: 6px; }
  .ticker-label .ticker-label-text { display: none; }
  .tk-card {
    height: 44px;
    padding: 4px 10px 4px 6px;
    gap: 8px;
  }
  .tk-thumb { width: 32px; height: 32px; }
  .tk-item { font-size: 12px; max-width: 160px; }
  .tk-meta { padding-left: 8px; margin-left: 4px; }
  .tk-price { font-size: 10px; padding: 2px 6px; }
}

/* Scroll nudge arrow (homepage hero) */
.scroll-nudge {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  animation: scroll-bounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
}
.scroll-nudge.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}
.scroll-nudge-arrow {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--red);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.scroll-nudge:hover .scroll-nudge-arrow {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--red);
}
@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}
@media (max-width: 760px) {
  .scroll-nudge { display: none; }
}

/* Sections */
.section {
  padding: 80px 0;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.section.alt {
  background: var(--dark);
  color: var(--paper);
  border-bottom-color: var(--red);
  position: relative;
}
.section.alt::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
}
.section h2 {
  font-size: 44px;
  margin: 0 0 10px;
  letter-spacing: -1.5px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
}
.section.alt h2 { color: var(--paper); }
.section-sub {
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 44px;
  font-size: 16px;
  font-weight: 500;
}
.section.alt .section-sub { color: rgba(236,223,196,0.75); }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* Grids */
.grid {
  display: grid;
  gap: 16px;
}
.cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.competitors { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* === Arc Raiders dossier-style marketplace === */
.section-marketplace {
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 28px,
      rgba(23,28,54,0.05) 28px,
      rgba(23,28,54,0.05) 29px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 28px,
      rgba(23,28,54,0.05) 28px,
      rgba(23,28,54,0.05) 29px
    ),
    var(--paper);
}

.dossier-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.dossier-tag {
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: 2px;
  background: var(--paper);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  border-radius: 0;
}
.dossier-header h2 {
  margin: 0;
  font-size: 44px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1.5px;
  color: var(--ink);
}
.dossier-stripe {
  flex: 1;
  height: 4px;
  min-width: 40px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
}
.dossier-meta {
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 1.5px;
}

/* Category tiles */
.category-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.cat-tile {
  display: flex;
  flex-direction: column;
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 22px 22px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  /* Notched bottom-right corner */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}
/* Color stripe across the top */
.cat-tile::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 6px;
  background: var(--ink);
  transition: height 0.15s ease;
  z-index: 2;
}
.cat-tile[data-color="blue"]::before   { background: var(--blue); }
.cat-tile[data-color="green"]::before  { background: var(--green); }
.cat-tile[data-color="yellow"]::before { background: var(--yellow); }
.cat-tile[data-color="red"]::before    { background: var(--red); }

/* Diagonal corner accent */
.cat-tile::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 18px;
  height: 18px;
  background: var(--ink);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  z-index: 2;
}

.cat-tile:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--ink);
}
.cat-tile:hover::before { height: 9px; }

/* Catalog code in top-right (RA-01 etc.) */
.cat-code {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: "Courier New", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--ink-soft);
  background: rgba(23,28,54,0.06);
  padding: 2px 6px;
  border-radius: 2px;
  z-index: 2;
}

.cat-thumb {
  width: 92px;
  height: 92px;
  background:
    radial-gradient(circle at 30% 30%, #2a3151 0%, #0a0d1a 70%),
    var(--dark);
  border: 2px solid var(--ink);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 18px;
  padding: 12px;
  position: relative;
  /* Notched corner echoing the tile */
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
}
/* Subtle scanlines on the thumb */
.cat-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 2px,
      rgba(47,184,255,0.08) 2px,
      rgba(47,184,255,0.08) 3px
    );
  pointer-events: none;
}
/* Items render in their natural colors — backgrounds stay dark with scanlines */
.cat-thumb img {
  transition: transform 0.2s ease;
}
.cat-tile:hover .cat-thumb img {
  transform: scale(1.05);
}
.cat-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cat-thumb-stack {
  width: 150px;
  height: 92px;
  padding: 8px;
  gap: 6px;
  justify-content: space-around;
}
.cat-thumb-stack img {
  max-width: 30%;
  max-height: 100%;
}

/* Blueprint composite: weapon icon layered on blueprint paper */
.cat-thumb-blueprint {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.cat-thumb-blueprint .bp-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  opacity: 0.92;
}
.cat-thumb-blueprint .bp-fg {
  position: relative;
  z-index: 1;
  max-width: 70%;
  max-height: 70%;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.6));
}
.cat-tile-wide {
  grid-column: span 2;
}
@media (max-width: 760px) {
  .cat-tile-wide { grid-column: span 1; }
  .dossier-header h2 { font-size: 32px; }
  .dossier-meta { display: none; }
}
.cat-tile h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.cat-tile p {
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-size: 13px;
  flex: 1;
  font-weight: 500;
  line-height: 1.4;
}
.cat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed rgba(23,28,54,0.3);
  margin-right: 14px; /* clear the diagonal corner */
}
.cat-cta {
  color: var(--ink);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.cat-arrow {
  color: var(--red);
  font-weight: 900;
  font-size: 18px;
  transition: transform 0.15s ease;
}
.cat-tile:hover .cat-arrow {
  transform: translateX(4px);
}

/* Category page */
.back-link {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
  font-size: 12px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 4px 0;
  border-bottom: 2px solid var(--ink);
}
.back-link:hover { color: var(--red); border-bottom-color: var(--red); }

.cat-page-title {
  font-size: 56px;
  margin: 20px 0 8px;
  letter-spacing: -2px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 6px;
}

/* ============ Bundles page ============ */
.sub-heading {
  font-size: 28px;
  margin: 56px 0 10px;
  letter-spacing: -1px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding-bottom: 6px;
  display: inline-block;
}
.sub-heading:first-of-type { margin-top: 36px; }

/* Pre-built cards */
.prebuilt-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-bottom: 24px;
}
.prebuilt-card {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.prebuilt-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.prebuilt-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; right: 0;
  height: 6px;
}
.prebuilt-card[data-color="blue"]::before   { background: var(--blue); }
.prebuilt-card[data-color="green"]::before  { background: var(--green); }
.prebuilt-card[data-color="yellow"]::before { background: var(--yellow); }
.prebuilt-card[data-color="red"]::before    { background: var(--red); }
.prebuilt-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.prebuilt-card p { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; font-weight: 500; }

.bundle-contents {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border-top: 2px dashed rgba(23,28,54,0.3);
  padding-top: 12px;
}
.bundle-contents li {
  padding: 4px 0;
  color: var(--ink);
  font-size: 13px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.bundle-contents li::before {
  content: "+";
  color: var(--green);
  margin-right: 8px;
  font-weight: 700;
}

.savings {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 2px;
  margin-left: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Builder layout */
.builder-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}
.builder-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.builder-filter .filter-btn {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 6px 12px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.builder-filter .filter-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--blue);
}
.builder-filter .filter-btn.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 2px 2px 0 var(--yellow);
}

.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.builder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 10px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.builder-item:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.bi-img {
  width: 48px;
  height: 48px;
  background: var(--dark);
  border: 2px solid var(--ink);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
}
.bi-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bi-body { flex: 1; min-width: 0; }
.bi-name {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: var(--ink);
  letter-spacing: 0.3px;
}
.bi-price { font-size: 13px; color: var(--red); font-weight: 900; }
.bi-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 2px;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.1s ease;
}
.qty-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
}

/* Cart */
.builder-cart {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-top: 6px solid var(--yellow);
  border-radius: 2px;
  padding: 20px;
  position: sticky;
  top: 90px;
  box-shadow: 5px 5px 0 var(--ink);
}
.builder-cart h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  color: var(--ink);
}

/* ---- Free Loot Progress ladder ---- */
.rewards-ladder {
  background: var(--dark);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 22px 26px 26px;
  margin-bottom: 28px;
  box-shadow: 5px 5px 0 var(--ink);
  position: relative;
  overflow: hidden;
}
.rewards-ladder::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
}
.ladder-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.ladder-title {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--yellow);
}
.ladder-count {
  font-size: 12px;
  font-weight: 600;
  color: rgba(236,223,196,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ladder-count strong {
  color: var(--paper);
  font-size: 16px;
  font-weight: 900;
  margin-right: 4px;
}

.ladder-rail {
  position: relative;
  margin: 0 32px 24px;
  padding-top: 44px;
}
.ladder-rail::before {
  content: "";
  position: absolute;
  top: 44px;
  left: -8px; right: -8px;
  height: 6px;
  background: rgba(236,223,196,0.15);
  border-radius: 3px;
}
.ladder-fill {
  position: absolute;
  top: 44px;
  left: -8px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(60,231,131,0.35);
  max-width: calc(100% + 16px);
}
.ladder-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}
.ladder-stop {
  text-align: center;
  position: relative;
}
.stop-img {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: var(--dark-panel);
  border: 2px solid rgba(236,223,196,0.25);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  position: relative;
  transition: all 0.25s ease;
  filter: grayscale(0.7) opacity(0.5);
}
.stop-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ladder-stop.reached .stop-img {
  border-color: var(--green);
  background: var(--dark);
  filter: none;
  box-shadow: 0 0 16px rgba(60,231,131,0.45);
}
.stop-check {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--dark);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stop-threshold {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--yellow);
  margin-bottom: 4px;
}
.ladder-stop.reached .stop-threshold { color: var(--green); }
.stop-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(236,223,196,0.65);
  line-height: 1.3;
}
.ladder-stop.reached .stop-label { color: var(--paper); }

.ladder-nudge {
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 2px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  animation: pulse 2s ease-in-out infinite;
}
.ladder-nudge strong { color: var(--red); font-weight: 900; }
.ladder-nudge.nudge-max {
  background: var(--green);
  animation: none;
}

@media (max-width: 700px) {
  .rewards-ladder { padding: 18px 16px; }
  .ladder-rail { margin: 0 8px 18px; padding-top: 36px; }
  .ladder-rail::before, .ladder-fill { top: 36px; }
  .ladder-stops { gap: 6px; }
  .stop-img { width: 44px; height: 44px; margin-bottom: 10px; }
  .stop-threshold { font-size: 10px; }
  .stop-label { font-size: 10px; }
}

/* Compact ladder variant (inside checkout summary sidebar) */
.ladder-sidebar {
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  position: relative;
  /* Subtle attention-grabbing glow so buyers notice the free-loot tiers
     they're inches away from unlocking. */
  animation: ladder-glow 2.4s ease-in-out infinite;
}
.ladder-sidebar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 25%, rgba(60, 231, 131, 0.35) 50%, transparent 75%);
  background-size: 250% 100%;
  mix-blend-mode: screen;
  animation: ladder-shimmer 3.6s linear infinite;
  z-index: 0;
}
.ladder-sidebar > * { position: relative; z-index: 1; }
.ladder-sidebar .ladder-fill {
  box-shadow: 0 0 12px var(--green), 0 0 24px rgba(60, 231, 131, 0.45);
}

@keyframes ladder-glow {
  0%, 100% { box-shadow: 4px 4px 0 var(--ink), 0 0 0 rgba(60, 231, 131, 0); }
  50%      { box-shadow: 4px 4px 0 var(--ink), 0 0 18px rgba(60, 231, 131, 0.55); }
}
@keyframes ladder-shimmer {
  0%   { background-position: 250% 0; }
  100% { background-position: -150% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ladder-sidebar { animation: none; }
  .ladder-sidebar::before { animation: none; opacity: 0.25; }
}
.ladder-sidebar .ladder-head { margin-bottom: 10px; }
.ladder-rail-compact {
  margin: 0 0 12px;
  padding-top: 0;
  height: 8px;
}
.ladder-rail-compact::before,
.ladder-rail-compact .ladder-fill { top: 0; left: 0; }
.ladder-rail-compact .ladder-fill { max-width: 100%; }
.ladder-sidebar .ladder-nudge {
  padding: 8px 10px;
  font-size: 12px;
  margin-bottom: 12px;
}

.ladder-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ladder-list-row {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(236,223,196,0.05);
  border: 1px solid rgba(236,223,196,0.15);
  border-radius: 2px;
  opacity: 0.55;
  filter: grayscale(0.4);
  transition: all 0.2s ease;
}
.ladder-list-row.reached {
  opacity: 1;
  filter: none;
  border-color: var(--green);
  background: rgba(60,231,131,0.08);
}
.row-img {
  width: 42px;
  height: 42px;
  background: var(--dark-panel);
  border: 1px solid rgba(236,223,196,0.2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  position: relative;
}
.row-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ladder-list-row.reached .row-img { border-color: var(--green); }
.row-check {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--dark);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.row-body { flex: 1; min-width: 0; }
.row-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.row-qty {
  font-size: 10px;
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.ladder-list-row.reached .row-qty { color: var(--green); }
.row-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--paper);
  line-height: 1.3;
}
.row-pick-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}
.pick-chip {
  background: var(--green);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.3px;
}
.pick-empty {
  font-size: 11px;
  color: rgba(236,223,196,0.5);
  font-style: italic;
}
.row-pick-btn {
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.row-pick-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0 var(--ink);
}
@media (max-width: 760px) {
  .row-pick-btn {
    width: 100%;
    padding: 12px 14px;
    font-size: 13px;
    min-height: 44px;
    margin-top: 8px;
  }
  .reward-pick-btn {
    padding: 11px 14px;
    font-size: 12px;
    min-height: 40px;
  }
}

/* Reward-pick block inside the builder sidebar rewards-earned list */
.reward-pick {
  align-items: flex-start;
}
.reward-pick-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.reward-pick-body .reward-name { font-size: 13px; }
.reward-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.reward-pick-btn {
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 2px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 2px;
}
.reward-pick-btn:hover { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }

/* ============ Weapon picker modal ============ */
.picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 26, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 250;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.picker-overlay.show { opacity: 1; }

.picker-modal {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 2px;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 10px 10px 0 var(--green);
  position: relative;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.picker-overlay.show .picker-modal { transform: translateY(0) scale(1); }
.picker-modal::before {
  content: "";
  position: absolute;
  top: -3px; left: -3px; right: -3px;
  height: 5px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%);
}
.picker-close {
  position: absolute;
  top: 10px; right: 12px;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  width: 28px;
  height: 28px;
  color: var(--ink);
}
.picker-close:hover { background: var(--ink); color: var(--paper); }

.picker-header {
  padding: 28px 28px 16px;
  border-bottom: 2px solid var(--ink);
}
.picker-badge {
  display: inline-block;
  background: var(--green);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.picker-title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  color: var(--ink);
}
.picker-sub {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}
.picker-counter {
  color: var(--red);
  font-weight: 900;
  font-size: 16px;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}
.picker-item {
  position: relative;
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 12px 10px 10px;
  cursor: pointer;
  text-align: center;
  font-family: inherit;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}
.picker-item:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.picker-item.selected {
  background: var(--green);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.picker-item-img {
  width: 100%;
  height: 68px;
  background: var(--dark);
  border: 2px solid var(--ink);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 8px;
}
.picker-item-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.picker-item-name {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2px;
}
.picker-item-price {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-soft);
}
.picker-item-check {
  position: absolute;
  top: 6px; right: 6px;
  width: 22px;
  height: 22px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s ease;
}
.picker-item.selected .picker-item-check {
  opacity: 1;
  transform: scale(1);
  background: var(--ink);
  color: var(--green);
}

.picker-footer {
  padding: 16px 20px;
  border-top: 2px solid var(--ink);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: var(--paper-warm);
}
.picker-confirm:disabled {
  background: var(--paper-warm) !important;
  color: var(--ink-soft) !important;
  box-shadow: 4px 4px 0 rgba(23,28,54,0.2) !important;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 520px) {
  .picker-header { padding: 22px 20px 14px; }
  .picker-title { font-size: 22px; }
  .picker-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); padding: 14px; gap: 8px; }
}

/* Legacy .milestones container (sidebar cart) — kept so old references don't break */
.milestones {
  background: var(--dark);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 14px 14px 18px;
  margin-bottom: 12px;
  color: var(--paper);
}
.milestone-header {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(236,223,196,0.7);
  margin-bottom: 22px;
}
.milestone-qty { color: var(--yellow); }
.milestone-track {
  position: relative;
  height: 8px;
  background: rgba(236,223,196,0.15);
  border-radius: 2px;
  margin: 0 10px 48px;
}
.milestone-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.milestone-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.node-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dark);
  border: 2px solid rgba(236,223,196,0.3);
  color: rgba(236,223,196,0.6);
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}
.milestone-node.reached .node-dot {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
  box-shadow: 0 0 14px rgba(60,231,131,0.6);
}
.node-label {
  position: absolute;
  top: 30px;
  font-size: 9px;
  font-weight: 800;
  color: rgba(236,223,196,0.55);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
  width: 90px;
  margin-left: -45px;
  left: 50%;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.milestone-node.reached .node-label { color: var(--green); }

.nudge {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  animation: pulse 2s ease-in-out infinite;
}
.nudge strong { color: var(--red); font-weight: 900; }
.nudge-max {
  background: var(--green);
  border-color: var(--ink);
  color: var(--ink);
  animation: none;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.02); }
}

/* ---- Rewards earned ---- */
.rewards-earned:empty { display: none; }
.rewards-earned.has-rewards {
  background: var(--dark);
  border: 2px solid var(--green);
  border-radius: 2px;
  padding: 12px;
  margin-bottom: 14px;
  color: var(--paper);
}
.rewards-header {
  font-size: 11px;
  font-weight: 900;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.reward-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px dashed rgba(236,223,196,0.2);
}
.reward-line:first-of-type { border-top: none; }
.reward-line img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: var(--dark-panel);
  border: 1px solid rgba(236,223,196,0.2);
  border-radius: 2px;
  padding: 3px;
}
.reward-name {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: var(--paper);
}
.reward-free {
  background: var(--green);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 2px;
  letter-spacing: 1.5px;
}
.cart-items {
  max-height: 360px;
  overflow-y: auto;
  margin-bottom: 16px;
  border-bottom: 2px dashed rgba(23,28,54,0.25);
  padding-bottom: 12px;
}
.cart-empty {
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  padding: 28px 0;
  margin: 0;
  font-weight: 600;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.ci-main { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ci-qty { color: var(--red); font-weight: 900; font-size: 12px; }
.ci-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
}
.ci-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ci-line { color: var(--ink); font-weight: 800; }
.ci-remove {
  background: transparent;
  border: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 14px;
}
.ci-remove:hover { color: var(--red); }

.cart-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.cart-row.small { color: var(--ink-soft); font-size: 13px; }
.cart-row.total {
  border-top: 2px solid var(--ink);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.cart-row.total span:last-child { color: var(--red); }
.discount { color: var(--green); font-weight: 800; }

.btn-block {
  width: 100%;
  margin-top: 14px;
}
.btn-block:disabled {
  background: var(--paper-warm);
  color: var(--ink-soft);
  box-shadow: 4px 4px 0 rgba(23,28,54,0.2);
  cursor: not-allowed;
  transform: none;
}
.cart-note {
  color: var(--ink-soft);
  font-size: 12px;
  text-align: center;
  margin: 10px 0 0;
  font-weight: 600;
}

@media (max-width: 900px) {
  .builder-layout { grid-template-columns: 1fr; }
  .builder-cart { position: static; }
}

/* Card */
.card {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  box-shadow: 4px 4px 0 var(--ink);
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.card-img-wrap {
  background: var(--dark);
  border: 2px solid var(--ink);
  border-radius: 2px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  overflow: hidden;
  padding: 12px;
}
.card-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}
.card-tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 3px 8px;
  border-radius: 2px;
  width: fit-content;
  margin-bottom: 10px;
  font-weight: 800;
}
.card-tag.hot {
  background: var(--red);
  color: var(--paper);
}
/* rotate thick top stripe across cards */
.cards .card { position: relative; }
.cards .card::before {
  content: "";
  position: absolute;
  left: -2px; right: -2px; top: -2px;
  height: 6px;
  background: var(--ink);
}
.cards .card:nth-child(4n+1)::before { background: var(--blue); }
.cards .card:nth-child(4n+2)::before { background: var(--green); }
.cards .card:nth-child(4n+3)::before { background: var(--yellow); }
.cards .card:nth-child(4n+4)::before { background: var(--red); }
.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
  text-transform: uppercase;
  color: var(--ink);
}
.card p {
  color: var(--ink-soft);
  font-size: 13px;
  margin: 0 0 16px;
  flex: 1;
  font-weight: 500;
}
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px dashed rgba(23,28,54,0.25);
}

/* Featured card — bundles/services that ship with a contents list */
.card-featured {
  grid-column: span 2;
  background: var(--paper);
  border-width: 3px;
  box-shadow: 6px 6px 0 var(--green);
}
.card-featured h3 { font-size: 22px; letter-spacing: -0.5px; }
.card-featured p {
  font-size: 14px;
  flex: 0 0 auto;
  margin-bottom: 14px;
}
.card-contents {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  background: var(--paper-warm);
  border: 2px dashed var(--ink);
  padding: 12px 14px;
  border-radius: 2px;
}
.card-contents li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.card-contents li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
  font-size: 14px;
}
@media (max-width: 760px) {
  .card-featured { grid-column: span 1; }
  .card-contents { grid-template-columns: 1fr; gap: 5px; padding: 10px 12px; }
  .card-contents li { font-size: 12px; }
  .card-featured h3 { font-size: 18px; }
}
.price {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.5px;
}

/* Competitor cards */
.comp {
  display: block;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-radius: 2px;
  padding: 18px;
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.comp:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--blue);
}
.comp h4 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
}
.comp p { margin: 0; color: rgba(236,223,196,0.7); font-size: 13px; }
.competitors .comp:nth-child(4n+1) { border-left: 4px solid var(--blue); }
.competitors .comp:nth-child(4n+2) { border-left: 4px solid var(--green); }
.competitors .comp:nth-child(4n+3) { border-left: 4px solid var(--yellow); }
.competitors .comp:nth-child(4n+4) { border-left: 4px solid var(--red); }
.competitors .comp:nth-child(4n+2):hover { box-shadow: 4px 4px 0 var(--green); }
.competitors .comp:nth-child(4n+3):hover { box-shadow: 4px 4px 0 var(--yellow); }
.competitors .comp:nth-child(4n+4):hover { box-shadow: 4px 4px 0 var(--red); }

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
.panel {
  background: var(--paper-warm);
  border: 2px solid var(--ink);
  border-left: 6px solid var(--red);
  padding: 26px;
  border-radius: 2px;
  box-shadow: 5px 5px 0 var(--ink);
}
.panel h3 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.3px;
}
.panel .tag { color: var(--ink-soft); font-size: 13px; margin-bottom: 0; font-weight: 700; }
.bullets {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.bullets li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--ink);
  font-weight: 500;
}
.bullets li::before {
  content: "■";
  color: var(--green);
  position: absolute;
  left: 0;
  top: 9px;
  font-size: 10px;
}
.bullets li:nth-child(1)::before { color: var(--blue); }
.bullets li:nth-child(2)::before { color: var(--green); }
.bullets li:nth-child(3)::before { color: var(--yellow); }
.bullets li:nth-child(4)::before { color: var(--red); }

/* Footer */
.site-footer {
  padding: 32px 0;
  color: var(--paper);
  font-size: 12px;
  background: var(--dark);
  border-top: 4px solid;
  border-image: linear-gradient(90deg, var(--blue) 0 25%, var(--green) 25% 50%, var(--yellow) 50% 75%, var(--red) 75% 100%) 1;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Responsive */
@media (max-width: 760px) {
  .hero h1 { font-size: 40px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .two-col { grid-template-columns: 1fr; }
  .nav { gap: 10px; }
  .nav a { font-size: 11px; letter-spacing: 0.6px; }
  /* Cart icon stays full-size for tap target; pill links shrink */
}

/* ========================================================================
   RESPONSIVE POLISH — consolidated mobile + small-tablet fixes
   ======================================================================== */

@media (max-width: 760px) {
  /* Container padding tightens on mobile */
  .container { padding: 0 16px; }

  /* Sections need less vertical breathing room on mobile */
  .section { padding: 44px 0; }

  /* Hero stats — 2x2 grid instead of 4-wide */
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 40px; line-height: 1.0; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; margin: 14px 0 24px; }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 2px solid var(--ink);
  }
  .hero-stats > div {
    padding: 12px 14px;
    border-right: 1px solid rgba(23,28,54,0.2);
    border-bottom: 1px solid rgba(23,28,54,0.2);
  }
  .hero-stats > div:nth-child(2n) { border-right: none; }
  .hero-stats > div:nth-child(n+3) { border-bottom: none; }
  .hero-stats strong { font-size: 24px; }
  .hero-stats span { font-size: 10px; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .hero-ctas .btn { width: 100%; text-align: center; }

  /* Section headlines — smaller on mobile */
  .section h2, .dossier-header h2 { font-size: 28px; letter-spacing: -1px; }
  .section-sub { font-size: 14px; }

  /* Dossier header — stack the bits vertically */
  .dossier-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dossier-stripe { width: 100%; min-width: 0; flex: none; height: 3px; }
  .dossier-meta { font-size: 9px; }

  /* Category tiles — single column with smaller padding */
  .category-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat-tile { padding: 18px 20px; box-shadow: 4px 4px 0 var(--ink); }
  .cat-tile:hover { transform: none; box-shadow: 4px 4px 0 var(--ink); }
  .cat-thumb { width: 64px; height: 64px; padding: 8px; }
  .cat-tile h3 { font-size: 18px; }
  .cat-code { font-size: 9px; }

  /* Header / nav — tighter on small screens but EVERY link stays visible
     (Marketplace, Account, Cart). Customers report they can't reach Account
     or Cart when nav links are hidden, so we keep them and shrink instead. */
  .site-header { padding: 0; }
  .header-inner { height: 56px; padding: 0 12px; }
  .brand-name { font-size: 13px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav { gap: 6px; }
  .nav a { font-size: 10px; letter-spacing: 0.3px; }
  .nav-cart { width: 36px; height: 32px; }
  .nav-cart .cart-icon { font-size: 16px; }

  /* Buttons — larger tap targets */
  .btn { padding: 12px 20px; font-size: 13px; }
  .btn-sm { padding: 8px 12px; font-size: 11px; }

  /* Cards in the grid */
  .grid.cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card { padding: 12px; box-shadow: 3px 3px 0 var(--ink); }
  .card:hover { transform: none; box-shadow: 3px 3px 0 var(--ink); }
  .card h3 { font-size: 14px; }
  .card p { font-size: 12px; margin-bottom: 12px; }
  .card-img-wrap { padding: 8px; }
  .price { font-size: 16px; }

  /* Category page header */
  .cat-page-title { font-size: 32px; }

  /* Bundle builder filter chips — wrap cleanly */
  .builder-filter { gap: 4px; }
  .filter-btn { padding: 6px 10px; font-size: 11px; }

  /* Builder layout: stack on mobile */
  .builder-layout { display: block; }
  .builder-cart { position: static; margin-top: 20px; }

  /* Rewards ladder — vertical on mobile */
  .ladder-stops { grid-template-columns: repeat(3, 1fr) !important; gap: 4px; }
  .stop-img { width: 40px; height: 40px; padding: 4px; }
  .stop-threshold, .stop-label { font-size: 9px; }
  .rewards-ladder { padding: 14px 14px 18px; }
  .ladder-rail { margin: 0 4px 24px; }

  /* Checkout */
  .checkout-layout { display: block; }
  .checkout-summary { margin-top: 20px; position: static; }

  /* Account dashboard — stack columns */
  .acct-grid { display: block; }
  .acct-orders-card { margin-top: 16px; }
  .acct-balance-amount { font-size: 38px; }

  /* Pay page */
  .pay-grid { display: block; }
  .pay-side { margin-top: 16px; }
  .pay-amount-value { font-size: 22px; }
  .pay-wallet-address { font-size: 11px; word-break: break-all; }

  /* Form inputs are easier to tap */
  .checkout-form input,
  .checkout-form select,
  .topup-form input,
  .topup-form select {
    font-size: 16px; /* prevents iOS auto-zoom on focus */
    padding: 12px;
  }

  /* Footer */
  .site-footer { padding: 20px 0; }
  .footer-inner { flex-direction: column; gap: 6px; text-align: center; font-size: 11px; }
}

/* Very small phones (iPhone SE etc.) */
@media (max-width: 380px) {
  .hero h1 { font-size: 32px; }
  .hero-stats strong { font-size: 20px; }
  .grid.cards { grid-template-columns: 1fr; }
}

/* Tablet — better than mobile, lighter than desktop */
@media (min-width: 761px) and (max-width: 1024px) {
  .acct-grid { grid-template-columns: 280px 1fr; }
  .checkout-layout { grid-template-columns: 1fr 340px; }
  .pay-grid { grid-template-columns: 1fr 280px; }
}

/* ============ Stock states (storefront cards) ============ */
.card-sold-out {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}
.card-sold-out .add-to-cart { background: var(--ink-soft); cursor: not-allowed; }
.sold-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: var(--red);
  color: var(--paper);
  padding: 8px 22px;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 3px solid var(--ink);
  z-index: 5;
  pointer-events: none;
  box-shadow: 4px 4px 0 var(--ink);
}
.low-stock-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 2px;
  z-index: 4;
  letter-spacing: 0.5px;
}

/* Always-visible stock badge inline with the price */
.card-price-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
}
.stock-pill::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.stock-pill-ok   { background: rgba(60,231,131,0.18); color: var(--green); }
.stock-pill-low  { background: rgba(255,212,42,0.22); color: #8a6a00; }
.stock-pill-sold { background: rgba(230,58,79,0.18); color: var(--red); }

/* ============ Admin inventory tab ============ */
.admin-inv-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.admin-inv-bulk {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
  padding: 10px 12px;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-left: 3px solid var(--yellow);
  border-radius: 2px;
}
.admin-inv-bulk-label {
  color: var(--yellow);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.admin-inv-bulk input {
  background: var(--dark);
  color: var(--paper);
  border: 1px solid var(--dark-border);
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13px;
  border-radius: 2px;
  width: 110px;
}
.admin-inv-toolbar input,
.admin-inv-toolbar select {
  background: var(--dark);
  color: var(--paper);
  border: 1px solid var(--dark-border);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  border-radius: 2px;
  outline: none;
}
.admin-inv-toolbar input { flex: 1; min-width: 180px; }
.admin-inv-toolbar input:focus,
.admin-inv-toolbar select:focus { border-color: var(--yellow); }

.admin-inv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.inv-card {
  display: flex;
  gap: 12px;
  background: var(--dark-panel);
  border: 1px solid var(--dark-border);
  border-left: 4px solid var(--green);
  padding: 12px;
}
.inv-card.inv-sold {
  border-left-color: var(--red);
  opacity: 0.7;
}
.inv-img {
  width: 48px; height: 48px;
  background: var(--dark);
  border: 1px solid var(--dark-border);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.inv-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.inv-body { flex: 1; min-width: 0; }
.inv-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--paper);
  margin-bottom: 4px;
}
.inv-meta {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: rgba(236,223,196,0.6);
  margin-bottom: 8px;
}
.inv-cat { text-transform: uppercase; letter-spacing: 1px; }
.inv-price { color: var(--green); font-weight: 700; }
.inv-stock-row {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}
.inv-stock-row input {
  width: 80px;
  background: var(--dark);
  color: var(--paper);
  border: 1px solid var(--dark-border);
  padding: 5px 8px;
  font-family: inherit;
  font-size: 13px;
}
.inv-status { font-size: 11px; }
.inv-badge {
  display: inline-block;
  padding: 3px 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 2px;
  font-size: 10px;
}
.inv-badge-sold      { background: var(--red); color: var(--paper); }
.inv-badge-low       { background: var(--yellow); color: var(--ink); }
.inv-badge-ok        { background: rgba(60,231,131,0.2); color: var(--green); border: 1px solid var(--green); }
.inv-badge-untracked { background: rgba(236,223,196,0.1); color: rgba(236,223,196,0.6); border: 1px solid var(--dark-border); }
