:root {
  --bg: #140806;
  --bg-2: #1a0c08;
  --surface: #251410;
  --surface-2: #2c1812;
  --border: rgba(255, 180, 120, 0.1);
  --border-hot: rgba(196, 51, 17, 0.55);
  --text: #f3f3f3;
  --muted: #c4b0a4;
  --crimson: #c43311;
  --crimson-hot: #e8431f;
  --green: #3fae5a;
  --gold: #e5a50a;
  --radius: 10px;
  --font: "Montserrat", system-ui, sans-serif;
  --sticky-offset: 5.75rem;
}

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

html, body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: #120605;
  line-height: 1.6;
}
body {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- nether backdrop */

.nether-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #100504;
}
.nether-sky {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 90% 70% at 20% 8%, rgba(72, 22, 16, 0.55), transparent 58%),
    radial-gradient(ellipse 80% 60% at 88% 18%, rgba(48, 14, 12, 0.5), transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(90, 24, 12, 0.45), transparent 62%),
    linear-gradient(180deg, #160806 0%, #100504 42%, #1a0a08 100%);
  animation: nether-drift 48s ease-in-out infinite;
  will-change: transform;
}
.nether-glow {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background:
    radial-gradient(ellipse 70% 80% at 18% 100%, rgba(232, 67, 31, 0.3), transparent 70%),
    radial-gradient(ellipse 60% 70% at 78% 100%, rgba(255, 140, 40, 0.2), transparent 68%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(196, 51, 17, 0.34), transparent 72%);
  animation: nether-pulse 9s ease-in-out infinite;
  will-change: transform, opacity;
}
.nether-lava {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26vh;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(196, 51, 17, 0.08) 35%,
      rgba(232, 67, 31, 0.22) 68%,
      rgba(90, 18, 8, 0.4) 100%);
  animation: nether-lava 8s ease-in-out infinite;
  will-change: opacity;
}
.nether-shimmer {
  position: absolute;
  left: -25%;
  width: 150%;
  bottom: 0;
  height: 22vh;
  background: repeating-linear-gradient(
    105deg,
    transparent 0 52px,
    rgba(255, 190, 90, 0.16) 52px 60px,
    transparent 60px 110px
  );
  mask-image: linear-gradient(180deg, transparent, #000 45%, #000 78%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%, #000 78%, transparent);
  animation: nether-shimmer 16s linear infinite;
  will-change: transform;
  opacity: 0.8;
}
.nether-embers,
.nether-embers::before,
.nether-embers::after,
.nether-sparks,
.nether-sparks::before,
.nether-sparks::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.nether-embers::before,
.nether-embers::after,
.nether-sparks::before,
.nether-sparks::after {
  content: "";
  width: 2px;
  height: 2px;
  left: 0;
  bottom: 6%;
  border-radius: 50%;
  background: transparent;
  will-change: transform, opacity;
}
.nether-embers::before {
  box-shadow:
    7vw 12vh 0 0 rgba(255, 178, 70, 0.55),
    18vw 30vh 0 1px rgba(255, 210, 120, 0.4),
    31vw 8vh 0 0 rgba(232, 67, 31, 0.45),
    44vw 24vh 0 0 rgba(255, 140, 40, 0.4),
    58vw 14vh 0 1px rgba(255, 200, 100, 0.45),
    71vw 32vh 0 0 rgba(232, 67, 31, 0.35),
    84vw 10vh 0 0 rgba(255, 178, 70, 0.5),
    93vw 26vh 0 0 rgba(255, 140, 40, 0.35);
  animation: nether-embers 16s linear infinite;
}
.nether-embers::after {
  animation: nether-embers 24s linear infinite;
  animation-delay: -9s;
  box-shadow:
    11vw 20vh 0 0 rgba(255, 140, 40, 0.35),
    26vw 6vh 0 1px rgba(255, 210, 120, 0.4),
    39vw 28vh 0 0 rgba(232, 67, 31, 0.3),
    52vw 16vh 0 0 rgba(255, 178, 70, 0.4),
    67vw 4vh 0 0 rgba(255, 140, 40, 0.3),
    79vw 22vh 0 1px rgba(255, 210, 120, 0.35),
    88vw 14vh 0 0 rgba(232, 67, 31, 0.3);
}
.nether-sparks::before,
.nether-sparks::after {
  width: 2px;
  height: 2px;
  bottom: 4%;
}
.nether-sparks::before {
  box-shadow:
    9vw 4vh 0 0 rgba(255, 220, 140, 0.7),
    22vw 10vh 0 0 rgba(255, 150, 50, 0.55),
    41vw 2vh 0 0 rgba(255, 210, 100, 0.6),
    55vw 12vh 0 0 rgba(232, 67, 31, 0.5),
    73vw 5vh 0 0 rgba(255, 180, 70, 0.55),
    86vw 9vh 0 0 rgba(255, 220, 140, 0.5);
  animation: nether-sparks 6.5s linear infinite;
}
.nether-sparks::after {
  animation: nether-sparks 9s linear infinite;
  animation-delay: -3.2s;
  box-shadow:
    14vw 7vh 0 0 rgba(255, 160, 50, 0.45),
    33vw 3vh 0 0 rgba(255, 220, 140, 0.55),
    48vw 11vh 0 0 rgba(232, 67, 31, 0.4),
    62vw 6vh 0 0 rgba(255, 180, 70, 0.5),
    91vw 8vh 0 0 rgba(255, 210, 100, 0.45);
}
.nether-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 52%, rgba(8, 2, 2, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 2, 2, 0.28) 0%, transparent 16%, transparent 78%, rgba(8, 2, 2, 0.22) 100%);
}

.nether-bits {
  position: absolute;
  inset: 0;
}
.nether-bit {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffc56a;
  box-shadow: 0 0 8px 2px rgba(255, 140, 40, 0.85);
  will-change: transform;
}
.nether-bit.is-spark {
  width: 3px;
  height: 3px;
  background: #ffe9b0;
  box-shadow: 0 0 7px 1px rgba(255, 200, 90, 0.9);
}

