/* donutbuy — blue + beige donut palette, roomy layout */

/* Classic Minecraft font (self-hosted so the logo always hits it) */
@font-face {
  font-family: "Minecraft";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src:
    local("Minecraft"),
    url("assets/fonts/minecraft.woff2") format("woff2"),
    url("assets/fonts/minecraft.woff") format("woff");
}

:root {
  /* Donut palette: sky blue + dough beige (no red accent) */
  --bg: #0a0e16;
  --panel: #121926;
  --panel-2: #182232;
  --line: #2a3a52;
  --line-hot: #3d5474;
  --text: #f6f0e6;
  --muted: #a8b4c4;
  --faint: #758499;
  /* primary action = blue (btn--red class name kept for HTML) */
  --red: #4a9eff;
  --red-dim: #3a82d6;
  --blue: #4a9eff;
  --blue-dim: #3a82d6;
  --blue-deep: #1e4f8c;
  --green: #5dcea0;
  /* frosting / dough accents */
  --yellow: #e8d4b0;
  --beige: #e8d4b0;
  --beige-deep: #c4a574;
  --mc-blue: #6eb0ff;
  --mc-blue-shadow: #1a3a66;
  --font: "Minecraft", monospace;
  --mono: "Minecraft", monospace;
  /* narrower + roomier so UI isn’t wall-to-wall crammed */
  --max: 1080px;
  --pad: clamp(1.5rem, 5vw, 3rem);
  --gap: 2rem;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mc-item--enchanted .mc-glint,
  .top-strip__inner {
    animation: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -12%, rgba(74, 158, 255, 0.12), transparent 58%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(232, 212, 176, 0.04), transparent 50%),
    var(--bg);
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
  font-smooth: never;
  overflow-x: clip;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--text);
}

a:hover {
  color: #fff;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* —— strip —— */
.top-strip {
  background: #050505;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
}

.top-strip__inner {
  display: flex;
  gap: 2.5rem;
  padding: 0.5rem var(--pad);
  white-space: nowrap;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.top-strip strong {
  color: var(--yellow);
  font-weight: 400;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* —— header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 10, 14, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem var(--pad);
  padding-left: max(var(--pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--pad), env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
  flex: 0 1 auto;
}

.logo:hover {
  color: #fff;
}

.logo:hover .logo__mark {
  box-shadow: 0 0 0 2px #2a3a5a, 0 0 22px rgba(55, 140, 255, 0.55);
  transform: translateY(-1px);
}

/* Baked asset: assets/logo-buy.png (DonutSMP donut + centered BUY) */
.logo__mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  image-rendering: auto;
  box-shadow: 0 0 0 2px #1e2a40, 0 0 14px rgba(74, 158, 255, 0.35);
  transition: box-shadow 0.15s, transform 0.15s;
  background: #0a0e16;
}

.logo__word {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 2px 2px 0 #1a2436;
  font-family: "Minecraft", monospace;
}

.logo__word-buy {
  color: var(--mc-blue) !important;
  font-size: inherit !important;
  text-shadow: 2px 2px 0 var(--mc-blue-shadow) !important;
  text-transform: uppercase;
}

.logo__word span:not(.logo__word-buy) {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  gap: 1.65rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 400;
}

.nav a:hover {
  color: var(--beige);
}

.nav a.is-current {
  color: var(--blue);
}

.page-tag {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--beige);
  letter-spacing: 0.08em;
}

.hero--stock {
  padding-bottom: 2.25rem;
}

/* dashboard preview cards (link out to stock) */
.dash-grid {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 900px) {
  .dash-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dash-card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, background 0.12s;
}

.dash-card:hover {
  border-color: var(--blue-deep);
  background: var(--panel-2);
  color: inherit;
}

.dash-card__stage {
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    #0a0e16;
  border-bottom: 1px solid var(--line);
  height: clamp(160px, 18vw, 220px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.dash-card__body {
  padding: 1.35rem 1.4rem 1.55rem;
}

.dash-card__body h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.dash-card__meta {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.dash-cta {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

.cart-btn {
  position: relative;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 0.88rem;
  background: var(--panel);
}

.cart-btn:hover {
  border-color: #666;
}

.cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.6rem;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-btn__count[data-count="0"],
.cart-btn__count:empty {
  display: none;
}

/* —— hero —— */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.25rem var(--pad) 3.5rem;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  margin: 0 0 1.15rem;
  font-size: clamp(1.45rem, 3.2vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.45;
  max-width: 22ch;
  text-shadow: 2px 2px 0 #1a2436;
}

.hero__lead {
  margin: 0 0 1.85rem;
  color: var(--muted);
  max-width: 42ch;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}

.hero__row a.btn {
  text-decoration: none;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--faint);
}

.hero-stats b {
  color: var(--text);
  font-weight: 400;
}

/* —— buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 400;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
  line-height: 1.2;
}

.btn:focus-visible,
.qty-btn:focus-visible,
.chip:focus-visible,
.faq__q:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* class kept as btn--red for HTML compatibility — paints blue */
.btn--red {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 0 var(--blue-deep);
}

.btn--red:hover {
  background: var(--red-dim);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-hot);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: #666;
  background: var(--panel);
}

.btn--dark {
  background: #1a1a1a;
  border-color: var(--line-hot);
  color: var(--text);
}

.btn--dark:hover {
  background: #222;
}

/* empty cart link on parchment drawer uses dark btn */
.cart-empty .btn--dark {
  color: #efe6d8;
  background: #1c1410;
  border-color: #3d2e26;
  text-decoration: none;
}
.cart-empty .btn--dark:hover {
  background: #000;
  color: #fff;
}

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: 0.4rem 0.7rem;
  font-size: 0.8rem;
}

/* —— promo —— */
.promo {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 0;
}

.promo__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  font-size: 1rem;
  color: var(--muted);
}

.promo__card strong {
  color: var(--text);
}

.code-pill {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--yellow);
  background: #000;
  border: 1px dashed #5a4a20;
  padding: 0.25rem 0.55rem;
  border-radius: 2px;
}

