/* A visible brand moment to make the catalogue feel like a destination. */
body[data-theme="dark"]:has(.buyer-main) .buyer-main{padding-top:14px}
body[data-theme="dark"]:has(.buyer-main) .market-masthead{
  min-height:128px;position:relative;isolation:isolate;overflow:hidden;
  display:flex;align-items:center;justify-content:space-between;gap:22px;
  margin:0 0 13px;padding:20px 27px;border-radius:15px;
  border:1px solid #54432e;
  background-color:#191713;
  background-image:linear-gradient(90deg,#191713 0%,#191713 38%,#191713cf 58%,#19171342 100%),url('/assets/gaming.jpg');
  background-size:cover,62% auto;background-position:center,right 56%;background-repeat:no-repeat;
  box-shadow:0 12px 30px #0004;
}
body[data-theme="dark"]:has(.buyer-main) .market-masthead::before{
  position:absolute;z-index:-1;content:"";inset:0;
  background:linear-gradient(105deg,transparent 54%,#d98f3830 100%);
  pointer-events:none;
}
body[data-theme="dark"]:has(.buyer-main) .market-masthead-copy{min-width:0}
body[data-theme="dark"]:has(.buyer-main) .market-kicker{
  display:block;margin-bottom:9px;color:#e9aa5c;font-size:10px;font-weight:800;
  letter-spacing:.16em;line-height:1.1;
}
body[data-theme="dark"]:has(.buyer-main) .market-masthead h2{
  margin:0;color:#fff8ee;font-size:clamp(21px,2.1vw,29px);font-weight:800;
  line-height:1.1;letter-spacing:-.045em;
}
body[data-theme="dark"]:has(.buyer-main) .market-masthead p{
  margin:8px 0 0;color:#d2c8b9;font-size:12px;font-weight:600;letter-spacing:.015em;
}
body[data-theme="dark"]:has(.buyer-main) .market-masthead-link{
  display:inline-flex;align-items:center;justify-content:center;flex:none;
  min-height:39px;padding:0 15px;border:1px solid #d19a56;border-radius:8px;
  background:#e8a04a;color:#21170d;font-size:12px;font-weight:800;text-decoration:none;
  box-shadow:0 5px 16px #0004;transition:background .18s ease,transform .18s ease;
}
body[data-theme="dark"]:has(.buyer-main) .market-masthead-link:hover{background:#f4b765;transform:translateY(-1px)}
body[data-theme="dark"]:has(.buyer-main) .market-masthead-link:focus-visible{outline:3px solid #fff2da;outline-offset:3px}

/* Give the discovery tools and catalogue a shared, deliberate rhythm. */
body[data-theme="dark"]:has(.buyer-main) .buyer-main .discovery{gap:12px;margin-bottom:16px}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-panel,
body[data-theme="dark"]:has(.buyer-main) .buyer-main .discovery-search{box-shadow:0 8px 22px #0003!important}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .catalog-top h1{font-size:30px}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .quick-filters{margin-bottom:12px}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-card .thumb{height:176px!important}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-card .cardbody{min-height:175px}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-card .buy-green{
  min-height:38px;border:1px solid #f0b15f!important;box-shadow:0 4px 12px #100b0540;
}

/* Platform shortcuts: recognizable marks on restrained, brand-colored tiles. */
body[data-theme="dark"]:has(.buyer-main) .category-row{gap:9px}
body[data-theme="dark"]:has(.buyer-main) .category-top{flex:1 1 0;min-width:0;min-height:116px;border-radius:11px 11px 0 0!important}
body[data-theme="dark"]:has(.buyer-main) .category-icon-frame{width:68px;height:68px;border:1px solid #ffffff1c;border-radius:18px;background:linear-gradient(145deg,#364552,#202a31);box-shadow:0 8px 18px #0004;transition:transform .2s ease,box-shadow .2s ease}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="all"] .category-icon-frame{background:linear-gradient(145deg,#69491f,#3b2b18);border-color:#f4b76566}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-value="Steam"] .category-icon-frame{border-radius:50%;background:linear-gradient(145deg,#1c9bdd,#07528b);border-color:#8ad8ff75;box-shadow:0 8px 20px #0478b24d}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="social"] .category-icon-frame{background:linear-gradient(145deg,#d34d82,#743ac1 70%,#3949ab);border-color:#f38eb366}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="mail"] .category-icon-frame{background:linear-gradient(145deg,#286b9b,#173b62);border-color:#79b8e255}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="phone"] .category-icon-frame{background:linear-gradient(145deg,#27b9d2,#176784);border-color:#8ce8f477}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-value="Steam"] .category-icon-frame img{filter:brightness(0) invert(1)!important;width:38px!important;height:38px!important}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="all"] .category-icon-frame img{width:48px!important;height:48px!important}
body[data-theme="dark"]:has(.buyer-main) .category-label{font-size:12px;letter-spacing:.01em;color:#e9e2d8!important}
body[data-theme="dark"]:has(.buyer-main) .category-top.active .category-icon-frame{box-shadow:0 0 0 2px #f0a94f,0 8px 20px #0005}
body[data-theme="dark"]:has(.buyer-main) .category-top:hover .category-icon-frame{box-shadow:0 0 0 1px #f0a94f9c,0 10px 22px #0006}

/* Account listings need a visual cover, not an oversized platform logo. */
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-thumb.asset-steam,
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-thumb.asset-game{position:relative;isolation:isolate;background:#171715!important}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-thumb.asset-steam img,
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-thumb.asset-game img{width:100%;height:100%;object-fit:cover;filter:brightness(.82)!important;transition:filter .22s ease,transform .35s ease}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-thumb.asset-steam::before,
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-thumb.asset-game::before{position:absolute;z-index:1;inset:45% 0 0;content:"";background:linear-gradient(0deg,#10110ff0,transparent);pointer-events:none}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-thumb.asset-steam::after,
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-thumb.asset-game::after{position:absolute;z-index:2;top:12px;left:13px;content:"STEAM";padding:5px 8px;border:1px solid #ffffff38;border-radius:5px;background:#171715c9;color:#fff4e5;font-size:10px;font-weight:800;letter-spacing:.12em;pointer-events:none}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-thumb.asset-game::after{content:"ИГРОВЫЕ АККАУНТЫ";font-size:9px}
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-card:hover .product-thumb.asset-steam img,
body[data-theme="dark"]:has(.buyer-main) .buyer-main .product-card:hover .product-thumb.asset-game img{filter:brightness(.98)!important;transform:scale(1.035)}

@media(max-width:760px){
  body[data-theme="dark"]:has(.buyer-main) .buyer-main{padding-top:11px}
  body[data-theme="dark"]:has(.buyer-main) .market-masthead{
    min-height:90px;margin-bottom:8px;padding:10px 12px;gap:8px;border-radius:12px;
    align-items:center;
    background-image:linear-gradient(90deg,#191713 0%,#191713ee 40%,#1917139c 100%),url('/assets/gaming.jpg');
    background-size:cover,100% auto;background-position:center,right 55%;
  }
  body[data-theme="dark"]:has(.buyer-main) .market-masthead-copy{max-width:68%}
  body[data-theme="dark"]:has(.buyer-main) .market-kicker{font-size:8px;margin-bottom:6px;letter-spacing:.12em}
  body[data-theme="dark"]:has(.buyer-main) .market-masthead h2{max-width:280px;font-size:17px;line-height:1.1}
  body[data-theme="dark"]:has(.buyer-main) .market-masthead p{display:none}
  body[data-theme="dark"]:has(.buyer-main) .market-masthead-link{min-height:33px;padding:0 10px;font-size:10px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .discovery{margin-bottom:12px;gap:8px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-panel{padding:10px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-heading{min-height:27px;margin-bottom:6px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-heading .block-label{font-size:14px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-subtitle{font-size:9px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-strip{grid-auto-rows:40px;max-height:86px;gap:5px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-strip .popular-chip{height:40px;padding:3px 5px;gap:5px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-strip img.popular-icon{width:29px;height:29px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-chip-copy strong{font-size:10px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .popular-chip-copy small{font-size:8px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .discovery-search{padding:10px!important;gap:7px!important}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .discovery-search .block-label{font-size:14px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .large-search{height:38px;min-height:38px}
  body[data-theme="dark"]:has(.buyer-main) .buyer-main .search-regions button{min-height:21px;padding:2px 6px;font-size:9px}
  body[data-theme="dark"]:has(.buyer-main) .category-top{flex:0 0 132px;min-width:132px;min-height:99px}
  body[data-theme="dark"]:has(.buyer-main) .category-icon-frame{width:58px;height:58px;border-radius:15px}
  body[data-theme="dark"]:has(.buyer-main) .category-top[data-value="Steam"] .category-icon-frame img{width:33px!important;height:33px!important}
  body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="all"] .category-icon-frame img{width:42px!important;height:42px!important}
}
@media(max-width:380px){
  body[data-theme="dark"]:has(.buyer-main) .market-masthead{min-height:88px;gap:6px;padding:9px}
  body[data-theme="dark"]:has(.buyer-main) .market-masthead-copy{max-width:67%}
  body[data-theme="dark"]:has(.buyer-main) .market-masthead h2{font-size:16px}
  body[data-theme="dark"]:has(.buyer-main) .market-masthead-link{min-height:30px;padding:0 8px;font-size:9px}
}

/* Keep the platform marks recognizable without turning every item into a badge. */
body[data-theme="dark"]:has(.buyer-main) .category-bar{padding:9px 0 10px!important}
body[data-theme="dark"]:has(.buyer-main) .category-row{min-height:128px!important;gap:10px}
body[data-theme="dark"]:has(.buyer-main) .category-top{min-height:124px!important;padding:10px 8px!important;gap:7px;background:transparent!important}
body[data-theme="dark"]:has(.buyer-main) .category-icon-frame{width:70px;height:70px;border:0;border-radius:0;background:transparent;box-shadow:none;transition:transform .2s ease}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="all"] .category-icon-frame,
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="social"] .category-icon-frame{background:transparent;border:0;box-shadow:none}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-value="Steam"] .category-icon-frame{width:68px;height:68px;border:1px solid #476276;border-radius:50%;background:#1d2b34;box-shadow:none}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="game"]:not([data-value="Steam"]) .category-icon-frame{background:#202a31;border:1px solid #35434b;border-radius:18px;box-shadow:none}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="mail"] .category-icon-frame{background:#202b35;border:1px solid #344653;border-radius:18px;box-shadow:none}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="phone"] .category-icon-frame{background:#1b2b32!important;border:1px solid #38515a;border-radius:50%;box-shadow:none!important}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="phone"] .category-icon-frame img{width:48px!important;height:48px!important}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-value="Steam"] .category-icon-frame img{width:40px!important;height:40px!important}
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="all"] .category-icon-frame img{width:52px!important;height:52px!important}
body[data-theme="dark"]:has(.buyer-main) .category-label{font-size:13px;color:#e7e1d7!important}
body[data-theme="dark"]:has(.buyer-main) .category-top.active .category-icon-frame,
body[data-theme="dark"]:has(.buyer-main) .category-top:hover .category-icon-frame{box-shadow:none;transform:translateY(-2px)}
@media(max-width:760px){
  body[data-theme="dark"]:has(.buyer-main) .category-row{min-height:116px!important;gap:6px}
  body[data-theme="dark"]:has(.buyer-main) .category-top{min-height:112px!important;padding:8px 7px!important;gap:5px}
  body[data-theme="dark"]:has(.buyer-main) .category-icon-frame{width:64px;height:64px}
}

/* Category art is the colored silhouette itself; no badge or tile behind it. */
body[data-theme="dark"]:has(.buyer-main) .category-top,
body[data-theme="dark"]:has(.buyer-main) .category-top.active,
body[data-theme="dark"]:has(.buyer-main) .category-top:hover{background:transparent!important;box-shadow:none!important;border-radius:0!important}
body[data-theme="dark"]:has(.buyer-main) .category-top.active{border-bottom-color:#e8a04a!important}
body[data-theme="dark"]:has(.buyer-main) .category-icon-frame,
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="all"] .category-icon-frame,
body[data-theme="dark"]:has(.buyer-main) .category-top[data-value="Steam"] .category-icon-frame,
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="game"] .category-icon-frame,
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="social"] .category-icon-frame,
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="mail"] .category-icon-frame,
body[data-theme="dark"]:has(.buyer-main) .category-top[data-kind="phone"] .category-icon-frame{width:76px;height:76px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:0!important}
body[data-theme="dark"]:has(.buyer-main) .category-top .category-icon-frame img{width:100%!important;height:100%!important;object-fit:contain!important;filter:none!important}
@media(max-width:760px){body[data-theme="dark"]:has(.buyer-main) .category-icon-frame{width:70px!important;height:70px!important}}
