/* Legends of Elumia — Marketplace mockup theme (mana-blue) */

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700&display=swap");

/* Password gate */
.mp-gate {
  position: fixed;
  inset: 0;
  z-index: 100000;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(26, 140, 255, 0.22), transparent 42%),
    radial-gradient(circle at 80% 0%, rgba(79, 210, 255, 0.14), transparent 35%),
    #020814;
}

body:not(.mp-vault-unlocked) .mp-app-root {
  display: none;
}

body.mp-vault-unlocked .mp-gate {
  display: none;
}

.mp-gate-card {
  width: min(100%, 420px);
  padding: 2rem;
  border: 1px solid var(--mp-border-bright);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(26, 140, 255, 0.1), rgba(107, 92, 231, 0.08)),
    var(--mp-panel-solid);
  box-shadow: 0 24px 80px rgba(0, 10, 28, 0.55), 0 0 40px rgba(79, 210, 255, 0.45);
}

.mp-gate-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mp-mana-bright);
  font-weight: 600;
}

.mp-gate-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--mp-mana-bright);
}

.mp-gate-copy {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.92rem;
}

.mp-gate-form {
  display: grid;
  gap: 0.65rem;
}

.mp-gate-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-faint);
}

.mp-gate-input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--mp-border);
  background: rgba(8, 7, 14, 0.9);
  color: var(--text);
  font: inherit;
}

.mp-gate-input:focus {
  outline: none;
  border-color: var(--mp-mana);
  box-shadow: 0 0 0 2px var(--mp-mana-soft);
}

.mp-gate-error {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.82rem;
  color: #ff8fab;
}

.mp-gate-submit {
  margin-top: 0.35rem;
  width: 100%;
}

.elumia-marketplace-page {
  --mp-gold: #e8c56a;
  --mp-gold-bright: #f4dc9a;
  --mp-gold-dim: #b8943a;
  --mp-mana: #4fd2ff;
  --mp-mana-bright: #9eebff;
  --mp-mana-deep: #1a8cff;
  --mp-mana-soft: rgba(79, 210, 255, 0.16);
  --mp-mana-glow: rgba(79, 210, 255, 0.45);
  --mp-arcane: #6b5ce7;
  --mp-arcane-soft: rgba(107, 92, 231, 0.18);
  --mp-arcane-glow: rgba(107, 92, 231, 0.35);
  --mp-teal: #4fd2ff;
  --mp-panel: rgba(8, 16, 32, 0.82);
  --mp-panel-solid: #07101c;
  --mp-glass: rgba(10, 22, 42, 0.78);
  --mp-border: rgba(79, 210, 255, 0.28);
  --mp-border-bright: rgba(158, 235, 255, 0.7);
  --mp-shadow-gold: 0 8px 32px rgba(79, 210, 255, 0.18);
  --mp-shadow-card: 0 12px 40px rgba(0, 10, 28, 0.55);
  --font-display: "Cinzel", "Exo 2", serif;
  --text: #f4fbff;
  --text-soft: rgba(232, 246, 255, 0.88);
  --text-faint: rgba(186, 220, 240, 0.68);
  --text-gold: var(--mp-gold-bright);
  background: #020814;
  min-height: 100vh;
  color: var(--text);
}

.elumia-marketplace-page::before,
.elumia-marketplace-page::after {
  display: none;
}

.mp-atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(26, 140, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(79, 210, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 75%, rgba(107, 92, 231, 0.16), transparent 45%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(26, 80, 160, 0.35), transparent 55%),
    #020814;
}

.mp-atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background:
    radial-gradient(circle at 20% 30%, rgba(79, 210, 255, 0.12), transparent 22%),
    radial-gradient(circle at 78% 18%, rgba(158, 235, 255, 0.08), transparent 18%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

.mp-app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  min-height: 100vh;
}

/* ── Sidebar ── */

.mp-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.35rem 1rem 1.5rem;
  border-right: 1px solid var(--mp-border);
  background:
    linear-gradient(180deg, rgba(8, 24, 48, 0.96) 0%, rgba(4, 10, 22, 0.98) 100%);
  backdrop-filter: blur(12px);
  overflow-y: auto;
  box-shadow:
    inset -1px 0 0 rgba(79, 210, 255, 0.18),
    8px 0 40px rgba(26, 140, 255, 0.08);
}

.mp-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.65rem 0.5rem;
  color: var(--text-gold);
  text-decoration: none;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.mp-sidebar-brand:hover {
  background: rgba(79, 210, 255, 0.08);
}

.mp-sidebar-logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(79, 210, 255, 0.55));
}

.mp-sidebar-brand-text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.mp-sidebar-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.2;
  color: var(--mp-mana-bright);
  letter-spacing: 0.02em;
}

.mp-sidebar-brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-sidebar-nav {
  display: grid;
  gap: 0.3rem;
}

.mp-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.mp-sidebar-icon {
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--text-faint);
  flex-shrink: 0;
}

.mp-sidebar-icon svg {
  width: 100%;
  height: 100%;
}

.mp-sidebar-item:hover {
  background: rgba(79, 210, 255, 0.08);
  color: var(--mp-mana-bright);
  border-color: rgba(79, 210, 255, 0.22);
}

.mp-sidebar-item.is-active {
  background: linear-gradient(135deg, rgba(79, 210, 255, 0.16), rgba(26, 140, 255, 0.1));
  border-color: var(--mp-border-bright);
  color: #fff;
  box-shadow:
    0 0 24px rgba(79, 210, 255, 0.22),
    inset 0 0 18px rgba(79, 210, 255, 0.08);
}

.mp-sidebar-item.is-active .mp-sidebar-icon {
  color: var(--mp-mana-bright);
  filter: drop-shadow(0 0 8px rgba(79, 210, 255, 0.7));
}

.mp-sidebar-note {
  margin: 2rem 0.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--mp-border);
  font-size: 0.65rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ── Main layout ── */

.mp-main {
  position: relative;
  min-width: 0;
  padding: 0 1.75rem 3rem;
}

.mp-hero-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  overflow: hidden;
  border-radius: 0 0 24px 24px;
  pointer-events: none;
}

.mp-hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.35;
  filter: saturate(1.1);
}

.mp-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 3, 8, 0.2) 0%, rgba(4, 3, 8, 0.92) 85%, #040308 100%),
    linear-gradient(90deg, rgba(107, 92, 231, 0.15), transparent 40%, rgba(212, 175, 55, 0.08));
}

.mp-topbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-top: 1.75rem;
}

.mp-topbar-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mp-teal);
  font-weight: 600;
}

.mp-topbar-kicker::before {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: linear-gradient(90deg, var(--mp-teal), transparent);
}

.mp-topbar-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 40px rgba(79, 210, 255, 0.35);
  letter-spacing: 0.01em;
}

.mp-topbar-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.elumia-marketplace-page .btn-primary {
  background: linear-gradient(135deg, #1a8cff, var(--mp-mana));
  color: #041018;
  font-weight: 700;
  border: 1px solid var(--mp-mana-bright);
  box-shadow: 0 0 22px rgba(79, 210, 255, 0.28);
}

.elumia-marketplace-page .btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 32px rgba(79, 210, 255, 0.45);
}

.elumia-marketplace-page .btn-outline {
  border-color: var(--mp-border-bright);
  color: var(--mp-mana-bright);
  background: rgba(79, 210, 255, 0.08);
}

.elumia-marketplace-page .btn-outline:hover {
  background: rgba(79, 210, 255, 0.18);
  border-color: var(--mp-mana-bright);
}

