body { overflow-x: clip !important; overflow-y: visible !important; }
/* ============================================
   MARKETPLACE.CSS
   Dark, clean aesthetic matching Sit N Go / Batch
   No brown tint — uses same rgba palette as sitngo.css
   ============================================ */

body {
  overflow-x: hidden;
}

.mp-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.mp-alpha {
  background: rgba(255,215,0,0.25);
  color: #ffd700;
  font-weight: 700;
}
.mp-finish-holo {
  background: linear-gradient(135deg, rgba(150,100,255,0.3), rgba(100,200,255,0.3));
  color: #c4a0ff;
}
.mp-finish-gold {
  background: rgba(255,215,0,0.2);
  color: #ffd700;
} 
.mp-finish-colour {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.65);
}

.mp-grid-wrap {
  min-width: 0;
  width: 100%;
}

.mp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  max-width: 100%;
}

.mp-currency-row {
  display: flex;
  gap: 8px;
}

.mp-currency-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 0;
  border: 1px solid rgba(80, 60, 35, 0.85);
  border-radius: 6px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mp-currency-toggle input {
  display: none;
}

.mp-currency-toggle.active {
  color: var(--orange);
  border-color: rgba(255, 140, 0, 0.5);
  background: rgba(255, 140, 0, 0.08);
}

.mp-currency-toggle:hover {
  border-color: rgba(80, 60, 35, 1);
}

/* ── Page wrapper override — edge-to-edge ── */
.wrap {
  max-width: none !important;
  margin: 0 !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  
  box-sizing: border-box;
}

/* ── Tab bar ── */
.mp-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  background: rgba(8, 6, 4, 0.95);
  border: 1px solid rgba(80, 60, 35, 0.6);
  border-radius: 10px;
  overflow: hidden;
}

.mp-tab {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-family: 'DIN Alternate', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.mp-tab:not(:last-child) { border-right: 1px solid rgba(80, 60, 35, 0.4); }
.mp-tab:hover { color: rgba(255, 255, 255, 0.85); }
.mp-tab.active { color: var(--orange); }

.mp-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
}

.mp-tab-count {
  display: inline-block;
  background: rgba(255, 140, 0, 0.15);
  color: var(--orange);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 700;
}

.mp-stats-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Main layout ── */
.mp-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

/* ── Control panel ── */
.mp-controls {
  background: rgba(8, 6, 4, 0.95);
  border: 1px solid rgba(80, 60, 35, 0.9);
  border-radius: 12px;
  padding: 10px;
  position: sticky;
  top: 50px;
  max-height: calc(100vh - 58px);
  overflow-y: auto;
}

.mp-controls-title {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
  margin-bottom: 16px;
}

/* ── Stat pills ── */
.mp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.mp-stat {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(80, 60, 35, 0.85);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
    gap: 4px;
      min-width: 0; 
}

.mp-stat-label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;

  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mp-stat-value {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 700;

  min-width: 0;
  flex-shrink: 0;
  white-space: nowrap;
}


/* ── Inputs & selects ── */
.mp-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(80, 60, 35, 0.9);
  color: rgba(255, 255, 255, 0.9);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: 'DIN Alternate', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

.mp-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.mp-input:focus { border-color: rgba(255, 140, 0, 0.6); box-shadow: 0 0 10px rgba(255, 140, 0, 0.15); }

.mp-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(80, 60, 35, 0.9);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: 'DIN Alternate', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ff9d26' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  box-sizing: border-box;
}

.mp-select:hover { border-color: rgba(80, 60, 35, 1); }
.mp-select option { background: rgba(12, 10, 8, 0.98); color: rgba(255, 255, 255, 0.9); }
.mp-group { margin-bottom: 12px; }
.mp-label { color: rgba(255, 255, 255, 0.55); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 5px; display: block; }
.mp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mp-price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; }
.mp-price-sep { color: rgba(255, 255, 255, 0.5); font-size: 11px; font-weight: 700; }
.mp-divider { border: none; border-top: 1px solid rgba(80, 60, 35, 0.7); margin: 14px 0; }