.nether-bg.is-live .nether-sky,
.nether-bg.is-live .nether-glow,
.nether-bg.is-live .nether-lava,
.nether-bg.is-live .nether-shimmer,
.nether-bg.is-live .nether-embers::before,
.nether-bg.is-live .nether-embers::after,
.nether-bg.is-live .nether-sparks::before,
.nether-bg.is-live .nether-sparks::after {
  animation: none;
}
.nether-bg.is-live .nether-embers,
.nether-bg.is-live .nether-sparks {
  visibility: hidden;
}

@keyframes nether-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-6%, -3%, 0); }
}
@keyframes nether-pulse {
  0%, 100% { opacity: 0.45; transform: translate3d(0, 10px, 0); }
  50% { opacity: 1; transform: translate3d(0, -14px, 0); }
}
@keyframes nether-lava {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
@keyframes nether-shimmer {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(12%, 0, 0); }
}
@keyframes nether-embers {
  0% { transform: translate3d(0, 8vh, 0); opacity: 0; }
  10% { opacity: 0.85; }
  100% { transform: translate3d(2vw, -80vh, 0); opacity: 0; }
}
@keyframes nether-sparks {
  0% { transform: translate3d(0, 4vh, 0); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translate3d(3vw, -36vh, 0); opacity: 0; }
}


.legal-topbar,
.sale-banner,
.emu-banner,
.store-main,
.legal-footer {
  position: relative;
  z-index: 1;
}