.elumia-marketplace-page .btn-ghost {
  color: var(--text-soft);
}

.elumia-marketplace-page .btn-ghost:hover {
  color: var(--mp-mana-bright);
  background: rgba(79, 210, 255, 0.08);
}

/* ── Subnav ── */

.mp-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  padding: 0.3rem;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  background: var(--mp-glass);
  backdrop-filter: blur(8px);
  width: fit-content;
  box-shadow: var(--mp-shadow-gold);
}

.mp-subnav-link {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-subnav-link:hover {
  color: var(--mp-mana-bright);
  background: rgba(79, 210, 255, 0.1);
}

.mp-subnav-link.is-active {
  background: linear-gradient(135deg, rgba(79, 210, 255, 0.22), rgba(26, 140, 255, 0.14));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(79, 210, 255, 0.4), 0 0 16px rgba(79, 210, 255, 0.18);
}

.mp-section-page[hidden],
.mp-view[hidden] {
  display: none !important;
}

/* ── Banners & states ── */

.mp-mock-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(62, 207, 189, 0.25);
  background: linear-gradient(135deg, rgba(62, 207, 189, 0.08), rgba(107, 92, 231, 0.06));
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.55;
}

.mp-mock-banner::before {
  content: "◆";
  color: var(--mp-teal);
  font-size: 0.7rem;
  margin-top: 0.15rem;
}

.mp-mock-banner a {
  color: var(--mp-gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mp-mock-tag {
  font-size: 0.68rem;
  color: var(--text-faint);
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mp-loading,
.mp-error {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  font-size: 0.88rem;
}

.mp-loading {
  border: 1px solid var(--mp-border);
  background: var(--mp-glass);
  color: var(--text-soft);
}

.mp-loading-gem {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--mp-gold-bright);
  box-shadow: 0 0 12px var(--mp-gold-bright);
  animation: mp-gem-pulse 1.2s ease-in-out infinite;
}

@keyframes mp-gem-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.mp-error {
  border: 1px solid rgba(255, 120, 120, 0.35);
  background: rgba(255, 80, 80, 0.08);
  color: #ffb4b4;
}

/* ── Promo & sections ── */

.mp-promo {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.35rem;
  border-radius: 18px;
  border: 1px solid var(--mp-border);
  background:
    linear-gradient(135deg, rgba(107, 92, 231, 0.12) 0%, transparent 50%),
    linear-gradient(225deg, rgba(212, 175, 55, 0.1) 0%, transparent 45%),
    var(--mp-panel);
  backdrop-filter: blur(8px);
  box-shadow: var(--mp-shadow-card);
  position: relative;
  overflow: hidden;
}

.mp-promo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mp-mana-bright), transparent);
  opacity: 0.7;
}

.mp-promo--floor {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  align-items: start;
}

.mp-promo-copy h2,
.mp-section-head h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 0 18px rgba(79, 210, 255, 0.25);
}

.mp-promo-copy p,
.mp-section-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.55;
}

.mp-promo-timer {
  margin-top: 0.85rem !important;
  font-family: var(--font-display);
  color: var(--mp-teal) !important;
}

.mp-promo-timer strong {
  color: var(--mp-gold-bright);
  font-variant-numeric: tabular-nums;
}

.mp-section {
  margin-bottom: 2rem;
}

.mp-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--mp-border);
}

.mp-section-head h2::after {
  content: none;
}

.mp-section--personal .mp-rail--personal:empty::before {
  content: "Connect your wallet to see personalized bundle recommendations.";
  display: block;
  padding: 1.5rem;
  border: 1px dashed rgba(107, 92, 231, 0.35);
  border-radius: 16px;
  background: rgba(107, 92, 231, 0.05);
  color: var(--text-soft);
  font-size: 0.88rem;
}

/* ── Listing tiles ── */

.mp-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.mp-rail::-webkit-scrollbar {
  height: 6px;
}

.mp-rail::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.mp-rail::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--mp-gold-dim), var(--mp-gold));
  border-radius: 999px;
}

.mp-tile,
.mp-browse-card {
  scroll-snap-align: start;
  position: relative;
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 30%),
    var(--mp-panel-solid);
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.45s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 45ms);
}

.mp-tile.is-revealed,
.mp-browse-card.is-revealed,
.mp-sale-row.is-revealed,
.mp-activity-row.is-revealed,
.mp-collection-card.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mp-tile-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.12) 50%,
    transparent 60%
  );
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.mp-tile:hover .mp-tile-shine,
.mp-browse-card:hover .mp-tile-shine {
  transform: translateX(120%);
}

.mp-tile::before,
.mp-browse-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(158, 235, 255, 0.95),
    rgba(26, 140, 255, 0.45),
    rgba(107, 92, 231, 0.4),
    rgba(158, 235, 255, 0.95)
  );
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  animation: mp-border-spin 4s linear infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(0.4px);
}

.mp-tile:hover::before,
.mp-browse-card:hover::before {
  opacity: 1;
  filter: blur(0);
}

@keyframes mp-border-spin {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


.mp-tile {
  flex: 0 0 188px;
}

.mp-tile:hover,
.mp-browse-card:hover {
  border-color: var(--mp-border-bright);
  box-shadow:
    0 0 28px rgba(79, 210, 255, 0.28),
    0 0 0 1px rgba(79, 210, 255, 0.2);
}

.mp-sale-row,
.mp-activity-row,
.mp-collection-card {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  transition-delay: calc(var(--reveal-i, 0) * 40ms);
}

.mp-sale-row.is-revealed,
.mp-activity-row.is-revealed,
.mp-collection-card.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

.mp-tile-media {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 35%, rgba(107, 92, 231, 0.2), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(212, 175, 55, 0.08), transparent 50%),
    #0a0910;
}

.mp-tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(4, 3, 8, 0.6) 100%);
  pointer-events: none;
}

.mp-tile-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
  transition: transform 0.3s ease;
}

.mp-tile:hover .mp-tile-media img,
.mp-browse-card:hover .mp-tile-media img {
  transform: scale(1.04);
}

.mp-tile-pet {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--mp-border-bright);
  background: rgba(4, 3, 8, 0.85);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.mp-tile-pet img {
  padding: 0 !important;
  object-fit: cover;
  transform: none !important;
}

.mp-tile-body {
  padding: 0.75rem 0.85rem 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.mp-tile-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mp-gold-bright);
  font-size: 1.12rem;
  text-shadow: 0 0 20px rgba(232, 197, 106, 0.35);
}

.mp-tile-meta {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.mp-tile-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(4, 3, 8, 0.82);
  border: 1px solid var(--mp-border-bright);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--mp-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  backdrop-filter: blur(4px);
}

.mp-tile--floor .mp-tile-badge {
  border-color: rgba(62, 207, 189, 0.45);
  color: var(--mp-teal);
  box-shadow: 0 0 12px rgba(62, 207, 189, 0.2);
}

.mp-tile-class {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(107, 92, 231, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.58rem;
  font-weight: 600;
  color: #e8e4ff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}

/* ── Top sales ── */

.mp-top-sales {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 0.7rem;
}

.mp-sale-row {
  display: grid;
  grid-template-columns: 2rem 56px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  background: var(--mp-glass);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-sale-row:hover {
  border-color: var(--mp-border-bright);
  background: rgba(212, 175, 55, 0.06);
}

.mp-sale-rank {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mp-gold-dim);
  font-size: 1rem;
}

.mp-sale-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #0a0910;
  border: 1px solid var(--mp-border);
}

.mp-sale-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mp-sale-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-sale-sub {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.mp-sale-price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--mp-gold-bright);
  font-size: 0.95rem;
  white-space: nowrap;
}

