/* Recharge payment-stage layout overrides. Loaded after styles.css. */
body.recharge-page .recharge-main {
  padding-bottom: 92px !important;
}

body.recharge-page .recharge-pending-notice {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #c9dcff;
  border-radius: 10px;
  background: #eef5ff;
  color: #334766;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

body.recharge-page .recharge-pending-notice button {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #8fb5ff;
  border-radius: 6px;
  background: #ffffff;
  color: #176bff;
  font-size: 12px;
  font-weight: 750;
}

body.recharge-page .receive-card,
body.recharge-page .receive-qr-card,
body.recharge-page .transfer-suffix-card {
  margin-top: 0 !important;
  padding: 16px !important;
  border: 1px solid #dbe7ff !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(20, 60, 120, 0.06) !important;
}

body.recharge-page .receive-card-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(110px, auto) !important;
  gap: 8px 12px !important;
  align-items: start !important;
  margin-bottom: 12px !important;
}

body.recharge-page .receive-card-head h2 {
  margin: 0 !important;
  color: #1f2a44 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  overflow-wrap: anywhere !important;
}

body.recharge-page .receive-card-head span {
  color: #6b7890 !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  text-align: right !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.recharge-page .receive-grid {
  display: grid !important;
  gap: 10px !important;
}

body.recharge-page .receive-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 58px !important;
  gap: 10px !important;
  align-items: center !important;
  min-height: 58px !important;
  padding: 10px 12px !important;
  border: 1px solid #e5eeff !important;
  border-radius: 13px !important;
  background: #f8fbff !important;
}

body.recharge-page .receive-field {
  min-width: 0 !important;
  display: grid !important;
  gap: 4px !important;
}