a { color: var(--crimson-hot); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.pos { color: var(--green); }
.neg { color: var(--crimson-hot); }

/* ---------------------------------------------------------------- topbar */

.legal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 6, 5, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.brand { font-weight: 800; letter-spacing: 0.02em; color: var(--text); font-size: 1.05rem; }
.brand span { color: var(--crimson); }
.brand:hover { text-decoration: none; }

.topbar-links { display: flex; gap: 1rem; }
.topbar-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.topbar-links a:hover { color: var(--text); text-decoration: none; }

.topbar-account {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.topbar-search {
  display: flex;
  flex: 1 1 12rem;
  min-width: 10rem;
  max-width: 18rem;
  align-items: stretch;
  margin: 0 0 0 auto;
}

.topbar-search input[type="search"] {
  flex: 1;
  width: auto;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  border-radius: 999px 0 0 999px;
  padding: 0.38rem 0.9rem;
  font-family: var(--font);
  font-size: 0.86rem;
  -webkit-appearance: none;
  appearance: none;
}

.topbar-search input[type="search"]::placeholder {
  color: var(--muted);
}

.topbar-search input[type="search"]:focus {
  outline: none;
  border-color: var(--border-hot);
  box-shadow: inset 0 0 0 1px var(--border-hot);
}

.topbar-search button {
  background: var(--crimson);
  color: #fff;
  border: 1px solid var(--crimson);
  border-radius: 0 999px 999px 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.38rem 0.9rem;
  cursor: pointer;
}

.topbar-search button:hover {
  background: var(--crimson-hot);
  border-color: var(--crimson-hot);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.search-meta {
  color: var(--muted);
  margin: -0.35rem 0 1rem;
  font-size: 0.92rem;
}

.search-meta strong { color: var(--text); }

@media (max-width: 800px) {
  .topbar-search {
    order: 10;
    flex: 1 1 100%;
    max-width: none;
    margin-left: 0;
  }
  .topbar-account {
    margin-left: auto;
  }
}

.cart-link {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  position: relative;
}
.cart-link:hover { border-color: var(--border-hot); text-decoration: none; }
.cart-count {
  background: var(--crimson);
  color: #fff;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0 0.4rem;
  margin-left: 0.35rem;
}

.wallet-badge {
  border: 1px solid var(--border-hot);
  background: rgba(196, 51, 17, 0.12);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.wallet-badge:hover { background: rgba(196, 51, 17, 0.22); text-decoration: none; }

.credits-badge {
  border: 1px solid rgba(229, 165, 10, 0.55);
  background: rgba(229, 165, 10, 0.12);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.credits-badge:hover { background: rgba(229, 165, 10, 0.22); text-decoration: none; }

.pay-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.pay-tabs a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}
.pay-tabs a:hover { color: var(--text); text-decoration: none; border-color: var(--border-hot); }
.pay-tabs a.active {
  color: #fff;
  background: var(--crimson);
  border-color: var(--crimson);
}

.price-stack {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
}
.price-plus { color: var(--muted); font-weight: 600; }
.price-or {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.72em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-credits { color: #e5a50a; font-weight: 700; }

.pay-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.pay-choice-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(12, 6, 5, 0.45);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
}
.pay-choice-opt:hover { border-color: var(--border-hot); }
.pay-choice-opt:has(input:checked) {
  border-color: var(--gold);
  background: rgba(229, 165, 10, 0.16);
  color: #ffe08a;
}
.pay-choice-opt input { accent-color: var(--gold); width: auto; margin: 0; }
.cart-pay-note { margin: 0.35rem 0 0; font-size: 0.85rem; }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.account-chip:hover { border-color: var(--border-hot); text-decoration: none; }
.account-chip img { border-radius: 4px; }

.admin-chip {
  background: var(--gold);
  color: #1d1d1d;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.admin-chip:hover { text-decoration: none; filter: brightness(1.1); }
.admin-panel-btn {
  font-size: 0.82rem;
  padding: 0.35rem 0.85rem;
  letter-spacing: 0.03em;
}

.emu-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.emu-form label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: #ffe08a;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.emu-form select {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  background: rgba(12, 6, 5, 0.75);
  color: var(--text);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  max-width: 11.5rem;
  cursor: pointer;
}
.emu-form select:focus {
  outline: 2px solid rgba(229, 165, 10, 0.45);
  outline-offset: 1px;
}

.login-btn {
  background: var(--crimson);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
}
.login-btn:hover { background: var(--crimson-hot); text-decoration: none; }

/* ---------------------------------------------------------------- layout */

.store-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3.5rem;
}

.page-title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
.empty-note { color: var(--muted); margin: 2rem 0; }

/* ---------------------------------------------------------------- hero */

.store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.75rem 2.25rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(196, 51, 17, 0.32), rgba(18, 6, 5, 0.55) 55%),
    var(--surface);
  padding: 2.5rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.store-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; }
.store-hero h1 span { color: var(--crimson-hot); }
.store-hero p { color: #ddd; max-width: 46rem; margin-top: 0.5rem; }

.hero-ip {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 0.95rem;
  background: var(--bg-2);
  border: 1px solid var(--border-hot);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}

.hero-goal {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-width: 16.5rem;
  padding: 0.85rem 1.05rem 0.85rem 0.85rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 170, 40, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(40, 22, 12, 0.85), rgba(18, 14, 12, 0.92));
  border: 1px solid rgba(255, 140, 40, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35), inset 0 0 24px rgba(232, 67, 31, 0.08);
}
.hero-goal.is-full {
  border-color: rgba(255, 196, 64, 0.7);
  box-shadow: 0 0 28px rgba(255, 160, 40, 0.28), inset 0 0 24px rgba(255, 180, 50, 0.12);
}
.hero-goal-copy { min-width: 0; }
.hero-goal-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffb347;
}
.hero-goal-amount {
  margin: 0.2rem 0 0.15rem;
  font-size: 1.05rem;
  color: #fff;
}
.hero-goal-amount strong { color: #ffd27a; }
.hero-goal-note {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #c9b39a;
  max-width: 14rem;
}

.lava-bucket {
  --fill: 0%;
  position: relative;
  width: 4.6rem;
  flex: 0 0 4.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bucket-handle {
  width: 2.35rem;
  height: 0.85rem;
  border: 3px solid #8d8d8d;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-bottom: -3px;
  box-shadow: 0 0 0 1px #3a3a3a;
}
.bucket-can {
  position: relative;
  width: 3.55rem;
  height: 4.15rem;
  background: linear-gradient(90deg, #4a4a4a, #8c8c8c 18%, #5c5c5c 50%, #9a9a9a 82%, #3f3f3f);
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 0 0 2px #2a2a2a, 0 8px 16px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.bucket-rim {
  position: absolute;
  top: 0;
  left: -3px;
  right: -3px;
  height: 0.42rem;
  background: linear-gradient(90deg, #6a6a6a, #cfcfcf, #6a6a6a);
  border-radius: 3px;
  z-index: 3;
  box-shadow: 0 2px 0 #2a2a2a;
}
.bucket-glass {
  position: absolute;
  inset: 0.42rem 0.28rem 0.28rem;
  background: #1a0d08;
  border-radius: 0 0 7px 7px;
  overflow: hidden;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.55);
}
.lava {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill);
  min-height: 0;
  background:
    linear-gradient(180deg, #ffd36a 0%, #ff8a1a 18%, #e8431f 52%, #8a1408 100%);
  box-shadow: 0 -8px 18px rgba(255, 120, 20, 0.45);
  animation: lava-glow 2.4s ease-in-out infinite;
  transition: height 0.8s ease;
}
.lava::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, transparent 0 10px, rgba(255, 220, 120, 0.12) 10px 14px);
  animation: lava-shimmer 3.2s linear infinite;
  mix-blend-mode: screen;
}
.lava-surface {
  position: absolute;
  top: -6px;
  left: -10%;
  width: 120%;
  height: 14px;
  background: radial-gradient(ellipse at center, #ffe08a 0%, #ff9a2a 55%, transparent 70%);
  animation: lava-wobble 1.8s ease-in-out infinite;
  filter: blur(0.4px);
}
.hero-goal.is-full .lava {
  box-shadow: 0 -12px 26px rgba(255, 180, 40, 0.7);
}
.bubble {
  position: absolute;
  bottom: 8%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 230, 140, 0.7);
  animation: lava-bubble 2.6s ease-in infinite;
}
.bubble.b1 { left: 18%; animation-delay: 0s; }
.bubble.b2 { left: 48%; width: 5px; height: 5px; animation-delay: 0.7s; }
.bubble.b3 { left: 70%; animation-delay: 1.3s; }
.bubble.b4 { left: 34%; width: 4px; height: 4px; animation-delay: 1.9s; }
.bucket-band {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.05rem;
  height: 0.28rem;
  background: linear-gradient(90deg, #3a3a3a, #b8b8b8, #3a3a3a);
  z-index: 2;
}
.bucket-pct {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffc56a;
  text-shadow: 0 0 10px rgba(255, 140, 30, 0.45);
}
@keyframes lava-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}
@keyframes lava-shimmer {
  0% { transform: translateX(0); }
  100% { transform: translateX(18px); }
}
@keyframes lava-wobble {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-6%) scaleY(1.15); }
}
@keyframes lava-bubble {
  0% { transform: translateY(0) scale(0.7); opacity: 0; }
  20% { opacity: 0.9; }
  100% { transform: translateY(-42px) scale(1.1); opacity: 0; }
}

@media (max-width: 820px) {
  .store-hero { grid-template-columns: 1fr; }
  .hero-goal { width: 100%; }
}