/* ── Collections ── */

.mp-collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.mp-collection-card {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  background: var(--mp-glass);
  backdrop-filter: blur(6px);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.mp-collection-card:hover,
.mp-collection-card.is-active {
  border-color: var(--mp-border-bright);
  box-shadow: var(--mp-shadow-gold);
}

.mp-collection-card.is-active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(107, 92, 231, 0.08));
}

.mp-collection-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 14px;
  background: #0a0910;
  border: 1px solid var(--mp-border);
  padding: 0.35rem;
}

.mp-collection-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--mp-gold-bright);
}

.mp-collection-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.mp-collection-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mp-input {
  padding: 0.58rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--mp-border);
  background: rgba(8, 7, 14, 0.8);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-input:focus {
  outline: none;
  border-color: var(--mp-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.mp-browse-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.mp-browse-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0.85rem 0.55rem 0.55rem;
  min-height: 96px;
}

.mp-browse-card .mp-tile-media {
  aspect-ratio: 1;
  width: 88px;
  border-radius: 12px;
  overflow: hidden;
}

.mp-browse-card .mp-tile-media img {
  padding: 0.2rem;
  object-fit: cover;
}

.mp-browse-card .mp-tile-body {
  border-top: 0;
  padding: 0;
}

.mp-browse-card .mp-tile-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
}

.mp-browse-card .mp-tile-icons {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.mp-browse-card .mp-tile-icons img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--mp-border);
  object-fit: cover;
  background: #061018;
}

.mp-listing-timer {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 0.92rem;
  color: var(--mp-mana-bright);
  min-width: 4.2rem;
  text-align: right;
  text-shadow: 0 0 12px rgba(79, 210, 255, 0.45);
}

.mp-listing-timer.is-urgent {
  color: #ff6b8a;
  animation: mp-flash-timer-urgent 0.45s step-end infinite;
}

.mp-tile .mp-listing-timer {
  display: block;
  margin-top: 0.35rem;
  text-align: left;
  font-size: 0.78rem;
}

/* ── Activity ── */

.mp-activity-feed {
  display: grid;
  gap: 0.55rem;
}

.mp-activity-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid var(--mp-border);
  border-radius: 14px;
  background: var(--mp-glass);
  backdrop-filter: blur(4px);
}

.mp-activity-type {
  min-width: 3.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mp-teal);
  font-weight: 700;
}

/* ── Placeholder pages ── */

.mp-placeholder-page {
  max-width: 680px;
  padding: 0.5rem 0 2rem;
}

.mp-placeholder-page h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--mp-gold-bright);
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
}

.mp-placeholder-page > p {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  line-height: 1.6;
  font-size: 0.95rem;
}

.mp-placeholder-note {
  margin-top: 1.5rem !important;
  font-size: 0.8rem;
  color: var(--text-faint) !important;
}

.mp-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.mp-reward-card {
  display: grid;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  border: 1px solid var(--mp-border);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.08), transparent),
    var(--mp-panel-solid);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-reward-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow-gold);
}

.mp-reward-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--mp-gold-bright);
  text-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
}

.mp-reward-label {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.mp-community-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.mp-community-list li {
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  background: var(--mp-glass);
  color: var(--text-soft);
  line-height: 1.5;
  font-size: 0.88rem;
}

.mp-community-list strong {
  color: var(--mp-gold-bright);
}

/* Community votes */
.mp-community-page {
  max-width: 920px;
}

.mp-community-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mp-community-head h2 {
  margin: 0.15rem 0 0.4rem;
  font-family: var(--font-display);
  color: #fff;
}

.mp-community-head p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 56ch;
}

.mp-vote-weight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--mp-border-bright);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(79, 210, 255, 0.16), transparent 55%),
    var(--mp-panel);
  box-shadow: 0 0 28px rgba(79, 210, 255, 0.12);
}

.mp-vote-weight-main {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.mp-vote-weight-label,
.mp-vote-weight-unit {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-vote-weight-main strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--mp-mana-bright);
  text-shadow: 0 0 22px rgba(79, 210, 255, 0.45);
}

.mp-vote-weight-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.mp-vote-chip {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--mp-border);
  background: rgba(4, 12, 24, 0.7);
}

.mp-vote-chip span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-vote-chip strong {
  font-size: 1.15rem;
  color: #fff;
}

.mp-vote-chip em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--mp-gold-bright);
}

.mp-vote-chip--genesis {
  border-color: rgba(232, 197, 106, 0.45);
  box-shadow: 0 0 16px rgba(232, 197, 106, 0.12);
}

.mp-vote-chip--epoch {
  border-color: rgba(79, 210, 255, 0.4);
}

.mp-vote-weight-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.mp-vote-wallet-label {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.mp-vote-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mp-vote-card {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 1.1rem;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid var(--mp-border);
  background: var(--mp-glass);
  box-shadow: 0 0 24px rgba(79, 210, 255, 0.08);
}

.mp-vote-card-image {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--mp-border-bright);
  background: #061018;
  box-shadow: 0 0 20px rgba(79, 210, 255, 0.2);
}

.mp-vote-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-vote-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
}

.mp-vote-option {
  width: 100%;
  margin-bottom: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--mp-border);
  background: rgba(4, 12, 24, 0.75);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.mp-vote-option:hover,
.mp-vote-option.is-mine {
  border-color: var(--mp-mana-bright);
  box-shadow: 0 0 16px rgba(79, 210, 255, 0.2);
}

.mp-vote-option-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.mp-vote-option-pts {
  color: var(--mp-mana-bright);
  font-variant-numeric: tabular-nums;
}

.mp-vote-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mp-vote-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mp-mana-deep), var(--mp-mana-bright));
  box-shadow: 0 0 10px var(--mp-mana);
  transition: width 0.4s ease;
}

.mp-vote-card-meta {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.mp-admin-panel {
  margin-bottom: 1.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 16px;
  border: 1px dashed var(--mp-border-bright);
  background: rgba(8, 20, 40, 0.72);
}

.mp-admin-gate-form,
.mp-admin-create {
  display: grid;
  gap: 0.75rem;
}

.mp-admin-create label,
.mp-admin-file {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.mp-admin-outcomes-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.mp-vote-outcomes {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.5rem;
}

.mp-vote-image-preview {
  max-width: 180px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--mp-border);
}

.mp-vote-image-preview img {
  display: block;
  width: 100%;
}

.mp-admin-create-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mp-admin-error {
  min-height: 1.1rem;
  margin: 0.35rem 0 0;
  color: #ff8fab;
  font-size: 0.82rem;
}

.mp-community-guilds h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  color: #fff;
}

@media (max-width: 700px) {
  .mp-vote-weight,
  .mp-vote-card {
    grid-template-columns: 1fr;
  }
}

.mp-profile-card {
  display: flex;
  gap: 1.15rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  border: 1px solid var(--mp-border);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(26, 140, 255, 0.12), rgba(79, 210, 255, 0.06)),
    var(--mp-panel-solid);
  box-shadow: var(--mp-shadow-card);
}

.mp-profile-avatar {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mp-mana-deep), var(--mp-arcane));
  border: 2px solid var(--mp-mana-bright);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 24px var(--mp-mana-glow);
}