/* —— shop —— */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem var(--pad) 4.75rem;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem 1.75rem;
  margin-bottom: 2.5rem;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  text-shadow: 2px 2px 0 #1a2436;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.shop-grid {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .nav {
    display: flex;
  }
}

/* product card */
.product {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.product__stage {
  position: relative;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 24px,
    #0a0e16;
  border-bottom: 1px solid var(--line);
  height: clamp(200px, 24vw, 280px);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, #000 95%);
  pointer-events: none;
}

.product__body {
  padding: 1.75rem 1.65rem 1.85rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.product__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.product h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.product__price {
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--beige);
  font-weight: 400;
  margin-top: 0.3rem;
}

.stock {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--green);
  white-space: nowrap;
}

.stock--low {
  color: var(--beige-deep);
}

.product__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.65;
}

/* —— minecraft item display —— */
.mc-item {
  position: relative;
  width: clamp(100px, 12vw, 150px);
  height: clamp(100px, 12vw, 150px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 1;
  filter: drop-shadow(0 8px 0 rgba(0, 0, 0, 0.5));
}

.mc-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* larger for elytra wings feel */
.mc-item--lg {
  width: clamp(110px, 13vw, 165px);
  height: clamp(110px, 13vw, 165px);
}

/* spawner is a block — slightly larger cage */
.mc-item--block {
  width: clamp(105px, 12.5vw, 160px);
  height: clamp(105px, 12.5vw, 160px);
}

/* enchanted purple/blue shimmer (minecraft-style) */
.mc-item--enchanted {
  isolation: isolate;
}

.mc-item--enchanted .mc-glint {
  position: absolute;
  inset: -20%;
  background: url("assets/glint.png") center / 200% repeat;
  mix-blend-mode: color-dodge;
  opacity: 0.55;
  pointer-events: none;
  animation: glint-slide 3.2s linear infinite;
  /* mask to item shape — fallback full rect if mask unsupported */
  -webkit-mask-image: var(--item-mask);
  mask-image: var(--item-mask);
  -webkit-mask-size: 70% 70%;
  mask-size: 70% 70%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.mc-item--enchanted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 20%,
    rgba(180, 80, 255, 0.25) 40%,
    rgba(80, 140, 255, 0.3) 55%,
    transparent 75%
  );
  mix-blend-mode: screen;
  pointer-events: none;
  animation: glint-sweep 2.8s ease-in-out infinite;
}

@keyframes glint-slide {
  from {
    background-position: 0% 0%;
  }
  to {
    background-position: 200% 200%;
  }
}

@keyframes glint-sweep {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-8%);
  }
  50% {
    opacity: 0.85;
    transform: translateX(8%);
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line-hot);
  background: #0a0e16;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  border-radius: var(--radius);
}

