/* Core card alignment preserved from v1.4, compacted for v1.5. */
/* Đa Game v1.4 - sửa đúng hai vấn đề được phản ánh trên v1.3.
 * 1) Mọi CTA trên các thẻ trang chủ nằm ngang hàng ở đáy thẻ.
 * 2) Hiệu ứng nạp tiền xanh biển theo bản demo đã duyệt.
 * Chỉ CSS + nhãn trang trí, không sửa link, JS, submit hay dữ liệu đơn hàng.
 */
/* Khóa kích thước hàng thẻ vào nội dung: cả giá có/không có đều có nút ở chân. */
.ws-home-id1000 .ws-grid > .ws-wrap-box{
  display:flex!important;flex-direction:column!important;align-self:stretch!important;min-width:0!important;
}
.ws-home-id1000 .ws-grid > .ws-wrap-box > a:has(.dg12-card-cta){
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;height:100%!important;min-width:0!important;
}
.ws-home-id1000 .ws-grid > .ws-wrap-box > a:has(.dg12-card-cta) > div:last-child{
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;padding-bottom:11px!important;
}
.ws-home-id1000 .ws-grid > .ws-wrap-box > a:has(.dg12-card-cta) > div:last-child > div{
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;
}
.ws-home-id1000 .ws-grid > .ws-wrap-box > a:has(.dg12-card-cta) > div:last-child > div > .ws-mt-2{
  display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-width:0!important;
}
.ws-home-id1000 a .rgb-card-action.dg12-card-cta,
.ws-home-id1000 a .rgb-card-action.rgb-card-action--buy.dg12-card-cta{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:100%!important;min-height:33px!important;height:33px!important;flex:0 0 33px!important;
  margin:auto 0 0!important;padding:5px 9px!important;
  white-space:nowrap!important;word-break:keep-all!important;line-height:1!important;
  font-weight:900!important;font-size:11px!important;text-align:center!important;
  box-sizing:border-box!important;
}
.ws-home-id1000 .dg12-card-prices{display:flex!important;flex-wrap:wrap!important;align-items:baseline!important;gap:3px 7px!important;margin:10px 0 7px!important;min-height:20px!important;}
.ws-home-id1000 .dg12-card-prices del{white-space:nowrap!important;font-size:11px!important;}
.ws-home-id1000 .dg12-card-prices strong{white-space:nowrap!important;font-size:14px!important;}
@media(max-width:520px){
  .ws-home-id1000 a .rgb-card-action.dg12-card-cta,
.ws-home-id1000 a .rgb-card-action.rgb-card-action--buy.dg12-card-cta{font-size:10px!important;min-height:32px!important;height:32px!important;flex-basis:32px!important;padding-inline:5px!important;}
  .ws-home-id1000 .dg12-card-prices strong{font-size:12px!important;}
}


/* Da Game v1.5 — compact, visible, continuous ocean-blue animation.
   Do not modify real links, submit handlers or database logic. Loaded once, LAST. */