.mp-profile-wallet {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mp-mana-bright);
}

.mp-profile-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

/* ── Panel & forms ── */

.mp-panel {
  max-width: 520px;
  padding: 1.35rem;
  border: 1px solid var(--mp-border);
  border-radius: 18px;
  background: var(--mp-glass);
  backdrop-filter: blur(8px);
  box-shadow: var(--mp-shadow-card);
}

.mp-panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--mp-gold-bright);
}

.mp-panel p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.mp-list-form {
  display: grid;
  gap: 0.85rem;
}

.mp-list-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-list-form input,
.mp-list-form select {
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--mp-border);
  background: rgba(8, 7, 14, 0.9);
  color: var(--text);
  font: inherit;
}

.mp-list-form input:focus,
.mp-list-form select:focus {
  outline: none;
  border-color: var(--mp-gold);
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.12);
}

/* ── Sell wizard ── */

.mp-sell-wizard {
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow:
    0 0 60px rgba(107, 92, 231, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mp-sell-wizard::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    120deg,
    rgba(212, 175, 55, 0.5),
    rgba(107, 92, 231, 0.35),
    rgba(62, 207, 189, 0.4),
    rgba(212, 175, 55, 0.5)
  );
  background-size: 300% 300%;
  animation: mp-sell-border-flow 6s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

@keyframes mp-sell-border-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.mp-sell-aurora {
  position: absolute;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(107, 92, 231, 0.22), transparent 45%),
    radial-gradient(ellipse at 85% 10%, rgba(212, 175, 55, 0.15), transparent 40%),
    radial-gradient(ellipse at 70% 90%, rgba(62, 207, 189, 0.12), transparent 42%);
  animation: mp-sell-aurora 10s ease-in-out infinite alternate;
}

@keyframes mp-sell-aurora {
  0% { opacity: 0.65; transform: scale(1) rotate(0deg); }
  100% { opacity: 1; transform: scale(1.06) rotate(2deg); }
}

.mp-sell-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.012) 2px,
    rgba(255, 255, 255, 0.012) 4px
  );
  opacity: 0.5;
}

.mp-sell-wizard-head,
.mp-sell-steps,
.mp-sell-bound-banner,
.mp-sell-step-panel,
.mp-sell-timers {
  position: relative;
  z-index: 2;
}

/* Flashing timer strip */
.mp-sell-timers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  padding: 0.75rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  background: rgba(4, 3, 8, 0.55);
  backdrop-filter: blur(8px);
}

.mp-sell-timer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--mp-border);
  background: rgba(8, 7, 14, 0.8);
  min-width: 120px;
}

.mp-sell-timer--live {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  border-color: rgba(62, 207, 189, 0.4);
  background: rgba(62, 207, 189, 0.08);
  animation: mp-live-pulse 2s ease-in-out infinite;
}

@keyframes mp-live-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(62, 207, 189, 0); }
  50% { box-shadow: 0 0 24px rgba(62, 207, 189, 0.25); }
}

.mp-sell-timer-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3ecfbd;
  box-shadow: 0 0 10px #3ecfbd;
  animation: mp-dot-blink 1s step-end infinite;
}

@keyframes mp-dot-blink {
  50% { opacity: 0.3; transform: scale(0.85); }
}

.mp-sell-timer--live span:last-child {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #3ecfbd;
}

.mp-sell-timer-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-flash-timer {
  font-family: var(--font-display, monospace);
  font-size: 1.15rem;
  color: var(--text-gold);
  letter-spacing: 0.06em;
  animation: mp-flash-timer 1s step-end infinite;
}

.mp-flash-timer.is-urgent {
  color: #ff6b8a;
  animation: mp-flash-timer-urgent 0.45s step-end infinite;
  text-shadow: 0 0 12px rgba(255, 107, 138, 0.6);
}

.mp-flash-timer.is-hot {
  color: #f0d060;
  animation: mp-flash-timer-hot 0.7s ease-in-out infinite;
  text-shadow: 0 0 16px rgba(240, 208, 96, 0.55);
}

.mp-flash-timer--score {
  color: #c4b5fd;
  animation: mp-score-pulse 2s ease-in-out infinite;
}

@keyframes mp-flash-timer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

@keyframes mp-flash-timer-urgent {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.04); }
}

@keyframes mp-flash-timer-hot {
  0%, 100% { opacity: 1; filter: brightness(1); }
  50% { opacity: 0.9; filter: brightness(1.25); }
}

@keyframes mp-score-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(196, 181, 253, 0.3); }
  50% { text-shadow: 0 0 20px rgba(196, 181, 253, 0.65); }
}

.mp-sell-timer--bind {
  border-color: rgba(163, 53, 238, 0.45);
  background: rgba(163, 53, 238, 0.08);
  animation: mp-bind-timer-glow 3s ease-in-out infinite;
}

@keyframes mp-bind-timer-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(163, 53, 238, 0); }
  50% { box-shadow: 0 0 22px rgba(163, 53, 238, 0.2); }
}

.mp-sell-timer--window.is-critical {
  border-color: rgba(255, 107, 138, 0.5);
  animation: mp-window-critical 1.2s ease-in-out infinite;
}

@keyframes mp-window-critical {
  0%, 100% { box-shadow: 0 0 0 rgba(255, 107, 138, 0); }
  50% { box-shadow: 0 0 28px rgba(255, 107, 138, 0.25); }
}

.mp-sell-wizard-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.mp-sell-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mp-teal);
  font-weight: 600;
}

.mp-sell-intro {
  margin: 0.5rem 0 0;
  max-width: 52ch;
  color: var(--text-soft);
  line-height: 1.55;
}

.mp-sell-wallet-bar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--mp-border);
  background: rgba(8, 7, 14, 0.75);
  min-width: min(100%, 280px);
}

.mp-sell-wallet-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-sell-wallet-status strong {
  font-size: 0.95rem;
  color: var(--text-gold);
}

.mp-sell-wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mp-sell-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.mp-sell-step-tab {
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--mp-border);
  background: rgba(8, 7, 14, 0.6);
  font-size: 0.78rem;
  color: var(--text-soft);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.mp-step-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.35), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.mp-sell-step-tab.is-active {
  border-color: rgba(212, 175, 55, 0.55);
  background: rgba(212, 175, 55, 0.12);
  color: var(--text-gold);
  transform: scale(1.03);
  animation: mp-step-tab-pulse 2.5s ease-in-out infinite;
}

.mp-sell-step-tab.is-active .mp-step-glow {
  opacity: 1;
  animation: mp-step-glow-spin 4s linear infinite;
}

.mp-sell-step-tab.is-complete {
  border-color: rgba(62, 207, 189, 0.45);
  color: #3ecfbd;
}

@keyframes mp-step-tab-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 0 18px rgba(212, 175, 55, 0.2); }
}

@keyframes mp-step-glow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mp-sell-bound-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(163, 53, 238, 0.45);
  background: linear-gradient(90deg, rgba(163, 53, 238, 0.12), rgba(212, 175, 55, 0.08));
  box-shadow: 0 0 24px rgba(163, 53, 238, 0.15);
  animation: mp-bound-banner-flash 3s ease-in-out infinite;
}

@keyframes mp-bound-banner-flash {
  0%, 100% {
    box-shadow: 0 0 24px rgba(163, 53, 238, 0.15);
    border-color: rgba(163, 53, 238, 0.45);
  }
  50% {
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.25);
    border-color: rgba(212, 175, 55, 0.55);
  }
}