.chip:hover {
  color: var(--text);
  border-color: var(--blue-deep);
}

.chip.is-active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  font-weight: 400;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.qty-btn {
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--line-hot);
  background: #0a0e16;
  color: var(--text);
  font-size: 1rem;
  border-radius: var(--radius);
  line-height: 1;
}

.qty-btn:hover {
  border-color: #666;
}

.qty-val {
  min-width: 2.75rem;
  text-align: center;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.95rem;
}

.coin-custom {
  flex-wrap: wrap;
}

.coin-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line-hot);
  background: #000;
  border-radius: 2px;
  padding: 0 0.45rem 0 0;
  min-width: 5.5rem;
}

.coin-input-wrap:focus-within {
  border-color: var(--blue);
  outline: 1px solid var(--blue);
}

.coin-input {
  width: 4.5rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  text-align: right;
  padding: 0.45rem 0.25rem 0.45rem 0.45rem;
  -moz-appearance: textfield;
}

.coin-input::-webkit-outer-spin-button,
.coin-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.coin-input:focus {
  outline: none;
}

.coin-input-suffix {
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--beige);
  user-select: none;
}

.coin-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--faint);
  line-height: 1.5;
}

.product__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.product__total span {
  font-size: 0.8rem;
  color: var(--muted);
}

.product__total strong {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--beige);
}

.product__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

/* —— how —— */
.how {
  border-block: 1px solid var(--line);
  background: #0a0e16;
}

.how-flow {
  display: grid;
  gap: 0;
}

@media (min-width: 700px) {
  .how-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .how-step + .how-step {
    border-left: 1px solid var(--line);
  }
}

.how-step {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .how-step {
    border-bottom: none;
  }
}

.how-step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 400;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 34ch;
}

.note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 1rem;
  color: var(--muted);
}

.note strong {
  color: var(--yellow);
}

.note code {
  font-family: var(--mono);
  color: var(--text);
  font-size: 0.85em;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 1rem;
}

.pay-row > span:first-child {
  font-size: 0.75rem;
  color: var(--faint);
  margin-right: 0.2rem;
}

.pay-tag {
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: #000;
}

/* —— faq —— */
.faq {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  width: 100%;
  text-align: left;
  padding: 1.15rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 400;
  font-size: 1.15rem;
}

.faq__q span:last-child {
  font-family: var(--mono);
  color: var(--faint);
  font-weight: 500;
}

.faq__q:hover {
  color: #fff;
}

.faq__a {
  display: none;
  padding: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 56ch;
}

.faq.is-open .faq__a {
  display: block;
}

.faq.is-open .faq__q span:last-child {
  color: var(--red);
}

/* —— footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--pad) 2.5rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr;
  }
}

.site-footer h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
  font-weight: 400;
}

.site-footer p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40ch;
}

.footer-meta {
  margin-top: 1.25rem !important;
  font-size: 0.75rem !important;
  color: var(--faint) !important;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 400;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* —— cart —— */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 380px);
  background: #0a0a0a;
  border-left: 1px solid var(--line);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
}

.cart-drawer__close {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-hot);
  font-size: 1.15rem;
  color: var(--muted);
}

.cart-drawer__close:hover {
  color: var(--text);
  border-color: #666;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 1rem;
}

.cart-empty {
  text-align: center;
  padding: 2.5rem 0.5rem;
  color: var(--muted);
}