/* Nút MUA NGAY trong lưới: nhỏ, đồng hàng và hiệu ứng chỉ nằm trong nút. */
.ws-home-id1000 a .rgb-card-action.dg12-card-cta,
.ws-home-id1000 a .rgb-card-action.rgb-card-action--buy.dg12-card-cta{
  border-radius:9px!important;
  font-size:10.5px!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
  line-height:1!important;
  animation:dg15-card-color 2.1s ease-in-out infinite!important;
  background-size:260% 100%!important;
  box-shadow:0 1px 5px #b747cc55!important;
}
@keyframes dg15-card-color{
  0%,100%{background-position:0% 50%;filter:brightness(1);box-shadow:0 1px 5px #b747cc55}
  50%{background-position:100% 50%;filter:brightness(1.12);box-shadow:0 2px 11px #eb57d477}
}

/* Nút nạp trên HEADER chỉ cao 34px, tương đương nút gốc.
   Nút trong form gọn 38px ở trang chủ, 42px ở trang nạp riêng. */
body.shop-skin #header a.dg13-deposit-button,
body.shop-skin button.dp-primary.dg13-deposit-button{
  position:relative!important;isolation:isolate!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  box-sizing:border-box!important;overflow:hidden!important;
  gap:5px!important;padding:0 12px!important;
  border:0!important;border-radius:10px!important;
  background:#075fae!important;background-image:none!important;
  color:#fff!important;text-decoration:none!important;
  font-weight:900!important;line-height:1!important;
  text-shadow:0 1px 3px #00365f!important;
  box-shadow:0 0 7px #248de877,0 2px 7px #003f7530!important;
  animation:dg15-glow 1.8s ease-in-out infinite alternate!important;
  transition:filter .16s ease!important;
}
body.shop-skin #header a.dg13-deposit-button{
  width:auto!important;max-width:156px!important;
  height:34px!important;min-height:34px!important;
  padding:0 11px!important;margin-top:0!important;margin-bottom:0!important;
  font-size:12px!important;white-space:nowrap!important;
}
body.shop-skin #header a.dg13-deposit-button>i{
  font-size:16px!important;line-height:1!important;margin:0!important;
}
body.shop-skin #header a.dg13-deposit-button>span:not(.dg13-sea-border):not(.dg13-sea-fill):not(.dg13-sea-sheen):not(.dg14-sea-spark){
  font-size:12px!important;line-height:1!important;margin:0!important;
  white-space:nowrap!important;
}
body.shop-skin button.dp-primary.dg13-deposit-button{
  width:100%!important;
  height:42px!important;min-height:42px!important;max-height:42px!important;
  padding:0 12px!important;margin-top:10px!important;
  font-size:12px!important;white-space:nowrap!important;
}
body.shop-skin .dp-home button.dp-primary.dg13-deposit-button{
  height:38px!important;min-height:38px!important;max-height:38px!important;
  margin-top:8px!important;padding:0 9px!important;
  border-radius:10px!important;
}