.mp-sell-bound-banner.is-locked {
  animation: mp-bound-locked 1.5s ease-in-out infinite;
}

@keyframes mp-bound-locked {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.008); }
}

.mp-sell-bound-icon {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.mp-sell-bound-banner strong {
  display: block;
  color: var(--text-gold);
}

.mp-sell-bound-banner p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

.mp-sell-step-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.mp-sell-hint {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.mp-sell-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}

.mp-sell-hero-card {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  border: 2px solid var(--mp-border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(8, 7, 14, 0.85);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(14px);
}

.mp-sell-hero-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    border-color 0.2s,
    box-shadow 0.2s;
  transition-delay: calc(var(--reveal-i, 0) * 0.06s);
}

.mp-sell-hero-card:hover {
  transform: translateY(-3px);
  border-color: rgba(163, 53, 238, 0.45);
}

.mp-sell-hero-card.is-selected {
  border-color: var(--mp-gold);
  box-shadow: 0 0 28px rgba(212, 175, 55, 0.25);
  animation: mp-hero-selected-pulse 2s ease-in-out infinite;
}

@keyframes mp-hero-selected-pulse {
  0%, 100% { box-shadow: 0 0 28px rgba(212, 175, 55, 0.25); }
  50% { box-shadow: 0 0 44px rgba(212, 175, 55, 0.45); }
}

.mp-sell-hero-card.is-bound {
  border-color: rgba(163, 53, 238, 0.55);
  box-shadow: 0 0 24px rgba(163, 53, 238, 0.2);
}

.mp-sell-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(163, 53, 238, 0.2), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.mp-sell-hero-card.is-selected .mp-sell-hero-glow,
.mp-sell-hero-card.is-bound .mp-sell-hero-glow {
  opacity: 1;
}

.mp-sell-hero-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.mp-sell-hero-body {
  padding: 0.65rem 0.75rem 0.75rem;
  display: grid;
  gap: 0.15rem;
}

.mp-sell-hero-body strong {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.25;
}

.mp-sell-hero-body span {
  font-size: 0.72rem;
  color: var(--text-faint);
}

.mp-sell-bound-tag {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(163, 53, 238, 0.2);
  color: #c4b5fd;
}

.mp-sell-item-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.mp-sell-item-count {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--mp-teal);
  font-weight: 600;
}

.mp-sell-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 0.25rem;
}

.mp-sell-item-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--mp-border);
  background: rgba(8, 7, 14, 0.75);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  opacity: 0;
  transform: translateX(-10px);
}

.mp-sell-item-card.is-revealed {
  opacity: 1;
  transform: translateX(0);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    border-color 0.2s,
    box-shadow 0.2s;
  transition-delay: calc(var(--reveal-i, 0) * 0.03s);
}

.mp-sell-item-card:has(.mp-sell-item-check:checked) {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.12);
  animation: mp-item-checked-flash 2.5s ease-in-out infinite;
}

@keyframes mp-item-checked-flash {
  0%, 100% { box-shadow: 0 0 16px rgba(212, 175, 55, 0.12); }
  50% { box-shadow: 0 0 24px rgba(212, 175, 55, 0.28); }
}

.mp-sell-item-check {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--mp-gold);
}

.mp-sell-item-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--mp-border);
  flex-shrink: 0;
}

.mp-sell-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-sell-item-body {
  min-width: 0;
  flex: 1;
}

.mp-sell-item-body strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.25;
}

.mp-sell-item-body span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--text-faint);
}

.mp-sell-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.mp-sell-bind-preview {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(8, 7, 14, 0.6);
  animation: mp-preview-glow 4s ease-in-out infinite;
}

@keyframes mp-preview-glow {
  0%, 100% { box-shadow: inset 0 0 30px rgba(107, 92, 231, 0.05); }
  50% { box-shadow: inset 0 0 50px rgba(212, 175, 55, 0.08); }
}

.mp-sell-preview-item {
  display: grid;
  gap: 0.35rem;
  text-align: center;
  animation: mp-preview-item-float 3s ease-in-out infinite;
  animation-delay: calc(var(--preview-i, 0) * 0.15s);
}

@keyframes mp-preview-item-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Shimmer buttons */
.mp-sell-bind-btn,
.mp-sell-publish-btn {
  position: relative;
  overflow: hidden;
}

.mp-sell-bind-btn:not(:disabled),
.mp-sell-publish-btn {
  animation: mp-btn-ready-glow 2s ease-in-out infinite;
}

@keyframes mp-btn-ready-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 0 28px rgba(212, 175, 55, 0.35); }
}

.mp-btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: mp-btn-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mp-btn-shimmer {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}

.mp-sell-bind-btn.is-binding {
  animation: mp-binding-flash 0.4s ease 3;
}

@keyframes mp-binding-flash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}

.mp-sell-step-panel.is-entering {
  animation: mp-step-enter 0.45s ease;
}

@keyframes mp-step-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.mp-sell-wizard.is-step-flash {
  animation: mp-wizard-flash 0.5s ease;
}

@keyframes mp-wizard-flash {
  0% { filter: brightness(1); }
  40% { filter: brightness(1.15); }
  100% { filter: brightness(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mp-sell-wizard::before,
  .mp-sell-aurora,
  .mp-flash-timer,
  .mp-sell-timer--live,
  .mp-sell-bound-banner,
  .mp-btn-shimmer,
  .mp-sell-hero-card.is-selected,
  .mp-sell-item-card:has(.mp-sell-item-check:checked) {
    animation: none !important;
  }
}

.mp-sell-preview-hero {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--mp-border);
}

.mp-sell-preview-hero img {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}

.mp-sell-preview-hero strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-gold);
}

.mp-sell-preview-hero p {
  margin: 0.25rem 0 0;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.mp-sell-preview-note {
  color: var(--mp-teal) !important;
  font-size: 0.8rem !important;
}

.mp-sell-preview-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.65rem;
}

.mp-sell-preview-item {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.mp-sell-preview-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--mp-border);
}

.mp-sell-preview-item span {
  font-size: 0.68rem;
  color: var(--text-soft);
  line-height: 1.25;
}

.mp-sell-list-form {
  max-width: 280px;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

/* ── Modal ── */

.mp-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.mp-modal[hidden] {
  display: none !important;
}

.mp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 8, 0.82);
  backdrop-filter: blur(8px);
}

.mp-modal-card {
  position: relative;
  width: min(100%, 580px);
  max-height: min(90vh, 840px);
  overflow: auto;
  padding: 1.5rem;
  border: 1px solid var(--mp-border-bright);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(107, 92, 231, 0.08) 0%, transparent 40%),
    var(--mp-panel-solid);
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: mp-modal-in 0.25s ease;
}

@keyframes mp-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.mp-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--mp-border);
  border-radius: 999px;
  background: rgba(8, 7, 14, 0.9);
  color: var(--text-soft);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mp-modal-close:hover {
  border-color: var(--mp-gold);
  color: var(--mp-gold-bright);
}

.mp-modal-card h2 {
  margin: 0 0 1rem;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--mp-gold-bright);
}

.mp-modal-card p {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 0.5rem;
}

.mp-detail-hero {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid var(--mp-border);
  background:
    radial-gradient(circle at 50% 30%, rgba(107, 92, 231, 0.25), transparent 55%),
    #0a0910;
  margin-bottom: 1rem;
  overflow: hidden;
}

.mp-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}

.mp-detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.85rem 0 1rem;
}