.cart-empty p {
  margin: 0 0 0.85rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.6rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.cart-line__name {
  font-weight: 400;
}

.cart-line__meta {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.cart-line__price {
  font-family: var(--mono);
  font-weight: 400;
}

.cart-line__remove {
  grid-column: 2;
  justify-self: end;
  font-size: 0.72rem;
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 400;
}

.cart-drawer__foot {
  padding: 0.9rem 1rem 1.1rem;
  border-top: 1px solid var(--line);
  background: #050505;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.cart-subtotal strong {
  font-family: var(--mono);
  font-size: 1.15rem;
}

.cart-hint {
  margin: 0.55rem 0 0;
  font-size: 0.72rem;
  color: var(--faint);
  text-align: center;
}

/* —— modal —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
}

.modal.is-open {
  display: grid;
}

.modal__panel {
  width: min(100%, 400px);
  background: #0c0c0c;
  border: 1px solid var(--line-hot);
  padding: 1.25rem;
  max-height: min(92vh, 720px);
  overflow-y: auto;
}

.modal__panel--wide {
  width: min(100%, 480px);
}

.modal__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.modal__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  color: var(--green);
  letter-spacing: 0.04em;
}

.modal__panel h2 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
  font-weight: 400;
}

#checkout-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-family: var(--mono);
}

.pay-method-label {
  margin: 0.85rem 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
}

.pay-methods {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.pay-method {
  text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-hot);
  background: #0a0e16;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pay-method:hover {
  border-color: var(--blue-deep);
}

.pay-method.is-active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.pay-method__title {
  font-size: 0.9rem;
  color: var(--text);
}

.pay-method__sub {
  font-size: 0.68rem;
  color: var(--faint);
}

.crypto-intro {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.crypto-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--faint);
  margin-bottom: 0.75rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
}

.crypto-meta b {
  color: var(--muted);
  font-weight: 400;
}

#crypto-rate-status {
  color: var(--green);
  font-family: var(--mono);
}

.crypto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

@media (min-width: 420px) {
  .crypto-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.crypto-coin {
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--line);
  background: #050505;
  border-radius: 3px;
  text-align: center;
  min-height: 3.4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
}

.crypto-coin:hover {
  border-color: #555;
}

.crypto-coin.is-active {
  border-color: var(--yellow);
  background: #12100a;
}

.crypto-coin__sym {
  font-size: 0.85rem;
  color: var(--text);
}

.crypto-coin__net {
  font-size: 0.58rem;
  color: var(--faint);
  line-height: 1.2;
}

.crypto-paybox {
  border: 1px solid var(--line);
  background: #050505;
  padding: 0.85rem;
  border-radius: 3px;
  margin-bottom: 0.9rem;
}

.crypto-label {
  display: block;
  font-size: 0.68rem;
  color: var(--faint);
  margin-bottom: 0.25rem;
}

.crypto-amount-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.crypto-amount {
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--yellow);
  word-break: break-all;
  text-shadow: 2px 2px 0 #3f3f3f;
}

.crypto-usd {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.2rem;
  font-family: var(--mono);
}

.crypto-addr-block {
  margin-bottom: 0.85rem;
}

.crypto-addr-row {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.crypto-addr {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text);
  word-break: break-all;
  line-height: 1.45;
  background: #000;
  border: 1px solid var(--line);
  padding: 0.5rem 0.55rem;
  border-radius: 2px;
}

.crypto-explorer {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.68rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.crypto-explorer:hover {
  color: var(--yellow);
}

.field {
  margin-bottom: 0.8rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line-hot);
  border-radius: 2px;
  background: #000;
  color: var(--text);
}

.field input:focus {
  outline: 2px solid var(--yellow);
  outline-offset: 0;
  border-color: transparent;
}

.field small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--faint);
}

.modal__actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.45rem;
  margin-top: 1rem;
}

.toast {
  position: fixed;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  background: #111;
  border: 1px solid var(--green);
  color: var(--text);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 400;
  z-index: 80;
  transition: transform 0.22s ease;
  max-width: min(90vw, 340px);
  text-align: center;
}

.toast.is-show {
  transform: translateX(-50%) translateY(0);
}

/* ===== animations + reviews + graphics polish ===== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mc-item--float,
  .btn--pulse,
  .stars-img--glow,
  .spark,
  .badge-float {
    animation: none !important;
  }
}

/* hero sparks */
.hero--fx {
  position: relative;
  overflow: hidden;
}
.hero__fx {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero--fx > *:not(.hero__fx) {
  position: relative;
  z-index: 1;
}
.spark {
  position: absolute;
  width: 10px;
  height: 10px;
  background: url("assets/spark.png") center / contain no-repeat;
  opacity: 0.55;
  animation: spark-float 7s ease-in-out infinite;
}
.spark--1 { top: 18%; left: 8%; animation-delay: 0s; }
.spark--2 { top: 30%; right: 12%; animation-delay: 1.4s; }
.spark--3 { bottom: 22%; left: 22%; animation-delay: 2.2s; width: 8px; height: 8px; }
.spark--4 { top: 12%; right: 28%; animation-delay: 0.7s; width: 7px; height: 7px; }

@keyframes spark-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-14px) scale(1.15); opacity: 0.85; }
}

/* floating items */
.mc-item--float {
  animation: item-bob 3.6s ease-in-out infinite;
}
.mc-item--float-slow {
  animation-duration: 4.8s;
  animation-delay: 0.4s;
}
@keyframes item-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.btn--pulse {
  animation: btn-pulse 2.4s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 61, 61, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(226, 61, 61, 0); }
}

