/* ============================================================
   ARK FLEA MARKET — YEEZY-INSPIRED REDESIGN
   ============================================================ */

/* Self-hosted JetBrains Mono — no Google Fonts request */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-300.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-300italic.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/jetbrains-mono-500.woff2') format('woff2');
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  background: #fff;
  color: #000;
  font-family: 'JetBrains Mono', monospace;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar { display: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ol { list-style: none; }

/* ── Design tokens ── */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:  cubic-bezier(0.4, 0, 0.8, 0);
  --header-h: 82px;
  --gray-100: #f5f5f5;
  --gray-200: #ebebeb;
  --gray-400: #999;
  --gray-600: #555;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 150;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: #fff;
  padding: 10px 0;
}

/* Back button — logo on grid, morphs to ← on product open */
.btn-back {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  margin-left: 8px;
  transition: opacity 0.12s;
}
@media (hover: hover) { .btn-back:hover { opacity: 0.4; } }

.btn-logo {
  position: absolute;
  width: 30px; height: 30px;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.btn-arrow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.3) translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

/* State when product overlay is open */
.btn-back.is-back .btn-logo {
  opacity: 0;
  transform: scale(0.3);
}
.btn-back.is-back .btn-arrow {
  opacity: 1;
  transform: scale(1) translateX(0);
}

/* Cluster nav — centred, wraps to multiple rows */
.cluster-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 4px;
  padding: 0 8px;
}
.cluster-nav.nav-hidden {
  display: none;
}

.cn-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 5px 10px;
  white-space: nowrap;
  transition: color 0.12s, font-weight 0.12s;
}
.cn-btn:hover { color: #000; }
.cn-btn.active { color: #000; font-weight: 500; }

/* Header right — cart only */
.header-right {
  display: flex;
  align-items: center;
  padding-right: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.cart-icon-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px;
  font-size: 26px;
  transition: opacity 0.12s;
}
.cart-icon-btn:hover { opacity: 0.45; }

.cart-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 400;
  color: #000;
  min-width: 14px;
  display: none;
  line-height: 1;
}
.cart-badge.visible { display: inline; }

@keyframes badgePop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.55); }
  100% { transform: scale(1); }
}

/* ================================================================
   PRODUCT GRID
   ================================================================ */
.grid {
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  min-height: calc(100vh - var(--header-h));
}

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(6, 1fr); }
}

/* Product card */
.pcard {
  background: #fff;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  transition: background 0.12s;
}
.pcard:hover { background: #fff; }
.pcard.sold-out { opacity: 0.55; cursor: pointer; }
.pcard.coming-soon { opacity: 0.75; cursor: pointer; }

.pcard-img-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-img-wrap img {
  width: auto;
  height: auto;
  max-width: 68%;
  max-height: 68%;
  object-fit: contain;
  transition: transform 0.35s var(--ease-out);
}
.pcard:hover .pcard-img-wrap img { transform: scale(1.06); }

.pcard-icon-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #ccc;
}
.pcard-icon-fallback i { display: block; }

.pcard-name {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.45;
  color: #000;
  text-align: center;
}