/* ---------------------------------------------------------------- category tabs */

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.category-tabs a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.category-tabs a:hover { color: var(--text); border-color: var(--border-hot); text-decoration: none; }
.category-tabs a.active { color: #fff; background: var(--crimson); border-color: var(--crimson); }

.category-section { margin-bottom: 2.25rem; }
.category-section h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------------- product cards */

.store-main.store-home,
.store-main.store-category {
  max-width: 1360px;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18.5rem;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 980px) {
  .store-layout { grid-template-columns: 1fr; }
  .donor-board { position: static; }
}

.donor-board {
  position: sticky;
  top: var(--sticky-offset);
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: calc(100vh - var(--sticky-offset) - 1rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.donor-featured,
.donor-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.05rem;
}
.donor-featured {
  background:
    linear-gradient(160deg, rgba(196, 51, 17, 0.22), rgba(20, 20, 20, 0.15) 58%),
    var(--surface);
  border-color: var(--border-hot);
}
.donor-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0b27a;
}
.donor-featured h2,
.donor-list h3 {
  margin: 0.2rem 0 0.75rem;
  font-size: 1.05rem;
}
.donor-list h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}
.donor-star {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}
.donor-star img,
.donor-row img {
  border-radius: 8px;
  background: var(--bg-2);
  flex-shrink: 0;
}
.donor-name {
  display: block;
  font-size: 1.15rem;
  line-height: 1.2;
}
.donor-amount {
  margin: 0.2rem 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.donor-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.donor-row {
  display: grid;
  grid-template-columns: 1.4rem 32px minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.35rem 0.3rem;
  border-radius: 8px;
}
.donor-row.is-first {
  background: rgba(196, 51, 17, 0.12);
}
.donor-rank {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
}
.donor-who {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 600;
}
.donor-spent {
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #eee;
  white-space: nowrap;
}
.donor-empty { margin: 0; font-size: 0.85rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover,
.product-card:focus-within {
  overflow: visible;
  z-index: 30;
  border-color: var(--border-hot);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.product-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.product-card:hover .product-media,
.product-media:focus-within {
  overflow: visible;
  z-index: 5;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sale-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: var(--crimson);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.price-was {
  color: var(--muted);
  font-weight: 600;
  text-decoration: line-through;
  margin-right: 0.35rem;
}
.sale-banner {
  background: linear-gradient(90deg, #c43311, #e8431f);
  color: #fff;
  text-align: center;
  font-weight: 600;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
}
.sale-banner strong { letter-spacing: 0.12em; margin-right: 0.4rem; }
.emu-banner {
  background: linear-gradient(90deg, #b8860b, #e5a50a);
  color: #1d1d1d;
  text-align: center;
  font-weight: 600;
  padding: 0.55rem 1rem;
  letter-spacing: 0.02em;
}
.emu-banner strong { letter-spacing: 0.12em; margin-right: 0.4rem; }

.product-info { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.product-info h3 { font-size: 1.02rem; line-height: 1.3; }
.product-info h3 a { color: var(--text); }
.product-desc { color: var(--muted); font-size: 0.85rem; flex: 1; }

.product-buy { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.4rem; }
.price { font-weight: 800; color: var(--crimson-hot); font-size: 1.05rem; }
.price-lg { font-size: 1.6rem; }
.price-interval { font-size: 0.72em; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------- buttons & forms */

.buy-btn {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
}
.buy-btn:hover { background: var(--crimson-hot); text-decoration: none; }

.ghost-btn {
  display: inline-block;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}
.ghost-btn:hover { color: var(--text); border-color: var(--border-hot); text-decoration: none; }
.ghost-btn.danger:hover { color: var(--crimson-hot); }

.inline-form { display: inline-block; }

input[type="text"], input[type="number"], input[type="url"], input[type="file"], textarea, select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.55rem 0.75rem;
  font-family: var(--font);
  font-size: 0.92rem;
}

input:focus, textarea:focus, select:focus { outline: 2px solid var(--border-hot); }

.form-error {
  border-left: 4px solid var(--crimson);
  background: rgba(196, 51, 17, 0.12);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}
.form-ok {
  border-left: 4px solid var(--green);
  background: rgba(63, 174, 90, 0.12);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}
.form-warn {
  border-left: 4px solid var(--gold);
  background: rgba(229, 165, 10, 0.14);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}
.is-hidden { display: none !important; }

.warn {
  border-left: 4px solid var(--gold);
  background: rgba(229, 165, 10, 0.1);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
}

/* ---------------------------------------------------------------- product detail */

.crumbs { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 2rem;
  align-items: start;
}

.detail-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
}
.detail-media-art {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  z-index: 2;
}
.detail-media-art > img { display: block; width: 100%; }
.detail-media .mc-item-slots {
  z-index: 4;
}
.detail-media .mc-tooltip-static {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: none;
  width: 100%;
  border-radius: 0 0 var(--radius) var(--radius);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.mc-item-slots {
  position: absolute;
  left: 0.45rem;
  bottom: 0.45rem;
  display: flex;
  gap: 0.28rem;
  z-index: 5;
}
.mc-item-slot {
  position: relative;
  width: 40px;
  height: 40px;
  background: #1d1d1d;
  border: 2px solid #111;
  box-shadow: inset 1px 1px 0 #3a3a3a, inset -1px -1px 0 #000;
  image-rendering: pixelated;
  cursor: default;
}
.mc-item-icon {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  isolation: isolate;
}
.mc-item-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
  position: relative;
  z-index: 1;
  image-rendering: pixelated;
}
.mc-glint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  -webkit-mask-image: var(--mc-icon);
  mask-image: var(--mc-icon);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.mc-glint::before,
.mc-glint::after {
  content: "";
  position: absolute;
  inset: -150%;
  background-image: linear-gradient(
    110deg,
    transparent 0%,
    rgba(255, 90, 255, 0.0) 28%,
    rgba(255, 255, 255, 0.85) 48%,
    rgba(186, 80, 255, 0.7) 58%,
    transparent 78%
  );
  animation: mc-glint 2s linear infinite;
}
.mc-glint::after {
  animation-duration: 3.1s;
  animation-direction: reverse;
  opacity: 0.65;
}
@keyframes mc-glint {
  from { transform: translate3d(-30%, -30%, 0) rotate(8deg); }
  to { transform: translate3d(30%, 30%, 0) rotate(8deg); }
}
.mc-item-count {
  position: absolute;
  right: 1px;
  bottom: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}
.mc-tooltip,
.mc-tooltip-hover,
.mc-tooltip-static {
  background: #100010;
  border: 2px solid #25005b;
  box-shadow: 0 0 0 2px #100010, inset 0 0 0 1px #18051f;
  color: #aaa;
  padding: 0.55rem 0.7rem;
  min-width: 200px;
  max-width: min(32rem, calc(100vw - 1.5rem));
  font-family: "Minecraft", "Unifont", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.35;
  z-index: 40;
}
.mc-tooltip-hover {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  pointer-events: none;
  width: max-content;
  z-index: 80;
}
.mc-tooltip-hover.is-fixed {
  position: fixed;
  bottom: auto;
}
.mc-item-slot:hover .mc-tooltip-hover,
.mc-item-slot:focus .mc-tooltip-hover {
  display: block;
}
.mc-item-slots.is-persistent .mc-tooltip-hover {
  display: none !important;
}
.mc-item-slots.is-persistent .mc-item-slot {
  cursor: pointer;
}
.mc-item-slots.is-persistent .mc-item-slot.is-active {
  outline: 2px solid #c084fc;
  outline-offset: 1px;
  z-index: 4;
}
.mc-tooltip-static {
  position: relative;
  margin-top: 0.75rem;
  left: auto;
  bottom: auto;
  max-width: 100%;
}
.mc-tip-name { margin-bottom: 0.2rem; font-size: 16px; }
.mc-tip-enchant,
.mc-tip-lore,
.mc-tip-attr { white-space: normal; }
.mc-tip-attr-header {
  color: #aaa;
  margin-top: 0.4rem;
}
.mc-tip-enchant span,
.mc-tip-lore span,
.mc-tip-name span { font-family: inherit; }
.catalog-picker { display: grid; gap: 0.55rem; }
.catalog-picker-heading {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.catalog-selected { display: grid; gap: 0.4rem; }
.catalog-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.4rem;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}
.catalog-row-name { color: var(--text); font-size: 0.9rem; }
.catalog-available { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.catalog-available .ghost-btn { font-size: 0.82rem; }
.command-preview {
  background: #111;
  border: 1px solid var(--border);
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.82rem;
}
.approval-history { list-style: none; padding: 0; }
.approval-history li { margin-bottom: 0.5rem; }
.approval-actions { display: grid; gap: 1rem; margin-top: 1.2rem; }
.revision-note {
  border-left: 3px solid var(--crimson);
  padding: 0.4rem 0.75rem;
  margin: 0.5rem 0 1rem;
}

.detail-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 0.2rem; }
.detail-category { color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.78rem; margin-bottom: 1rem; }
.detail-desc p { margin-bottom: 0.6rem; color: #ddd; }

.perk-list { list-style: none; margin: 1rem 0; }
.perk-list li {
  padding: 0.45rem 0 0.45rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.perk-list li::before { content: "✦"; color: var(--crimson-hot); position: absolute; left: 0; }

.detail-buy {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 1.25rem 0 0.75rem;
  flex-wrap: wrap;
}

.qty-form { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.qty-form:has(.buyer-fields) {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}
.qty-form label { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.85rem; }
.qty-form input[type="number"], .qty-inline input[type="number"] { width: 4.6rem; }
.qty-inline { display: flex; gap: 0.4rem; align-items: center; }
.qty-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.detail-buy:has(.buyer-fields) { flex-direction: column; align-items: stretch; }
.detail-buy:has(.buyer-fields) .price-lg { align-self: flex-start; }

.detail-note { color: var(--muted); font-size: 0.82rem; margin-top: 0.75rem; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }

.store-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.store-table th, .store-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.store-cart .store-table td { vertical-align: top; }

.store-table th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-2);
}

.store-table tfoot td { font-size: 1rem; border-bottom: none; background: var(--bg-2); }
.store-table .thumb { width: 52px; height: 34px; object-fit: cover; border-radius: 6px; display: block; }
.row-actions { white-space: nowrap; }
.row-actions form { margin: 0 0.15rem; }
.row-actions .category-delete { white-space: normal; }

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
}
.status-completed, .status-active, .status-answered { color: var(--green); border-color: rgba(63, 174, 90, 0.5); background: rgba(63, 174, 90, 0.1); }
.status-pending, .status-past_due, .status-open { color: var(--gold); border-color: rgba(229, 165, 10, 0.5); background: rgba(229, 165, 10, 0.08); }
.status-cancelled, .status-failed, .status-closed { color: var(--muted); }
.status-refunded { color: var(--crimson-hot); border-color: var(--border-hot); background: rgba(196, 51, 17, 0.1); }

/* ---------------------------------------------------------------- cart / checkout */

.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 1rem;
  font-size: 1.1rem;
  margin: 1.25rem 0;
}
.cart-summary strong { font-size: 1.5rem; color: var(--crimson-hot); }

.cart-actions { display: flex; gap: 0.75rem; justify-content: flex-end; flex-wrap: wrap; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.checkout-form, .checkout-summary, .result-panel, .auth-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.checkout-summary {
  position: sticky;
  top: var(--sticky-offset);
  z-index: 5;
}

.checkout-form h2, .checkout-summary h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 1.25rem 0 0.75rem; }
.checkout-form h2:first-child { margin-top: 0; }
.checkout-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }

.checkout-items {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.checkout-items-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.checkout-items-head h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0;
}
.checkout-items-head a { font-size: 0.82rem; }
.checkout-line {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border);
}
.checkout-line-media {
  position: relative;
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.checkout-line-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.checkout-line-media .sale-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.62rem;
}
.checkout-line-info h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
  line-height: 1.3;
}
.checkout-line-info h3 a { color: var(--text); }
.checkout-line-cat, .checkout-line-unit {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}
.checkout-line-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}
.checkout-line-total {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.15rem;
}
.qty-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: 6px;
}
.qty-btn:hover:not(:disabled) { background: var(--surface); color: var(--crimson-hot); }
.qty-btn:disabled { opacity: 0.35; cursor: default; }
.qty-value-form input[type="number"] {
  width: 2.6rem;
  text-align: center;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  padding: 0.2rem 0;
  -moz-appearance: textfield;
}
.qty-value-form input[type="number"]::-webkit-outer-spin-button,
.qty-value-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-remove { font-size: 0.75rem; padding: 0.2rem 0.55rem; }

