﻿.top-up-section {
  background: var(--white);
}

.top-up-section .container {
  max-width: 1060px;
}

.banner-bg-slide .banner-content {
  padding-top: 86px;
}

.banner-actions {
  gap: 0;
}

.banner-shop-title {
  margin: 0;
  color: #ffe93b !important;
  font-size: 76px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  -webkit-text-stroke: 0;
  text-shadow:
    2px 2px 0 #8b3c13,
    4px 4px 0 #5e260f,
    0 8px 18px rgba(0, 0, 0, 0.34);
}

.banner-bg-slide .hero-text-box,
.banner-bg-slide .hero-ele1,
.banner-bg-slide .hero-ele2 {
  display: none !important;
}

.top-up-account-card,
.top-up-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.top-up-account-card {
  display: flex;
  min-height: auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  border-radius: 10px;
  margin-bottom: 36px;
  padding: 34px 28px;
  background: linear-gradient(135deg, #6047ff 0%, #9236c8 48%, #f2464a 100%);
  box-shadow: 0 18px 44px rgba(96, 71, 255, 0.22);
}

.top-up-account-card.has-player {
  background: var(--white);
  box-shadow: 0 18px 44px rgba(3, 23, 64, 0.1);
}

.top-up-account-btn {
  border: 0;
  background: transparent;
  color: var(--white);
  font-weight: 700;
  font-size: 50px;
  line-height: 1.25;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.top-up-panel {
  border-radius: 8px;
  padding: 0;
}

.top-up-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.top-up-loading {
  grid-column: 1 / -1;
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  padding: 40px 0;
}

.top-up-item {
  position: relative;
  min-height: 284px;
  border: 1px solid rgba(18, 24, 38, 0.08);
  border-radius: 8px;
  padding: 0;
  background: var(--white);
  box-shadow: 0 16px 38px rgba(3, 23, 64, 0.09);
  cursor: pointer;
  isolation: isolate;
  overflow: visible;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.top-up-item::before {
  display: none;
}

.top-up-item.is-pack::before,
.top-up-item.is-first::before {
  display: none;
}

.top-up-item.is-month::before {
  display: none;
}

.top-up-item:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 71, 255, 0.24);
  box-shadow: 0 22px 48px rgba(3, 23, 64, 0.14);
}

.top-up-item-inner {
  position: relative;
  z-index: 2;
  min-height: 284px;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 40px 16px 20px;
}

.top-up-title {
  width: 100%;
  min-height: 48px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--black);
  font-size: 20px;
  line-height: 1.12;
  font-weight: 700;
  text-align: center;
}

.top-up-title span {
  display: block;
  font-size: 24px;
}

.top-up-title em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(242, 70, 74, 0.1);
  color: #f2464a;
  font-size: 15px;
  font-style: normal;
  font-weight: 900;
}

