/* DjimlyStore Digital v2.39.59 — Desktop UI V2 / full PC authority layer
   Desktop only. The mobile/PWA experience is intentionally unchanged. */

@media (min-width:1024px){
  :root{
    --d59-bg:#f3f7fb;
    --d59-surface:#ffffff;
    --d59-soft:#f8fbfd;
    --d59-line:#dfe8ef;
    --d59-line2:#edf2f6;
    --d59-ink:#102536;
    --d59-muted:#6d8292;
    --d59-blue:#1598d5;
    --d59-blue2:#eaf7fd;
    --d59-shadow:0 18px 48px rgba(30,67,91,.08);
    --d59-shadow-hover:0 22px 54px rgba(26,68,96,.14);
    --d59-radius:24px;
    --d59-max:1560px;
    --d59-gutter:clamp(28px,3.4vw,64px);
  }

  /* ---------- Application canvas ---------- */
  html,body{background:var(--d59-bg)!important}
  html body #djs-portal{background:var(--d59-bg)!important;color:var(--d59-ink)!important;font-size:16px!important}
  html body #djs-portal .djs-screen{background:var(--d59-bg)!important}
  html body #djs-portal .djs-bottom-nav{display:none!important}
  html body #djs-portal .djs-scroller{background:var(--d59-bg)!important;scrollbar-gutter:stable!important}
  html body #djs-portal .djs-content-wrap{
    width:min(var(--d59-max),calc(100vw - (var(--d59-gutter) * 2)))!important;
    max-width:none!important;margin-inline:auto!important;padding-left:0!important;padding-right:0!important
  }
  html body #djs-portal :is(h1,h2,h3,.djs-section-title,.djs-back-title){letter-spacing:-.025em!important}

  /* ---------- Global desktop command/navigation bar ---------- */
  html body #djs-portal :is(.djs-topbar,.djs-back-bar,.djs-account-reference-topbar,.djs-account-page-head,.djs-mc-header){
    position:sticky!important;top:0!important;z-index:90!important;
    min-height:88px!important;height:88px!important;padding:14px var(--d59-gutter)!important;
    background:rgba(255,255,255,.96)!important;border-bottom:1px solid var(--d59-line)!important;
    box-shadow:0 8px 30px rgba(24,61,85,.06)!important;backdrop-filter:blur(18px)!important
  }
  html body #djs-portal .djs-desktop-header-nav{
    display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
    margin:0 auto!important;padding:5px!important;border:1px solid #e2ebf1!important;background:#f8fbfd!important;
    border-radius:19px!important;box-shadow:inset 0 1px 0 #fff!important;max-width:min(980px,70vw)!important
  }
  html body #djs-portal .djs-desktop-nav-item{
    min-width:116px!important;height:54px!important;padding:0 16px!important;border:0!important;border-radius:15px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;
    color:#536a7b!important;background:transparent!important;font-size:15px!important;font-weight:800!important;
    transition:.18s ease!important;white-space:nowrap!important;overflow:visible!important
  }
  html body #djs-portal .djs-desktop-nav-item .ms{font-size:23px!important}
  html body #djs-portal .djs-desktop-nav-item b{font-size:15px!important;font-weight:850!important;overflow:visible!important;text-overflow:clip!important}
  html body #djs-portal .djs-desktop-nav-item:hover{background:#eef8fd!important;color:#0c83bd!important;transform:translateY(-1px)!important}
  html body #djs-portal .djs-desktop-nav-item.active{background:#daf2fd!important;color:#0788c4!important;box-shadow:inset 0 0 0 1px #bfe5f6!important}
  html body #djs-portal .djs-desktop-nav-item.active::after{display:none!important}

  html body #djs-portal :is(.djs58-labelled-back,.djs59-labelled-back,.djs-return-btn,.djs58-account-return,.djs59-context-back,.djs-mc-desktop-home){
    min-width:118px!important;width:auto!important;height:48px!important;padding:0 17px!important;border-radius:15px!important;
    border:1px solid #d8e5ed!important;background:#fff!important;color:#294354!important;display:inline-flex!important;
    align-items:center!important;justify-content:center!important;gap:8px!important;font-size:14px!important;font-weight:850!important;
    box-shadow:0 7px 19px rgba(27,63,86,.07)!important;transition:.18s ease!important
  }
  html body #djs-portal :is(.djs58-labelled-back,.djs59-labelled-back,.djs-return-btn,.djs58-account-return,.djs59-context-back,.djs-mc-desktop-home):hover{
    border-color:#bfe2f3!important;background:#edf9fe!important;color:#0c84bd!important;transform:translateY(-1px)!important
  }
  html body #djs-portal .djs-back-title{font-size:21px!important;font-weight:900!important;color:var(--d59-ink)!important}

  /* ---------- Shared professional card system ---------- */
  html body #djs-portal :is(.djs-card,.djs-product-card,.djs-preview-product-card,.djs-home-square-product-card,.djs-account-ref-product-card,.djs-account-link-row,.djs-account-quick-item,.djs-account-reference-profile,.djs-account-reference-recommendations,.djs-cart-reference-item,.djs-cart-reference-actions,.djs-orders-filter-bar,.djs-orders-filters,.djs-points-card,.djs-zefame-platform-card,.djs-zefame-product-card){
    border-color:var(--d59-line)!important;box-shadow:var(--d59-shadow)!important
  }
  html body #djs-portal :is(.djs-product-card,.djs-preview-product-card,.djs-home-square-product-card,.djs-account-ref-product-card,.djs-account-link-row,.djs-account-quick-item,.djs-zefame-platform-card,.djs-zefame-product-card){transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
  @media (hover:hover){
    html body #djs-portal :is(.djs-product-card,.djs-preview-product-card,.djs-home-square-product-card,.djs-account-ref-product-card,.djs-account-link-row,.djs-account-quick-item,.djs-zefame-platform-card,.djs-zefame-product-card):hover{transform:translateY(-4px)!important;box-shadow:var(--d59-shadow-hover)!important;border-color:#c8e0ec!important}
  }

  /* ---------- Boutique home ---------- */
  html body #djs-portal #djs-screen-store .djs-store-scroller{padding-bottom:50px!important}
  html body #djs-portal #djs-screen-store .djs-store-top-wrap{padding-top:24px!important}
  html body #djs-portal #djs-screen-store .djs-store-search-bar{
    width:min(820px,58vw)!important;height:54px!important;margin:0 auto!important;border-radius:18px!important;
    border:1px solid var(--d59-line)!important;background:#fff!important;box-shadow:0 10px 28px rgba(25,64,88,.07)!important
  }
  html body #djs-portal #djs-screen-store .djs-preview-banner{
    width:min(1320px,calc(100vw - 170px))!important;height:clamp(230px,21vw,350px)!important;margin:22px auto 28px!important;
    border-radius:30px!important;box-shadow:0 24px 60px rgba(20,52,73,.14)!important;overflow:hidden!important
  }
  html body #djs-portal #djs-screen-store .djs-preview-banner-img{width:100%!important;height:100%!important;object-fit:cover!important}
  html body #djs-portal #djs-screen-store .djs-preview-cats-row{
    display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:15px!important;overflow:visible!important;padding:0!important
  }
  html body #djs-portal #djs-screen-store .djs-preview-cat-tile{
    width:auto!important;min-width:0!important;min-height:104px!important;padding:16px!important;border-radius:21px!important;
    border:1px solid var(--d59-line)!important;background:#fff!important;box-shadow:0 10px 26px rgba(25,63,88,.05)!important
  }
  html body #djs-portal #djs-screen-store .djs-preview-cat-tile b{font-size:15px!important}
  html body #djs-portal #djs-screen-store .djs-preview-cat-tile small{font-size:11.5px!important;line-height:1.3!important}
  html body #djs-portal #djs-screen-store .djs-section-title{font-size:22px!important;font-weight:900!important;margin:34px 0 16px!important;color:var(--d59-ink)!important}

  /* Home rails become real desktop grids. This fixes the stretched mobile rows. */
  html body #djs-portal #djs-screen-store :is(#djs-trending-row,#djs-popular-row,#djs-giftcards-home-row,.djs-preview-poster-row){
    display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:16px!important;overflow:visible!important;
    scroll-snap-type:none!important;min-height:0!important;padding:0!important;margin:0!important;align-items:start!important
  }
  html body #djs-portal #djs-screen-store #djs-trending-row{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-store .djs-preview-product-card{
    display:flex!important;flex:initial!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:0!important;
    border-radius:20px!important;background:#fff!important;padding:0!important;scroll-snap-align:none!important;overflow:hidden!important
  }
  html body #djs-portal #djs-screen-store .djs-home-square-media,
  html body #djs-portal #djs-screen-store .djs-preview-poster-img{
    width:100%!important;height:auto!important;aspect-ratio:1/1!important;border-radius:18px!important;overflow:hidden!important;background:#f5f8fa!important
  }
  html body #djs-portal #djs-screen-store .djs-home-square-media img,
  html body #djs-portal #djs-screen-store .djs-preview-poster-img img{width:100%!important;height:100%!important;object-fit:cover!important}
  html body #djs-portal #djs-screen-store .djs-home-square-media.is-logo-fit img{object-fit:contain!important;padding:14%!important;background:#fff!important}
  html body #djs-portal #djs-screen-store .djs-home-square-name{font-size:13px!important;line-height:1.3!important;font-weight:800!important;padding:10px 3px 0!important;min-height:43px!important}

  /* Full catalogue */
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid){
    display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:18px!important;width:100%!important;max-width:none!important;padding:0 0 44px!important;margin:0!important
  }
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid)>.djs-product-card{
    width:100%!important;min-width:0!important;min-height:0!important;border-radius:21px!important;background:#fff!important;overflow:hidden!important
  }
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid) .djs-product-card__img{
    width:100%!important;height:auto!important;aspect-ratio:1/1!important;border-radius:18px!important;margin:0!important
  }
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid) .djs-product-card__info{padding:12px 13px 14px!important;min-height:70px!important}
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid) .djs-product-card__name{font-size:14px!important;line-height:1.25!important}
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid) .djs-product-card__price{font-size:12px!important}

  /* ---------- Account dashboard ---------- */
  html body #djs-portal #djs-screen-home .djs-account-reference-topbar{display:flex!important;align-items:center!important;gap:16px!important}
  html body #djs-portal #djs-screen-home .djs58-account-return{display:inline-flex!important;margin-right:auto!important}
  html body #djs-portal #djs-screen-home .djs-account-settings-pentagon{margin-left:auto!important;width:48px!important;height:48px!important}
  html body #djs-portal #djs-screen-home .djs-account-v2396{
    width:min(1460px,calc(100vw - 100px))!important;max-width:none!important;margin:0 auto!important;padding:32px 0 58px!important;
    display:grid!important;grid-template-columns:minmax(320px,.85fr) minmax(0,1.65fr)!important;gap:22px!important;align-items:start!important
  }
  html body #djs-portal #djs-screen-home .djs-account-reference-profile{padding:28px!important;min-height:245px!important;border-radius:26px!important;background:#fff!important}
  html body #djs-portal #djs-screen-home .djs-account-reference-profile-copy h1{font-size:30px!important}
  html body #djs-portal #djs-screen-home .djs-account-reference-balances{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
  html body #djs-portal #djs-screen-home .djs-account-reference-balances>button{min-height:122px!important;border-radius:22px!important;background:#fff!important}
  html body #djs-portal #djs-screen-home .djs-account-quick-access-modern{padding:22px!important;border-radius:26px!important;background:#fff!important;border:1px solid var(--d59-line)!important;box-shadow:var(--d59-shadow)!important}
  html body #djs-portal #djs-screen-home .djs-account-quick-rail{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important;overflow:visible!important}
  html body #djs-portal #djs-screen-home .djs-account-quick-item{width:auto!important;min-width:0!important;min-height:104px!important;background:#f9fbfd!important;border:1px solid #e6edf2!important;border-radius:18px!important}
  html body #djs-portal #djs-screen-home .djs-account-link-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
  html body #djs-portal #djs-screen-home .djs-account-link-row{min-height:88px!important;background:#fff!important;border-radius:19px!important}
  html body #djs-portal #djs-screen-home .djs-account-reference-recommendations{grid-column:1/-1!important;padding:24px!important;border-radius:27px!important;background:#fff!important}
  html body #djs-portal #djs-screen-home .djs-account-ref-product-grid{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:17px!important}
  html body #djs-portal #djs-screen-home .djs-account-ref-product-card{width:100%!important;min-width:0!important}
  html body #djs-portal #djs-screen-home .djs-account-ref-product-media{aspect-ratio:1/1!important;height:auto!important;border-radius:18px!important}

  /* ---------- Game/product detail ---------- */
  html body #djs-portal :is(#djs-screen-game,#djs-screen-product,#djs-screen-gift-product-detail) .djs-content-wrap{width:min(1320px,calc(100vw - 110px))!important;padding:30px 0 56px!important}
  html body #djs-portal #djs-screen-game .djs-game-hero-card,
  html body #djs-portal #djs-screen-product .djs-product-hero{border-radius:28px!important;box-shadow:var(--d59-shadow)!important}
  html body #djs-portal #djs-screen-game .djs-game-packs,
  html body #djs-portal #djs-screen-game .djs-game-pack-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
  html body #djs-portal #djs-screen-game .djs-game-row-v2187{width:100%!important;min-height:94px!important;border-radius:18px!important;margin:0!important}

  /* ---------- Social Boost ---------- */
  html body #djs-portal #djs-screen-social-boost .djs-zefame-wrap{width:min(1440px,calc(100vw - 100px))!important;max-width:none!important;margin:0 auto!important;padding:32px 0 58px!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-catalog-head{max-width:none!important;display:flex!important;align-items:end!important;justify-content:space-between!important;gap:20px!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-catalog-head h2{font-size:32px!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-platform-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-platform-grid>*{width:auto!important;min-width:0!important;max-width:none!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-platform-card{min-height:0!important;aspect-ratio:1.15/1!important;padding:18px!important;border-radius:26px!important;overflow:hidden!important;background:#fff!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-platform-card img{width:100%!important;height:100%!important;object-fit:cover!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-service-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}

  /* ---------- Cart / Checkout ---------- */
  html body #djs-portal #djs-screen-cart .djs-cart-reference-wrap{
    width:min(1400px,calc(100vw - 100px))!important;max-width:none!important;margin:0 auto!important;padding:32px 0 60px!important;
    display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(360px,.72fr)!important;gap:30px!important;align-items:start!important
  }
  html body #djs-portal #djs-screen-cart .djs-cart-reference-list{display:flex!important;flex-direction:column!important;gap:14px!important}
  html body #djs-portal #djs-screen-cart .djs-cart-reference-item{padding:20px!important;border-radius:22px!important;background:#fff!important}
  html body #djs-portal #djs-screen-cart .djs-cart-reference-media{width:108px!important;height:108px!important;border-radius:18px!important}
  html body #djs-portal #djs-screen-cart .djs-cart-reference-actions{position:sticky!important;top:112px!important;padding:24px!important;border-radius:24px!important;background:#fff!important}
  html body #djs-portal #djs-screen-cart .djs-cart-pay-btn{height:56px!important;border-radius:17px!important;font-size:15px!important;font-weight:850!important}
  html body #djs-portal #djs-screen-checkout .djs-content-wrap{width:min(1180px,calc(100vw - 110px))!important;padding:32px 0 58px!important}

  /* ---------- Orders / vouchers / offers ---------- */
  html body #djs-portal :is(#djs-screen-orders,#djs-screen-vouchers,#djs-screen-coupons,#djs-screen-offers,#djs-screen-subscriptions) .djs-content-wrap{
    width:min(1380px,calc(100vw - 100px))!important;max-width:none!important;padding:30px 0 58px!important
  }
  html body #djs-portal #djs-screen-orders :is(.djs-orders-filter-bar,.djs-orders-filters){min-height:64px!important;border-radius:20px!important;background:#fff!important;padding:10px 14px!important}
  html body #djs-portal #djs-screen-offers .djs-offers-hero{padding:32px!important;border-radius:28px!important}
  html body #djs-portal #djs-screen-offers .djs-offers-hero h1{font-size:36px!important}
  html body #djs-portal #djs-screen-offers .djs-offers-stats{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}

  /* ---------- Points / VIP / Referral ---------- */
  html body #djs-portal #djs-screen-points .djs-content-wrap{width:min(1320px,calc(100vw - 100px))!important;padding:32px 0 58px!important}
  html body #djs-portal #djs-screen-points .djs-points-reward-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important}
  html body #djs-portal #djs-screen-vip .djs-vip44-journey{width:min(1280px,calc(100vw - 110px))!important;margin:26px auto 0!important;border-radius:30px!important}
  html body #djs-portal #djs-screen-vip .djs-vip44-slider{padding:14px 60px 22px!important;gap:18px!important}
  html body #djs-portal #djs-screen-vip .djs-vip44-level-card{flex:0 0 390px!important;max-width:390px!important;min-height:158px!important}
  html body #djs-portal #djs-screen-vip :is(.djs-vip44-benefits,.djs-vip44-tools,.djs-vip44-faq){width:min(1280px,calc(100vw - 110px))!important;margin-inline:auto!important}
  html body #djs-portal #djs-screen-invite-earn .djs-content-wrap{width:min(1240px,calc(100vw - 110px))!important;padding:30px 0 60px!important}
  html body #djs-portal #djs-screen-invite-earn :is(.djs-invite-card,.djs-invite-hero,.djs-invite-reward-card){border-radius:26px!important}

  /* ---------- Settings / account subpages ---------- */
  html body #djs-portal :is(#djs-screen-account-settings,#djs-screen-account-settings-detail,#djs-screen-account-preferences,#djs-screen-account-about,#djs-screen-profile-edit) .djs-scroller{background:var(--d59-bg)!important}
  html body #djs-portal .djs-account-settings-page-body{
    width:min(1180px,calc(100vw - 110px))!important;max-width:none!important;margin:0 auto!important;padding:34px 0 58px!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:start!important
  }
  html body #djs-portal .djs-account-settings-list{border-radius:24px!important;background:#fff!important;border:1px solid var(--d59-line)!important;overflow:hidden!important;box-shadow:var(--d59-shadow)!important}
  html body #djs-portal .djs-account-settings-list button{min-height:72px!important;padding:16px 18px!important;font-size:15px!important}

  /* ---------- Message Center ---------- */
  html body #djs-portal #djs-screen-chat .djs-mc-header{display:flex!important;align-items:center!important;gap:16px!important}
  html body #djs-portal #djs-screen-chat .djs-mc-heading{min-width:260px!important}
  html body #djs-portal #djs-screen-chat .djs-chat-title{font-size:20px!important;font-weight:900!important}
  html body #djs-portal #djs-screen-chat .djs-chat-status{font-size:12.5px!important}
  html body #djs-portal #djs-screen-chat .djs-mc-body{
    width:min(1480px,calc(100vw - 100px))!important;max-width:none!important;height:calc(100vh - 138px)!important;min-height:650px!important;
    margin:24px auto!important;border:1px solid var(--d59-line)!important;border-radius:28px!important;background:#fff!important;box-shadow:var(--d59-shadow)!important;overflow:hidden!important
  }
  html body #djs-portal #djs-screen-chat .djs-mc-composer{width:min(1120px,calc(100vw - 240px))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;bottom:26px!important;border-radius:22px!important;box-shadow:0 20px 48px rgba(20,56,78,.14)!important}
  html body #djs-portal #djs-screen-chat .djs-mc-desktop-home{display:inline-flex!important}

  /* ---------- Exchange outer iframe ---------- */
  html body #djs-portal #djs-screen-exchange{background:#eef4f8!important}
  html body #djs-portal #djs-screen-exchange iframe{
    display:block!important;width:min(1540px,calc(100vw - 72px))!important;max-width:none!important;height:calc(100vh - 116px)!important;min-height:760px!important;
    margin:18px auto 30px!important;border:1px solid #dce7ed!important;border-radius:30px!important;background:#fff!important;box-shadow:0 24px 64px rgba(18,54,77,.13)!important
  }

  /* ---------- Wallet / legal / Achat USA / feedback ---------- */
  html body #djs-portal :is(#djs-screen-wallet,#djs-screen-wallet-history,#djs-screen-wallet-recharge,#djs-screen-wallet-withdraw,#djs-screen-account-terms,#djs-screen-account-privacy,#djs-screen-achat-usa,#djs-screen-feedback,#djs-screen-credit,#djs-screen-giftcard) .djs-content-wrap{
    width:min(1240px,calc(100vw - 110px))!important;max-width:none!important;padding:30px 0 58px!important
  }

  /* ---------- Maintenance / contest ---------- */
  html body #djs-portal :is(#djs-screen-giveaway,#djs-screen-gaming-accessory,#djs-screen-gaming-accessory-request) .djs-content-wrap{width:min(1120px,calc(100vw - 110px))!important;padding:36px 0 58px!important}

  /* Inputs and controls feel native on desktop. */
  html body #djs-portal :is(input,select,textarea,button){font-family:inherit!important}
  html body #djs-portal :is(input,select,textarea){font-size:15px!important}
  @media (hover:hover){html body #djs-portal button:not(:disabled),html body #djs-portal [data-nav],html body #djs-portal [role="button"]{cursor:pointer!important}}
}

