/* ========================================================================== 
   DjimlyStore Digital v2.39.18 — light-blue system + safe-area + modal polish
   ========================================================================== */

:root,
html[data-theme="light"],
html[data-theme="dark"],
body.djs-light,
body.djs-dark{
  --djs-blue:#63bdf0!important;
  --djs-blue-dark:#3aa4e2!important;
  --djs-orange:#63bdf0!important;
  --djs-orange-dark:#3aa4e2!important;
  --djs-sky:#63bdf0!important;
}
html body #djs-portal{
  --djs-ui-blue:#63bdf0;
  --djs-ui-blue-strong:#3aa4e2;
  --djs-ui-blue-soft:#eaf6ff;
  --djs-ui-blue-line:#b9def5;
}

/* --------------------------------------------------------------------------
   TRUE SAFE-AREA PAINT
   The legacy fullscreen portal used a white background and covered the body,
   so changing body/theme-color alone could never color the iPhone status area.
   Paint the portal safe-area itself and keep the active screen above it.
   -------------------------------------------------------------------------- */
html body.djs-account-statusbar #djs-portal,
html:has(#djs-screen-home.djs-screen--active) body #djs-portal{
  background:#fff0b5!important;
}
html body.djs-feedback-statusbar #djs-portal,
html:has(#djs-screen-feedback.djs-screen--active) body #djs-portal{
  background:#eaf5ff!important;
}
html body.djs-account-statusbar #djs-portal:before,
html:has(#djs-screen-home.djs-screen--active) body #djs-portal:before,
html body.djs-feedback-statusbar #djs-portal:before,
html:has(#djs-screen-feedback.djs-screen--active) body #djs-portal:before{
  content:""!important;
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  height:max(54px,env(safe-area-inset-top))!important;
  z-index:2147483001!important;
  pointer-events:none!important;
}
html body.djs-account-statusbar #djs-portal:before,
html:has(#djs-screen-home.djs-screen--active) body #djs-portal:before{
  background:#fff0b5!important;
}
html body.djs-feedback-statusbar #djs-portal:before,
html:has(#djs-screen-feedback.djs-screen--active) body #djs-portal:before{
  background:#eaf5ff!important;
}

/* Account warm header continues below the status area without a hard break. */
html body.djs-account-statusbar #djs-screen-home:before,
html:has(#djs-screen-home.djs-screen--active) #djs-screen-home:before{
  top:0!important;
  height:220px!important;
  background:linear-gradient(180deg,#fff0b5 0%,#fff1bd 38%,#fff8df 72%,rgba(255,255,255,0) 100%)!important;
}
html body.djs-account-statusbar #djs-screen-home .djs-account-reference-topbar,
html:has(#djs-screen-home.djs-screen--active) #djs-screen-home .djs-account-reference-topbar{
  padding-top:calc(env(safe-area-inset-top) + 7px)!important;
  min-height:calc(62px + env(safe-area-inset-top))!important;
  background:transparent!important;
}

/* --------------------------------------------------------------------------
   FEEDBACK HEADER — no Retour/title collision
   -------------------------------------------------------------------------- */
html body #djs-portal #djs-screen-feedback .djs-feedback-backbar{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-height:calc(60px + env(safe-area-inset-top))!important;
  padding:calc(env(safe-area-inset-top) + 8px) 16px 9px!important;
  background:#eaf5ff!important;
  overflow:hidden!important;
}
html body #djs-portal #djs-screen-feedback .djs-feedback-backbar .djs-return-btn,
html body #djs-portal #djs-screen-feedback .djs-feedback-backbar .djs-icon-btn{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:84px!important;
  height:40px!important;
  min-height:40px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  border-radius:13px!important;
  border:1px solid #c7e3f6!important;
  background:#fff!important;
  color:#225c82!important;
  -webkit-text-fill-color:#225c82!important;
  box-shadow:0 4px 12px rgba(43,120,171,.07)!important;
}
html body #djs-portal #djs-screen-feedback .djs-feedback-backbar .djs-return-btn .ms,
html body #djs-portal #djs-screen-feedback .djs-feedback-backbar .djs-icon-btn .ms{
  font-size:20px!important;
  color:#225c82!important;
  -webkit-text-fill-color:#225c82!important;
}
html body #djs-portal #djs-screen-feedback .djs-feedback-backbar .djs-return-btn>span:last-child{
  display:inline!important;
  font-size:12px!important;
  font-weight:850!important;
  color:#225c82!important;
  -webkit-text-fill-color:#225c82!important;
}
html body #djs-portal #djs-screen-feedback .djs-feedback-backbar .djs-back-title{
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  font-size:19px!important;
  line-height:1.15!important;
  font-weight:900!important;
  letter-spacing:-.025em!important;
  color:#15384f!important;
  -webkit-text-fill-color:#15384f!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