/* ── Collapsible filter sections ── */
.mp-filter { margin-bottom: 6px; border: 1px solid rgba(80, 60, 35, 0.85); border-radius: 8px; overflow: hidden; transition: border-color 0.2s ease; }
.mp-filter:hover { border-color: rgba(80, 60, 35, 1); }
.mp-filter-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; cursor: pointer; user-select: none; transition: all 0.2s ease; }
.mp-filter-head:hover { background: rgba(255, 255, 255, 0.03); }
.mp-filter-title { font-size: 11px; color: rgba(255, 255, 255, 0.7); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.mp-filter-icon { color: var(--orange); font-size: 14px; font-weight: 700; }
.mp-filter-body { overflow: hidden; transition: all 0.3s ease; }
.mp-filter-body.open { max-height: 500px; padding: 10px 12px; }
.mp-filter-body.closed { max-height: 0; padding: 0 12px; }

/* ── Affinity / Class — colored text, stacked ── */
.mp-aff-list { display: flex; flex-direction: column; gap: 2px; }
.mp-aff-item { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; border-radius: 4px; cursor: pointer; transition: all 0.15s ease; }
.mp-aff-item:hover { background: rgba(255, 255, 255, 0.05); }
.mp-aff-item.active { background: rgba(255, 255, 255, 0.08); }
.mp-aff-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.mp-aff-check { font-size: 12px; opacity: 0; transition: opacity 0.15s ease; }
.mp-aff-item.active .mp-aff-check { opacity: 1; }

/* Affinity colors — unified muted */
.aff-c-air, .aff-c-bloom, .aff-c-dust, .aff-c-earth, .aff-c-fire, .aff-c-frost,
.aff-c-granite, .aff-c-inferno, .aff-c-magma, .aff-c-mud, .aff-c-nature, .aff-c-none,
.aff-c-shock, .aff-c-spore, .aff-c-steam, .aff-c-tempest, .aff-c-toxic, .aff-c-tsunami,
.aff-c-verdant, .aff-c-water, .aff-c-wildfire { color: #b0bec5; }

/* Class colors — unified muted */
.cls-c-aegis, .cls-c-arcanite, .cls-c-behemoth, .cls-c-berserker, .cls-c-bulwark, .cls-c-colossus,
.cls-c-empath, .cls-c-enchanter, .cls-c-fighter, .cls-c-harbinger, .cls-c-invoker, .cls-c-mystic,
.cls-c-none, .cls-c-phantom, .cls-c-predator, .cls-c-psion, .cls-c-revenant, .cls-c-rogue,
.cls-c-slayer, .cls-c-templar, .cls-c-vanguard { color: #696969; }

/* Tier/Stage pills */
.mp-tier-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.mp-pill { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(80, 60, 35, 0.85); border-radius: 5px; color: rgba(255, 255, 255, 0.6); padding: 4px 10px; font-family: 'DIN Alternate', sans-serif; font-weight: 700; font-size: 11px; cursor: pointer; transition: all 0.2s ease; }
.mp-pill:hover { color: rgba(255, 255, 255, 0.85); border-color: rgba(80, 60, 35, 1); }
.mp-pill.active { border-color: rgba(255, 140, 0, 0.55); color: var(--orange); background: rgba(255, 140, 0, 0.08); }
.mp-sub-label { color: rgba(255, 255, 255, 0.5); font-size: 10px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: 4px; display: block; }

/* ── Clear button ── */
.mp-btn-clear { width: 100%; background: rgba(0, 0, 0, 0.35); color: rgba(255, 255, 255, 0.55); border: 1px solid rgba(80, 60, 35, 0.9); padding: 10px; border-radius: 8px; font-family: 'DIN Alternate', sans-serif; font-weight: 700; font-size: 12px; cursor: pointer; transition: all 0.2s ease; text-transform: uppercase; letter-spacing: 0.5px; }
.mp-btn-clear:hover { border-color: rgba(80, 60, 35, 1); color: rgba(255, 255, 255, 0.85); }

/* ── Grid area ── */
.mp-grid-status {
  text-align: left;
  font-size: 16px;
  color: rgba(198, 198, 198, 0.85);
  padding: 0 0 10px 10px;
  width: 100%;
  font-family: 'DIN Alternate', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.mp-grid-wrap { min-width: 0; width: 100%; max-width: 100%; }
.mp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; align-items: stretch; max-width: 100%;  }

/* ============================================
   NFT CARD
   ============================================ */
.mp-card { background: rgba(8, 6, 4, 0.95); border: 1px solid rgba(80, 60, 35, 0.6); border-radius: 10px; overflow: visible; transition: all 0.3s ease; cursor: pointer; }
.mp-card:hover { transform: translateY(-3px); border-color: rgba(80, 60, 35, 0.85); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.mp-card.your-listing { border: 2px solid rgba(79, 179, 184, 0.8); box-shadow: 0 0 12px rgba(79, 179, 184, 0.3), inset 0 0 12px rgba(79, 179, 184, 0.05); }

.mp-card-img { width: 100%; aspect-ratio: 1; background: rgba(0, 0, 0, 0.4); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; border-radius: 10px 10px 0 0; }
.mp-card-img img { width: 100%; height: 100%; object-fit: cover; }
.mp-card-placeholder { color: rgba(255, 255, 255, 0.1); font-size: 14px; font-weight: 700; }

.mp-price-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.95)); display: flex; align-items: flex-end; }
.mp-price-usd { color: #fff; font-size: 20px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,0.9); }
.mp-price { color: rgba(255, 255, 255, 0.75); font-weight: 700; font-size: 12px; text-shadow: 0 1px 4px rgba(0,0,0,0.8); }
.mp-price-stack { display: flex; flex-direction: column; gap: 0; }
.mp-price .unit { color: var(--orange); font-size: 10px; margin-left: 3px; }

.mp-card-body { padding: 12px 14px; position: relative; }
.mp-card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mp-card-name { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.1; text-transform: uppercase; }
.mp-card-id { font-size: 13px; color: rgba(255, 255, 255, 0.55); margin-top: 2px; font-family: 'Courier New', monospace; }
.mp-card-id a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.2s ease; }
.mp-card-id a:hover { color: var(--orange); }

/* Affinity + Class — colored text, right-justified, stacked */
.mp-card-attrs { text-align: right; flex-shrink: 0; line-height: 1.3; }
.mp-card-aff, .mp-card-cls { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; display: block; }

.mp-card-stats { padding: 4px 0 2px; display: flex; align-items: center; gap: 8px; }
.mp-card-tier { font-size: 13px; color: rgba(245, 230, 200, 0.6); }
.mp-card-level {
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 2px;
  font-size: 13px;
}

.mp-lv-val {
  color: rgba(255, 255, 255, 0.95);
  margin-left: 2px;
}

.mp-hex-wrap { display: flex; align-items: center; gap: 4px; }
.mp-hex-wrap:hover .mp-tooltip { opacity: 1; visibility: visible; }

.mp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mp-card-body {
  flex: 1;
}

.mp-grid {
  align-items: stretch;
}

.mp-tooltip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: -4px;
  background: rgba(12, 10, 8, 0.98);
  border: 1px solid rgba(80, 60, 35, 0.7);
  border-radius: 10px;
  padding: 10px 12px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  pointer-events: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}