.mp-detail-bundle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.85rem 0;
}

.mp-detail-bundle-item {
  display: block;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  background: rgba(8, 7, 14, 0.9);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.mp-detail-bundle-item:hover {
  border-color: var(--mp-gold);
  transform: translateY(-2px);
}

.mp-detail-bundle-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.mp-detail-bundle-item span {
  display: block;
  padding: 0.35rem 0.45rem;
  font-size: 0.62rem;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mp-detail-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mp-border);
}

.mp-empty {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--text-soft);
  border: 1px dashed rgba(107, 92, 231, 0.3);
  border-radius: 16px;
  background: rgba(107, 92, 231, 0.04);
}

/* ── Toast ── */

.mp-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10002;
  max-width: min(92vw, 380px);
  padding: 0.9rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--mp-border-bright);
  background: var(--mp-panel-solid);
  box-shadow: var(--mp-shadow-card);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.mp-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .mp-app {
    grid-template-columns: 1fr;
  }

  .mp-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--mp-border);
  }

  .mp-sidebar-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-hero-banner {
    height: 160px;
  }

  .mp-promo--floor {
    grid-template-columns: 1fr;
  }

  .mp-play-hub-head,
  .mp-flash-deal {
    grid-template-columns: 1fr;
  }

  .mp-browse-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .mp-browse-card .mp-tile-price,
  .mp-browse-card .mp-listing-timer {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .mp-main {
    padding: 0 1rem 2rem;
  }

  .mp-tile {
    flex-basis: 168px;
  }

  .mp-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .mp-subnav {
    width: 100%;
    justify-content: stretch;
  }

  .mp-subnav-link {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mp-tile,
  .mp-browse-card,
  .mp-sale-row,
  .mp-activity-row,
  .mp-collection-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mp-tile:hover,
  .mp-browse-card:hover,
  .mp-reward-card:hover,
  .mp-detail-bundle-item:hover {
    transform: none;
  }

  .mp-tile::before,
  .mp-browse-card::before {
    animation: none;
    opacity: 0;
  }

  .mp-loading-gem {
    animation: none;
  }

  .mp-modal-card {
    animation: none;
  }

  .mp-particles,
  .mp-cursor-glow,
  .mp-sparkle-layer {
    display: none;
  }
}

/* ── Interactive FX layer ── */

.mp-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mp-particle {
  position: absolute;
  border-radius: 999px;
  opacity: 0.45;
  animation: mp-float var(--dur, 12s) var(--delay, 0s) ease-in-out infinite;
  box-shadow: 0 0 8px currentColor;
}

@keyframes mp-float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate(var(--drift, 20px), -40px) scale(1.4);
    opacity: 0.7;
  }
}

.mp-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(circle, rgba(79, 210, 255, 0.18), transparent 65%);
  transition: opacity 0.35s ease;
  mix-blend-mode: screen;
}

.mp-cursor-glow.is-visible {
  opacity: 1;
}

.mp-sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10003;
  overflow: hidden;
}

.mp-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  transform: rotate(45deg);
  animation: mp-sparkle-burst 0.85s ease-out forwards;
}

@keyframes mp-sparkle-burst {
  0% {
    opacity: 1;
    transform: rotate(45deg) translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(var(--sx), var(--sy)) scale(0);
  }
}

.mp-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(240, 208, 96, 0.35);
  transform: scale(0);
  animation: mp-ripple 0.65s ease-out forwards;
  pointer-events: none;
}

@keyframes mp-ripple {
  to {
    transform: scale(2.5);
    opacity: 0;
  }
}

/* Live stats */
.mp-live-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.mp-stat {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  background: var(--mp-glass);
  backdrop-filter: blur(8px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--mp-shadow-gold);
}

.mp-stat--pulse {
  animation: mp-stat-glow 2.5s ease-in-out infinite;
}

.mp-stat--deal .mp-stat-value {
  color: var(--mp-teal);
}

@keyframes mp-stat-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(79, 210, 255, 0); }
  50% { box-shadow: 0 0 24px rgba(79, 210, 255, 0.22); }
}

.mp-stat-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}

.mp-stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mp-mana-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 16px rgba(79, 210, 255, 0.35);
}

/* Play hub / ticker / flash deal */
.mp-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--mp-border);
  background: rgba(6, 18, 36, 0.8);
  overflow: hidden;
}

.mp-ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--mp-mana-bright);
}

.mp-ticker-track {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.86rem;
  animation: mp-ticker-scroll 28s linear infinite;
}

@keyframes mp-ticker-scroll {
  0% { transform: translateX(8%); }
  100% { transform: translateX(-70%); }
}

.mp-play-hub,
.mp-flash-deal {
  position: relative;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  border: 1px solid var(--mp-border-bright);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(79, 210, 255, 0.14), transparent 50%),
    var(--mp-panel);
  box-shadow: 0 0 32px rgba(79, 210, 255, 0.12);
}

.mp-play-hub-head,
.mp-flash-deal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.mp-play-energy {
  min-width: 180px;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  background: rgba(4, 12, 24, 0.7);
  text-align: right;
}

.mp-play-energy-label,
.mp-energy-copy {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-energy-bar {
  height: 8px;
  margin: 0.45rem 0 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mp-energy-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mp-mana-deep), var(--mp-mana-bright));
  box-shadow: 0 0 12px var(--mp-mana);
  transition: width 0.4s ease;
}

.mp-quest-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.mp-quest-card {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid var(--mp-border);
  background: rgba(6, 16, 32, 0.75);
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.mp-quest-card:hover {
  transform: translateY(-2px);
  border-color: var(--mp-mana);
  box-shadow: 0 0 20px rgba(79, 210, 255, 0.18);
}

.mp-quest-card.is-done {
  border-color: rgba(79, 210, 255, 0.55);
  opacity: 0.72;
}

.mp-quest-card strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.mp-quest-card span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.mp-quest-xp {
  margin-top: 0.45rem !important;
  color: var(--mp-gold-bright) !important;
  font-weight: 700;
}

.mp-flash-deal-art {
  width: min(220px, 36vw);
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--mp-border-bright);
  box-shadow: 0 0 28px rgba(79, 210, 255, 0.3);
  background: #061018;
}

.mp-flash-deal-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mp-rewards-timers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.mp-bounty-balance-pill strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--mp-mana-bright);
  text-shadow: 0 0 16px var(--mp-mana-glow);
}

.mp-mana-well {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: 1.35rem;
  border-radius: 20px;
  border: 1px solid var(--mp-border-bright);
  background:
    radial-gradient(ellipse at 80% 20%, rgba(79, 210, 255, 0.12), transparent 55%),
    rgba(8, 20, 40, 0.85);
  box-shadow:
    0 0 48px rgba(79, 210, 255, 0.1),
    inset 0 1px 0 rgba(158, 235, 255, 0.08);
}

.mp-mana-well-copy h3 {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--font-display);
  color: var(--mp-mana-bright);
}

.mp-mana-well-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.9rem;
}

.mp-mana-well-note {
  margin-top: 0.5rem !important;
  font-size: 0.82rem !important;
  color: var(--text-faint) !important;
}

.mp-wheel-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.mp-wheel-pointer {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  z-index: 4;
  width: 0;
  height: 0;
  margin-left: -12px;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid var(--mp-mana-bright);
  filter: drop-shadow(0 0 8px var(--mp-mana-glow));
}