@media(max-width:390px){
  html body #djs-portal #djs-screen-feedback .djs-feedback-backbar{gap:9px!important;padding-left:12px!important;padding-right:12px!important}
  html body #djs-portal #djs-screen-feedback .djs-feedback-backbar .djs-return-btn,
  html body #djs-portal #djs-screen-feedback .djs-feedback-backbar .djs-icon-btn{min-width:72px!important;padding:0 9px!important}
  html body #djs-portal #djs-screen-feedback .djs-feedback-backbar .djs-back-title{font-size:17px!important}
}

/* --------------------------------------------------------------------------
   LIGHT-BLUE CUSTOMER ACCENT SYSTEM
   Danger/delete/payment-error states intentionally remain red.
   -------------------------------------------------------------------------- */
html body #djs-portal input[type="checkbox"],
html body #djs-portal input[type="radio"]{accent-color:#55afe5!important}
html body #djs-portal .djs-store-search-bar:focus-within,
html body #djs-portal .djs-preview-search-wrap:focus-within,
html body #djs-portal .djs-search-wrap:focus-within,
html body #djs-portal .djs-store-search:focus-within,
html body #djs-portal .djs-field input:focus,
html body #djs-portal .djs-field textarea:focus,
html body #djs-portal .djs-player-input-wrap:focus-within{
  border-color:#78c3ed!important;
  box-shadow:0 0 0 4px rgba(99,189,240,.12)!important;
}
html body #djs-portal .djs-store-search-btn,
html body #djs-portal .djs-store-search-bar .djs-store-search-btn,
html body #djs-portal .djs-preview-search-go,
html body #djs-portal #djs-home-search-btn,
html body #djs-portal #djs-store-search-btn,
html body #djs-portal .djs-wallet-add-balance,
html body #djs-portal .djs-btn-primary,
html body #djs-portal .djs-btn-orange,
html body #djs-portal .djs-gc-btn,
html body #djs-portal button[class*="buy"]:not(.danger):not(.djs-btn-danger),
html body #djs-portal button[class*="claim"]:not(.danger):not(.djs-btn-danger){
  background:linear-gradient(135deg,#70c6f4,#48ace6)!important;
  border-color:#48ace6!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 8px 20px rgba(65,158,216,.16)!important;
}
html body #djs-portal .djs-bottom-nav .djs-bn-item.active,
html body.djs-fullscreen-active #djs-portal .djs-bottom-nav .djs-bn-item.active{
  background:#eaf6ff!important;
  border-color:#c6e6f8!important;
}
html body #djs-portal .djs-bottom-nav .djs-bn-item.active>.ms,
html body.djs-fullscreen-active #djs-portal .djs-bottom-nav .djs-bn-item.active>.ms{
  background:#dff2ff!important;
  border-color:#c6e6f8!important;
  color:#2679ba!important;
  -webkit-text-fill-color:#2679ba!important;
  box-shadow:none!important;
}
html body #djs-portal .djs-header-wallet .ms,
html body #djs-portal .djs-pill-cart .ms,
html body #djs-portal .djs-section-title>.ms,
html body #djs-portal .djs-card-title>.ms,
html body #djs-portal .djs-wallet-section-head .ms,
html body #djs-portal .djs-chat-department .ms,
html body #djs-portal .djs-message-card .ms,
html body #djs-portal .djs-loading .ms{
  color:#3e9ed8!important;
  -webkit-text-fill-color:#3e9ed8!important;
}
html body #djs-portal .djs-cpill.active,
html body #djs-portal .djs-wallet-filter-tabs button.active,
html body #djs-portal #djs-screen-orders .djs-order-tabs .djs-pill.active,
html body #djs-portal .djs-orders-filter.active,
html body #djs-portal [data-order-filter].active,
html body #djs-portal .djs-zefame-tabs button.active,
html body #djs-portal .djs-invite-tabs button.active{
  background:#dff2ff!important;
  border-color:#8cccec!important;
  color:#176da9!important;
  -webkit-text-fill-color:#176da9!important;
  box-shadow:none!important;
}
html body #djs-portal .djs-preview-cat-icon:not(.has-photo){background:#edf8ff!important;border-color:#c5e5f7!important}
html body #djs-portal .djs-preview-cat-icon:not(.has-photo) .ms{color:#3e9ed8!important;-webkit-text-fill-color:#3e9ed8!important}
html body #djs-portal .djs-preview-cat-tile:hover,
html body #djs-portal .djs-preview-product-card:hover,
html body #djs-portal .djs-product-card:hover,
html body #djs-portal .djs-home-product-chip:hover{border-color:#8cccec!important}
html body #djs-portal .djs-ref-nav-item>.ms{background:#eaf6ff!important;color:#3e9ed8!important;-webkit-text-fill-color:#3e9ed8!important;border-color:#c7e6f8!important}
html body #djs-portal .djs-ref-nav-item.active{border-color:#91ceef!important;background:#f2faff!important}
html body #djs-portal .djs-cart-hero-icon,
html body #djs-portal .djs-auth-gem{background:#dff2ff!important;color:#2679ba!important;-webkit-text-fill-color:#2679ba!important}
html body #djs-portal .djs-plan-card::before,
html body #djs-portal .djs-pack-card::before{background:#63bdf0!important}
html body #djs-portal .djs-plan-popular-tag,
html body #djs-portal [class*="popular-tag"]{background:#63bdf0!important;border-color:#63bdf0!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
html body #djs-portal .djs-tab.active{border-color:#85c9ed!important}