.mp-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: rgba(80, 60, 35, 0.7); }
.mp-tooltip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 28px;
}
.mp-tooltip-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
}
.mp-tooltip-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mp-tooltip-name { color: rgba(255, 255, 255, 0.5); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.mp-tooltip-val { color: rgba(255, 255, 255, 0.9); font-weight: 700; font-size: 13px; margin-left: auto; }
.mp-tooltip-gap { }

/* ── Card actions ── */
.mp-card-action { padding-top: 4px; }
.mp-action-btn { width: 100%; padding: 9px; border-radius: 8px; font-family: 'DIN Alternate', sans-serif; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s ease; text-align: center; }
/* ── BUY BUTTON (Muted Premium) ── */
.mp-action-btn.buy {
  background: rgba(255, 140, 0, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.35);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.mp-action-btn.buy:hover {
  background: rgba(255, 140, 0, 0.18);
  border-color: rgba(255, 140, 0, 0.65);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 140, 0, 0.25);
  transform: translateY(-1px);
}


/* ── LIST FOR SALE BUTTON (Even More Subtle) ── */
.mp-action-btn.list-sale {
  background: rgba(180, 110, 20, 0.06);
  border: 1px solid rgba(180, 110, 20, 0.3);
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}

.mp-action-btn.list-sale:hover {
  background: rgba(180, 110, 20, 0.15);
  border-color: rgba(255, 140, 0, 0.55);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 140, 0, 0.18);
  transform: translateY(-1px);
}