.stars-img {
  image-rendering: auto;
  height: auto;
  max-width: 100%;
}
.stars-img--glow {
  filter: drop-shadow(0 0 8px rgba(240, 193, 75, 0.45));
  animation: star-glow 2.8s ease-in-out infinite;
}
@keyframes star-glow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(240, 193, 75, 0.35)); }
  50% { filter: drop-shadow(0 0 14px rgba(240, 193, 75, 0.75)); }
}

/* rating hero block */
.rating-hero {
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #0c0c0c 0%, #12100a 50%, #0a0c12 100%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: 42rem;
}
.rating-hero__score {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.rating-hero__num {
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--yellow);
  text-shadow: 3px 3px 0 #3f3f15;
  line-height: 1;
}
.rating-hero__of {
  color: var(--muted);
  font-size: 1rem;
}
.rating-hero__meta {
  margin: 0;
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
}
.rating-hero__meta strong {
  color: var(--text);
  font-weight: 400;
}

/* trust strip */
.trust-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 0.5rem;
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.15rem;
  border-radius: var(--radius);
}
@media (min-width: 800px) {
  .trust-strip__inner {
    grid-template-columns: repeat(4, 1fr);
  }
}
.trust-stat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
}
.trust-stat:hover {
  border-color: var(--line-hot);
  background: #0c0c0c;
}
.trust-stat__icon {
  width: 28px;
  height: 28px;
  animation: star-spin-soft 6s linear infinite;
}
@keyframes star-spin-soft {
  0%, 90%, 100% { transform: rotate(0deg) scale(1); }
  93% { transform: rotate(-12deg) scale(1.08); }
  96% { transform: rotate(12deg) scale(1.08); }
}
.trust-stat__emoji {
  font-size: 1.35rem;
  width: 1.5rem;
  text-align: center;
}
.trust-stat b {
  display: block;
  color: var(--yellow);
  font-size: 1.05rem;
  font-weight: 400;
}
.trust-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

/* dash card badges */
.dash-card__stage {
  position: relative;
}
.badge-float {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.5rem;
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue-deep);
  border-radius: 3px;
  animation: badge-pop 2.5s ease-in-out infinite;
}
.badge-float--rare {
  background: var(--beige-deep);
  border-color: #8a7048;
  color: #1a1410;
}
@keyframes badge-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.dash-card {
  transition: border-color 0.15s, transform 0.2s, box-shadow 0.2s;
}
.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(20, 40, 80, 0.35);
  border-color: var(--blue-deep);
}

/* reviews */
.reviews {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 40% at 10% 0%, rgba(74, 158, 255, 0.07), transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 20%, rgba(232, 212, 176, 0.05), transparent 55%),
    #000;
}
.reviews-scoreboard {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
@media (min-width: 720px) {
  .reviews-scoreboard {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }
}
.reviews-scoreboard__big {
  margin: 0.65rem 0 0.25rem;
  font-size: 1.35rem;
  color: var(--yellow);
}
.reviews-scoreboard__big span {
  font-size: 2rem;
  text-shadow: 2px 2px 0 #3f3f15;
}
.reviews-scoreboard__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.reviews-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.reviews-bar {
  display: grid;
  grid-template-columns: 2.2rem 1fr 2.5rem;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
}
.reviews-bar i {
  display: block;
  height: 10px;
  background: #1a1a1a;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.reviews-bar i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  background: linear-gradient(90deg, #c9a227, var(--yellow));
  animation: bar-fill 1.1s ease forwards;
}
@keyframes bar-fill {
  from { width: 0; }
}
.reviews-bar em {
  font-style: normal;
  color: var(--chalk, var(--muted));
  text-align: right;
}

.reviews-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 800px) {
  .reviews-grid {
    grid-template-columns: 1.15fr 1fr 1fr;
  }
  .review-card--wide {
    grid-column: span 2;
  }
}

.review-card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.1rem 1.15rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: border-color 0.15s, transform 0.2s;
}
.review-card:hover {
  border-color: #4a4030;
  transform: translateY(-2px);
}
.review-card p {
  margin: 0;
  color: var(--chalk, var(--muted));
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.review-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}
.review-card__who {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
}
.review-card__who b {
  display: block;
  font-weight: 400;
  font-size: 0.95rem;
}
.review-card__who span {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
}
.review-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 4px;
  background: var(--c, #333);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 #000;
}
.review-card__foot {
  font-size: 0.75rem;
  color: var(--faint);
  border-top: 1px dashed var(--line);
  padding-top: 0.55rem;
}