.mp-wheel-hub {
  position: absolute;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 2px solid var(--mp-border-bright);
  background:
    radial-gradient(circle at 35% 30%, var(--mp-mana-bright), var(--mp-mana-deep));
  box-shadow:
    0 0 24px var(--mp-mana-glow),
    inset 0 0 12px rgba(255, 255, 255, 0.25);
}

.mp-wheel-disc {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--mp-border-bright);
  box-shadow:
    0 0 40px rgba(79, 210, 255, 0.35),
    0 12px 40px rgba(0, 10, 28, 0.55),
    inset 0 0 30px rgba(0, 0, 0, 0.35);
  will-change: transform;
}

.mp-wheel-disc.is-spinning {
  filter: brightness(1.08);
}

.mp-wheel-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}

.mp-wheel-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -90deg,
    rgba(255, 255, 255, 0.08) 0deg 0.8deg,
    transparent 0.8deg 18deg
  );
  pointer-events: none;
}

.mp-wheel-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mp-wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.2rem;
  margin-left: -1.6rem;
  margin-top: -0.45rem;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  color: #f4fbff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  transform-origin: center 0;
}

.mp-wheel-spin-btn {
  position: absolute;
  bottom: 0;
  z-index: 5;
  min-width: 11rem;
  box-shadow: 0 0 28px rgba(79, 210, 255, 0.35);
}

.mp-wheel-spin-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mp-mana-spin-result {
  grid-column: 1 / -1;
  min-height: 1.4rem;
  margin: 0;
  padding-top: 0.35rem;
  color: var(--mp-mana-bright);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.mp-mana-spin-result.is-win {
  animation: mp-wheel-win 0.5s ease;
}

@keyframes mp-wheel-win {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); text-shadow: 0 0 20px var(--mp-mana-glow); }
}

@media (max-width: 768px) {
  .mp-mana-well {
    grid-template-columns: 1fr;
  }

  .mp-wheel-stage {
    min-height: 280px;
  }
}

.mp-community-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.mp-community-list li .mp-vote-btn {
  margin-left: auto;
}

/* Rail controls */
.mp-rail-wrap {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.mp-rail-wrap .mp-rail {
  min-width: 0;
}

.mp-rail-btn {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--mp-border-bright);
  border-radius: 999px;
  background: rgba(8, 7, 14, 0.9);
  color: var(--mp-gold-bright);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.mp-rail-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.mp-rail-wrap.is-scrolling .mp-rail-btn {
  animation: mp-nudge 0.35s ease;
}

@keyframes mp-nudge {
  50% { transform: scale(0.92); }
}

/* Sweep button */
.mp-sweep-btn {
  margin-top: 0.85rem;
  animation: mp-sweep-glow 2s ease-in-out infinite;
}

.mp-sweep-btn.is-pulsing {
  animation: mp-sweep-pulse 0.4s ease infinite;
}

@keyframes mp-sweep-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(79, 210, 255, 0.28); }
  50% { box-shadow: 0 4px 32px rgba(79, 210, 255, 0.5), 0 0 40px rgba(26, 140, 255, 0.25); }
}

@keyframes mp-sweep-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

#mp-connect-wallet.is-connected {
  border-color: var(--mp-teal);
  color: var(--mp-teal);
  box-shadow: 0 0 20px rgba(62, 207, 189, 0.25);
}

/* Section enter */
.mp-section-page.is-entering,
.mp-view.is-entering {
  animation: mp-section-in 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mp-section-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

/* Rewards interactive */
.mp-reward-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mp-reward-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(240, 208, 96, 0.2), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mp-reward-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.2);
}

.mp-reward-card:hover::after {
  opacity: 1;
}

.mp-reward-card.is-claimed {
  border-color: rgba(62, 207, 189, 0.45);
  pointer-events: none;
}

.mp-reward-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.mp-reward-cta {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mp-gold-dim);
  margin-top: 0.25rem;
}

/* Community interactive */
.mp-community-list li {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.mp-community-list li:hover {
  border-color: var(--mp-border-bright);
  transform: translateX(4px);
  background: rgba(107, 92, 231, 0.08);
}

.mp-community-list li.is-joined {
  border-color: rgba(62, 207, 189, 0.4);
  background: rgba(62, 207, 189, 0.06);
}

.mp-join-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(62, 207, 189, 0.2);
  color: var(--mp-teal);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Modal open state */
.mp-modal.is-open .mp-modal-card {
  animation: mp-modal-pop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes mp-modal-pop {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(20px);
  }
}

.mp-modal.is-open .mp-detail-hero {
  animation: mp-hero-glow 2s ease-in-out infinite;
}

@keyframes mp-hero-glow {
  0%, 100% { box-shadow: inset 0 0 30px rgba(107, 92, 231, 0.1); }
  50% { box-shadow: inset 0 0 50px rgba(212, 175, 55, 0.15); }
}

/* Hero banner ken burns */
.mp-hero-banner img {
  transition: transform 0.1s linear;
  animation: mp-banner-zoom 20s ease-in-out infinite alternate;
}

@keyframes mp-banner-zoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

/* Sidebar active pulse */
.mp-sidebar-item.is-active {
  animation: mp-nav-pulse 3s ease-in-out infinite;
}

@keyframes mp-nav-pulse {
  0%, 100% { box-shadow: 0 0 0 rgba(212, 175, 55, 0); }
  50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.12); }
}

/* Bounty timer tick */
#mp-bounty-timer {
  display: inline-block;
  animation: mp-timer-tick 0.8s step-end infinite;
  text-shadow: 0 0 12px rgba(240, 208, 96, 0.45);
}

#mp-bounty-timer.is-urgent {
  color: #ff6b8a;
  animation: mp-flash-timer-urgent 0.45s step-end infinite;
}

@keyframes mp-timer-tick {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@media (max-width: 900px) {
  .mp-live-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .mp-rail-btn {
    display: none;
  }

  .mp-rail-wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .mp-live-stats {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Profile gate & inventory embed ── */

.mp-profile-gate {
  max-width: 560px;
  margin: 0 auto;
  padding: 0.5rem 0 2rem;
}

.mp-profile-gate-inner {
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--mp-border-bright);
  background:
    linear-gradient(135deg, rgba(26, 140, 255, 0.12), rgba(107, 92, 231, 0.08)),
    var(--mp-panel-solid);
  box-shadow: none;
}

.mp-profile-gate-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mp-teal);
  font-weight: 600;
}

.mp-profile-gate-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--mp-mana-bright);
}

.mp-profile-gate-copy {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.9rem;
}

.mp-profile-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.mp-profile-preview-card {
  flex: 1;
  min-width: 220px;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px dashed var(--mp-border);
  background: rgba(0, 0, 0, 0.25);
}

.mp-profile-preview-avatar {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--mp-border-bright);
  background: #07101c;
  box-shadow: 0 0 24px var(--mp-mana-glow);
}

.mp-profile-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.25rem;
}

.mp-profile-preview-label {
  margin: 0 0 0.15rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-profile-preview-info h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--mp-gold-bright);
}

.mp-profile-preview-info p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.mp-profile-test-btn {
  align-self: center;
  min-width: 5.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-color: var(--mp-teal);
  color: var(--mp-teal);
}

.mp-profile-test-btn:hover {
  background: rgba(62, 207, 189, 0.12);
  box-shadow: 0 0 20px rgba(62, 207, 189, 0.2);
}

.mp-profile-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.mp-profile-app-bar {
  display: none;
}