.pcard-sold-tag {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.pcard-soon-tag {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FF928F;
}

/* Grid card enter animation */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pcard { animation: cardIn 0.28s var(--ease-out) both; }


/* ================================================================
   PRODUCT OVERLAY — centred single-column layout
   ================================================================ */
.po {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: #fff;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 120px;
}
.po.open { display: flex; }

/* Image fills the upper ~60% */
.po-image-area {
  flex: 0 0 58%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.po-img {
  max-width: 42%;
  max-height: 78%;
  object-fit: contain;
}
.po-img.img-small { max-width: 30%; max-height: 52%; }
.po.img-small-product .po-image-area { flex: 0 0 auto; padding: 24px 0 8px; }
.po.img-small-product .po-img { max-height: 300px; }
@media (max-width: 640px) { .po-img { max-width: 64%; max-height: 64%; } }
@media (max-width: 640px) { .po-img.img-small { max-width: 46%; max-height: 46%; } }

.po-img-icon {
  display: none;
  font-size: 80px;
  color: #ccc;
}

/* Details block — centred beneath image */
.po-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 0 24px 28px;
}

.po-tier-lbl {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.po-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #000;
}
.po-sold-tag {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: -4px;
}
.po-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.po-price {
  font-size: 13px;
  font-weight: 400;
  color: #000;
}
.po-price-note {
  font-size: 10px;
  color: var(--gray-400);
}

/* Tier selector */
.po-tiers {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  max-width: 300px;
  text-align: left;
}

/* Level-up service: 2-row grid (row 1 = 4 items, row 2 = 5 items) */
.po-tiers.level-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  max-width: 440px;
}
.po-tiers.level-grid .po-tier-lbl-row {
  grid-column: 1 / -1;
}
/* First 4 tier opts → span 5 cols each (4×5 = 20) */
.po-tiers.level-grid .po-tier-opt:nth-child(n+2):nth-child(-n+5) {
  grid-column: span 5;
}
/* Last 5 tier opts → span 4 cols each (5×4 = 20) */
.po-tiers.level-grid .po-tier-opt:nth-child(n+6) {
  grid-column: span 4;
}
.po-tiers.level-grid .po-tier-opt {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  text-align: center;
}

/* Dino Traits: 2×2 grid (Anky row, Dunkleo row) */
.po-tiers.traits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 380px;
}
.po-tiers.traits-grid .po-tier-lbl-row {
  grid-column: 1 / -1;
}
.po-tiers.traits-grid .po-tier-opt {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  text-align: center;
}