body.recharge-page .receive-field span {
  grid-column: auto !important;
  margin: 0 !important;
  color: #6b7890 !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.recharge-page .receive-field strong {
  grid-column: auto !important;
  min-width: 0 !important;
  color: #1f2a44 !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

body.recharge-page .receive-copy {
  grid-column: auto !important;
  width: 58px !important;
  min-width: 58px !important;
  max-width: 58px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 1px solid #b9d0ff !important;
  border-radius: 18px !important;
  background: #eaf1ff !important;
  color: #176bff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: end !important;
}

body.recharge-page .receive-qr {
  margin: 0 !important;
  display: grid !important;
  justify-items: center !important;
  gap: 10px !important;
}

body.recharge-page .receive-qr img {
  width: 150px !important;
  height: 150px !important;
  padding: 8px !important;
  border: 1px solid #dbe7ff !important;
  border-radius: 16px !important;
  background: #ffffff !important;
}

body.recharge-page .receive-save-qr {
  min-height: 34px !important;
  padding: 0 16px !important;
  border: 1px solid #b9d0ff !important;
  border-radius: 18px !important;
  background: #eaf1ff !important;
  color: #176bff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

body.recharge-page .bank-proof-upload {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

body.recharge-page .bank-proof-upload h3,
body.recharge-page .bank-proof-upload p,
body.recharge-page .bank-proof-upload small {
  margin: 0;
}

body.recharge-page .bank-proof-upload h3 {
  color: #1f2a44;
  font-size: 17px;
  font-weight: 900;
}

body.recharge-page .bank-proof-upload p,
body.recharge-page .bank-proof-upload small {
  color: #6b7890;
  font-size: 13px;
  line-height: 1.45;
}

body.recharge-page .bank-proof-picker {
  width: min(100%, 260px);
  min-height: 150px;
  padding: 14px;
  border: 1.5px dashed #9dbdfb;
  border-radius: 14px;
  background: #f5f9ff;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  color: #176bff;
  cursor: pointer;
}

body.recharge-page .bank-proof-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body.recharge-page .bank-proof-picker img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 210px;
  border-radius: 10px;
  object-fit: contain;
}

body.recharge-page .bank-proof-picker.has-proof {
  min-height: 190px;
  border-style: solid;
  background: #ffffff;
}

body.recharge-page .bank-proof-placeholder {
  min-width: 112px;
  min-height: 72px;
  border-radius: 10px;
  background: #eaf1ff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}

body.recharge-page .bank-proof-picker b {
  font-size: 14px;
  font-weight: 900;
}

body.recharge-page .recharge-next:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

body.recharge-page .transfer-suffix {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 0 !important;
  display: grid !important;
  gap: 10px !important;
  justify-items: center !important;
}

body.recharge-page .transfer-suffix-head {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

body.recharge-page .transfer-suffix-head span {
  display: block !important;
  color: #f5a400 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.recharge-page .suffix-boxes {
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
}

body.recharge-page .suffix-boxes input {
  width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  flex: 0 0 42px !important;
  border-radius: 12px !important;
  font-size: 18px !important;
}

body.recharge-page .suffix-hint {
  width: 100% !important;
  color: #6b7890 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 374px) {
  body.recharge-page .receive-card-head {
    grid-template-columns: 1fr !important;
  }

  body.recharge-page .receive-card-head span {
    text-align: left !important;
  }

  body.recharge-page .receive-field strong {
    font-size: 17px !important;
  }
}

/* Recharge records and deposit detail page. */
body.recharge-page .recharge-record-shell {
  display: grid;
  gap: 12px;
}

body.recharge-page .recharge-record-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.recharge-page .recharge-record-filters label {
  position: relative;
  display: block;
}

body.recharge-page .recharge-record-filters select {
  width: 100%;
  height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid #d8e3f5;
  border-radius: 999px;
  background: #ffffff;
  color: #6b7890;
  font-size: 14px;
  font-weight: 750;
  appearance: none;
  outline: none;
}

body.recharge-page .recharge-record-filters span {
  position: absolute;
  right: 14px;
  top: 50%;
  color: #9aa8bd;
  font-size: 14px;
  transform: translateY(-52%);
  pointer-events: none;
}

body.recharge-page .recharge-record-list {
  display: grid;
  gap: 8px;
}

body.recharge-page .recharge-record-card {
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) clamp(112px, 36vw, 160px) 16px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: #f8f9fb;
  box-shadow: 0 2px 8px rgba(31, 73, 125, 0.035);
  cursor: pointer;
}

body.recharge-page .record-method-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin-right: 0;
  border-radius: 6px;
  object-fit: contain;
  background: #ffffff;
  border: 0;
}

body.recharge-page .record-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 8px;
}

body.recharge-page .record-main > strong {
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

body.recharge-page .record-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  color: #999999;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}

body.recharge-page .record-meta-text {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.recharge-page .record-copy-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 18px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #20a77a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.recharge-page .record-copy-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

body.recharge-page .deposit-detail-row button,
body.recharge-page .deposit-detail-hero button {
  flex: 0 0 auto;
  min-width: 44px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid #bfd3ff;
  border-radius: 999px;
  background: #edf4ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 850;
}

body.recharge-page .record-side {
  width: 100%;
  min-width: 0;
  max-width: 160px;
  display: grid;
  gap: 0;
  justify-items: end;
  text-align: right;
}

body.recharge-page .record-side b {
  max-width: 100%;
  color: #333333;
  font-size: clamp(14px, 4.4vw, 20px);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

body.recharge-page .record-status {
  max-width: 100%;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: right;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.recharge-page .record-status.pending,
body.recharge-page .record-status.processing,
body.recharge-page .record-status.timeout {
  color: #ff9800;
}

body.recharge-page .record-status.success {
  color: #00b51a;
}

body.recharge-page .record-status.failed,
body.recharge-page .record-status.cancelled {
  color: #ff3b30;
}

body.recharge-page .record-arrow {
  width: 16px;
  margin-left: 0;
  color: #999999;
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}

body.recharge-page .recharge-record-empty {
  min-height: 180px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: #7a8799;
  text-align: center;
}

body.recharge-page .recharge-record-empty strong {
  color: #1f2a44;
  font-size: 17px;
  font-weight: 900;
}

body.recharge-page .recharge-record-empty span,
body.recharge-page .recharge-record-footer {
  color: #8b95a7;
  font-size: 14px;
  text-align: center;
}

body.recharge-page .deposit-detail-card {
  display: grid;
  gap: 12px;
}

body.recharge-page .deposit-detail-hero,
body.recharge-page .deposit-detail-list,
body.recharge-page .deposit-bonus-card {
  border: 1px solid #e2ebfb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(31, 73, 125, 0.06);
}

body.recharge-page .deposit-detail-hero {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 16px;
  text-align: center;
}

body.recharge-page .deposit-detail-hero i {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-size: 26px;
  font-style: normal;
  font-weight: 950;
}

body.recharge-page .deposit-detail-hero.success i {
  background: #22a06b;
}

body.recharge-page .deposit-detail-hero.pending i,
body.recharge-page .deposit-detail-hero.processing i,
body.recharge-page .deposit-detail-hero.timeout i {
  background: #f59e0b;
}

body.recharge-page .deposit-detail-hero.failed i,
body.recharge-page .deposit-detail-hero.cancelled i {
  background: #ef4444;
}

body.recharge-page .deposit-detail-hero h2 {
  margin: 0;
  color: #1f2a44;
  font-size: 18px;
  font-weight: 950;
}

body.recharge-page .deposit-detail-hero div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.recharge-page .deposit-detail-hero strong {
  color: #1f2a44;
  font-size: 22px;
  font-weight: 950;
}

body.recharge-page .deposit-detail-list {
  padding: 6px 14px;
}

body.recharge-page .deposit-detail-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #edf2ff;
}

body.recharge-page .deposit-detail-row:last-child {
  border-bottom: 0;
}

body.recharge-page .deposit-detail-row span {
  color: #7a8799;
  font-size: 14px;
  font-weight: 750;
}

body.recharge-page .deposit-detail-row strong {
  min-width: 0;
  color: #1f2a44;
  font-size: 14px;
  font-weight: 850;
  text-align: right;
  word-break: break-word;
}

body.recharge-page .deposit-bonus-card {
  padding: 16px;
  display: grid;
  gap: 10px;
}

body.recharge-page .deposit-bonus-card h3 {
  margin: 0 0 2px;
  color: #1f2a44;
  font-size: 16px;
  font-weight: 950;
}

body.recharge-page .deposit-bonus-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #7a8799;
  font-size: 14px;
  font-weight: 750;
}

body.recharge-page .deposit-bonus-card strong {
  color: #f59e0b;
  text-align: right;
}

body.recharge-page .deposit-detail-primary {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

body.recharge-page .recharge-matching-card,
body.recharge-page .recharge-match-failed-card {
  max-width: 320px;
  text-align: center;
  justify-items: center;
}

body.recharge-page .matching-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #dbeafe;
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: rechargeSpin 0.8s linear infinite;
}

body.recharge-page .recharge-matching-card h2,
body.recharge-page .recharge-match-failed-card h2 {
  margin: 10px 0 0;
  color: #1f2a44;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.35;
}

body.recharge-page .recharge-matching-card p,
body.recharge-page .recharge-match-failed-card p {
  margin: 0;
  color: #7a8799;
  font-size: 14px;
  line-height: 1.5;
}

body.recharge-page .recharge-matching-card strong {
  color: #2563eb;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

body.recharge-page .recharge-match-failed-card code {
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 10px;
  background: #f3f7ff;
  color: #2563eb;
  font-size: 13px;
  font-family: Arial, sans-serif;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.recharge-page .recharge-match-failed-card div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

body.recharge-page .recharge-match-failed-card button {
  min-height: 40px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
}

body.recharge-page .recharge-match-failed-card button:first-child {
  border: 1px solid #dbe7ff;
  background: #ffffff;
  color: #2563eb;
}

body.recharge-page .recharge-match-failed-card button:last-child {
  border: 0;
  background: #2563eb;
  color: #ffffff;
}

body.recharge-page .usdt-exchange-rate {
  margin: 18px 0 10px;
  color: #ef1f1f;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

body.recharge-page .usdt-credit-preview {
  margin: 0 0 12px;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

body.recharge-page .usdt-credit-preview strong {
  color: #1459d9;
  font-size: 16px;
}

@keyframes rechargeSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 374px) {
  body.recharge-page .recharge-record-card {
    grid-template-columns: 40px minmax(0, 1fr) clamp(112px, 36vw, 135px) 12px;
    gap: 8px;
    padding: 10px;
  }

  body.recharge-page .record-side b {
    font-size: 14px;
  }

  body.recharge-page .record-status {
    font-size: 13px;
  }
}