/* product stage shimmer on stock */
.product__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.04) 45%,
    transparent 60%
  );
  transform: translateX(-100%);
  animation: stage-shine 5s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}
@keyframes stage-shine {
  0%, 60% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== discord-style #vouches feed ===== */
.vouch-channel {
  border: 1px solid #1e1f22;
  background: #313338;
  border-radius: 8px;
  overflow: hidden;
  max-width: 52rem;
  font-family: "gg sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}
.vouch-channel__bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #2b2d31;
  border-bottom: 1px solid #1e1f22;
  color: #f2f3f5;
  font-weight: 600;
  font-size: 1rem;
}
.vouch-channel__hash {
  color: #80848e;
  font-weight: 700;
}
.vouch-channel__count {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 500;
  color: #949ba4;
}
.vouch-feed {
  max-height: 28rem;
  overflow-y: auto;
  padding: 0.5rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: #1a1b1e transparent;
}
.vouch {
  display: flex;
  gap: 0.85rem;
  padding: 0.35rem 1rem;
  transition: background 0.1s;
}
.vouch:hover {
  background: #2e3035;
}
.vouch__av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c, #5865f2);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
  text-transform: lowercase;
}
.vouch__body {
  min-width: 0;
  flex: 1;
}
.vouch__meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
  flex-wrap: wrap;
}
.vouch__meta b {
  color: #f2f3f5;
  font-weight: 500;
  font-size: 0.95rem;
}
.vouch__meta time {
  color: #949ba4;
  font-size: 0.72rem;
  font-weight: 400;
}
.vouch__body p {
  margin: 0;
  color: #dbdee1;
  font-size: 0.95rem;
  line-height: 1.375;
  font-weight: 400;
  word-break: break-word;
}
/* ping-style mentions */
.vouch__body p {
  /* @names highlighted via simple approach - wrap not needed, leave raw */
}

/* override minecraft font inside vouch channel only */
.reviews .vouch-channel,
.reviews .vouch-channel * {
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased !important;
}
.reviews .section__head h2 {
  /* keep minecraft for section title */
}

/* ===== standalone Discord-like #vouches page ===== */
body.page-vouches {
  background: #1e1f22;
  font-family: "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.375;
}
body.page-vouches * {
  font-family: inherit;
  letter-spacing: 0;
}

.discord-app {
  display: flex;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  background: #1e1f22;
}

.discord-rail {
  width: 72px;
  background: #1e1f22;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 8px;
  flex-shrink: 0;
}
.discord-rail__pill {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  transition: border-radius 0.15s, background 0.15s;
  background: #313338;
  display: grid;
  place-items: center;
}
.discord-rail__pill:hover {
  border-radius: 16px;
}
.discord-rail__pill img {
  width: 48px;
  height: 48px;
  object-fit: cover;
}
.discord-rail__sep {
  width: 32px;
  height: 2px;
  background: #35363c;
  border-radius: 1px;
  margin: 4px 0;
}
.discord-rail__dot {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #5865f2;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.discord-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #313338;
  border-top-left-radius: 8px;
}