/* Weight Rhynios: single row of 5 */
.po-tiers.rhynio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 440px;
}
.po-tiers.rhynio-grid .po-tier-lbl-row {
  grid-column: 1 / -1;
}
.po-tiers.rhynio-grid .po-tier-opt {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 4px;
  text-align: center;
}
.po-tier-lbl-row {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
  text-align: center;
}
.po-tier-opt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.po-tier-opt:hover { background: var(--gray-100); }
.po-tier-opt.selected { border-color: #000; background: var(--gray-100); }

/* Add to cart */
.po-cart-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  border: 1px solid #000;
  padding: 12px 28px;
  border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.po-cart-btn:hover { background: #000; color: #fff; }
.po-cart-btn:disabled { opacity: 0.25; cursor: default; }
.po-cart-btn:disabled:hover { background: transparent; color: #000; }

/* Inline disclaimer (boss products — shown directly below Add to Cart) */
.po-disclaimer-inline {
  display: none;
  font-size: 10px;
  color: var(--gray-400);
  font-style: italic;
  text-align: center;
  line-height: 1.7;
  max-width: 480px;
}

/* Information text toggle */
.po-info-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.po-info-btn:hover { opacity: 0.4; }
.po-info-btn.panel-open {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* Wrapper keeps the button in flow; inline overlays it absolutely so .po-details height never changes */
.po-info-wrap {
  position: relative;
  width: min(520px, 88vw);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* What's Included — inline content (overlays the button, out of flow) */
.po-info-inline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  text-align: center;
}
.po-info-inline.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.po-info-close {
  position: absolute;
  top: -2px; right: -32px;
  font-size: 20px;
  color: var(--gray-400);
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.12s;
}
.po-info-close:hover { color: #000; }

.po-panel-body {
  font-size: 11px;
  color: #000;
  line-height: 1.85;
  overflow: hidden;
}
.po-panel-body p  { break-inside: avoid; margin-bottom: 12px; }
.po-panel-body ul { list-style: none; display: block; text-align: left; }
.po-panel-body li {
  break-inside: avoid;
  margin-bottom: 3px;
  padding-left: 16px;
  position: relative;
  text-align: left;
}
.po-panel-body li::before {
  content: '—';
  color: #bbb;
  position: absolute;
  left: 0;
}
.po-panel-disclaimer {
  break-inside: avoid;
  font-size: 10px;
  color: var(--gray-400);
  font-style: italic;
}

/* ================================================================
   CART PANEL
   ================================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: flex;
  justify-content: flex-end;
}
.cart-overlay.open { pointer-events: all; }

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.16);
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
}
.cart-overlay.open .cart-backdrop { opacity: 1; }

.cart-panel {
  position: relative;
  z-index: 1;
  width: min(660px, 92vw);
  height: 100%;
  background: #fff;
  display: flex;
  border-left: 1px solid var(--gray-200);
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}
.cart-overlay.open .cart-panel { transform: translateX(0); }

/* Left how-to column */
.cart-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 24px 36px;
  background: var(--gray-100);
  border-right: 1px solid var(--gray-200);
}
.cart-purchase-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-section-lbl {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 18px;
}
.cart-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-steps li {
  counter-increment: step;
  display: flex;
  gap: 10px;
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.55;
}
.cart-steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 9px;
  color: #bbb;
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
}
.cart-discord-btn {
  display: block;
  padding: 14px 18px;
  background: #000;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-align: center;
  border-radius: 4px;
  transition: opacity 0.12s;
}
.cart-discord-btn:hover { opacity: 0.75; }

.cart-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 10px;
  color: var(--gray-400);
  font-style: italic;
  line-height: 1.5;
}
.cart-trust-note .ti { font-size: 12px; margin-top: 1px; flex-shrink: 0; }

/* Right items column */
.cart-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.cart-lbl {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.cart-close-btn {
  font-size: 22px;
  color: var(--gray-400);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.12s;
}
.cart-close-btn:hover { color: #000; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 14px 22px;
}
.cart-empty {
  font-size: 11px;
  color: #ccc;
  padding: 14px 0;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--gray-200);
}
.cart-item-name {
  flex: 1;
  font-size: 11px;
  color: #000;
  line-height: 1.4;
  min-width: 0;
}
.cart-item-cluster {
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-top: 2px;
}
.cart-item-price {
  font-size: 11px;
  color: #000;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 54px;
  text-align: right;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cart-qty-btn {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  transition: color 0.12s, border-color 0.12s;
  flex-shrink: 0;
}
.cart-qty-btn:hover { color: #000; border-color: #000; }
.cart-qty-num {
  font-size: 11px;
  min-width: 14px;
  text-align: center;
}
.cart-remove-btn {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.12s;
  flex-shrink: 0;
  margin-left: 2px;
}
.cart-remove-btn:hover { color: #000; }

.cart-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.cart-total-lbl {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.cart-total {
  font-size: 16px;
  font-weight: 300;
  color: #000;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  padding: 36px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 22px;
}
.footer a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  transition: color 0.12s;
}
.footer a:hover { color: #000; }

/* ---- FAQ modal ---- */
.faq-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.faq-overlay.open { pointer-events: all; }

.faq-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.16);
  opacity: 0;
  transition: opacity 0.25s;
  cursor: pointer;
}
.faq-overlay.open .faq-backdrop { opacity: 1; }

.faq-modal {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(520px, 92vw);
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.faq-overlay.open .faq-modal {
  opacity: 1;
  transform: translateY(0);
}

.faq-list { margin-top: 20px; }

.faq-item {
  padding: 16px 0;
  border-top: 1px solid var(--gray-200);
}
.faq-item:last-child { border-bottom: 1px solid var(--gray-200); }

.faq-q {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 7px;
}

.faq-a {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ---- Contact modal ---- */
.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.contact-overlay.open { pointer-events: all; }

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.16);
  opacity: 0;
  transition: opacity 0.25s;
  cursor: pointer;
}
.contact-overlay.open .contact-backdrop { opacity: 1; }

.contact-modal {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(400px, 88vw);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
}
.contact-overlay.open .contact-modal {
  opacity: 1;
  transform: translateY(0);
}

.contact-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 18px;
  color: var(--gray-400);
  line-height: 1;
  transition: color 0.12s;
}
.contact-close:hover { color: #000; }

.contact-modal-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
}

.contact-modal-body {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.8;
}

.contact-discord-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #000;
  padding: 11px 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  transition: background 0.14s, color 0.14s;
  align-self: flex-start;
}
.contact-discord-btn:hover { background: #000; color: #fff; }

/* ---- Discord connect / connected ---- */
.cart-connect-btn {
  width: 100%;
  border: 1px solid #000;
  padding: 11px 16px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  transition: background 0.14s, color 0.14s;
  text-align: left;
}
.cart-connect-btn:hover { background: #000; color: #fff; }

.cart-discord-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cart-discord-who {
  font-size: 11px;
  color: #000;
  font-weight: 500;
}
.cart-disconnect-btn {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  transition: color 0.12s;
  flex-shrink: 0;
}
.cart-disconnect-btn:hover { color: #000; }

.cart-order-err {
  font-size: 10px;
  color: #c00;
  min-height: 14px;
}

/* ---- Order confirmation overlay ---- */
.confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0,0,0,0.45);
  align-items: center;
  justify-content: center;
}
.confirm-overlay.open { display: flex; }

.confirm-modal {
  position: relative;
  background: #fff;
  padding: 36px 32px 28px;
  max-width: 400px;
  width: calc(100% - 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.confirm-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 20px;
  color: var(--gray-400);
  line-height: 1;
  transition: color 0.12s;
}
.confirm-close-btn:hover { color: #000; }

.confirm-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
}

.confirm-sub {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.8;
}

.confirm-tickets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--gray-100);
  padding-top: 12px;
}

.confirm-ticket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.confirm-ticket-name {
  font-size: 11px;
  color: #000;
}

.confirm-ticket-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}
.confirm-ticket-link:hover { opacity: 0.6; }

/* ================================================================
   CUSTOM ORDER MODAL
   ================================================================ */
.custom-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 350;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.custom-overlay.open { display: flex; }

.custom-backdrop {
  position: absolute;
  inset: 0;
}

.custom-modal {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 460px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 20px;
  color: var(--gray-400);
  line-height: 1;
  transition: color 0.12s;
}
.custom-close-btn:hover { color: #000; }

.custom-modal-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 2px;
}

.custom-modal-sub {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 4px;
}

.custom-label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 4px;
}