.mp-action-btn.yours { background: rgba(79, 179, 184, 0.08); border: 1px solid rgba(79, 179, 184, 0.35); color: #4fb3b8; cursor: default; }
.mp-action-btn.listed { background: rgba(79, 179, 184, 0.08); border: 1px solid rgba(79, 179, 184, 0.35); color: #4fb3b8; }
.mp-action-btn.cancel { background: transparent; border: 1px solid rgba(255, 68, 68, 0.3); color: rgba(255, 68, 68, 0.7); margin-top: 6px; }
.mp-action-btn.cancel:hover { background: rgba(255, 68, 68, 0.06); border-color: rgba(255, 68, 68, 0.5); }
.mp-action-btn.sold-btn { background: rgba(199,134,37,0.1); border: 1px solid rgba(199,134,37,0.35); color: #daa520; font-size: 15px; cursor: default; }
.mp-action-btn.sold-btn:hover { background: rgba(199,134,37,0.1); transform: none; }

.mp-empty { text-align: center; padding: 60px 20px; color: rgba(255, 255, 255, 0.35); grid-column: 1 / -1; }
.mp-empty h3 { color: rgba(255, 255, 255, 0.6); font-size: 16px; margin-bottom: 6px; text-transform: uppercase; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .mp-layout { grid-template-columns: 240px 1fr; }
  .mp-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 768px) {
  .mp-layout { grid-template-columns: 1fr; }
  .mp-controls { position: static; }
  .mp-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .wrap { padding-left: 12px !important; padding-right: 12px !important; }
}
@media (max-width: 480px) {
  .mp-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .mp-card { min-width: 0; overflow: hidden; }
  .mp-action-btn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mp-tab { font-size: 11px; padding: 12px 8px; letter-spacing: 0.5px; }
  .wrap { padding-left: 8px !important; padding-right: 8px !important; }
}


/* ═══ BUY MODAL ═══ */
.buy-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: buyFadeIn 0.15s ease-out;
}

@keyframes buyFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.buy-modal {
  background: rgba(8, 6, 4, 0.98);
  border: 1px solid rgba(80, 60, 35, 0.9);
  border-radius: 12px;
  width: 420px;
  max-width: 92vw;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(80, 60, 35, 0.3);
  animation: buySlideUp 0.2s ease-out;
  font-family: 'DIN Alternate', sans-serif;
}

@keyframes buySlideUp {
  from { transform: translateY(16px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.buy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(80, 60, 35, 0.6);
}

.buy-modal-header span {
  color: var(--orange);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.buy-modal-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 22px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  transition: color 0.15s;
}
.buy-modal-close:hover { color: rgba(255, 255, 255, 0.75); }

.buy-modal-body {
  padding: 20px;
}

.buy-modal-nft {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(80, 60, 35, 0.5);
}

.buy-modal-nft img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(80, 60, 35, 0.6);
  background: rgba(0, 0, 0, 0.4);
}

.buy-modal-nft-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(80, 60, 35, 0.6);
}

.buy-modal-name {
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.buy-modal-id {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  margin-top: 3px;
  text-transform: capitalize;
}

.buy-modal-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
}

.buy-modal-fee {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

.buy-modal-total {
  border-top: 1px solid rgba(80, 60, 35, 0.6);
  margin-top: 6px;
  padding-top: 12px;
  font-weight: 700;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.buy-modal-total small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  margin-left: 6px;
  font-weight: 400;
}

.buy-modal-status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 18px;
  color: var(--orange);
  letter-spacing: 0.3px;
  transition: color 0.15s;
}

.buy-modal-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid rgba(80, 60, 35, 0.6);
}

.buy-modal-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-family: 'DIN Alternate', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.buy-modal-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.buy-modal-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.buy-modal-btn.cancel {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(80, 60, 35, 0.9);
  color: rgba(255, 255, 255, 0.5);
}
.buy-modal-btn.cancel:hover:not(:disabled) {
  border-color: rgba(80, 60, 35, 1);
  color: rgba(255, 255, 255, 0.75);
}

.buy-modal-btn.confirm {
  background: rgba(255, 140, 0, 0.1);
  border: 1px solid rgba(255, 140, 0, 0.35);
  color: rgba(255, 255, 255, 0.8);
}
.buy-modal-btn.confirm:hover:not(:disabled) {
  background: rgba(255, 140, 0, 0.2);
  border-color: rgba(255, 140, 0, 0.65);
  color: #fff;
  box-shadow: 0 4px 18px rgba(255, 140, 0, 0.25);
}

.mp-card-stats { position: relative; }
.mp-info-wrap { position: relative; margin-left: auto; display: flex; align-items: center; }
.mp-info-icon { font-size: 13px; color: rgba(255,255,255,0.4); cursor: pointer; transition: color 0.2s; }
.mp-info-icon:hover { color: var(--orange); }
.mp-info-tooltip { display: none; position: absolute; bottom: calc(100% + 4px); right: -8px; width: 220px; max-width: 90vw; background: rgba(8,6,4,0.98); border: 1px solid rgba(80,60,35,0.9); border-radius: 6px; padding: 10px 12px; z-index: 100; box-sizing: border-box; overflow: hidden; pointer-events: auto; }
.mp-info-wrap:hover .mp-info-tooltip { display: block; }
.mp-info-name { font-size: 15px; color: var(--orange); font-weight: 700; margin-bottom: 6px; }
.mp-info-label { font-size: 10px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.mp-info-addr { font-size: 11px; color: rgba(255,255,255,0.8); word-break: break-all; cursor: pointer; transition: color 0.2s; }
.mp-info-addr:hover { color: var(--orange); }


@keyframes pulse-cancel {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Illuvial Finish Badge */
.mp-card-img {
  position: relative;
}

.mp-finish-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,170,80,0.35);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.mp-finish-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.mp-finish-text {
  font-weight: 800;
  font-size: 13px;
  color: white;
  letter-spacing: 0.5px;
}


.mp-card.skeleton { opacity: 0.4; pointer-events: none; }
.skeleton-img { width: 100%; aspect-ratio: 1; background: rgba(255,255,255,0.05); border-radius: 10px 10px 0 0; animation: skeleton-pulse 1.5s ease infinite; }
.skeleton-line { height: 14px; background: rgba(255,255,255,0.08); border-radius: 4px; margin: 8px 14px; animation: skeleton-pulse 1.5s ease infinite; }
.skeleton-line.short { width: 60%; }
@keyframes skeleton-pulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.15; } }