/* Keep real danger affordances red. */
html body #djs-portal .djs-btn-danger,
html body #djs-portal .danger,
html body #djs-portal [data-danger="1"],
html body #djs-portal button[data-action="delete"],
html body #djs-portal button[data-action="remove"],
html body #djs-portal .djs-delete-btn{
  background:#ef4444!important;
  border-color:#ef4444!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* --------------------------------------------------------------------------
   UNAVAILABLE = light-blue pill with white text
   -------------------------------------------------------------------------- */
html body #djs-portal #djs-screen-store #djs-product-grid:not(.djs-xbet-service-grid)>.djs-product-card.is-sub-unavailable .djs-product-card__img:after{
  content:'Indisponible'!important;
  background:#64bdf0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border:1px solid rgba(255,255,255,.78)!important;
  box-shadow:0 5px 12px rgba(48,143,201,.18)!important;
}
html body #djs-portal .djs-sub-unavailable-label{
  background:#64bdf0!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  border-radius:999px!important;
  padding:4px 8px!important;
  font-weight:900!important;
}

/* --------------------------------------------------------------------------
   ACCOUNT "PLUS DE SERVICES" — visible rounded light-blue frame
   -------------------------------------------------------------------------- */
html body #djs-portal #djs-screen-home .djs-account-service-tile .djs-account-ref-product-media{
  border:1.5px solid #9fd5f2!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:#f8fcff!important;
  box-shadow:0 3px 10px rgba(54,137,189,.05)!important;
  box-sizing:border-box!important;
}
html body #djs-portal #djs-screen-home .djs-account-service-tile .djs-account-ref-product-media img{
  border-radius:14px!important;
}

/* --------------------------------------------------------------------------
   E-FOOTBALL / DLS MANUAL POPUP — compact premium sheet
   -------------------------------------------------------------------------- */