/* Clip the RGB rim within the button. Colors rotate, but the button does not grow. */
body.shop-skin .dg13-deposit-button>.dg13-sea-border,
body.shop-skin .dg13-deposit-button>.dg13-sea-fill,
body.shop-skin .dg13-deposit-button>.dg13-sea-sheen{
  position:absolute!important;display:block!important;pointer-events:none!important;
  margin:0!important;box-sizing:border-box!important;
}
body.shop-skin .dg13-deposit-button>.dg13-sea-border{
  inset:-90%!important;z-index:0!important;
  background:conic-gradient(#00437b,#2cbdff,#b4f2ff,#0079d8,#65dfff,#00437b)!important;
  animation:dg15-ring-spin 2s linear infinite!important;
}
/* Unlike v1.4, no 270%-wide child: fill always fits the button.
   Animate its *background* instead of moving a huge element. */
body.shop-skin .dg13-deposit-button>.dg13-sea-fill{
  top:2px!important;right:2px!important;bottom:2px!important;left:2px!important;
  width:auto!important;height:auto!important;z-index:1!important;
  border-radius:8px!important;
  background-image:linear-gradient(105deg,#0754a8 0%,#087ee8 22%,#4bcaff 45%,#1077d5 68%,#0754a8 100%)!important;
  background-color:#0754a8!important;
  background-size:300% 100%!important;
  background-repeat:repeat-x!important;
  animation:dg15-ocean-color 2.25s ease-in-out infinite!important;
  filter:none!important;transform:none!important;
  box-shadow:inset 0 1px 6px #ffffff40!important;
}
body.shop-skin .dg13-deposit-button>.dg13-sea-sheen{
  top:-70%!important;bottom:-70%!important;left:-55%!important;
  right:auto!important;width:36%!important;height:auto!important;z-index:2!important;
  background:linear-gradient(90deg,transparent,#ffffffad,transparent)!important;
  animation:dg15-light-sweep 1.8s linear infinite!important;
  filter:none!important;
}
body.shop-skin .dg13-deposit-button>.dg14-sea-spark{
  display:block!important;position:absolute!important;pointer-events:none!important;
  z-index:3!important;width:3px!important;height:3px!important;
  top:65%!important;left:23%!important;border-radius:50%!important;
  background:#fff!important;box-shadow:0 0 5px 2px #c7f4ff!important;
  animation:dg15-spark 1.9s linear infinite!important;
}
body.shop-skin .dg13-deposit-button>.dg14-sea-spark--two{
  left:70%!important;animation-duration:2.3s!important;animation-delay:-.9s!important;
}
body.shop-skin #header a.dg13-deposit-button>i,
body.shop-skin #header a.dg13-deposit-button>span:not(.dg13-sea-border):not(.dg13-sea-fill):not(.dg13-sea-sheen):not(.dg14-sea-spark),
body.shop-skin button.dp-primary.dg13-deposit-button>.dg13-deposit-label{
  position:relative!important;z-index:5!important;color:white!important;
  font-weight:900!important;text-shadow:0 1px 4px #002c54!important;
  pointer-events:none!important;
}
body.shop-skin button.dp-primary.dg13-deposit-button>.dg13-deposit-label{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  padding:0 5px!important;margin:0!important;
  border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
  white-space:nowrap!important;font-size:12px!important;line-height:1.1!important;
}
body.shop-skin button.dp-primary.dg13-deposit-button:disabled{
  opacity:.6!important;cursor:not-allowed!important;animation:none!important;
}
body.shop-skin a.dg13-deposit-button:hover,
body.shop-skin button.dp-primary.dg13-deposit-button:not(:disabled):hover{
  filter:brightness(1.12)!important;
}
@keyframes dg15-ring-spin{to{transform:rotate(360deg)}}
@keyframes dg15-ocean-color{
  0%,100%{background-position:0% 50%}
  50%{background-position:100% 50%}
}
@keyframes dg15-light-sweep{
  0%{transform:translateX(0) skewX(-22deg)}
  100%{transform:translateX(700%) skewX(-22deg)}
}
@keyframes dg15-glow{
  from{box-shadow:0 0 6px #2186e977,0 2px 7px #003f7530}
  to{box-shadow:0 0 13px #42c2ffb5,0 2px 7px #003f7530}
}
@keyframes dg15-spark{
  0%{opacity:0;transform:translateY(7px)}
  20%,75%{opacity:1}
  100%{opacity:0;transform:translate(8px,-14px)}
}
@media(max-width:520px){
  body.shop-skin #header a.dg13-deposit-button{
    height:32px!important;min-height:32px!important;
    max-width:120px!important;padding:0 7px!important;
    font-size:11px!important;
  }
  body.shop-skin button.dp-primary.dg13-deposit-button{
    height:38px!important;min-height:38px!important;max-height:38px!important;
    padding:0 8px!important;
  }
  body.shop-skin button.dp-primary.dg13-deposit-button>.dg13-deposit-label{font-size:11px!important}
}
@media(prefers-reduced-motion:reduce){
 body.shop-skin .dg13-deposit-button,
 body.shop-skin .dg13-deposit-button>.dg13-sea-border,
 body.shop-skin .dg13-deposit-button>.dg13-sea-fill,
 body.shop-skin .dg13-deposit-button>.dg13-sea-sheen,
 body.shop-skin .dg13-deposit-button>.dg14-sea-spark,
 body.shop-skin .rgb-card-action.dg12-card-cta{animation:none!important}
}

/* Da Game v1.6 - minimal motion fix, PRESERVE original pink/cyan button appearance.
   Do not change size, layout, link target, submit logic, product card CSS or PHP. */
body.shop-skin #header a.dg13-deposit-button,
body.shop-skin button.dp-primary.dg13-deposit-button{
  background:#26123a!important;
  background-image:none!important;
  color:#fff!important;
  /* Preserve compact heights from v1.5. */
  box-shadow:0 0 8px #fd36968a,0 2px 8px #21133766!important;
  animation:dg16-soft-pulse 1.8s ease-in-out infinite alternate!important;
}
body.shop-skin .dg13-deposit-button>.dg13-sea-border{
  position:absolute!important;inset:-115%!important;z-index:0!important;
  background:conic-gradient(#b315ed,#ff4797,#ffb7e0,#44dffc,#7e5bff,#b315ed)!important;
  animation:dg16-rotate 2.6s linear infinite!important;
}
body.shop-skin .dg13-deposit-button>.dg13-sea-fill{
  position:absolute!important;inset:2px!important;top:2px!important;right:2px!important;bottom:2px!important;left:2px!important;
  width:auto!important;height:auto!important;z-index:1!important;
  background-color:#d52aa3!important;
  background-image:linear-gradient(105deg,#ff1685 0%,#ec21b6 24%,#a52af1 45%,#25c5ec 67%,#f12ab0 100%)!important;
  background-size:300% 100%!important;
  background-repeat:no-repeat!important;
  border-radius:8px!important;
  clip-path:none!important;
  filter:none!important;transform:none!important;
  animation:dg16-rgb-travel 2.1s linear infinite!important;
}
/* The original deposit form has a dark plum band and diagonal neon inset. */
body.shop-skin .dp-home button.dp-primary.dg13-deposit-button{
  background:#26123a!important;
}
body.shop-skin .dp-home button.dp-primary.dg13-deposit-button>.dg13-sea-border{
  opacity:.45!important;
}
body.shop-skin .dp-home button.dp-primary.dg13-deposit-button>.dg13-sea-fill{
  left:13%!important;right:13%!important;top:3px!important;bottom:3px!important;
  border-radius:0!important;
  clip-path:polygon(5% 0%,100% 0%,95% 100%,0% 100%)!important;
}
body.shop-skin .dg13-deposit-button>.dg13-sea-sheen{
  position:absolute!important;top:-70%!important;bottom:-70%!important;left:-60%!important;
  width:30%!important;right:auto!important;z-index:2!important;
  background:linear-gradient(90deg,transparent,#fff9,transparent)!important;
  animation:dg16-sweep 1.85s linear infinite!important;
  pointer-events:none!important;
}
body.shop-skin .dg13-deposit-button>.dg14-sea-spark{animation:dg15-spark 2s linear infinite!important;}
body.shop-skin #header a.dg13-deposit-button>i,
body.shop-skin #header a.dg13-deposit-button>span:not(.dg13-sea-border):not(.dg13-sea-fill):not(.dg13-sea-sheen):not(.dg14-sea-spark),
body.shop-skin button.dp-primary.dg13-deposit-button>.dg13-deposit-label{
  z-index:5!important;color:#fff!important;
  background:transparent!important;border:0!important;box-shadow:none!important;
  text-shadow:0 1px 4px #260b3c!important;
}
@keyframes dg16-rotate{to{transform:rotate(360deg)}}
@keyframes dg16-rgb-travel{0%{background-position:0% 50%}100%{background-position:100% 50%}}
@keyframes dg16-sweep{0%{transform:translateX(0) skewX(-22deg)}100%{transform:translateX(720%) skewX(-22deg)}}
@keyframes dg16-soft-pulse{from{box-shadow:0 0 8px #fd36967a,0 2px 8px #21133766}to{box-shadow:0 0 14px #fc4799ae,0 2px 9px #21133766}}
@media(prefers-reduced-motion:reduce){
 body.shop-skin #header a.dg13-deposit-button,
 body.shop-skin button.dp-primary.dg13-deposit-button,
 body.shop-skin .dg13-deposit-button>.dg13-sea-border,
 body.shop-skin .dg13-deposit-button>.dg13-sea-fill,
 body.shop-skin .dg13-deposit-button>.dg13-sea-sheen,
 body.shop-skin .dg13-deposit-button>.dg14-sea-spark{animation:none!important}
}