.custom-textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  padding: 10px 12px;
  font-size: 11px;
  font-family: inherit;
  color: #000;
  resize: vertical;
  min-height: 90px;
  line-height: 1.7;
  transition: border-color 0.14s;
  box-sizing: border-box;
}
.custom-textarea:focus { outline: none; border-color: #000; }
.custom-textarea::placeholder { color: var(--gray-400); }

.custom-select {
  width: 100%;
  border: 1px solid var(--gray-200);
  padding: 10px 12px;
  font-size: 11px;
  font-family: inherit;
  color: #000;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.14s;
  box-sizing: border-box;
}
.custom-select:focus { outline: none; border-color: #000; }

.custom-submit-btn {
  margin-top: 4px;
  background: #000;
  color: #fff;
  padding: 13px 20px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: opacity 0.14s;
  align-self: stretch;
}
.custom-submit-btn:hover:not(:disabled) { opacity: 0.75; }
.custom-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Mobile custom modal ---- */
@media (max-width: 640px) {
  .cart-item {
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
  }
  .cart-item-name {
    width: 100%;
    flex: none;
  }
  .cart-item-qty {
    /* sits bottom-left naturally */
  }
  .cart-item-price {
    margin-left: auto;
  }
}

/* ================================================================
   HUB VIEW
   ================================================================ */
.grid.hub-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  background: #fff;
  gap: 0;
  padding: 0;
}

.hub-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px 20px;
  height: calc((100svh - var(--header-h)) / 2);
  min-height: 160px;
  background: #fff;
  cursor: pointer;
  animation: hubTileIn 0.5s var(--ease-out) both;
}
.hub-tile.hub-coming { cursor: default; }

