/* Shared VIP/coin purchase page. Mobile reorders the same content. */
.deposit-page {
  width: min(964px, calc(100% - 64px));
  margin: 0 auto;
  padding: 36px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #f5f5f5;
}
.deposit-page h1,
.deposit-page h2,
.deposit-page p {
  margin: 0;
}
.deposit-page a {
  color: inherit;
  text-decoration: none;
}
.deposit-page button,
.deposit-pay-dialog button {
  font: inherit;
  cursor: pointer;
}
.deposit-breadcrumb {
  display: flex;
  gap: 12px;
  font-size: 12px;
  line-height: 18px;
  color: #888;
}
.deposit-breadcrumb [aria-current] {
  color: #ff5000;
}
.deposit-head {
  display: grid;
  gap: 12px;
}
.deposit-head > span,
.deposit-hero > span {
  font-size: 12px;
  line-height: 18px;
  color: #ff5000;
}
.deposit-head h1 {
  font-size: 24px;
  line-height: 32px;
}
.deposit-head p {
  font-size: 14px;
  color: #888;
}
.deposit-head b {
  font-weight: 400;
}
.deposit-hero {
  border-radius: 20px;
  background: #191919;
  padding: 36px 32px;
  display: grid;
  gap: 12px;
}
.deposit-hero h2 {
  font-size: 24px;
  line-height: 32px;
}
.deposit-hero p {
  font-size: 14px;
  color: #888;
}
.deposit-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deposit-section-heading h2,
.deposit-transactions h2 {
  font-size: 24px;
  line-height: 32px;
}
.deposit-tabs {
  display: flex;
  padding: 4px;
  background: #202020;
  border-radius: 24px;
  min-width: 240px;
  box-sizing: border-box;
}
.deposit-tabs button {
  flex: 1;
  border: 0;
  background: none;
  color: #888;
  border-radius: 22px;
  min-height: 40px;
  padding: 0 20px;
  font-size: 14px;
}
.deposit-tabs [aria-selected="true"] {
  background: #ff5000;
  color: #fff;
}
.deposit-tabs [data-wallet-tab="coin"] {
  order: -1;
}
.deposit-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.deposit-layout [hidden] {
  display: none !important;
}
.deposit-mobile-banner {
  display: none;
}
.deposit-packages-panel {
  border-radius: 20px;
  background: #191919;
  padding: 32px 20px;
  display: grid;
  gap: 16px;
}
.deposit-packages-panel header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.deposit-packages-panel h2 {
  font-size: 18px;
  line-height: 26px;
}
.deposit-packages-panel p {
  font-size: 12px;
  color: #888;
}
.deposit-packages {
  display: grid;
  gap: 16px;
}
.deposit-packages--vip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.deposit-packages--coin {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.deposit-package {
  position: relative;
  min-width: 0;
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 16px 20px;
  background: #202020;
  color: #f5f5f5;
  text-align: left;
}
.deposit-package--active {
  border-color: #ff5000;
  box-shadow: inset 0 0 0 1px #ff5000;
}
.deposit-package-check {
  display: none;
  position: absolute;
  right: 14px;
  top: 14px;
  border-radius: 50%;
  background: #ff5000;
  color: #fff;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  font-size: 14px;
}
.deposit-package--active .deposit-package-check {
  display: block;
}
.deposit-price {
  font-size: 26px;
  line-height: 32px;
}
.deposit-package-name {
  font-size: 18px;
  line-height: 24px;
  overflow-wrap: anywhere;
}
.deposit-package small,
.deposit-package del {
  font-size: 12px;
  line-height: 18px;
  color: #888;
}
.deposit-package small {
  overflow-wrap: anywhere;
}
.deposit-benefits {
  padding: 36px 20px;
  background: #191919;
  border-radius: 20px;
}
.deposit-benefits h2 {
  text-align: center;
  font-size: 24px;
  line-height: 32px;
  color: #ff5000;
  margin: 0 0 18px;
}
.deposit-benefits > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.deposit-benefits article {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 18px 0;
}
.deposit-benefits strong {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.deposit-benefits small {
  font-size: 12px;
  line-height: 18px;
  color: #888;
}
.deposit-coin-help {
  display: none;
}
.deposit-submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 28px;
  background: #ff5000;
  color: white;
  font-size: 18px !important;
  font-weight: 600 !important;
  padding: 12px 20px;
}
.deposit-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.deposit-selection {
  margin-top: 20px !important;
  font-size: 14px;
  color: #999;
}
.deposit-customer {
  display: none;
}
.deposit-transactions {
  display: grid;
  gap: 16px;
}
.deposit-transactions > div {
  border-radius: 20px;
  background: #191919;
  padding: 12px 24px;
}
.deposit-transactions article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #292929;
  font-size: 14px;
}
.deposit-transactions article:last-child {
  border: 0;
}
.deposit-transactions strong {
  font-size: 14px;
  font-weight: 400;
}
.deposit-transactions time {
  display: block;
  color: #777;
  font-size: 12px;
  margin-top: 8px;
}
.deposit-tx-amount--plus {
  color: #00c777;
}
.deposit-tx-amount--minus {
  color: #ff4860;
}
.deposit-empty {
  grid-column: 1/-1;
  text-align: center;
  color: #888;
  font-size: 14px;
  padding: 32px 12px;
}
.deposit-pay-dialog {
  width: min(440px, calc(100% - 32px));
  box-sizing: border-box;
  border: 1px solid #3b3b3b;
  border-radius: 20px;
  background: #191919;
  color: #eee;
  padding: 24px;
}
.deposit-pay-dialog::backdrop {
  background: #000a;
}
.deposit-pay-dialog form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.deposit-pay-dialog h2 {
  font-size: 20px;
  margin: 0;
}
.deposit-dialog-close {
  border: 0;
  background: none;
  color: #aaa;
  font-size: 28px !important;
}
.deposit-pay-dialog p {
  font-size: 14px;
  color: #aaa;
}
.deposit-pay-dialog [data-deposit-pay-pc] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.deposit-pay-btn {
  border: 1px solid #444;
  border-radius: 12px;
  padding: 16px 8px;
  background: #252525;
  color: #eee;
}
.deposit-pay-btn--active {
  border-color: #ff5000;
  color: #ff5000;
}
.deposit-layout button:focus-visible,
.deposit-layout a:focus-visible {
  outline: 2px solid #ff8b50;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  .deposit-page {
    width: calc(100% - 32px);
    padding: 12px 0 130px;
    gap: 18px;
  }
  .deposit-head,
  .deposit-hero,
  .deposit-section-heading > h2 {
    display: none;
  }
  .deposit-section-heading {
    display: block;
  }
  .deposit-tabs {
    border-radius: 12px;
    width: 100%;
    min-width: 0;
  }
  .deposit-tabs button {
    min-height: 36px;
    border-radius: 9px;
  }
  .deposit-tabs [data-wallet-tab="coin"] {
    order: 0;
  }
  .deposit-tab-panel {
    gap: 18px;
  }
  .deposit-mobile-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 81px;
    box-sizing: border-box;
    padding: 14px 16px;
    border-radius: 18px;
    background: #222 url("/static/images/account/vip-banner.png") center/100%
      100% no-repeat;
  }
  .deposit-mobile-banner strong {
    font-size: 16px;
    line-height: 24px;
  }
  .deposit-mobile-banner small {
    font-size: 12px;
    line-height: 18px;
    color: #888;
  }
  .deposit-coin-banner {
    background-image: url("/static/images/account/coin-banner.png");
    padding-left: 26px;
  }
  .deposit-coin-banner strong {
    font-size: 24px;
    line-height: 29px;
    color: #ffdeb7;
  }
  .deposit-coin-banner small {
    color: #f5dab5;
  }
  .deposit-coin-banner small span {
    font-size: 10px;
  }
  .deposit-packages-panel {
    padding: 0;
    background: none;
    gap: 12px;
    order: 2;
  }
  .deposit-packages-panel header {
    display: block;
  }
  .deposit-packages-panel header p {
    display: none;
  }
  .deposit-packages-panel h2 {
    font-size: 16px;
    line-height: 22px;
  }
  .deposit-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .deposit-package {
    padding: 12px 10px;
    min-height: 96px;
    gap: 2px;
    border-color: transparent;
    border-radius: 24px;
    background: #1c1c1c;
  }
  .deposit-package--active {
    border-color: #ff5000;
    box-shadow: none;
  }
  .deposit-package-check {
    width: 18px;
    height: 18px;
    line-height: 18px;
    right: 10px;
    top: 8px;
    font-size: 12px;
  }
  .deposit-price {
    font-size: 24px;
    line-height: 29px;
  }
  .deposit-package-name {
    font-size: 18px;
    line-height: 24px;
  }
  .deposit-package small {
    font-size: 12px;
    line-height: 18px;
  }
  .deposit-benefits {
    order: 1;
    padding: 0;
    background: none;
    border-radius: 0;
  }
  .deposit-benefits h2 {
    text-align: left;
    color: #f5cba0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    margin-bottom: 12px;
  }
  .deposit-benefits > div {
    gap: 4px;
  }
  .deposit-benefits article {
    padding: 0;
    gap: 8px;
  }
  .deposit-benefits img {
    width: 40px;
    height: 40px;
  }
  .deposit-benefits strong {
    font-size: 12px;
    line-height: 18px;
    color: #888;
    white-space: nowrap;
  }
  .deposit-benefits small {
    display: none;
  }
  .deposit-coin-help {
    order: 3;
    display: block;
    background: #191919;
    border-radius: 24px;
    padding: 20px 16px;
  }
  .deposit-coin-help h2 {
    font-size: 14px;
    line-height: 20px;
  }
  .deposit-coin-help dl {
    margin: 12px 0 0;
  }
  .deposit-coin-help dt {
    font-size: 14px;
    line-height: 20px;
    margin-top: 14px;
  }
  .deposit-coin-help dd {
    font-size: 12px;
    line-height: 18px;
    color: #888;
    margin: 4px 0 0;
  }
  .deposit-tab-panel[data-wallet-panel="coin"] .deposit-packages-panel {
    padding: 20px 12px;
    background: #191919;
    border-radius: 24px;
    gap: 18px;
  }
  .deposit-packages--coin .deposit-package {
    background: #292929;
    align-items: center;
    text-align: center;
    min-height: 94px;
    border-radius: 12px;
  }
  .deposit-packages--coin .deposit-package-name {
    font-size: 18px;
  }
  .deposit-packages--coin .deposit-price {
    font-size: 16px;
    line-height: 22px;
  }
  .deposit-packages--coin .deposit-package-check {
    right: 5px;
    top: 5px;
  }
  .deposit-purchase {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    padding: 10px 16px max(16px, env(safe-area-inset-bottom));
    background: #101010;
  }
  .deposit-submit {
    min-height: 54px;
    background: linear-gradient(110deg, #fac69b, #ffdfb8);
    color: #22190f;
    font-size: 16px !important;
  }
  .deposit-selection {
    display: none;
  }
  .deposit-customer {
    display: block;
    margin-top: 10px !important;
    text-align: center;
    color: #666;
    font-size: 12px;
    line-height: 16px;
  }
  .deposit-customer a {
    color: #999;
  }
  .deposit-transactions {
    border-top: 1px solid #222;
    padding-top: 20px;
  }
  .deposit-transactions h2 {
    font-size: 16px;
    line-height: 22px;
  }
  .deposit-transactions > div {
    padding: 4px 16px;
  }
  .deposit-transactions article {
    padding: 16px 0;
  }
  .deposit-layout .download-fab,
  .deposit-layout #scrollToTopButton {
    display: none !important;
  }
}