html body #djs-portal #djs-game-modal.djs-manual-credentials-v2189{
  width:min(calc(100vw - 34px),390px)!important;
  max-width:390px!important;
  max-height:min(74dvh,610px)!important;
  border-radius:22px!important;
  border:1px solid #e3e9ee!important;
  box-shadow:0 24px 70px rgba(15,23,42,.24)!important;
}
html body #djs-portal #djs-game-modal.djs-manual-credentials-v2189 .djs-game-detail-pack-v2187{
  padding:12px 44px 0 12px!important;
}
html body #djs-portal .djs-manual-product-head-v23414{
  grid-template-columns:52px minmax(0,1fr)!important;
  gap:9px!important;
  margin-bottom:8px!important;
}
html body #djs-portal .djs-manual-product-head-v23414 .djs-manual-hero-v2189{
  width:52px!important;
  height:52px!important;
  min-height:52px!important;
  max-height:52px!important;
  border-radius:13px!important;
}
html body #djs-portal .djs-manual-title-v23414 h3{font-size:15px!important;line-height:1.05!important}
html body #djs-portal .djs-manual-title-v23414 p{font-size:9px!important;margin:2px 0 4px!important}
html body #djs-portal .djs-manual-eta-v23414{
  min-height:20px!important;
  padding:3px 7px!important;
  font-size:8.5px!important;
  background:#eaf6ff!important;
  color:#317eac!important;
  -webkit-text-fill-color:#317eac!important;
}
html body #djs-portal .djs-manual-eta-v23414 .ms{color:#3e9ed8!important;-webkit-text-fill-color:#3e9ed8!important}
html body #djs-portal .djs-manual-price-card-v23414{
  min-height:50px!important;
  padding:8px 10px!important;
  border-radius:13px!important;
  background:#f8fafc!important;
}
html body #djs-portal .djs-manual-pack-icon-v23414{background:#eaf6ff!important;color:#3e9ed8!important;-webkit-text-fill-color:#3e9ed8!important}
html body #djs-portal .djs-manual-pack-name-v23414 strong{font-size:11px!important}
html body #djs-portal .djs-manual-price-v23414 b{font-size:16px!important}
html body #djs-portal .djs-manual-trust-v23414{margin-top:5px!important}
html body #djs-portal .djs-manual-trust-v23414>span{font-size:7.5px!important;min-height:17px!important}
html body #djs-portal .djs-manual-trust-v23414 .ms{color:#3e9ed8!important;-webkit-text-fill-color:#3e9ed8!important}
html body #djs-portal #djs-game-modal.djs-manual-credentials-v2189 .djs-game-detail-fields-v2187{
  gap:7px!important;
  max-height:calc(74dvh - 190px)!important;
  padding:8px 12px 3px!important;
}
html body #djs-portal #djs-game-modal .djs-manual-field-v2188>span{font-size:8.5px!important;margin-bottom:3px!important}
html body #djs-portal #djs-game-modal .djs-manual-control-v2188{
  height:34px!important;
  min-height:34px!important;
  border-radius:10px!important;
  background:#fbfcfd!important;
}
html body #djs-portal #djs-game-modal .djs-manual-control-v2188:focus-within{
  border-color:#78c3ed!important;
  box-shadow:0 0 0 2px rgba(99,189,240,.10)!important;
}
html body #djs-portal #djs-game-modal .djs-manual-control-v2188 input,
html body #djs-portal #djs-game-modal .djs-manual-control-v2188 select{
  height:32px!important;
  min-height:32px!important;
  font-size:10.5px!important;
}
html body #djs-portal #djs-game-modal.djs-manual-credentials-v2189 .djs-game-detail-actions-v2187{
  padding:7px 12px calc(8px + env(safe-area-inset-bottom))!important;
}
html body #djs-portal #djs-game-modal.djs-manual-credentials-v2189 #djs-game-modal-submit{
  height:40px!important;
  min-height:40px!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,#70c6f4,#48ace6)!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  box-shadow:0 7px 16px rgba(65,158,216,.16)!important;
  font-size:11px!important;
}
html body #djs-portal #djs-game-modal.djs-manual-credentials-v2189 #djs-game-modal-submit b{font-size:11px!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
@media(max-width:430px){
  html body #djs-portal #djs-game-modal.djs-manual-credentials-v2189{
    width:calc(100vw - 30px)!important;
    max-height:72dvh!important;
    border-radius:21px!important;
  }
  html body #djs-portal #djs-game-modal.djs-manual-credentials-v2189 .djs-game-detail-fields-v2187{
    max-height:calc(72dvh - 185px)!important;
  }
}