.discord-top {
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #1f2023;
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  flex-shrink: 0;
}
.discord-top__left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.discord-top__hash {
  color: #80848e;
  font-size: 1.25rem;
  font-weight: 700;
}
.discord-top h1 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #f2f3f5;
  letter-spacing: 0;
  text-shadow: none;
}
.discord-top__desc {
  color: #949ba4;
  font-size: 0.8rem;
  border-left: 1px solid #3f4147;
  padding-left: 0.65rem;
  margin-left: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.discord-top__right {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.discord-top__link {
  color: #b5bac1;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}
.discord-top__link:hover {
  color: #fff;
  text-decoration: underline;
}

.vouch-feed--page {
  flex: 1;
  max-height: none;
  overflow-y: auto;
  padding: 1rem 0 0.5rem;
  background: #313338;
}

.discord-compose {
  padding: 0 16px 24px;
  flex-shrink: 0;
  background: #313338;
}
.discord-compose__box {
  background: #383a40;
  border-radius: 8px;
  padding: 11px 16px;
  color: #6d6f78;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .discord-rail { display: none; }
  .discord-top__desc { display: none; }
  .discord-main { border-radius: 0; }
}

/* success page */
.success-box {
  margin-top: 1.25rem;
  max-width: 28rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.85rem 1rem;
}
.success-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}
.success-row:last-child {
  border-bottom: none;
}
.success-row strong {
  color: var(--parchment, var(--text));
  font-weight: 400;
  text-align: right;
  font-family: var(--mono);
}

/* ===== site-styled vouches page (not Discord) ===== */
body.page-vouches {
  /* cancel old discord full-page overrides if any linger */
  background: var(--bg);
  font-family: var(--font);
  letter-spacing: 0.03em;
  -webkit-font-smoothing: none;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.7;
}
body.page-vouches * {
  font-family: inherit;
}

/* kill discord chrome if leftover classes appear */
.discord-app,
.discord-rail,
.discord-main,
.discord-top,
.discord-compose {
  display: none !important;
}

.vouch-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* center vouch page section content */
body[data-page="reviews"] .section__head {
  justify-content: center;
  text-align: center;
}

body[data-page="reviews"] .hero {
  text-align: center;
}

body[data-page="reviews"] .page-tag {
  text-align: center;
}

body[data-page="reviews"] .hero h1 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: none;
}

body[data-page="reviews"] .hero__lead {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

body[data-page="reviews"] .hero__row {
  justify-content: center;
}

body[data-page="reviews"] .hero-stats {
  margin-left: 0;
}

.vouch-list .vouch,
.vouch-feed .vouch {
  display: flex;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.15s, transform 0.15s;
  font-family: var(--font);
  letter-spacing: 0.02em;
}

.vouch-list .vouch:hover,
.vouch-feed .vouch:hover {
  border-color: #3a3a3a;
  background: #101010;
  transform: none;
}

.vouch__av {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 4px;
  background: var(--c, #333);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 400;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 #000;
  text-transform: lowercase;
}

.vouch__body {
  min-width: 0;
  flex: 1;
}

.vouch__meta {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.vouch__meta b {
  color: var(--yellow);
  font-weight: 400;
  font-size: 0.95rem;
  text-shadow: 2px 2px 0 #3f3f15;
}

.vouch__meta time {
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 400;
}

.vouch__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  word-break: break-word;
}

/* override old discord vouch-channel styles */
.vouch-channel {
  border: none;
  background: transparent;
  border-radius: 0;
  max-width: none;
  font-family: var(--font);
  -webkit-font-smoothing: none;
  letter-spacing: 0.02em;
}
.vouch-channel__bar {
  display: none;
}
.vouch-feed {
  max-height: none;
  overflow: visible;
  padding: 0;
  background: transparent;
}
.vouch-feed--page {
  max-height: none;
}
.reviews .vouch-channel,
.reviews .vouch-channel * {
  font-family: var(--font) !important;
  letter-spacing: 0.02em !important;
  -webkit-font-smoothing: none !important;
}

/* discord link page */
.link-box {
  max-width: 28rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.link-result {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.link-result__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.link-code {
  display: block;
  font-family: var(--mono);
  font-size: 1.15rem;
  color: var(--yellow);
  background: #000;
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  text-align: center;
}
.link-result__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--faint);
}
.link-error {
  color: var(--red);
  font-size: 0.9rem;
  margin: 0;
}

/* auth header */
.auth-slot {
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
}
.auth-login {
  white-space: nowrap;
  text-decoration: none;
}
.auth-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: var(--panel);
}
.auth-user img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.auth-user__bal {
  font-family: var(--mono);
  color: var(--beige);
  font-size: 0.78rem;
}

/* account page */
.account-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }
  .account-card--wide {
    grid-column: 1 / -1;
  }
}
.account-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.5rem 1.55rem;
}
.account-user {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}
.account-avatar {
  border-radius: 50%;
  border: 2px solid var(--line);
}
.account-balance {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.account-balance strong {
  font-size: 1.45rem;
  color: var(--beige);
  font-family: var(--mono);
  text-shadow: 2px 2px 0 #2a2418;
}
.account-linked-badge {
  display: inline-block;
  margin: 0.4rem 0 0;
  padding: 0.15rem 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 45%, transparent);
  background: color-mix(in srgb, var(--green) 12%, transparent);
}
.account-login {
  max-width: 36rem;
  margin: 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 1.5rem 1.4rem 1.6rem;
}
.account-steps {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.account-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  align-items: start;
}
.account-steps li::before {
  content: counter(step);
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #0a0e16;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 0.8rem;
  grid-row: 1 / span 2;
}
.account-steps strong {
  display: block;
  font-size: 0.95rem;
}
.account-steps span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
.account-login__action {
  text-align: center;
  padding-top: 0.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
}
.btn--lg {
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
}
.ledger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.ledger-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row strong.credit { color: var(--green); }
.ledger-row strong.debit { color: var(--red); }
.ledger-row strong.pending { color: var(--yellow); }
@media (max-width: 600px) {
  .ledger-row { grid-template-columns: 1fr; }
}