.top-up-visual {
  position: relative;
  width: 126px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.top-up-main-img {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: none;
}

.top-up-item.is-pack .top-up-main-img,
.top-up-item.is-first .top-up-main-img,
.top-up-item.is-month .top-up-main-img {
  width: 88px;
  height: 88px;
}

.top-up-light {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 168px;
  height: 138px;
  object-fit: cover;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.top-up-light-purple {
  opacity: 0.58;
  mix-blend-mode: multiply;
}

.top-up-light-gold {
  opacity: 0.44;
  mix-blend-mode: multiply;
}

.top-up-reward-row {
  width: 100%;
  min-height: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.top-up-reward-mini {
  min-width: 32px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 3px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.top-up-item.is-currency .top-up-reward-row {
  display: none;
}

.top-up-reward-mini img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: none;
}

.top-up-reward-mini b,
.top-up-reward-mini em,
.top-up-reward-more {
  color: #2f3342;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
}

.top-up-reward-mini em {
  color: #f2464a;
  font-style: normal;
}

.top-up-buy-btn,
.top-up-item a.top-up-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  min-width: 112px;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #6047ff 0%, #9236c8 52%, #f2464a 100%);
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  padding: 8px 14px;
  text-shadow: none;
  box-shadow: 0 10px 24px rgba(96, 71, 255, 0.22);
}

.top-up-badge {
  position: absolute;
  top: -2px;
  left: -16px;
  z-index: 3;
  width: 138px;
  height: 42px;
  transform: rotate(-10deg);
  transform-origin: center;
  pointer-events: none;
}

.top-up-limit-tag {
  position: absolute;
  top: -2px;
  left: -16px;
  z-index: 3;
  width: 138px;
  height: 42px;
  transform: rotate(-10deg);
  transform-origin: center;
  pointer-events: none;
  overflow: visible;
}

.top-up-badge img,
.top-up-limit-tag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: none;
}

.top-up-badge em,
.top-up-limit-tag em {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px 5px;
  color: #fff7dc;
  font-size: 18px;
  line-height: 1;
  font-style: normal;
  font-weight: 900;
  text-align: center;
  text-shadow:
    0 1px 0 #641006,
    1px 0 0 #641006,
    -1px 0 0 #641006;
  transform: rotate(-5deg);
}

.top-up-rules {
  margin-top: 30px;
  padding: 30px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #6047ff 0%, #9236c8 48%, #f2464a 100%);
  box-shadow: 0 18px 44px rgba(96, 71, 255, 0.18);
}

.top-up-rules p {
  color: var(--white);
  font-size: 14px;
  line-height: 1.85;
  font-weight: 600;
  margin-bottom: 10px;
}

.top-up-rules .top-up-reminder {
  margin-top: 18px;
  color: #fff0ad;
}

.top-up-player-summary {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  color: var(--black);
  text-align: left;
}

.top-up-player-summary strong {
  display: block;
  color: var(--black);
  font-size: 24px;
  font-weight: 700;
}

.top-up-player-summary span {
  display: inline-flex;
  align-items: center;
  color: var(--black);
  font-size: 20px;
  line-height: 1.7;
  font-weight: 500;
}

.top-up-player-summary button {
  justify-self: end;
  border: 0;
  border-radius: 8px;
  background: #f43f43;
  color: var(--white);
  font-size: 15px;
  font-weight: 900;
  padding: 12px 22px;
  box-shadow: 0 10px 18px rgba(244, 63, 67, 0.18);
}

.top-up-player-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.top-up-player-info strong,
.top-up-player-info span {
  white-space: nowrap;
}

.player-diamond {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--black);
  font-weight: 800;
}

.player-diamond img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.player-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.player-modal.is-open {
  display: flex;
}

.player-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 24, 0.48);
}

.player-modal__dialog {
  position: relative;
  width: min(448px, 100%);
  border-radius: 8px;
  background: var(--white);
  padding: 26px 24px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.player-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: #eef0f4;
  color: #6c717a;
  font-size: 24px;
  line-height: 24px;
}

.player-modal h3 {
  color: var(--black);
  font-size: 24px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
}

.player-modal__hint {
  color: #ef3f43;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin: -6px 0 12px;
}

.player-modal__form {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 8px;
  margin-bottom: 14px;
}

.player-modal__form input {
  width: 100%;
  height: 48px;
  border: 1px solid #d7dce4;
  border-radius: 7px;
  color: var(--black);
  font-size: 16px;
  padding: 0 16px;
  outline: none;
}

.player-modal__form input:focus {
  border-color: #ef3f43;
}

.player-modal__form button,
.player-modal__confirm {
  border: 0;
  border-radius: 7px;
  background: #f43f43;
  color: var(--white);
  font-size: 16px;
  font-weight: 800;
}

.player-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  border: 1px solid #f43f43;
  border-radius: 7px;
  padding: 18px 18px;
  margin-bottom: 24px;
}

.player-result[hidden] {
  display: none;
}

.player-result strong,
.player-result span {
  color: var(--black);
}

.player-result__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  align-items: center;
  min-width: 0;
}

.order-player-card__info {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: nowrap;
  min-width: 0;
}

.player-result strong {
  font-size: 18px;
  font-weight: 900;
  margin-right: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-result span {
  font-size: 15px;
  line-height: 1.55;
}

.player-result i {
  color: #f43f43;
  font-size: 18px;
}

.player-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.player-modal__cancel {
  border: 0;
  border-radius: 7px;
  background: #e4e7eb;
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
  padding: 12px 16px;
}

.player-modal__confirm {
  padding: 12px 16px;
}

.player-modal__confirm:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.uid-confirm-modal .player-modal__dialog {
  width: min(390px, 100%);
}

.uid-confirm-text {
  color: #f43f43;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  margin: -4px 0 10px;
}

#uidConfirmValue {
  display: block;
  border: 1px solid #f43f43;
  border-radius: 7px;
  color: var(--black);
  font-size: 22px;
  font-weight: 900;
  text-align: center;
  padding: 14px 16px;
  margin-bottom: 18px;
  word-break: break-all;
}