@media (max-width: 700px) {
  .checkout-line {
    grid-template-columns: 72px 1fr;
  }
  .checkout-line-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.provider-list { display: flex; flex-direction: column; gap: 0.55rem; }

.provider-option {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  font-size: 0.92rem;
}
.provider-option:hover { border-color: var(--border-hot); }
.provider-option:has(input:checked) {
  border-color: var(--crimson);
  background: rgba(185, 28, 28, 0.08);
}
.provider-option input { accent-color: var(--crimson); width: auto; margin-top: 0.28rem; }
.provider-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.provider-main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}
.provider-name { font-weight: 700; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.provider-perk {
  display: inline-block;
  background: #14532d;
  color: #bbf7d0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}
.provider-option.is-paypal-perk {
  border-color: #166534;
  background: rgba(20, 83, 45, 0.12);
  box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.25);
}
.provider-option.is-paypal-perk:hover,
.provider-option.is-paypal-perk:has(input:checked) {
  border-color: #22c55e;
  background: rgba(20, 83, 45, 0.2);
}
.paypal-us-note {
  margin: 0 0 0.75rem;
  padding: 0.7rem 0.9rem;
  background: rgba(20, 83, 45, 0.2);
  border: 1px solid #166534;
  color: #bbf7d0;
  border-radius: 0.65rem;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
}
.paypal-us-note strong { color: #dcfce7; }
.provider-price { font-weight: 700; white-space: nowrap; }
.provider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.provider-hint {
  color: var(--muted);
  font-size: 0.78rem;
  flex: 1 1 10rem;
}
.provider-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem;
  flex: 1 1 12rem;
}
.pay-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.18rem 0.38rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
}
.pay-chip img {
  height: 0.95rem;
  width: auto;
  max-width: 1.7rem;
  display: block;
}
.pay-chip.is-round img {
  width: 1.15rem;
  height: 1.15rem;
  max-width: 1.15rem;
  border-radius: 50%;
}