/* ===== Mobile / tablet — no overlaps, room to breathe ===== */
@media (max-width: 899px) {
  /* Header: logo + login + bag on row 1, scrollable nav on row 2 */
  .site-header__row {
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }

  .logo {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .auth-slot {
    order: 2;
    margin-left: 0;
    flex-shrink: 0;
  }

  .cart-btn {
    order: 3;
    flex-shrink: 0;
  }

  .nav {
    order: 4;
    display: flex;
    width: 100%;
    flex: 1 0 100%;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0 0.35rem;
    border-top: 1px solid var(--line);
    margin: 0;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav a {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.35rem 0.15rem;
  }

  .logo__word {
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo__mark {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding-top: 2.75rem;
    padding-bottom: 2.5rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.25rem, 6.5vw, 1.75rem);
  }

  .hero__lead {
    max-width: none;
  }

  .hero__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .hero__row > .btn {
    width: 100%;
  }

  .hero-stats {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .hero-stats span {
    flex: 1 1 auto;
    min-width: 0;
  }

  .section {
    padding-top: 2.75rem;
    padding-bottom: 3.25rem;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .shop-grid,
  .dash-grid,
  .reviews-grid {
    grid-template-columns: 1fr !important;
  }

  .review-card--wide {
    grid-column: auto !important;
  }

  .product__actions,
  .product__footer,
  .qty-row {
    flex-wrap: wrap;
  }

  .product__body {
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .modal {
    padding: 0.65rem;
    align-items: flex-end;
    place-items: end center;
  }

  .modal.is-open {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .modal__panel,
  .modal__panel--wide {
    width: 100%;
    max-width: 100%;
    max-height: min(88dvh, 640px);
    border-radius: 12px 12px 0 0;
    padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }

  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  .crypto-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .crypto-amount-row {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pay-methods {
    grid-template-columns: 1fr !important;
  }

  .account-grid {
    grid-template-columns: 1fr !important;
  }

  .account-card {
    padding: 1.2rem 1.15rem;
  }

  .account-actions {
    flex-direction: column;
    align-items: stretch !important;
  }

  .account-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-strip__inner {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding: 0.85rem;
  }

  .trust-stat {
    min-width: 0;
    padding: 0.4rem 0.35rem;
  }

  .trust-stat b {
    font-size: 0.95rem;
    word-break: break-word;
  }

  .trust-stat span {
    font-size: 0.72rem;
  }

  .promo__card {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer,
  .footer-inner {
    overflow-wrap: anywhere;
  }

  .rating-hero__stars img,
  .stars-img {
    max-width: min(200px, 70vw);
    height: auto;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 1.15rem;
    --gap: 1.25rem;
  }

  .logo__word span:not(.logo__word-buy) {
    display: none; /* hide ".xyz" to free header space */
  }

  .auth-login {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    font-size: 0.78rem;
  }

  .cart-btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .trust-strip__inner {
    grid-template-columns: 1fr;
  }

  .btn--lg {
    width: 100%;
  }

  .account-login__action .btn--lg {
    width: 100%;
  }

  .chips {
    gap: 0.4rem;
  }

  .chip {
    flex: 1 1 auto;
    text-align: center;
    min-width: 3.5rem;
  }
}

/* Touch targets + prevent double-tap zoom glitches on controls */
@media (pointer: coarse) {
  .btn,
  .qty-btn,
  .chip,
  .cart-btn,
  .crypto-coin,
  .pay-method,
  .nav a {
    min-height: 2.5rem;
  }

  .qty-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Never let fixed UI cover content awkwardly when keyboard opens */
.modal__panel input,
.modal__panel select,
.field input {
  max-width: 100%;
  font-size: 16px; /* iOS: avoid auto-zoom on focus */
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

/* Kill horizontal page scroll from any absolute kids */
main,
.section,
.hero,
.shop-grid,
.dash-grid,
.product,
.account-grid {
  max-width: 100%;
  min-width: 0;
}