.product-detail-modal .player-modal__dialog {
  width: min(448px, 100%);
}

.product-detail-modal p {
  color: var(--black);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

.order-modal__dialog {
  width: min(750px, 100%);
}

.order-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.order-modal__left,
.order-modal__right {
  display: grid;
  gap: 8px;
}

.order-player-card,
.order-product-card,
.payment-card,
.order-total-card {
  border: 1px solid #f43f43;
  border-radius: 9px;
  background: #f3f3f3;
}

.order-player-card {
  min-height: 100px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.order-player-card__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  align-items: center;
}

.order-player-card strong,
.order-player-card span {
  color: var(--black);
}

.order-player-card strong {
  font-size: 18px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-product-card {
  min-height: 360px;
  padding: 18px;
}

.order-product-card__head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.order-product-card__head img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--white);
}

.order-product-card__head strong {
  color: var(--black);
  font-size: 20px;
  font-weight: 900;
}

.order-product-card p {
  color: var(--black);
  font-size: 16px;
}

.payment-card {
  min-height: 360px;
  padding: 16px 12px;
}

.payment-card h4 {
  color: var(--black);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 32px;
}

.payment-card button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: var(--white);
  color: var(--black);
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.payment-card button img {
  max-width: 118px;
  max-height: 32px;
  object-fit: contain;
}

.payment-card button span {
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
}

.payment-card button.active {
  border: 1px solid #f43f43;
  background: #d9e9ff;
  color: #e6155f;
}

.order-total-card {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.order-total-card span,
.order-total-card b {
  color: var(--black);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
}

.order-total-card span {
  flex: 1;
}

.order-total-card button {
  min-width: 128px;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #f43f43;
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.order-total-card button.is-pressed {
  transform: scale(0.94);
}

.order-total-card button:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.payment-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 9, 24, 0.58);
  backdrop-filter: blur(5px);
}

.payment-loading.is-open {
  display: flex;
}

.payment-loading__box {
  width: min(360px, 100%);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.2);
  padding: 30px 24px;
  text-align: center;
}

.payment-loading__spinner {
  width: 46px;
  height: 46px;
  border: 4px solid rgba(244, 63, 67, 0.18);
  border-top-color: #f43f43;
  border-radius: 50%;
  margin: 0 auto 18px;
  animation: payment-spin 0.82s linear infinite;
}

.payment-loading__box strong {
  display: block;
  color: var(--black);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}

.payment-loading__box span {
  display: block;
  color: #5c5868;
  font-size: 14px;
  line-height: 1.7;
}

body.payment-is-loading {
  overflow: hidden;
}

