
/* Marketplace Hub v2 — Drop 4 (Games Hub vibe) */

.mhv2-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 42px 18px 90px;
  color: #fff;
  position: relative;
}

.mhv2-wrap:before, .mhv2-wrap:after{
  content:"";
  position:absolute;
  width: 520px;
  height: 520px;
  filter: blur(26px);
  pointer-events:none;
  z-index:0;
}
.mhv2-wrap:before{
  inset: -160px -130px auto auto;
  background: radial-gradient(circle at 30% 30%, rgba(140,90,255,.55), rgba(0,0,0,0));
}
.mhv2-wrap:after{
  inset: auto auto -200px -160px;
  background: radial-gradient(circle at 30% 30%, rgba(200,80,192,.45), rgba(0,0,0,0));
}

.mhv2-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.mhv2-title h1{
  margin: 0 0 8px;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: .2px;
}
.mhv2-title p{
  margin: 0;
  opacity: .78;
  max-width: 70ch;
  line-height: 1.45;
}

.mhv2-badges{ display:flex; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.mhv2-badge{
  display:inline-flex; gap:8px; align-items:center;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(14px);
  opacity:.92; white-space:nowrap;
}
.mhv2-dot{
  width:8px; height:8px; border-radius:999px;
  background: rgba(120,255,190,.9);
  box-shadow: 0 0 14px rgba(120,255,190,.55);
}

.mhv2-tabs{
  display:flex; gap:10px;
  margin: 14px 0 18px;
  position: relative;
  z-index: 1;
}
.mhv2-tabs button{
  background: linear-gradient(135deg,#6a5cff,#c850c0);
  border: none; border-radius: 999px;
  padding: 10px 18px;
  color: #fff;
  cursor: pointer;
  opacity: .55;
  transition: transform .12s ease, opacity .12s ease;
}
.mhv2-tabs button:hover{ opacity: .78; transform: translateY(-1px); }
.mhv2-tabs button.active{
  opacity: 1;
  box-shadow: 0 0 14px rgba(200,80,192,.55);
}

.mhv2-panel{
  display:none;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 55px rgba(0,0,0,.35);
  position: relative;
  z-index: 1;
}
.mhv2-panel.active{ display:block; }

.mhv2-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.mhv2-row h2{ margin:0 0 6px; font-size: 28px; }
.mhv2-muted{ opacity:.75; }

.mhv2-card{
  padding: 18px;
  border-radius: 18px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
}

.mhv2-card-title{ font-weight: 800; margin-bottom: 8px; }
.mhv2-card-body{ opacity: .84; line-height: 1.5; }

/* Buttons */
.mhv2-btn{
  background: linear-gradient(135deg,#6a5cff,#c850c0);
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.12);
}
.mhv2-btn:hover{ filter: brightness(1.06); transform: translateY(-1px); }
.mhv2-btn--mini{ padding: 9px 14px; font-weight: 800; }
.mhv2-btn--ghost{
  background: rgba(255,255,255,.08);
  box-shadow: none;
}
.mhv2-btn--danger{
  background: rgba(255,80,120,.16);
  border: 1px solid rgba(255,80,120,.35);
}
.mhv2-btn--link{
  background: transparent;
  border: 1px solid rgba(255,255,255,.14);
  opacity:.9;
}

/* Search */
.mhv2-search{
  display:flex; gap:10px; align-items:center;
}
.mhv2-search input{
  height: 42px;
  width: min(520px, 70vw);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  outline: none;
}
.mhv2-search input::placeholder{ color: rgba(255,255,255,.55); }

/* Categories */
.mhv2-cats{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}
.mhv2-cat{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: #fff;
  text-decoration:none;
  opacity: .86;
  transition: transform .12s ease, opacity .12s ease, filter .12s ease;
}
.mhv2-cat:hover{ opacity: 1; transform: translateY(-1px); filter: brightness(1.05); }
.mhv2-cat.active{
  opacity: 1;
  box-shadow: 0 0 14px rgba(200,80,192,.35);
}
.mhv2-cat-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
}

/* Grid */
.mhv2-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
@media (max-width: 860px){
  .mhv2-grid{ grid-template-columns: 1fr; }
}

/* Listing card */
.mhv2-listing{
  overflow:hidden;
  border-radius: 20px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.mhv2-media{
  display:block;
  position: relative;
  height: 220px;
  overflow:hidden;
  background: rgba(255,255,255,.06);
}
.mhv2-img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  image-rendering: auto;
}
.mhv2-img--ph{
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.65;
}
.mhv2-pill{
  position:absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  font-weight: 900;
  letter-spacing:.5px;
}
.mhv2-pill--sold{
  background: rgba(255,80,120,.20);
  border: 1px solid rgba(255,80,120,.42);
}
.mhv2-body{
  padding: 16px 16px 18px;
}
.mhv2-title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 12px;
}
.mhv2-name{
  font-weight: 900;
  font-size: 18px;
}
.mhv2-name a{ color:#fff; text-decoration:none; }
.mhv2-name a:hover{ text-decoration: underline; text-underline-offset: 4px; }
.mhv2-price{
  font-weight: 1000;
  color: #ffd8ff;
}
.mhv2-obo{
  font-size: 12px;
  opacity:.8;
  margin-left: 8px;
}
.mhv2-meta{
  margin-top: 6px;
  opacity: .72;
  font-size: 13px;
}
.mhv2-catpill{
  display:inline-flex;
  align-items:center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(168,85,247,.18);
  border: 1px solid rgba(168,85,247,.35);
  margin-left: 8px;
  font-weight: 800;
  opacity: .95;
}
.mhv2-excerpt{
  margin-top: 10px;
  opacity: .84;
  line-height: 1.45;
}
.mhv2-actions{ margin-top: 12px; }

/* Forms */
.mhv2-form{
  margin-top: 12px;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.mhv2-grid2{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 860px){
  .mhv2-grid2{ grid-template-columns: 1fr; }
}
.mhv2-form label span{ display:block; font-weight: 800; margin-bottom: 6px; }
.mhv2-form input[type="text"], .mhv2-form textarea, .mhv2-form select{
  width: 100%;
  border-radius: 16px;
  padding: 12px 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  outline: none;
}
.mhv2-form select{ appearance: none; }
.mhv2-form textarea{ resize: vertical; min-height: 120px; }
.mhv2-check{ display:inline-flex; gap:8px; align-items:center; margin-top: 10px; opacity:.86; font-weight: 700; }

.mhv2-upload{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  cursor: pointer;
  font-weight: 800;
  width: fit-content;
}
.mhv2-upload input{ display:none; }

/* Manage photos */
.mhv2-photos{ margin-top: 8px; }
.mhv2-photos-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.mhv2-photo-list{
  list-style:none;
  padding: 0;
  margin: 14px 0 0;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 860px){
  .mhv2-photo-list{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
.mhv2-photo{
  border-radius: 18px;
  overflow:hidden;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.10);
  position: relative;
}
.mhv2-thumb img{
  width: 100%;
  height: 170px;
  object-fit: cover;
  display:block;
}
.mhv2-photo-controls{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
}
.mhv2-handle{
  cursor: grab;
  opacity:.9;
  font-weight: 900;
}
.mhv2-remove{ font-weight: 800; opacity:.9; }
.mhv2-remove input{ margin-right: 6px; }

/* Manage actions row */
.mhv2-manage-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

/* Floating button — placed ABOVE bottom overlays */
.mhv2-float-btn{
  position: fixed;
  right: 24px;
  bottom: 170px; /* clears events + games hub overlay */
  z-index: 9995;
  background: linear-gradient(135deg,#6a5cff,#c850c0);
  color:#fff;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration:none;
  box-shadow: 0 10px 30px rgba(200,80,192,.45);
  border: 1px solid rgba(255,255,255,.12);
}
.mhv2-float-btn:hover{
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Credit */
.mhv2-credit{
  text-align:center;
  margin-top: 26px;
  opacity: .75;
  position: relative;
  z-index: 1;
}
.mhv2-credit a{ color: #fff; text-decoration: underline; text-underline-offset: 4px; }


/* Larry Touch: Community Pulse */
.mhv2-pulse{
  margin: 12px 0 18px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  text-shadow: 0 0 12px rgba(225, 134, 162, 0.25);
  position: relative;
  overflow: hidden;
}
.mhv2-pulse:before{
  content:"";
  position:absolute;
  top:-40%;
  left:-30%;
  width: 60%;
  height: 180%;
  background: radial-gradient(circle at 30% 30%, rgba(225,134,162,0.18), transparent 60%);
  filter: blur(6px);
  pointer-events:none;
}
.mhv2-pulse-text{
  display:block;
  font-size: 0.98rem;
  line-height: 1.25rem;
}

/* Subtle sparkle on primary actions */
.mhv2-tabs button,
.mhv2-btn{
  position: relative;
  overflow: hidden;
}
.mhv2-tabs button:after,
.mhv2-btn:after{
  content:"";
  position:absolute;
  top:-120%;
  left:-50%;
  width: 40%;
  height: 320%;
  transform: rotate(25deg);
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.10), transparent);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events:none;
}
.mhv2-tabs button:hover:after,
.mhv2-btn:hover:after{
  opacity: 1;
  animation: mhv2Shimmer 0.9s ease-out 1;
}
@keyframes mhv2Shimmer{
  0%{ left:-60%; }
  100%{ left:130%; }
}


/* Larry Touch: Featured spotlight */
.mhv2-featured-wrap{
  margin: 14px 0 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.mhv2-featured-head{
  font-weight: 800;
  letter-spacing: .2px;
  margin-bottom: 10px;
  display:flex;
  align-items: baseline;
  gap: 10px;
}
.mhv2-featured-sub{
  font-weight: 500;
  opacity: .75;
  font-size: .92rem;
}

/* NEW TODAY pill */
.mhv2-pill--new{
  background: rgba(122, 255, 180, .16);
  border: 1px solid rgba(122, 255, 180, .42);
  color: rgba(222, 255, 238, .95);
  text-shadow: 0 0 14px rgba(122,255,180,.35);
}

/* Seller Kudos */
.mhv2-kudos{
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  font-weight: 700;
}
.mhv2-kudos-sub{
  display:block;
  margin-top: 6px;
  font-weight: 500;
  opacity: .82;
}


/* Featured Sellers */
.mhv2-sellers{margin:16px 0 10px;padding:14px;border-radius:18px;background:rgba(255,255,255,0.06);backdrop-filter: blur(10px);border:1px solid rgba(255,255,255,0.08)}
.mhv2-sellers-head{display:flex;align-items:baseline;gap:10px;font-weight:800;font-size:18px;margin-bottom:10px}
.mhv2-sellers-sub{font-weight:500;font-size:13px;opacity:.8}
.mhv2-sellers-row{display:flex;gap:12px;overflow:auto;padding-bottom:6px}
.mhv2-seller-card{min-width:240px;flex:0 0 auto;border:1px solid rgba(255,255,255,0.08);background:rgba(0,0,0,0.25);border-radius:16px;padding:12px}
.mhv2-seller-top{display:flex;gap:10px;align-items:center;text-decoration:none}
.mhv2-seller-avatar{border-radius:14px;border:1px solid rgba(255,255,255,0.12)}
.mhv2-seller-name{font-weight:800;line-height:1.1}
.mhv2-seller-badge{display:inline-block;margin-top:4px;padding:4px 8px;border-radius:999px;font-size:12px;background:rgba(186,120,255,0.25);border:1px solid rgba(186,120,255,0.35)}
.mhv2-seller-stats{display:flex;gap:12px;margin:10px 0 10px;opacity:.92;font-size:13px}
.mhv2-seller-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mhv2-btn--thanks{background:rgba(225,134,162,0.18)!important;border:1px solid rgba(225,134,162,0.35)!important}
.mhv2-thanks-note{opacity:.7;font-size:12px}


/* Sponsors */
.mhv2-sponsors{
  margin-top: 18px;
  padding: 16px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.mhv2-section-head{
  display:flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 900;
}
.mhv2-section-title{ font-size: 14px; letter-spacing: .3px; }
.mhv2-section-sub{
  font-size: 12px;
  opacity: .75;
  font-weight: 700;
}
.mhv2-sponsor-cards{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.mhv2-sponsor-card{
  display:flex;
  gap: 12px;
  align-items: center;
  min-width: 260px;
  flex: 1 1 260px;
  padding: 12px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(135deg, rgba(106,92,255,.16), rgba(200,80,192,.10));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
  transition: transform .15s ease, filter .15s ease;
}
.mhv2-sponsor-card:hover{
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.mhv2-sponsor-logo{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 950;
  letter-spacing: .6px;
  color:#fff;
  background: linear-gradient(135deg,#6a5cff,#c850c0);
  box-shadow: 0 10px 22px rgba(200,80,192,.35);
}
.mhv2-sponsor-meta{ flex: 1; min-width: 0; }
.mhv2-sponsor-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.mhv2-sponsor-name{
  font-weight: 950;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mhv2-sponsor-badge{
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  opacity: .95;
  white-space: nowrap;
}
.mhv2-sponsor-desc{
  font-size: 12px;
  opacity: .80;
  line-height: 1.25;
}
.mhv2-sponsor-cta{
  margin-top: 6px;
  font-size: 12px;
  font-weight: 900;
  opacity: .9;
}


/* Sponsor Details modal */
.mhv2-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.mhv2-modal-backdrop.is-open{ display:flex; }
.mhv2-modal{
  width: min(520px, 92vw);
  border-radius: 18px;
  background: rgba(20,20,28,.92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  position: relative;
  padding: 16px 16px 14px;
}
.mhv2-modal-close{
  position:absolute;
  top: 10px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.mhv2-modal-body{
  padding-top: 28px;
  font-size: 14px;
  line-height: 1.35;
  opacity: .95;
}

.mhv2-sponsor-logo-wrap{ width: 52px; height: 52px; border-radius:16px; overflow:hidden; flex: 0 0 52px; }
.mhv2-sponsor-img{ width: 52px; height: 52px; object-fit: cover; display:block; border-radius:16px; }
.mhv2-sponsor-card.is-featured{ flex: 1 1 100%; min-width: 100%; }
.mhv2-sponsor-actions{ display:flex; gap: 10px; align-items:center; margin-top: 6px; }
.mhv2-sponsor-more{
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor:pointer;
}
.mhv2-sponsor-more:hover{ filter: brightness(1.05); }


/* Item detail view */
.mhv2-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:10px 0 6px}
.mhv2-item-title{font-size:26px;font-weight:800;letter-spacing:.2px}
.mhv2-item-price{font-size:22px;font-weight:800;color:#E186A2}
.mhv2-gallery{margin-top:12px}
.mhv2-gallery-main img{width:100%;height:auto;border-radius:16px;display:block}
.mhv2-gallery-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.mhv2-gallery-thumbs .mhv2-thumb{width:120px;max-width:30vw}
.mhv2-gallery-thumbs img{width:100%;height:auto;border-radius:12px;opacity:.95}
.mhv2-item-desc{margin-top:14px;line-height:1.6}
.mhv2-item-actions{margin-top:14px;display:flex;gap:10px;flex-wrap:wrap}


/* Gallery controls */
.mhv2-gallery-main{position:relative}
.mhv2-gal-mainimg{cursor:zoom-in}
.mhv2-gal-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.35);
  color:#fff; font-size:28px; line-height:40px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:2;
  backdrop-filter: blur(10px);
}
.mhv2-gal-prev{left:12px}
.mhv2-gal-next{right:12px}
.mhv2-gal-nav:hover{background:rgba(0,0,0,.55)}
.mhv2-gallery-thumbs{margin-top:10px}
.mhv2-gallery-thumbs .mhv2-thumb{border:0;background:transparent;padding:0;cursor:pointer}
.mhv2-gallery-thumbs .mhv2-thumb img{border:2px solid rgba(255,255,255,.10)}
.mhv2-gallery-thumbs .mhv2-thumb.is-active img{border-color:rgba(225,134,162,.85); box-shadow:0 0 0 4px rgba(225,134,162,.12)}
.mhv2-gallery-hint{margin-top:8px;font-size:13px;opacity:.75}

/* Image modal */
#mhv2ImageModal .mhv2-modal-dialog{max-width:980px}
#mhv2ImageModal .mhv2-modal-body{padding:0}
.mhv2-imgmodal{position:relative}
.mhv2-imgmodal img{width:100%;height:auto;display:block;border-radius:18px}
.mhv2-imgnav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:52px; height:52px; border-radius:999px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.45);
  color:#fff; font-size:34px; line-height:50px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; z-index:3;
}
.mhv2-imgprev{left:12px}
.mhv2-imgnext{right:12px}
