/* MEGA ROBUX V4.0.28 — Boutique storefront, real checkout.
   New UI only; all prices and checkout events come from the existing app.js.
   Logo art from the actual store assets; no blue/illustrative Robux assets. */
html[data-theme="dark"] { color-scheme:dark; }
html[data-theme="dark"] body.market-v3 {background:#09090a!important;}
html[data-theme="dark"] body.market-v3 .market-header{border-bottom:1px solid #232326!important;}
html[data-theme="dark"] body.market-v3 .market-brand .brand-mark{border-radius:10px!important;background:#131315!important;}
/* Simple premium masthead: branded artwork on left, functional links on right. */
html[data-theme="dark"] body.market-v3 section.market-hero{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.98fr)!important;
  align-items:center!important;gap:clamp(28px,5vw,72px)!important;
  min-height:365px!important;padding:34px 0 37px!important;
  border:0!important;border-bottom:1px solid #323235!important;
  border-radius:0!important;background:transparent!important;
  margin-top:8px!important;box-shadow:none!important;
}
html[data-theme="dark"] body.market-v3 section.market-hero::before,
html[data-theme="dark"] body.market-v3 section.market-hero::after,
html[data-theme="dark"] body.market-v3 section.market-hero .mr6-hero-brand-bg{display:none!important;}
html[data-theme="dark"] body.market-v3 .mr-hero-art{
  display:flex!important;position:relative!important;flex-direction:column!important;
  justify-content:center!important;gap:12px!important;min-width:0!important;
  padding:0!important;isolation:isolate;
}
html[data-theme="dark"] body.market-v3 .mr-hero-art img{
  width:100%!important;max-width:570px!important;height:auto!important;
  border-radius:12px!important;object-fit:contain!important;
  box-shadow:0 12px 40px rgba(0,0,0,.15)!important;
}
html[data-theme="dark"] body.market-v3 .mr-hero-art>span{
  align-self:center!important;font-size:10px!important;letter-spacing:.24em!important;
  color:#929298!important;font-weight:650!important;
}
html[data-theme="dark"] body.market-v3 .mr-hero-art>span b{font-weight:500;color:#55555b;padding:0 6px;}
html[data-theme="dark"] body.market-v3 .market-hero-copy{
  padding:18px 0!important;max-width:none!important;order:0!important
}
html[data-theme="dark"] body.market-v3 .market-hero-copy h1{
  font-size:clamp(35px,3.75vw,54px)!important;
  letter-spacing:-.054em!important;max-width:14ch!important;
  line-height:1.075!important;margin:13px 0 16px!important;
  font-weight:770!important;
}
html[data-theme="dark"] body.market-v3 .market-hero-copy h1 span{
  display:block!important;margin-top:6px!important;color:#b8b8bb!important;-webkit-text-fill-color:#b8b8bb!important;
}
html[data-theme="dark"] body.market-v3 .market-hero-copy>p{
  font-size:13px!important;line-height:1.77!important;max-width:49ch!important;
  color:#adadb2!important;
}
html[data-theme="dark"] body.market-v3 .market-hero-actions{margin-top:25px!important;}
html[data-theme="dark"] body.market-v3 .market-trust-row{
  margin-top:25px!important;padding-top:16px!important;gap:16px!important;
}
html[data-theme="dark"] body.market-v3 .market-trust-row>div{flex:1 1 130px!important;}
html[data-theme="dark"] body.market-v3 .market-trust-row img{filter:grayscale(1) brightness(1.25)!important;}
/* Slim editorial benefits strip, visibly secondary to the products. */
html[data-theme="dark"] body.market-v3 .mr-editorial-strip{
  margin-top:0!important;padding:22px 0!important;background:none!important;
  border-bottom:1px solid #2d2d30!important;
}
html[data-theme="dark"] body.market-v3 .mr-editorial-strip>div{min-height:46px!important;}
html[data-theme="dark"] body.market-v3 .mr-strip-mark>span{border-radius:7px!important;}
/* Shop: real cards and real quick-buy controls next to each other. */
html[data-theme="dark"] body.market-v3 .market-store{padding-top:52px!important;}
html[data-theme="dark"] body.market-v3 .market-packages-hero{
  padding:8px 0 17px!important;min-height:auto!important;
  background:none!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.market-v3 .market-packages-hero::before,
html[data-theme="dark"] body.market-v3 .market-packages-hero::after,
html[data-theme="dark"] body.market-v3 .mr6-packages-brand-bg{display:none!important;}
html[data-theme="dark"] body.market-v3 .packages-hero-copy{max-width:750px!important;}
html[data-theme="dark"] body.market-v3 .packages-hero-copy h2{
  font-size:clamp(30px,3vw,41px)!important;margin:8px 0 7px!important;
}
html[data-theme="dark"] body.market-v3 .mr-shop-layout{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(270px,.42fr)!important;
  gap:18px!important;align-items:start!important;margin-top:10px!important;
}
html[data-theme="dark"] body.market-v3 .mr-shop-main,
html[data-theme="dark"] body.market-v3 .mr-shop-side{min-width:0!important;}
html[data-theme="dark"] body.market-v3 .market-pricing{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  margin-top:0!important;gap:13px!important;
}
/* Product cards: restrained logo watermark using the actual MEGA silver logo,
   protected by opaque dark gradients; typography sits above it. */
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card{
  position:relative!important;isolation:isolate!important;
  min-height:272px!important;border:1px solid #333337!important;
  border-radius:12px!important;padding:21px!important;
  background:linear-gradient(138deg,#19191b 0%,#101012 100%)!important;
  overflow:hidden!important;box-shadow:0 5px 18px rgba(0,0,0,.14)!important;
  transition:border-color .18s ease, transform .18s ease,box-shadow .18s ease!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card:hover{
  transform:translateY(-2px)!important;
  border-color:#9c9ca2!important;box-shadow:0 16px 28px rgba(0,0,0,.28)!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card.featured{
  border-color:#8f8f94!important;background:linear-gradient(138deg,#202023 0%,#111113 100%)!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card::before{
  content:""!important;display:block!important;
  position:absolute!important;inset:0!important;z-index:-1!important;
  background:linear-gradient(90deg,rgba(10,10,12,.16) 0%,rgba(10,10,12,.05) 100%)!important;
  border:0!important;box-shadow:none!important;pointer-events:none!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card::after{display:none!important;}
html[data-theme="dark"] body.market-v3 .market-pricing .mr-product-watermark{
  display:block!important;position:absolute!important;z-index:-1!important;
  width:194px!important;height:194px!important;top:29px!important;right:-27px!important;
  opacity:.19!important;filter:grayscale(1) contrast(1.1)!important;
  object-fit:contain!important;border:0!important;box-shadow:none!important;
  transform:rotate(-9deg)!important;pointer-events:none!important;
  mask-image:linear-gradient(to right,rgba(0,0,0,.2),#000 35%,#000 85%,transparent)!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card.featured .mr-product-watermark{opacity:.23!important;}
html[data-theme="dark"] body.market-v3 .mr-product-top,
html[data-theme="dark"] body.market-v3 .mr-product-main,
html[data-theme="dark"] body.market-v3 .market-product-price,
html[data-theme="dark"] body.market-v3 .market-pricing .product-buy,
html[data-theme="dark"] body.market-v3 .product-footnote{position:relative!important;z-index:1!important;}
html[data-theme="dark"] body.market-v3 .mr-product-main{margin:24px 0 18px!important;}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .amount{
  display:flex!important;flex-direction:column!important;
  align-items:flex-start!important;gap:2px!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .amount strong{
  font-size:clamp(38px,3.3vw,49px)!important;letter-spacing:-.055em!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .amount span{
  color:#b3b3b9!important;font-size:10px!important;font-weight:730!important;letter-spacing:.19em!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .market-product-price{
  padding:9px 0 0!important;margin:0 0 11px!important;gap:3px!important;
  border-top:1px solid rgba(255,255,255,.13)!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .market-product-price strong{
  font-size:24px!important;font-weight:720!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .product-buy{
  border-radius:8px!important;min-height:42px!important;font-size:12px!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card.featured .product-buy{
  background:#e8e8e9!important;color:#101011!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .product-footnote{
  margin-top:8px!important;min-height:10px!important;letter-spacing:.055em!important;
}
/* Real quick-buy panel: no invented cart state, no dummy checkout. */
html[data-theme="dark"] body.market-v3 .mr-shop-side{position:sticky!important;top:105px!important;}
html[data-theme="dark"] body.market-v3 .mr-shop-side .market-buybox{
  border-radius:12px!important;background:#171719!important;
  border:1px solid #39393d!important;box-shadow:none!important;
  padding:20px!important;min-height:auto!important;
}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-head{
  display:block!important;padding-bottom:12px!important;margin-bottom:12px!important;
}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-head h2{
  font-size:21px!important;line-height:1.2!important;margin:7px 0 0!important;
}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-online{
  display:inline-flex!important;margin-top:9px!important;color:#b7b7bb!important;
  font-size:9px!important;border:1px solid #49494f!important;
}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-options{gap:7px!important;}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-options button{
  min-height:52px!important;background:#202022!important;border:1px solid #37373a!important;
}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-options button:hover{border-color:#8e8e94!important;background:#272729!important;}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-options button.featured{background:#ededee!important;}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-options button img{
  width:31px!important;height:31px!important;object-fit:cover!important;
  filter:grayscale(1)!important;border-radius:7px!important;
}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-options button em{display:none!important;}
html[data-theme="dark"] body.market-v3 .mr-shop-side .buybox-safe{
  border-top:1px solid #39393d!important;margin-top:12px!important;padding-top:12px!important;
}
html[data-theme="dark"] body.market-v3 .mr-side-footnote{
  font-size:11px!important;line-height:1.65!important;color:#8e8e92!important;
  padding:9px 5px!important;margin:7px 0!important;
}
html[data-theme="dark"] body.market-v3 .market-custom{
  margin-top:16px!important;border-radius:12px!important;background:#151517!important;
}
/* Every remaining promotional icon uses MEGA grey/silver assets. Preserve white QR codes. */
html[data-theme="dark"] body.market-v3 :is(.flow-icon img,.market-custom-copy>img,.market-delivery-grid img,.market-confidence-grid img,.buybox-safe img){
  filter:grayscale(1) brightness(1.18)!important;
}
html[data-theme="dark"] body.market-v3 :is(.rbx-use-art,.stack-cluster,.float-robux,.card-art,.card-glow,.card-grid){display:none!important;}
html[data-theme="dark"] body.market-v3 :is(.market-flow,.market-confidence,.market-delivery){background:#09090a!important;}
/* Faithful monochrome Pix checkout: system status and QR behavior remain unchanged. */
html[data-theme="dark"] body.market-v3 :is(.pix-provider,.pix-qr-column,.pix-copy-area,.pix-order-line,.pix-waiting){
  border-radius:10px!important;
}
html[data-theme="dark"] body.market-v3 .pix-qr-wrap img{filter:none!important;background:#fff!important;}
/* Responsive: product-first, comfortable touch targets. */
@media (max-width:980px){
  html[data-theme="dark"] body.market-v3 section.market-hero{grid-template-columns:1fr 1fr!important;gap:26px!important;}
  html[data-theme="dark"] body.market-v3 .mr-shop-layout{grid-template-columns:minmax(0,1fr) 260px!important;}
  html[data-theme="dark"] body.market-v3 .market-pricing{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:800px){
  html[data-theme="dark"] body.market-v3 section.market-hero{grid-template-columns:1fr!important;padding:25px 0!important;}
  html[data-theme="dark"] body.market-v3 .mr-hero-art{max-width:440px!important;margin:auto!important;}
  html[data-theme="dark"] body.market-v3 .market-hero-copy{padding:0!important;}
  html[data-theme="dark"] body.market-v3 .market-hero-copy h1{font-size:clamp(36px,7vw,50px)!important;}
  html[data-theme="dark"] body.market-v3 .mr-shop-layout{grid-template-columns:1fr!important;}
  html[data-theme="dark"] body.market-v3 .mr-shop-side{position:static!important;}
  html[data-theme="dark"] body.market-v3 .market-pricing{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media (max-width:560px){
  html[data-theme="dark"] body.market-v3 .market-pricing{grid-template-columns:1fr!important;gap:11px!important;}
  html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card{min-height:244px!important;}
  html[data-theme="dark"] body.market-v3 .market-pricing .mr-product-watermark{width:167px!important;height:167px!important;top:38px!important;}
  html[data-theme="dark"] body.market-v3 .mr-hero-art{max-width:100%!important;}
  html[data-theme="dark"] body.market-v3 .market-hero-copy h1{font-size:35px!important;}
  html[data-theme="dark"] body.market-v3 .market-hero-actions{display:grid!important;grid-template-columns:1fr!important;}
  html[data-theme="dark"] body.market-v3 .market-hero-actions .btn{width:100%!important;}
}
@media (prefers-reduced-motion:reduce){
  html[data-theme="dark"] body.market-v3 .market-product-card{transition:none!important;}
}

/* Final card layer correction: logo sits ABOVE the background, BELOW all copy. */
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .mr-product-watermark {
  z-index:0!important; opacity:.24!important;mix-blend-mode:screen!important;
  width:205px!important;height:205px!important;top:22px!important;right:-23px!important;
  mask-image:linear-gradient(90deg,transparent 0%,black 24%,black 100%)!important;
}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card.featured .mr-product-watermark { opacity:.28!important; }
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .mr-product-top,
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .mr-product-main,
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .market-product-price,
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .product-buy,
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .product-footnote { z-index:1!important; }
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .product-footnote {filter:grayscale(1)!important;}
html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .product-footnote::before {filter:grayscale(1)!important;}
html[data-theme="dark"] body.market-v3 .market-delivery-grid img,
html[data-theme="dark"] body.market-v3 .market-confidence-grid img{filter:grayscale(1) brightness(1.15)!important;}
@media(max-width:560px){
 html[data-theme="dark"] body.market-v3 .market-pricing .market-product-card .mr-product-watermark {width:181px!important;height:181px!important;top:22px!important;right:-18px!important;}
}