/* Optional text occupies the same row on every mobile package card. */
@media (min-width: 768px) {
  .deposit-package del:empty {
    display: none;
  }
}
@media (max-width: 767px) {
  .deposit-package,
  .deposit-packages--coin .deposit-package {
    box-sizing: border-box;
    height: 122px;
    min-height: 122px;
    justify-content: flex-start;
  }
  .deposit-package .deposit-price {
    flex: 0 0 29px;
  }
  .deposit-package .deposit-package-name {
    flex: 0 0 24px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .deposit-package small,
  .deposit-package del {
    display: block;
    flex: 0 0 18px;
    min-height: 18px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.deposit-coin-icon {
  display: none;
}
@media (max-width: 767px) {
  .deposit-coin-banner strong {
    color: #fff;
    font-weight: 700;
  }
  .deposit-coin-banner small {
    color: #fff;
    font-size: 14px;
  }
  .deposit-tab-panel[data-wallet-panel="coin"] .deposit-packages-panel {
    background: transparent;
    border: 1px solid rgba(255, 211, 153, 0.06);
    padding: 20px 11px;
  }
  .deposit-tab-panel[data-wallet-panel="coin"] .deposit-packages-panel h2 {
    color: #ffdbb4;
    font-weight: 400;
  }
  .deposit-packages--coin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .deposit-packages--coin .deposit-package {
    height: auto;
    min-height: 0;
    padding: 20px 4px;
    gap: 8px;
    border: 1px solid rgba(255, 211, 153, 0.2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: none;
  }
  .deposit-packages--coin .deposit-package--active {
    background: linear-gradient(
      180deg,
      rgba(254, 190, 139, 0.3),
      rgba(254, 190, 139, 0.1)
    );
    border-color: #febf8b;
    box-shadow: inset 0 0 0 1px rgba(254, 191, 139, 0.45);
  }
  .deposit-packages--coin .deposit-coin-icon {
    display: block;
    order: 0;
    flex: 0 0 24px;
  }
  .deposit-packages--coin .deposit-package-name {
    order: 1;
    flex: 0 0 20px;
    font-size: 14px;
    line-height: 20px;
  }
  .deposit-packages--coin .deposit-package small {
    order: 2;
    font-size: 12px;
    color: #888;
  }
  .deposit-packages--coin .deposit-price {
    order: 3;
    flex: 0 0 24px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
  }
  .deposit-packages--coin .deposit-package del {
    position: static;
    order: 4;
    flex: 0 0 auto;
    min-height: 16px;
    font-size: 10px;
    line-height: 16px;
  }
  .deposit-packages--coin .deposit-package-check {
    top: auto;
    right: auto;
    bottom: -12px;
    left: calc(50% - 12px);
    width: 24px;
    height: 24px;
    font-size: 0;
    border-radius: 50%;
    background: url("/static/images/account/coin-selected.png") center/contain
      no-repeat;
  }
  .deposit-coin-help {
    background: transparent;
    padding: 0;
    border-radius: 0;
  }
  .deposit-coin-help h2 {
    color: #ffdbb4;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
  }
  .deposit-coin-help dl {
    border: 1px solid rgba(255, 211, 153, 0.1);
    border-radius: 24px;
    padding: 20px 12px;
    margin-top: 12px;
  }
  .deposit-coin-help dt {
    margin-top: 0;
    padding-left: 34px;
    color: #d2b898;
    font-size: 12px;
    line-height: 18px;
    background: url("/static/images/account/coin-unlock.png") left top/24px 24px
      no-repeat;
  }
  .deposit-coin-help dt:nth-of-type(2) {
    background-image: url("/static/images/account/coin-gift.png");
  }
  .deposit-coin-help dt:nth-of-type(3) {
    background-image: url("/static/images/account/coin-watch.png");
  }
  .deposit-coin-help dd {
    margin: 4px 0 8px;
    padding: 0 0 8px 34px;
    color: #746957;
    border-bottom: 1px solid #292929;
  }
  .deposit-coin-help dd:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }
}

.deposit-coin-hint-h5 {
  display: none;
}
@media (max-width: 767px) {
  .deposit-packages--coin .deposit-coin-hint-pc {
    display: none;
  }
  .deposit-packages--coin .deposit-coin-hint-h5 {
    display: block;
  }
}

@media (max-width: 767px) {
  /* Keep an optional original price clear of the bottom selection marker. */
  .deposit-packages--coin .deposit-package {
    padding-top: 14px;
    gap: 6px;
  }
  .deposit-packages--coin .deposit-package del {
    position: static;
    order: 4;
    flex: 0 0 12px;
    min-height: 12px;
    font-size: 10px;
    line-height: 12px;
    margin-top: -4px;
  }
}

@media (max-width: 767px) {
  .deposit-vip-banner--active {
    background-image: url("/static/images/account/vip-banner-active.png");
  }
  .deposit-vip-banner--active strong {
    color: #ffe3b2;
  }
  .deposit-vip-banner--active small {
    color: #d9b789;
  }
}

@media (max-width: 767px) {
  .deposit-vip-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 6px;
    padding-right: 62px;
  }
  .deposit-vip-expire {
    color: #d9b789;
    font-size: 10px;
    line-height: 18px;
    white-space: nowrap;
  }
}
/* Payment confirmation surface and external close. */
.deposit-pay-dialog {
  width: min(440px, calc(100% - 32px));
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #fff;
  margin: auto;
  transform: translateY(-24px);
}
.deposit-pay-surface {
  box-sizing: border-box;
  padding: 36px;
  border: 1px solid #414141;
  border-radius: 40px;
  background: #0d0d0d;
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.deposit-pay-surface header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.deposit-pay-dialog h2 {
  font-size: 24px;
  line-height: 32px;
}
.deposit-pay-surface header > span {
  font-size: 16px;
  color: #888;
}
.deposit-pay-order {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #292929;
  border-radius: 24px;
  background: #191919;
  padding: 16px;
}
.deposit-pay-order strong {
  font-size: 20px;
  line-height: 28px;
  font-weight: 400;
}
.deposit-pay-order p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
}
.deposit-pay-order .deposit-pay-amount {
  border-radius: 24px;
  background: #ff500014;
  padding: 8px 20px;
  color: #ff5000;
  font-weight: 600;
  white-space: nowrap;
}
.deposit-pay-surface h3 {
  font-size: 18px;
  line-height: 24px;
  margin: 18px 0;
}
.deposit-pay-dialog [data-deposit-pay-pc] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 18px;
}
.deposit-pay-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  border-radius: 22px;
  min-height: 68px;
  background: #191919;
  padding: 15px 48px 15px 16px;
  border: 1px solid #292929;
  text-align: left;
  color: #fff;
}
.deposit-pay-btn::after {
  content: "";
  position: absolute;
  right: 16px;
  width: 20px;
  height: 20px;
  background: #303030;
  border-radius: 50%;
}
.deposit-pay-btn--active {
  border-color: #ff5000;
  color: #fff;
}
.deposit-pay-btn--active::after {
  content: "✓";
  color: white;
  background: #ff5000;
  text-align: center;
  line-height: 20px;
  font-size: 14px;
}
.deposit-pay-brand {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.deposit-pay-surface .deposit-submit {
  min-height: 50px;
  border-radius: 12px;
  background: #ff5000;
  color: #fff;
}
.deposit-pay-dialog .deposit-pay-notice {
  font-size: 12px;
  line-height: 18px;
  color: #777;
  text-align: center;
  margin: 18px 0 0;
}
.deposit-pay-dialog form {
  position: absolute;
  top: calc(100% + 24px);
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0;
}
.deposit-dialog-close {
  width: 36px;
  height: 36px;
  padding: 0;
  display: block;
}
.deposit-dialog-close img {
  display: block;
  width: 36px;
  height: 36px;
}
@media (max-width: 767px) {
  .deposit-pay-surface {
    padding: 24px 20px;
    border-radius: 28px;
    max-height: calc(100dvh - 100px);
  }
  .deposit-pay-dialog h2 {
    font-size: 22px;
  }
  .deposit-pay-surface header > span {
    font-size: 14px;
  }
  .deposit-pay-order strong {
    font-size: 18px;
  }
  .deposit-pay-order .deposit-pay-amount {
    padding: 6px 12px;
  }
  .deposit-pay-btn {
    min-height: 58px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .deposit-pay-order p {
    font-size: 12px;
  }
}

/* Reserve optional rows only when the VIP group supplies their content. */
.deposit-packages--vip small[aria-hidden="true"],
.deposit-packages--vip del[aria-hidden="true"] { visibility:hidden; }
@media(max-width:767px) {
 .deposit-packages--vip .deposit-package {
  height:auto; min-height:96px; padding:12px 10px; border-radius:20px; gap:2px;
 }
 .deposit-packages--vip .deposit-package .deposit-price {
  font-size:20px; line-height:24px; flex:0 0 24px;
 }
 .deposit-packages--vip .deposit-package .deposit-package-name {
  font-size:16px; line-height:22px; flex:0 0 22px;
 }
 .deposit-packages--vip .deposit-package small,
 .deposit-packages--vip .deposit-package del {
  font-size:11px; line-height:16px; flex:0 0 16px; min-height:16px;
 }
 .deposit-packages--vip .deposit-package-check {
  width:16px; height:16px; line-height:16px; font-size:11px;
 }
}

.deposit-packages--coin del[aria-hidden="true"] { visibility:hidden; }