/* Laptop width: professional density without cramped labels. */
@media (min-width:1024px) and (max-width:1365px){
  html body #djs-portal .djs-desktop-header-nav{max-width:76vw!important;gap:4px!important}
  html body #djs-portal .djs-desktop-nav-item{min-width:92px!important;padding:0 10px!important;font-size:13px!important}
  html body #djs-portal .djs-desktop-nav-item b{font-size:13px!important}
  html body #djs-portal #djs-screen-store :is(#djs-popular-row,#djs-giftcards-home-row,.djs-preview-poster-row){grid-template-columns:repeat(6,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid){grid-template-columns:repeat(5,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-home .djs-account-v2396{grid-template-columns:1fr!important;width:min(1180px,calc(100vw - 72px))!important}
  html body #djs-portal #djs-screen-home .djs-account-ref-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-platform-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-cart .djs-cart-reference-wrap{grid-template-columns:minmax(0,1.45fr) minmax(330px,.75fr)!important;width:min(1180px,calc(100vw - 72px))!important}
}

/* Large desktop / 1440p+: deliberately denser commerce grid. */
@media (min-width:1600px){
  html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid){grid-template-columns:repeat(7,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-store :is(#djs-popular-row,#djs-giftcards-home-row,.djs-preview-poster-row){grid-template-columns:repeat(8,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-home .djs-account-ref-product-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important}
}

@media (min-width:1024px){
  html body #djs-portal #djs-screen-cart .djs-cart-desktop-bar{display:flex!important;align-items:center!important;gap:16px!important}
  html body #djs-portal #djs-screen-exchange .djs59-exchange-bar{
    display:flex!important;align-items:center!important;gap:18px!important;min-height:88px!important;height:88px!important;
    padding:14px var(--d59-gutter)!important;background:rgba(255,255,255,.97)!important;border-bottom:1px solid var(--d59-line)!important;
    box-shadow:0 8px 30px rgba(24,61,85,.06)!important;flex:0 0 88px!important;z-index:92!important
  }
  html body #djs-portal #djs-screen-exchange .djs59-exchange-title{display:flex!important;align-items:center!important;gap:10px!important;color:var(--d59-ink)!important}
  html body #djs-portal #djs-screen-exchange .djs59-exchange-title>.ms{width:42px!important;height:42px!important;border-radius:14px!important;background:#e6f6fe!important;color:#0c8dc9!important;display:grid!important;place-items:center!important}
  html body #djs-portal #djs-screen-exchange .djs59-exchange-title b{display:block!important;font-size:17px!important;font-weight:900!important}
  html body #djs-portal #djs-screen-exchange .djs59-exchange-title small{display:block!important;margin-top:2px!important;font-size:11px!important;color:var(--d59-muted)!important}
  html body #djs-portal #djs-screen-exchange iframe{height:calc(100vh - 124px)!important;min-height:680px!important;margin-top:18px!important}

  html body #djs-portal :is(.djs-points-back,.djs-referral-back){
    width:auto!important;min-width:118px!important;height:48px!important;padding:0 17px!important;border-radius:15px!important;border:1px solid #d8e5ed!important;
    background:#fff!important;color:#294354!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
    font-size:14px!important;font-weight:850!important;box-shadow:0 7px 19px rgba(27,63,86,.07)!important;margin-bottom:20px!important
  }
}