.mp-time-ago {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0,0,0,0.7);
  color: rgba(255,255,255,0.75);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  font-family: 'DIN Alternate', monospace;
}
/* Sales summary stat inline with button */
.mp-sales-stat {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  letter-spacing: 0.3px;
  font-family: 'DIN Alternate', sans-serif;
}
.mp-sales-stat strong {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

/* Sidebar collapse */
.mp-controls.collapsed {
  max-height: none;
  overflow: hidden;
}
.mp-controls.collapsed > *:not(.mp-controls-title) {
  display: none;
}
.mp-controls.collapsed .mp-controls-title {
  margin-bottom: 0;
}

/* Mobile stats bar collapse */
@media (max-width: 768px) {
  .mp-stats-expandable {
    display: none !important;
  }
  .mp-stats-bar.expanded .mp-stats-expandable {
    display: flex !important;
  }
  .mp-stats-toggle {
    display: flex !important;
  }
  #mp-stats-bar {
    flex-wrap: nowrap;
    justify-content: center;
  }
  #mp-stats-bar.expanded {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    padding: 6px 0 !important;
  }
  #mp-stats-bar.expanded .mp-stats-expandable {
    display: flex !important;
    border-right: none !important;
    padding: 6px 10px !important;
    justify-content: center;
    grid-column: span 3;
  }
  #mp-stats-bar.expanded .mp-stats-expandable[style*="width:2px"] {
    display: none !important;
  }
  /* Volume row: 3 items spanning 2 each */
  #mp-stats-bar.expanded .mp-stats-expandable:nth-of-type(4),
  #mp-stats-bar.expanded .mp-stats-expandable:nth-of-type(5),
  #mp-stats-bar.expanded .mp-stats-expandable:nth-of-type(6) {
    grid-column: span 2;
  }
  /* SALES + LISTED span 3 each */
  #mp-stats-bar.expanded > div:not(.mp-stats-expandable):not(.mp-stats-toggle) {
    grid-column: span 3;
    padding: 6px 10px;
    justify-content: center;
  }
  #mp-stats-bar.expanded .mp-stats-toggle {
    grid-column: 1 / -1;
    text-align: center;
  }
  /* Row dividers */
  #mp-stats-bar.expanded .mp-stats-expandable:nth-of-type(1),
  #mp-stats-bar.expanded .mp-stats-expandable:nth-of-type(2) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  #mp-stats-bar.expanded .mp-stats-expandable:nth-of-type(4),
  #mp-stats-bar.expanded .mp-stats-expandable:nth-of-type(5),
  #mp-stats-bar.expanded .mp-stats-expandable:nth-of-type(6) {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
}

.mp-rarity-common   { background: rgba(255,255,255,0.08); color: #c9d1d9; }
.mp-rarity-uncommon { background: rgba(63,185,80,0.15);  color: #3fb950; }
.mp-rarity-rare     { background: rgba(88,166,255,0.15); color: #58a6ff; }

.mp-card-expression {
  font-size: 11px;
  color: #8b949e;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.mp-info-under-cls {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.mp-stats-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-left: auto;
}