.wallet-row { margin-bottom: 0.75rem; }

.coupon-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}
.coupon-row input[type="text"] {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.coupon-row input[type="text"]:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(196, 51, 17, 0.18);
}
.coupon-row #coupon-apply {
  flex-shrink: 0;
  min-width: 5.5rem;
}
.coupon-status {
  min-height: 1.2rem;
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.coupon-status.is-ok { color: #8ee0a2; }
.coupon-status.is-bad { color: #ff8a7a; }
#quote-discount-row td { color: #8ee0a2; }
.coupon-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem 1rem;
  margin: 0.4rem 0 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.coupon-fieldset legend {
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.coupon-fieldset .check-label input[type="number"],
.coupon-fieldset .check-label input[type="datetime-local"] {
  width: auto;
}

.billing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.15rem;
  margin-bottom: 0.35rem;
}
.billing-card h2 { margin-top: 0 !important; }

.charity-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 180, 60, 0.28), transparent 42%),
    linear-gradient(135deg, #3a1a10 0%, #7a2a14 48%, #c43311 100%);
  border: 1px solid rgba(255, 176, 70, 0.45);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1.2rem;
  margin-bottom: 0.35rem;
  box-shadow: 0 10px 28px rgba(196, 51, 17, 0.22);
}
.charity-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 40%;
  height: 8rem;
  background: radial-gradient(circle, rgba(255, 210, 90, 0.22), transparent 70%);
  pointer-events: none;
}
.charity-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}
.charity-card h2 {
  margin: 0 !important;
  color: #fff8e8;
  letter-spacing: 0.04em;
}
.charity-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a1608;
  background: linear-gradient(180deg, #ffe08a, #ffb347);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}
.charity-copy {
  position: relative;
  color: #ffe8c8;
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0 0 0.9rem;
}
.charity-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.charity-chip {
  border: 1px solid rgba(255, 220, 150, 0.35);
  background: rgba(20, 10, 6, 0.35);
  color: #fff3d6;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.charity-chip:hover { border-color: #ffd27a; text-decoration: none; }
.charity-chip.is-active {
  background: linear-gradient(180deg, #ffe08a, #ff9a2a);
  color: #3a1608;
  border-color: transparent;
}
.charity-chip--skip { opacity: 0.8; font-weight: 600; }
.charity-custom {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffd9a0;
}
.charity-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(12, 8, 6, 0.45);
  border: 1px solid rgba(255, 210, 120, 0.35);
  border-radius: 8px;
  padding: 0.15rem 0.75rem;
  color: #ffe8c8;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.charity-input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff8e8;
  font: inherit;
  padding: 0.55rem 0;
  outline: none;
}
.billing-hint {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0 0 0.9rem;
}
.quote-note {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 0.85rem;
  margin-bottom: 0;
}
.billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.billing-grid--single {
  grid-template-columns: 1fr;
}
.billing-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.billing-field.is-hidden { display: none !important; }
.billing-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.billing-field select {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}
.billing-field select:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(196, 51, 17, 0.18);
}
.checkout-summary.is-updating #quote-total,
.checkout-summary.is-updating #quote-tax,
.checkout-summary.is-updating #quote-fee,
.checkout-summary.is-updating #quote-discount,
.checkout-summary.is-updating #quote-donation {
  opacity: 0.55;
}
.store-table tr.is-hidden { display: none; }
.store-table #quote-tax,
.store-table #quote-fee,
.store-table #quote-total,
.store-table #quote-subtotal,
.store-table #quote-discount,
.store-table #quote-donation,
.store-table #quote-wallet {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.checkout-summary .store-table td:last-child,
.result-panel .store-table td:last-child {
  text-align: right;
}