.mp-profile-frame {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  border: 1px solid var(--mp-border);
  border-radius: 12px;
  background: #020814;
  box-shadow: none;
}

.mp-app:has(#mp-section-profile:not([hidden])) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.mp-app:has(#mp-section-profile:not([hidden])) .mp-hero-banner {
  display: none;
}

.mp-app-root:has(#mp-section-profile:not([hidden])) .mp-atmosphere,
.mp-app-root:has(#mp-section-profile:not([hidden])) .mp-neon-haze,
.mp-app-root:has(#mp-section-profile:not([hidden])) .mp-marquee,
.mp-app-root:has(#mp-section-profile:not([hidden])) #mp-particles,
.mp-app-root:has(#mp-section-profile:not([hidden])) #mp-cursor-glow,
.mp-app-root:has(#mp-section-profile:not([hidden])) #mp-sparkle-layer {
  display: none;
}

.mp-app:has(#mp-section-profile:not([hidden])) .mp-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding-top: 0.5rem;
  padding-bottom: 0.7rem;
}

.mp-app:has(#mp-section-profile:not([hidden])) .mp-topbar {
  display: none;
}

#mp-section-profile:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.mp-profile-app:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.mp-profile-modal .mp-modal-card {
  max-width: 440px;
}

.mp-profile-modal-copy {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.mp-list-form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.mp-profile-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.mp-profile-modal-status {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #ffb4b4;
}

.mp-profile-modal-status:empty {
  display: none;
}

@media (max-width: 900px) {
  .mp-app:has(#mp-section-profile:not([hidden])) {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .mp-app:has(#mp-section-profile:not([hidden])) .mp-sidebar {
    padding: 0.65rem 0.85rem 0.5rem;
  }

  .mp-app:has(#mp-section-profile:not([hidden])) .mp-sidebar-brand {
    margin-bottom: 0.65rem;
  }

  .mp-app:has(#mp-section-profile:not([hidden])) .mp-sidebar-note {
    display: none;
  }

  .mp-app:has(#mp-section-profile:not([hidden])) .mp-main {
    height: auto;
    min-height: 0;
    overflow: visible;
    padding-top: 0.35rem;
    padding-bottom: 1rem;
  }

  #mp-section-profile:not([hidden]) {
    flex: none;
    min-height: 0;
  }

  .mp-profile-gate {
    padding-bottom: 1rem;
  }

  .mp-profile-gate-inner {
    padding: 1.15rem;
  }

  .mp-profile-preview-row {
    flex-direction: column;
  }

  .mp-profile-preview-card {
    min-width: 0;
    width: 100%;
  }

  .mp-profile-app-bar {
    display: none;
  }

  .mp-profile-app:not([hidden]) {
    flex: none;
    min-height: 0;
  }

  .mp-profile-frame {
    flex: none;
    width: 100%;
    min-height: calc(100dvh - 10rem);
    height: calc(100dvh - 10rem);
    max-height: none;
  }
}

@media (max-width: 480px) {
  .mp-profile-frame {
    min-height: calc(100dvh - 9rem);
    height: calc(100dvh - 9rem);
    border-radius: 10px;
  }

  .mp-profile-gate-actions {
    flex-direction: column;
  }

  .mp-profile-gate-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Neon lights ── */

.mp-neon-haze {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  background:
    radial-gradient(circle at 50% 20%, rgba(79, 210, 255, 0.28), transparent 50%),
    repeating-linear-gradient(
      45deg,
      rgba(79, 210, 255, 0.03) 0 12px,
      transparent 12px 24px
    );
}

.mp-marquee {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-content: space-between;
  padding: 6px;
  mix-blend-mode: screen;
}

.mp-marquee span {
  width: 8px;
  height: 8px;
  margin: 0 auto;
  border-radius: 50%;
  background: #4fd2ff;
  box-shadow: 0 0 8px #4fd2ff, 0 0 16px #1a8cff;
  animation: mp-bulb 0.9s step-end infinite;
}

.mp-marquee span:nth-child(odd) {
  animation-delay: 0.45s;
  background: #9eebff;
  box-shadow: 0 0 8px #9eebff, 0 0 14px #6b5ce7;
}

@keyframes mp-bulb {
  50% { opacity: 0.25; transform: scale(0.7); }
}

.mp-jackpot {
  position: relative;
  margin-bottom: 1.15rem;
  padding: 1.1rem 1.2rem 1.2rem;
  text-align: center;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(79, 210, 255, 0.55);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(26, 140, 255, 0.28), transparent 55%),
    linear-gradient(180deg, #071428 0%, #040814 100%);
  box-shadow:
    0 0 40px rgba(79, 210, 255, 0.25),
    inset 0 0 40px rgba(79, 210, 255, 0.08);
}

.mp-jackpot-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    90deg,
    rgba(79, 210, 255, 0.7) 0 10px,
    transparent 10px 20px
  );
  background-size: 40px 8px;
  background-repeat: repeat-x;
  height: 8px;
  animation: mp-chase 0.6s linear infinite;
  box-shadow: 0 0 12px rgba(79, 210, 255, 0.6);
}

.mp-jackpot-lights::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8px;
  background: inherit;
  animation: mp-chase 0.6s linear infinite reverse;
}

@keyframes mp-chase {
  to { background-position: 40px 0; }
}

.mp-jackpot-kicker {
  margin: 0.85rem 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mp-mana-bright);
  text-shadow: 0 0 12px rgba(79, 210, 255, 0.7);
  animation: mp-neon-flicker 3.2s step-end infinite;
}

.mp-jackpot-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.55rem;
}

.mp-jackpot-currency {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--mp-gold-bright);
  text-shadow: 0 0 12px rgba(232, 197, 106, 0.5);
}

.mp-jackpot-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: 0.08em;
  color: #e8fbff;
  text-shadow:
    0 0 8px #4fd2ff,
    0 0 24px rgba(26, 140, 255, 0.55),
    0 0 40px rgba(107, 92, 231, 0.25);
  font-variant-numeric: tabular-nums;
}

.mp-jackpot-value.is-hit {
  animation: mp-jackpot-hit 0.45s ease;
}

@keyframes mp-jackpot-hit {
  0% { transform: scale(1); filter: brightness(1); }
  40% { transform: scale(1.08); filter: brightness(1.6); }
  100% { transform: scale(1); filter: brightness(1); }
}

.mp-jackpot-sub {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--text-soft);
}

@keyframes mp-neon-flicker {
  0%, 19%, 21%, 100% { opacity: 1; }
  20% { opacity: 0.45; }
  20.5% { opacity: 1; }
}

.elumia-marketplace-page .btn-primary {
  border-radius: 999px;
  background: linear-gradient(135deg, #1a8cff, var(--mp-mana));
  color: #041018;
  font-weight: 700;
  border: 1px solid var(--mp-mana-bright);
  box-shadow: 0 0 22px rgba(79, 210, 255, 0.28);
}

.elumia-marketplace-page .btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 32px rgba(79, 210, 255, 0.45);
}

.mp-tile,
.mp-browse-card,
.mp-stat,
.mp-play-hub,
.mp-flash-deal,
.mp-promo {
  box-shadow:
    0 0 0 1px rgba(79, 210, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.4);
}

.mp-topbar-title {
  animation: mp-neon-flicker 4.5s step-end infinite;
}

@media (prefers-reduced-motion: reduce) {
  .mp-marquee span,
  .mp-jackpot-lights,
  .mp-jackpot-kicker,
  .mp-topbar-title {
    animation: none !important;
  }
}