@keyframes payment-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 991px) {
  .banner-bg-slide .banner-content {
    padding-top: 58px;
  }

  .top-up-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .banner-bg-slide {
    min-height: 680px;
    padding: 160px 0 120px;
    display: flex;
    align-items: center;
  }

  .banner-bg-slide .banner-content {
    padding-top: 64px;
  }

  .banner-shop-title {
    font-size: 52px;
  }

  .banner-bg-slide .banner-content p {
    margin-bottom: 24px !important;
  }

  .top-up-account-card {
    width: 100%;
    min-height: 96px;
    margin-bottom: 28px;
    padding: 22px 18px;
  }

  .top-up-account-card.has-player {
    align-items: stretch;
  }

  .top-up-account-btn {
    font-size: 22px;
  }

  .top-up-panel {
    padding: 0;
  }

  .top-up-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .top-up-item {
    min-height: 246px;
  }

  .top-up-item-inner {
    min-height: 246px;
    padding: 24px 10px 16px;
  }

  .top-up-title {
    min-height: 44px;
    font-size: 17px;
    gap: 6px;
  }

  .top-up-title em {
    min-height: 20px;
    padding: 3px 7px;
    font-size: 13px;
  }

  .top-up-visual {
    width: 106px;
    height: 84px;
  }

  .top-up-main-img {
    width: 68px;
    height: 68px;
  }

  .top-up-item.is-pack .top-up-main-img,
  .top-up-item.is-first .top-up-main-img,
  .top-up-item.is-month .top-up-main-img {
    width: 76px;
    height: 76px;
  }

  .top-up-light {
    width: 158px;
    height: 130px;
  }

  .top-up-reward-row {
    display: none;
    gap: 4px;
  }

  .top-up-reward-mini {
    min-width: 28px;
    height: 26px;
    padding: 2px;
  }

  .top-up-reward-mini img {
    width: 17px;
    height: 17px;
  }

  .top-up-reward-mini b,
  .top-up-reward-mini em,
  .top-up-reward-more {
    font-size: 10px;
  }

  .top-up-buy-btn,
  .top-up-item a.top-up-buy-btn {
    min-width: 92px;
    min-height: 34px;
    font-size: 15px;
    padding: 7px 10px;
  }

  .top-up-badge {
    width: 120px;
    height: 36px;
    left: -12px;
    top: -2px;
  }

  .top-up-limit-tag {
    width: 120px;
    height: 36px;
    left: -12px;
    top: -2px;
  }

  .top-up-badge em,
  .top-up-limit-tag em {
    padding: 4px 12px 4px;
    font-size: 18px;
  }

  .top-up-player-summary {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .top-up-player-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 14px;
    align-items: center;
  }

  .top-up-player-info strong,
  .top-up-player-info span {
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
  }

  .top-up-player-info strong {
    grid-column: 1 / -1;
    font-size: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-up-player-info span {
    font-size: 16px;
    text-align: left;
  }

  .player-diamond {
    gap: 4px;
  }

  .player-diamond img {
    width: 17px;
    height: 17px;
  }

  .top-up-player-summary button {
    justify-self: end;
    min-width: 86px;
    min-height: 44px;
  }

  .player-result {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
  }

  .player-result__info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    align-items: center;
  }

  .order-player-card__info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 12px;
    align-items: center;
  }

  .player-result__info strong {
    grid-column: auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .order-player-card__info strong {
    grid-column: auto;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .player-modal__form {
    grid-template-columns: 1fr;
  }

  .player-modal__form button {
    min-height: 46px;
  }

  .player-modal {
    align-items: flex-start;
    padding: 14px;
    overflow-y: auto;
  }

  .player-modal__dialog {
    width: 100%;
    margin: 24px 0;
    padding: 24px 16px 18px;
  }

  .order-modal__dialog {
    width: 100%;
    max-width: none;
  }

  .order-modal {
    align-items: flex-end;
    padding: 0;
  }

  .order-modal .player-modal__dialog {
    margin: 0;
    border-radius: 8px 8px 0 0;
    padding: 18px 18px 18px;
  }

  .order-modal__grid {
    grid-template-columns: 1fr;
  }

  .order-player-card {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;
    padding: 14px;
  }

  .order-player-card strong,
  .order-player-card span {
    margin: 0;
    white-space: nowrap;
  }

  .order-player-card span {
    text-align: left;
  }

  .order-product-card,
  .payment-card {
    min-height: auto;
  }

  .order-product-card {
    padding: 14px;
  }

  .order-product-card__head {
    gap: 12px;
    margin-bottom: 12px;
  }

  .order-product-card__head img {
    width: 64px;
    height: 64px;
  }

  .order-product-card__head strong {
    font-size: 17px;
  }

  .order-product-card p {
    font-size: 14px;
    line-height: 1.6;
  }

  .payment-card {
    padding: 14px;
  }

  .payment-card h4 {
    margin-bottom: 14px;
  }

  .payment-card button {
    min-height: 38px;
    font-size: 16px;
  }

  .payment-card button img {
    max-width: 86px;
    max-height: 22px;
  }

  .payment-card button span {
    font-size: 15px;
  }

  .order-total-card {
    min-height: auto;
    padding: 14px;
  }

}

@media (max-width: 430px) {
  .banner-bg-slide {
    min-height: 640px;
    padding: 150px 0 110px;
  }

  .banner-bg-slide .banner-content {
    padding-top: 52px;
  }

  .top-up-grid {
    grid-template-columns: 1fr;
  }

  .order-player-card {
    gap: 10px;
  }

  .order-player-card strong,
  .order-player-card span {
    font-size: 16px;
  }
}