.consent-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.86rem;
  color: #ddd;
  border: 1px solid var(--border-hot);
  background: rgba(196, 51, 17, 0.07);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  cursor: pointer;
}
.consent-check input { margin-top: 0.25rem; accent-color: var(--crimson); width: auto; }

.recipient-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
@media (max-width: 640px) {
  .recipient-choices { grid-template-columns: 1fr; }
}
.recipient-choice {
  align-items: flex-start;
  min-height: 4.4rem;
}
.recipient-choice span {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.recipient-choice .choice-sub {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}
.recipient-choice:has(input:checked) {
  border-color: var(--crimson);
  background: rgba(196, 51, 17, 0.1);
}
.gift-fields {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 0.15rem;
}
.gift-fields.is-hidden { display: none !important; }
.gift-fields .billing-field input[type="text"] {
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 0.95rem;
}
.gift-fields .billing-field input[type="text"]:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(196, 51, 17, 0.18);
}
.gift-subhead {
  margin: 0.5rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.gift-inbox { margin: 1.25rem 0; }
.gift-offer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  border: 1px solid var(--border-hot);
  background: rgba(196, 51, 17, 0.08);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
}
.gift-offer p { margin: 0.35rem 0 0; }
.gift-offer-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.status-badge.status-pending_accept { background: #5c4a12; color: #f5d76e; }
.status-badge.status-accepted { background: #1e4d32; color: #8ee0b0; }
.status-badge.status-declined_collateral { background: #4a2a12; color: #f0b27a; }

.checkout-btn { width: 100%; margin-top: 1.25rem; padding: 0.75rem; font-size: 1rem; }

/* ---------------------------------------------------------------- auth */

.store-auth { display: flex; justify-content: center; }
.auth-panel { max-width: 32rem; width: 100%; margin-top: 2rem; }
.auth-panel h1 { margin-bottom: 0.75rem; }
.auth-panel p { color: #ddd; margin-bottom: 0.75rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.6rem; margin: 1.25rem 0; }
.auth-form label { color: var(--muted); font-size: 0.85rem; }
.auth-note { color: var(--muted); font-size: 0.82rem; }

.link-command {
  display: block;
  font-family: ui-monospace, monospace;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  background: var(--bg-2);
  border: 1px dashed var(--border-hot);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.25rem 0;
  cursor: pointer;
  letter-spacing: 0.06em;
}

.link-wait { color: var(--muted); font-size: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.link-wait.linked { color: var(--green); }
.link-wait.expired { color: var(--crimson-hot); }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--crimson-hot);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- result / account */

.result-panel { max-width: 40rem; margin: 2rem auto; }
.result-panel h1 { margin-bottom: 0.5rem; }
.result-panel .order-id { color: var(--muted); font-size: 0.88rem; margin: 0.75rem 0 1.25rem; }
.result-panel .store-table { margin-bottom: 1.5rem; }

.account-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.account-header img { border-radius: 8px; }
.account-header h1 { font-size: 1.6rem; }

.account-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 1.75rem;
}

.account-stats div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}

.account-stats strong { display: block; font-size: 1.35rem; color: var(--crimson-hot); }
.account-stats span { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }

.store-account section { margin-top: 2rem; }
.store-account h2 { font-size: 1.05rem; margin-bottom: 0.75rem; }

/* ---------------------------------------------------------------- admin */

.admin-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.85rem;
}

.admin-nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.admin-nav a:hover { color: var(--text); text-decoration: none; }
.admin-nav a.active { color: #fff; background: var(--crimson); }

.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.admin-header-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.category-delete {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.category-delete select {
  width: auto;
  min-width: 9rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
}

.admin-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 62rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem 1.25rem;
}

.admin-form label { color: var(--muted); font-size: 0.84rem; display: flex; flex-direction: column; gap: 0.3rem; }
.admin-form .check-label { flex-direction: row; align-items: center; gap: 0.5rem; }
.admin-form .check-label input { width: auto; accent-color: var(--crimson); }
.admin-form .full { width: 100%; }
.ppp-input { width: 5.5rem; }

.image-fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.image-fieldset legend { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0 0.4rem; }

.store-admin section { margin-top: 2rem; }
.store-admin h2 { font-size: 1.05rem; margin-bottom: 0.75rem; }

/* ---------------------------------------------------------------- footer */

.legal-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 1.25rem 2.25rem;
  max-width: 900px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.mojang-disclaimer {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  margin-bottom: 0.85rem;
  border-left: 4px solid var(--crimson);
  background: rgba(196, 51, 17, 0.12);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.mojang-disclaimer-note { font-size: 0.82rem; color: var(--muted); }
.legal-footer p { margin-bottom: 0.65rem; }
.footer-links a { color: var(--muted); }
.copy-target.copied { outline: 2px solid var(--crimson); }

.ticket-thread { display: flex; flex-direction: column; gap: 0.85rem; margin: 1.25rem 0; }
.ticket-msg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
}
.ticket-msg.staff { border-color: var(--border-hot); background: rgba(196, 51, 17, 0.08); }
.ticket-msg-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.ticket-msg-body p { margin: 0.35rem 0; }
.ticket-order-ref {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0.75rem 0;
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .product-detail { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .billing-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------- buyer fields / prefix generator */

.buyer-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  margin: 0.35rem 0 0.15rem;
}
.buyer-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}
.buyer-field input[type="text"],
.buyer-field textarea,
.buyer-field select {
  width: 100%;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font: inherit;
  font-weight: 500;
}
.buyer-field input[type="text"]:focus,
.buyer-field textarea:focus,
.buyer-field select:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(196, 51, 17, 0.18);
}
.buyer-fields-form {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}
.buyer-card-product {
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
}
.buyer-card-product:first-of-type { border-top: 0; padding-top: 0; }
.buyer-card-product h3 {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}
.buyer-preview { margin-top: 0.45rem; }
.buyer-preview-row {
  font-size: 0.78rem;
  color: var(--text);
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
}
.order-options {
  margin: 0.4rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.order-options dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.order-options dd { font-size: 0.85rem; }
.prefix-code {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
  word-break: break-all;
}

.prefix-gen {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.prefix-hint { color: var(--muted); font-size: 0.78rem; font-weight: 500; margin: 0; }
.prefix-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.prefix-colors { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.prefix-color {
  position: relative;
  display: block;
}
.prefix-color-input {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.prefix-remove-color {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}
.prefix-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
}
.prefix-fmt-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.prefix-stage {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
}
.prefix-preview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.prefix-preview {
  font-family: "Minecraft", "Courier New", monospace;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  min-height: 1.6rem;
  margin: 0;
  word-break: break-word;
}
.prefix-preview-inline {
  font-family: "Minecraft", "Courier New", monospace;
  font-size: 1rem;
}
.prefix-codes {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}
.prefix-codes dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.prefix-codes dd { margin: 0.15rem 0 0; }
.prefix-codes code {
  display: block;
  font-size: 0.75rem;
  color: #d8d8d8;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
}

/* ---------------------------------------------------------------- crypto pay */

.crypto-coins {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 0.65rem;
  margin: 1.1rem 0 0.75rem;
}
.crypto-coin {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.7rem;
  text-align: left;
  padding: 0.75rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}
.crypto-coin:hover, .crypto-coin:focus {
  border-color: var(--crimson);
  outline: none;
}
.crypto-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 50%;
  background: #111;
}
.crypto-coin-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}
.crypto-coin-text strong {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}
.crypto-coin-text span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.crypto-network {
  background: rgba(185, 28, 28, 0.16);
  border: 1px solid var(--crimson);
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
  text-align: center;
  margin: 0.85rem 0 1rem;
}
.crypto-network-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.crypto-network-head .crypto-icon {
  width: 2rem;
  height: 2rem;
}
.crypto-network-head div {
  text-align: left;
}
.crypto-network span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.crypto-network strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}
.crypto-network p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
}
.crypto-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 1rem auto;
  background: #fff;
  border-radius: 12px;
  padding: 0.5rem;
}
.crypto-amount {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.4rem 0 0.6rem;
}
.crypto-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
  word-break: break-all;
  text-align: center;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed var(--border-hot);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
}
.crypto-wait {
  text-align: center;
  color: var(--muted);
  margin-top: 1rem;
}
.crypto-wait::before {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.45rem;
  border: 2px solid var(--border);
  border-top-color: var(--crimson);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: -0.12rem;
}

