/* DjimlyStore Digital v2.39.58 — Desktop UI V1
   IMPORTANT: every rule in this file is desktop-only. The mobile/PWA layout is intentionally untouched. */

.djs58-account-return{display:none}

@media (min-width:1024px){
  :root{--djs58-max:1540px;--djs58-gutter:clamp(24px,3vw,52px);--djs58-blue:#1595d3;--djs58-ink:#152532;--djs58-muted:#728594;--djs58-border:#e3ebf1;--djs58-bg:#f5f8fb;--djs58-card:#fff}
  html body #djs-portal{font-size:15px!important;background:var(--djs58-bg)!important}
  html body #djs-portal .djs-screen{background:var(--djs58-bg)!important}
  html body #djs-portal .djs-scroller{scrollbar-gutter:stable both-edges!important}
  html body #djs-portal .djs-content-wrap{width:min(var(--djs58-max),calc(100vw - (var(--djs58-gutter) * 2)))!important;max-width:none!important;margin-inline:auto!important;padding-inline:0!important}

  /* ── Desktop application navigation ─────────────────────────────── */
  html body #djs-portal .djs-topbar,
  html body #djs-portal .djs-back-bar,
  html body #djs-portal .djs-account-reference-topbar,
  html body #djs-portal .djs-account-page-head,
  html body #djs-portal .djs-mc-header{
    min-height:82px!important;height:82px!important;padding:12px var(--djs58-gutter)!important;background:rgba(255,255,255,.98)!important;border-bottom:1px solid var(--djs58-border)!important;box-shadow:0 7px 28px rgba(27,57,78,.055)!important
  }
  html body #djs-portal .djs-desktop-header-nav{gap:8px!important;margin:0 24px!important;justify-content:center!important}
  html body #djs-portal .djs-desktop-nav-item{
    min-width:104px!important;height:52px!important;padding:0 16px!important;border-radius:16px!important;gap:9px!important;
    color:#536a79!important;font-size:15px!important;font-weight:750!important;letter-spacing:-.01em!important;transition:background .18s ease,color .18s ease,transform .18s ease,box-shadow .18s ease!important
  }
  html body #djs-portal .djs-desktop-nav-item .ms{font-size:22px!important}
  html body #djs-portal .djs-desktop-nav-item b{font-size:15px!important;font-weight:800!important}
  html body #djs-portal .djs-desktop-nav-item:hover{background:#f0f8fc!important;color:#157fb4!important;transform:translateY(-1px)!important}
  html body #djs-portal .djs-desktop-nav-item.active{background:#e6f6ff!important;color:#0e8fce!important;box-shadow:inset 0 0 0 1px #cdeaf9!important}
  html body #djs-portal .djs-desktop-nav-item.active::after{height:3px!important;bottom:-15px!important;border-radius:4px!important}

  /* Existing icon-only Retour buttons become explicit desktop controls. */
  html body #djs-portal .djs58-labelled-back,
  html body #djs-portal .djs-back-bar > [data-back],
  html body #djs-portal .djs-account-page-head > [data-back],
  html body #djs-portal #djs-zefame-back{
    width:auto!important;min-width:104px!important;height:46px!important;padding:0 16px!important;border:1px solid #dce7ee!important;border-radius:15px!important;background:#fff!important;color:#294252!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;font-size:14px!important;font-weight:800!important;box-shadow:0 5px 16px rgba(24,61,83,.055)!important
  }
  html body #djs-portal #djs-zefame-back::after{content:'Retour';font-size:14px;font-weight:800}
  html body #djs-portal .djs58-labelled-back:hover,
  html body #djs-portal .djs-back-bar > [data-back]:hover,
  html body #djs-portal .djs-account-page-head > [data-back]:hover,
  html body #djs-portal #djs-zefame-back:hover{background:#edf8fd!important;color:#0f84bb!important;border-color:#cbe7f5!important}
  html body #djs-portal .djs-return-btn{min-width:112px!important}
  html body #djs-portal .djs-back-title{font-size:20px!important;font-weight:850!important;letter-spacing:-.025em!important}

  /* Account was the major page without a desktop Retour control. */
  html body #djs-portal #djs-screen-home .djs-account-reference-topbar{display:flex!important;align-items:center!important;justify-content:space-between!important}
  html body #djs-portal #djs-screen-home .djs58-account-return{display:inline-flex!important;align-items:center!important;gap:7px!important;height:46px!important;padding:0 16px!important;border-radius:15px!important;border:1px solid #dce7ee!important;background:#fff!important;color:#294252!important;font-size:14px!important;font-weight:800!important;box-shadow:0 5px 16px rgba(24,61,83,.055)!important}
  html body #djs-portal #djs-screen-home .djs58-account-return:hover{background:#edf8fd!important;color:#0f84bb!important}
  html body #djs-portal #djs-screen-home .djs-account-settings-pentagon{margin-left:auto!important}

  /* ── Shared desktop card language ───────────────────────────────── */
  html body #djs-portal :is(.djs-card,.djs-account-link-row,.djs-account-reference-balances>button,.djs-orders-filter-bar,.djs-orders-filters,.djs-zefame-platform-card,.djs-zefame-product-card,.djs-points-card){border-radius:20px!important}
  html body #djs-portal :is(.djs-product-card,.djs-home-square-product-card,.djs-account-ref-product-card,.djs-zefame-platform-card,.djs-account-link-row,.djs-account-quick-item){transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease!important}
  html body #djs-portal :is(.djs-product-card,.djs-home-square-product-card,.djs-account-ref-product-card,.djs-zefame-platform-card,.djs-account-link-row,.djs-account-quick-item):hover{transform:translateY(-3px)!important;box-shadow:0 14px 32px rgba(24,58,80,.10)!important}

  /* ── Boutique / Homepage ────────────────────────────────────────── */
  html body #djs-portal #djs-screen-store .djs-store-top-wrap{padding-top:20px!important}
  html body #djs-portal #djs-screen-store .djs-store-search-bar{width:min(760px,55vw)!important;height:50px!important;border-radius:18px!important}
  html body #djs-portal #djs-screen-store .djs-preview-banner{width:min(1180px,calc(100vw - 180px))!important;height:clamp(220px,23vw,330px)!important;margin:18px auto 26px!important;border-radius:28px!important;box-shadow:0 20px 48px rgba(20,47,65,.12)!important}
  html body #djs-portal #djs-screen-store .djs-preview-cats-row{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:14px!important}
  html body #djs-portal #djs-screen-store .djs-preview-cat-tile{min-height:96px!important;padding:14px!important;border:1px solid #e4edf3!important;background:#fff!important}
  html body #djs-portal #djs-screen-store .djs-preview-cat-tile b{font-size:14px!important}.djs-preview-cat-tile small{font-size:11px!important}
  html body #djs-portal #djs-screen-store .djs-section-title{font-size:21px!important;font-weight:850!important;margin:32px 0 16px!important}
  html body #djs-portal #djs-screen-store .djs-preview-poster-row,
  html body #djs-portal #djs-screen-store .djs-product-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:18px 16px!important}
  html body #djs-portal #djs-screen-store .djs-home-square-media,
  html body #djs-portal #djs-screen-store .djs-product-card__img{aspect-ratio:1/1!important;border-radius:18px!important}
  html body #djs-portal #djs-screen-store .djs-home-square-name,
  html body #djs-portal #djs-screen-store .djs-product-card__name{font-size:13px!important;line-height:1.28!important;margin-top:9px!important}
  html body #djs-portal #djs-screen-store .djs-cat-row{gap:9px!important;margin-top:24px!important}.djs-cpill{min-height:40px!important;padding:0 15px!important;font-size:13px!important}

  /* ── Account dashboard / game & service recommendations ────────── */
  html body #djs-portal #djs-screen-home .djs-account-v2396{width:min(1450px,calc(100vw - 90px))!important;padding:30px 0 50px!important;grid-template-columns:minmax(300px,.78fr) minmax(650px,1.65fr)!important;gap:22px!important}
  html body #djs-portal #djs-screen-home .djs-account-reference-profile{min-height:250px!important;padding:30px!important}
  html body #djs-portal #djs-screen-home .djs-account-reference-balances>button{min-height:126px!important;padding:20px!important}
  html body #djs-portal #djs-screen-home .djs-account-quick-rail{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:12px!important}
  html body #djs-portal #djs-screen-home .djs-account-quick-item{min-height:106px!important;padding:14px 8px!important;border-radius:18px!important}
  html body #djs-portal #djs-screen-home .djs-account-link-list{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
  html body #djs-portal #djs-screen-home .djs-account-link-row{min-height:88px!important;padding:14px!important}
  html body #djs-portal #djs-screen-home .djs-account-reference-recommendations{margin-top:8px!important;padding:22px!important;border:1px solid #e6edf2!important;border-radius:26px!important;background:#fff!important}
  html body #djs-portal #djs-screen-home .djs-account-reference-section-head h2{font-size:20px!important;margin-bottom:16px!important}
  html body #djs-portal #djs-screen-home .djs-account-ref-product-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:16px!important}
  html body #djs-portal #djs-screen-home .djs-account-ref-product-media{aspect-ratio:1/1!important;border-radius:18px!important}

  /* ── Product / Game detail screens ─────────────────────────────── */
  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}
  html body #djs-portal #djs-screen-game .djs-game-hero-card,
  html body #djs-portal #djs-screen-product .djs-product-hero{max-width:1320px!important;margin-inline:auto!important;border-radius:26px!important}
  html body #djs-portal #djs-screen-game .djs-game-row-v2187{min-height:92px!important;border-radius:18px!important}

  /* ── Social Boost ──────────────────────────────────────────────── */
  html body #djs-portal #djs-screen-social-boost .djs-zefame-wrap{width:min(1380px,calc(100vw - 100px))!important;max-width:none!important;margin:0 auto!important;padding:32px 0 54px!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-catalog-head{max-width:760px!important;margin-bottom:24px!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-catalog-head h2{font-size:30px!important;letter-spacing:-.035em!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-platform-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:18px!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-platform-grid>*{min-width:0!important;width:auto!important;max-width:none!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-platform-card{min-height:260px!important;padding:18px!important;background:#fff!important;border:1px solid #e2ebf1!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}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-product-card{width:min(1120px,100%)!important;margin:0 auto!important;padding:28px!important}

  /* ── Cart / Checkout ───────────────────────────────────────────── */
  html body #djs-portal #djs-screen-cart .djs-cart-reference-wrap{width:min(1380px,calc(100vw - 96px))!important;grid-template-columns:minmax(0,1.75fr) minmax(360px,.8fr)!important;gap:30px!important;padding:30px 0 54px!important}
  html body #djs-portal #djs-screen-cart .djs-cart-reference-item{padding:22px!important;border-radius:22px!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{padding:24px!important;border:1px solid #e2ebf1!important;background:#fff!important;top:100px!important}
  html body #djs-portal #djs-screen-cart .djs-cart-pay-btn{min-height:54px!important;font-size:15px!important;border-radius:17px!important}
  html body #djs-portal #djs-screen-checkout .djs-content-wrap{width:min(1160px,calc(100vw - 110px))!important}

  /* ── Settings / account subpages ──────────────────────────────── */
  html body #djs-portal .djs-account-settings-page .djs-scroller{background:var(--djs58-bg)!important}
  html body #djs-portal .djs-account-settings-page-body{width:min(1120px,calc(100vw - 110px))!important;max-width:none!important;margin:0 auto!important;padding:34px 0 52px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important}
  html body #djs-portal .djs-account-settings-page-body>*{margin:0!important}
  html body #djs-portal .djs-account-settings-list{border-radius:24px!important;overflow:hidden!important;background:#fff!important;border:1px solid #e2ebf1!important;box-shadow:0 12px 34px rgba(24,58,80,.055)!important}
  html body #djs-portal .djs-account-settings-list button{min-height:70px!important;padding:16px 18px!important;font-size:14px!important}

  /* ── Orders / Vouchers / Offers ───────────────────────────────── */
  html body #djs-portal :is(#djs-screen-orders,#djs-screen-vouchers,#djs-screen-coupons,#djs-screen-offers) .djs-content-wrap{width:min(1400px,calc(100vw - 100px))!important;padding-top:28px!important}
  html body #djs-portal #djs-screen-orders .djs-orders-filter-bar,
  html body #djs-portal #djs-screen-orders .djs-orders-filters{min-height:64px!important;padding:10px 16px!important;border:1px solid #e3ebf1!important;background:#fff!important}

  /* ── Points / VIP / Referral ───────────────────────────────────── */
  html body #djs-portal #djs-screen-points .djs-content-wrap{width:min(1320px,calc(100vw - 100px))!important;padding:30px 0 54px!important}
  html body #djs-portal #djs-screen-points .djs-points-reward-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important}
  html body #djs-portal #djs-screen-vip .djs-vip44-journey{width:min(1240px,calc(100vw - 110px))!important;margin:26px auto 0!important;border-radius:30px!important;box-shadow:0 20px 54px rgba(91,71,20,.12)!important;overflow:hidden!important}
  html body #djs-portal #djs-screen-vip .djs-vip44-slider{padding:10px 70px 18px!important;gap:16px!important}
  html body #djs-portal #djs-screen-vip .djs-vip44-level-card{flex:0 0 410px!important;max-width:410px!important;min-height:158px!important}
  html body #djs-portal #djs-screen-vip .djs-vip44-benefits,
  html body #djs-portal #djs-screen-vip .djs-vip44-tools,
  html body #djs-portal #djs-screen-vip .djs-vip44-faq{width:min(1240px,calc(100vw - 110px))!important;margin-inline:auto!important}
  html body #djs-portal #djs-screen-invite-earn .djs-content-wrap{width:min(1200px,calc(100vw - 110px))!important}

  /* ── Message Center ────────────────────────────────────────────── */
  html body #djs-portal #djs-screen-chat .djs-mc-header{padding-inline:var(--djs58-gutter)!important}
  html body #djs-portal #djs-screen-chat .djs-mc-desktop-home{display:inline-flex!important;width:auto!important;min-width:112px!important;height:46px!important;padding:0 15px!important;border-radius:15px!important;gap:7px!important;font-size:14px!important;font-weight:800!important}
  html body #djs-portal #djs-screen-chat .djs-mc-desktop-home::after{content:'Retour';font-size:14px;font-weight:800}
  html body #djs-portal #djs-screen-chat .djs-mc-body{width:min(1460px,calc(100vw - 90px))!important;min-height:calc(100vh - 150px)!important;margin:24px auto!important;border-radius:26px!important;padding:0!important}
  html body #djs-portal #djs-screen-chat .djs-chat-title{font-size:18px!important}.djs-chat-status{font-size:12px!important}

  /* ── Exchange wrapper ──────────────────────────────────────────── */
  html body #djs-portal #djs-screen-exchange iframe{width:min(1500px,calc(100vw - 72px))!important;height:calc(100vh - 112px)!important;min-height:720px!important;margin:18px auto 30px!important;border-radius:28px!important;border:1px solid #dfe9ef!important;box-shadow:0 20px 58px rgba(12,38,57,.12)!important;background:#fff!important}

  /* ── Legal / feedback / wallet pages ───────────────────────────── */
  html body #djs-portal :is(#djs-screen-feedback,#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-content-wrap{width:min(1240px,calc(100vw - 110px))!important}

  /* Mouse affordance: desktop should feel interactive, not like a stretched phone. */
  @media (hover:hover){
    html body #djs-portal button:not(:disabled),html body #djs-portal [role="button"],html body #djs-portal [data-nav]{cursor:pointer!important}
  }
}

@media (min-width:1024px) and (max-width:1279px){
  html body #djs-portal .djs-desktop-nav-item{min-width:88px!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 .djs-preview-poster-row,
  html body #djs-portal #djs-screen-store .djs-product-grid,
  html body #djs-portal #djs-screen-home .djs-account-ref-product-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-store .djs-preview-cats-row{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-social-boost .djs-zefame-platform-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  html body #djs-portal #djs-screen-home .djs-account-v2396{grid-template-columns:1fr!important;width:min(1120px,calc(100vw - 72px))!important}
  html body #djs-portal #djs-screen-home .djs-account-reference-profile,
  html body #djs-portal #djs-screen-home .djs-account-reference-balances,
  html body #djs-portal #djs-screen-home .djs-account-quick-access-modern{grid-column:1!important;grid-row:auto!important}
}