.hub-tile-icon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  color: #d8d8d8;
  transition: color 0.22s, transform 0.22s var(--ease-out);
}
.hub-tile:not(.hub-coming):hover .hub-tile-icon {
  color: #aaa;
  transform: scale(1.08);
}

.hub-tile-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  text-align: center;
  transition: color 0.22s;
}
.hub-tile:not(.hub-coming):hover .hub-tile-label { color: #777; }

@media (hover: none) {
  .hub-tile:not(.hub-coming) .hub-tile-icon { color: #FF928F; }
  .hub-tile:not(.hub-coming) .hub-tile-label { color: #555; }
}

.hub-tile-soon {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ddd;
}

@keyframes hubTileIn {
  0%   { opacity: 0; transform: scale(0.76) translateY(20px); }
  65%  { transform: scale(1.04) translateY(-3px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* ================================================================
   SECTION OVERLAYS (Base Posts / Auctions / Middle-Man)
   ================================================================ */
.so {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 120px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.so.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.so-icon-center {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: #e0e0e0;
}

/* so-board overrides centred flex layout and covers full screen (no white header) */
.so.so-board {
  display: block;
  padding-bottom: 0;
  top: 0;
  z-index: 160; /* above header at 150 */
}

/* ================================================================
   BOUNTY BOARD
   ================================================================ */
.bb {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(91deg, rgba(0,0,0,0.06) 0px, transparent 1px, transparent 48px),
    repeating-linear-gradient(89deg, rgba(255,255,255,0.015) 0px, transparent 1px, transparent 80px),
    linear-gradient(165deg, #1a0902 0%, #2e1206 30%, #1a0902 55%, #2e1206 80%, #1a0902 100%);
  overflow: hidden;
}

/* ── Wooden frame planks around the board ── */
.bb-plank {
  position: absolute;
  z-index: 25;
  pointer-events: none;
}

/* Top / Bottom: horizontal planks, grain runs left-right */
.bb-plank--t,
.bb-plank--b {
  left: 0; right: 0;
  height: 58px;
  background:
    /* plank seam lines running left-right */
    repeating-linear-gradient(
      to bottom,
      transparent 0px, transparent 17px,
      rgba(0,0,0,0.65) 17px, rgba(0,0,0,0.65) 19px
    ),
    /* subtle horizontal grain variation */
    repeating-linear-gradient(
      to right,
      transparent 0px, rgba(255,255,255,0.015) 6px,
      transparent 14px, rgba(0,0,0,0.025) 28px
    ),
    linear-gradient(to right, #1e0a02, #4a2010, #2e1208, #5a2a14, #3a1808, #4a2010, #1e0a02);
}

.bb-plank--t {
  top: 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.7), inset 0 -2px 4px rgba(255,255,255,0.06);
}

.bb-plank--b {
  bottom: 0;
  box-shadow: 0 -6px 18px rgba(0,0,0,0.7), inset 0 2px 4px rgba(255,255,255,0.06);
}

/* Left / Right: vertical planks sit between top & bottom planks, grain runs up-down */
.bb-plank--l,
.bb-plank--r {
  top: 58px; bottom: 58px;
  width: 58px;
  background:
    /* plank seam lines running up-down */
    repeating-linear-gradient(
      to right,
      transparent 0px, transparent 17px,
      rgba(0,0,0,0.65) 17px, rgba(0,0,0,0.65) 19px
    ),
    /* subtle vertical grain variation */
    repeating-linear-gradient(
      to bottom,
      transparent 0px, rgba(255,255,255,0.015) 6px,
      transparent 14px, rgba(0,0,0,0.025) 28px
    ),
    linear-gradient(to bottom, #1e0a02, #4a2010, #2e1208, #5a2a14, #3a1808, #4a2010, #1e0a02);
}

.bb-plank--l {
  left: 0;
  box-shadow: 6px 0 18px rgba(0,0,0,0.7), inset -2px 0 4px rgba(255,255,255,0.06);
}

.bb-plank--r {
  right: 0;
  box-shadow: -6px 0 18px rgba(0,0,0,0.7), inset 2px 0 4px rgba(255,255,255,0.06);
}

/* Back arrow — floats over top-left plank, same position as the header btn-back */
.bb-back {
  position: absolute;
  top: 7px;
  left: 6px;
  z-index: 40;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: rgba(255, 205, 80, 0.92);
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 16px rgba(200,140,20,0.5);
  padding: 0;
}
.bb-back:hover { color: #ffe066; text-shadow: 0 2px 12px rgba(0,0,0,0.95), 0 0 24px rgba(220,160,20,0.7); }
.bb-back--hidden { opacity: 0; pointer-events: none; }

/* Arrow and X icons inside the back button */
.bb-back-arrow,
.bb-back-x {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s, transform 0.22s;
}
.bb-back-x {
  opacity: 0;
  transform: rotate(45deg) scale(0.5);
}
/* When detail is open: arrow fades out, X fades in */
.bb-back--close .bb-back-arrow {
  opacity: 0;
  transform: rotate(-45deg) scale(0.5);
}
.bb-back--close .bb-back-x {
  opacity: 1;
  transform: none;
}
.bb-back--close:hover .bb-back-x {
  transform: scale(1.15);
}

.bb-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 45%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 2;
}

.bb-title {
  position: absolute;
  top: 0;
  height: 58px;
  left: 58px; right: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: rgba(255,220,140,0.75);
  text-transform: uppercase;
  z-index: 30;
  pointer-events: none;
}

/* ---- Paper ---- */
/* Grid container — fills the inner board (inside all 4 planks) */
.bb-papers {
  position: absolute;
  inset: 58px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 20px 24px;
  align-items: center;
  justify-items: center;
  z-index: 10;
}

.bb-paper {
  position: relative;
  width: 128px;
  background: #f5edcc;
  padding: 18px 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-shadow: 3px 5px 16px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.3);
  cursor: pointer;
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s;
}
.bb-paper:hover {
  transform: rotate(0deg) scale(1.08) translateY(-4px);
  box-shadow: 6px 10px 28px rgba(0,0,0,0.65);
  z-index: 5;
}

/* Mobile: 2 columns × 4 rows */
@media (max-width: 700px) {
  .bb-papers {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, auto);
    gap: 10px;
    padding: 14px 16px;
  }
  .bb-paper {
    width: 100%;
    padding: 12px 9px 10px;
  }
}

.bb-pin {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c0392b, #7b1a12);
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  z-index: 1;
}

/* Gold pin for the CTA paper */
.bb-pin--gold {
  background: radial-gradient(circle at 35% 35%, #f5c842, #b8860b);
}

.bb-wanted {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-align: center;
  color: #8b1a1a;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(139,26,26,0.3);
  padding-bottom: 5px;
  margin-bottom: 2px;
}

.bb-paper-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c8b89a 0%, #a89070 100%);
  border: 1px solid rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.15);
  font-size: 22px;
  overflow: hidden;
}
.bb-paper-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CTA paper — "+" image and slightly warmer tint */
.bb-paper--cta {
  background: #f0e8c2;
}
.bb-paper-img--plus {
  background: linear-gradient(135deg, #bfb090 0%, #9a7e5a 100%);
  position: relative;
}
.bb-paper-img--plus::before,
.bb-paper-img--plus::after {
  content: '';
  position: absolute;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
}
.bb-paper-img--plus::before { width: 32px; height: 6px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.bb-paper-img--plus::after  { width: 6px; height: 32px; top: 50%; left: 50%; transform: translate(-50%,-50%); }

.bb-paper-tribe {
  font-family: 'JetBrains Mono', monospace;
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #2a1a08;
  text-transform: uppercase;
  text-align: center;
  margin-top: 3px;
}

.bb-paper-meta {
  font-size: 7px;
  color: #6b5030;
  text-align: center;
  line-height: 1.4;
}

.bb-paper-amt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #8b1a1a;
  text-align: center;
  margin-top: 2px;
}

/* Slot number badge — bottom-right corner, faint red circle */
.bb-slot {
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(139,26,26,0.28);
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  font-weight: 700;
  color: rgba(139,26,26,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  pointer-events: none;
}

/* ---- Page navigation — sits on the bottom wooden plank ---- */
.bb-pager {
  position: absolute;
  bottom: 0;
  right: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  z-index: 30;
}

.bb-page-btn {
  background: none;
  border: none;
  color: rgba(255, 205, 80, 0.85);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0,0,0,0.85);
  transition: color 0.15s, transform 0.1s;
}
.bb-page-btn:hover:not(:disabled) {
  color: #ffe066;
  transform: scale(1.3);
}
.bb-page-btn:disabled {
  color: rgba(255, 205, 80, 0.2);
  cursor: default;
}

.bb-page-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255, 205, 80, 0.65);
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  user-select: none;
  white-space: nowrap;
}

/* ---- Detail zoom overlay ---- */
.bb-detail {
  position: absolute;
  inset: 0;
  background: #f5edcc;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.88);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.bb-detail.open {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}


.bb-detail-wanted {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: #8b1a1a;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(139,26,26,0.3);
  padding-bottom: 10px;
  width: min(340px, 88vw);
  text-align: center;
}

.bb-detail-img {
  width: min(260px, 72vw);
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #c8b89a 0%, #a89070 100%);
  border: 1px solid rgba(0,0,0,0.12);
  overflow: hidden;
}

.bb-detail-gallery {
  display: none;
  flex-direction: row;
  gap: 6px;
  width: min(260px, 72vw);
  flex-wrap: wrap;
}
.bb-gallery-thumb {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.15s, border-color 0.15s;
}
.bb-gallery-thumb:hover,
.bb-gallery-thumb.active {
  opacity: 1;
  border-color: #8b1a1a;
}

.bb-detail-tribe {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #2a1a08;
  text-transform: uppercase;
  text-align: center;
}

.bb-detail-loc, .bb-detail-cluster {
  font-size: 11px;
  color: #6b5030;
  text-align: center;
  letter-spacing: 0.04em;
}

.bb-detail-amt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 500;
  color: #8b1a1a;
  text-align: center;
  margin-top: 4px;
}

/* ---- Claim reward button (inside bb-detail) ---- */
.bb-claim-btn {
  display: block;
  width: min(260px, 72vw);
  margin-top: 6px;
  padding: 11px 16px;
  background: #8b1a1a;
  color: #f5edcc;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.bb-claim-btn:hover {
  background: #a02020;
  color: #fff;
}

/* ---- Terms button (on bottom plank, right side) ---- */
.bb-terms-btn {
  position: absolute;
  bottom: 0;
  right: 58px;
  height: 58px;
  z-index: 30;
  background: none;
  border: none;
  color: rgba(255, 205, 80, 0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0 16px;
  transition: color 0.15s;
}
.bb-terms-btn:hover { color: rgba(255, 205, 80, 0.9); }

/* ---- Terms & Disclaimer overlay (inside bb) ---- */
.bb-terms-overlay {
  position: absolute;
  inset: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.bb-terms-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.bb-terms-modal {
  position: relative;
  background: #f5edcc;
  width: min(480px, 90vw);
  max-height: 76vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  /* hide native scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bb-terms-modal::-webkit-scrollbar { display: none; }
.bb-terms-overlay.open .bb-terms-modal {
  opacity: 1;
  transform: translateY(0);
}
.bb-terms-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #8b1a1a;
  cursor: pointer;
  line-height: 1;
  opacity: 0.65;
  transition: opacity 0.15s;
}
.bb-terms-close:hover { opacity: 1; }
.bb-terms-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: #8b1a1a;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 2px solid rgba(139, 26, 26, 0.3);
  padding-bottom: 12px;
  margin-bottom: 18px;
}
.bb-terms-body {
  font-size: 11px;
  color: #3a2010;
  line-height: 1.85;
}
.bb-terms-body ol {
  padding-left: 20px;
  margin: 0;
}
.bb-terms-body li {
  margin-bottom: 12px;
}
.bb-terms-body li:last-child { margin-bottom: 0; }
.bb-terms-body strong { color: #2a1a08; }

/* ---- Bounty form overlays ---- */
.bb-form-overlay {
  position: absolute;
  inset: 0;
  z-index: 36;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.bb-form-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.bb-form-modal {
  position: relative;
  background: #f5edcc;
  width: min(440px, 90vw);
  max-height: 82vh;
  overflow-y: auto;
  padding: 32px 28px 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bb-form-modal::-webkit-scrollbar { display: none; }
.bb-form-overlay.open .bb-form-modal {
  opacity: 1;
  transform: translateY(0);
}
.bb-form-sub {
  font-size: 11px;
  color: #6b5030;
  line-height: 1.7;
  margin-bottom: 16px;
}
.bb-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bb-form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  color: #6b5030;
  text-transform: uppercase;
  margin-top: 6px;
}
.bb-form input,
.bb-form select,
.bb-form textarea {
  background: rgba(139, 96, 30, 0.08);
  border: 1px solid rgba(139, 96, 30, 0.3);
  border-radius: 0;
  padding: 8px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #2a1a08;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.bb-form input::placeholder,
.bb-form textarea::placeholder {
  color: rgba(107, 80, 48, 0.5);
}
.bb-form input:focus,
.bb-form select:focus,
.bb-form textarea:focus {
  border-color: rgba(139, 26, 26, 0.5);
}
.bb-form textarea { resize: vertical; min-height: 70px; }
.bb-form-error {
  color: #8b1a1a;
  font-size: 10px;
  min-height: 14px;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.bb-form-discord-wrap { margin-top: 2px; }
.bb-form-discord-wrap .cart-connect-btn {
  width: 100%;
  padding: 9px 12px;
  background: #8b1a1a;
  color: #f5edcc;
  border: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.bb-form-discord-wrap .cart-connect-btn:hover { background: #a02020; }
.bb-form-discord-wrap .cart-discord-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(139, 96, 30, 0.08);
  border: 1px solid rgba(139, 96, 30, 0.3);
  padding: 7px 10px;
}
.bb-form-discord-wrap .cart-discord-who {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #2a6b1a;
}
.bb-form-discord-wrap .cart-disconnect-btn {
  background: none;
  border: none;
  font-size: 10px;
  color: rgba(107, 80, 48, 0.6);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.bb-form-submit { margin-top: 8px; width: 100%; }
.bb-form-submit:disabled { opacity: 0.5; cursor: default; }
.bb-form-success-icon {
  font-size: 36px;
  color: #2a6b1a;
  text-align: center;
  margin-top: 8px;
}
.bb-form-success-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.24em;
  color: #8b1a1a;
  text-align: center;
  margin: 10px 0 6px;
  text-transform: uppercase;
}
.bb-form-success-msg {
  font-size: 11px;
  color: #3a2010;
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.7;
}
.bb-form-discord-link {
  display: block;
  text-align: center;
  text-decoration: none;
}