/* ---------------------------------------------------------------- credits page */

.credits-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(229, 165, 10, 0.18), rgba(18, 6, 5, 0.45) 60%),
    var(--surface);
  padding: 1.35rem 1.5rem;
  margin: 0 0 1.5rem;
}
.credits-cta h2 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.credits-cta p { margin: 0; color: #ddd; max-width: 42rem; }
.credits-hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(229, 165, 10, 0.22), rgba(18, 6, 5, 0.55) 55%),
    var(--surface);
  padding: 2.2rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.credits-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; }
  .credits-hero h1 span { color: var(--crimson-hot); }
  .credits-hero p { color: #ddd; max-width: 46rem; margin-top: 0.5rem; }
  .credits-top-hero { margin-bottom: 0.75rem; }
  .credits-top-panel {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.1rem 1.2rem;
    margin-bottom: 1rem;
  }
  .credits-top-tabs { margin-bottom: 1rem; }
  .credits-top-table .credits-top-rank {
    width: 3rem;
    font-weight: 700;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
  }
  .credits-top-table .credits-top-who {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
  }
  .credits-top-table .credits-top-who img { border-radius: 4px; }
  .credits-top-table .num {
    text-align: right;
    font-weight: 700;
    color: #e5a50a;
    white-space: nowrap;
  }
  .credits-top-meta { margin: 0.65rem 0 0; font-size: 0.85rem; }
  .page-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-top: 1rem;
  }
  .page-nav a {
    color: var(--text);
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    text-decoration: none;
  }
  .page-nav a:hover { border-color: var(--crimson); text-decoration: none; }
  .page-nav-status { color: var(--muted); font-size: 0.9rem; }
  .page-nav-disabled { color: var(--muted); opacity: 0.55; font-size: 0.9rem; }
  .credits-gift-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.35rem;
  margin: 1.1rem 0 1.4rem;
}
.credits-gift-bar h2 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1.1rem;
}
.credits-pack {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.credits-pack.is-featured {
  border-color: #e5a50a;
  box-shadow: 0 12px 28px rgba(229, 165, 10, 0.18);
}
.credits-pack h3 {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
}
.credits-price { margin: 0.15rem 0 0; }
.credits-save, .credits-rate {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.credits-save { color: #e5a50a; font-weight: 600; }
.credits-pack-form { margin-top: 0.55rem; }
.credits-pack-form .buy-btn { width: 100%; }
.credits-more {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  text-align: center;
}
.credits-more a { color: var(--muted); }
.credits-pack-badge {
  align-self: flex-start;
  background: var(--crimson);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}
.credits-pack-badge.is-best {
  background: #e5a50a;
  color: #1d1d1d;
}
@media (max-width: 640px) {
  .credits-cta { padding: 1.1rem; }
  .credits-hero { padding: 1.4rem 1.1rem; }
}
