/* Unified wallet cards on the home view only. */
.activity-app .wallet-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.activity-app .wallet-grid .wallet-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 54%, #f9fbff);
  border: 1px solid #e1e9f9;
  border-radius: 15px;
  box-shadow: 0 4px 13px #34599704;
  padding: 14px 10px 10px;
  align-items: center;
}
.activity-app .wallet-grid .wallet-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  min-height: 60px;
  width: 100%;
  color: #506489;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}
.activity-app .wallet-grid .wallet-symbol {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eef3ff;
  color: #6b8bce;
}
.activity-app .wallet-grid .wallet-symbol svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
}
.activity-app .wallet-grid .balance {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 1px;
  width: 100%;
  min-width: 0;
  margin: 12px 0 2px;
  color: #315386;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.activity-app .wallet-grid .balance small {
  font-size: 11px;
}
.activity-app .wallet-grid .balance strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.7px;
  min-width: 0;
}
.activity-app .wallet-grid .wallet-use {
  color: #9aa8bd;
  font-size: 11px;
  line-height: 1.8;
}
.activity-app .wallet-grid .wallet-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  width: 100%;
  margin-top: 13px;
  padding: 8px 2px;
  border-radius: 8px;
  background: #eef3ff;
  color: #6686c2;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.activity-app .wallet-grid .wallet-action svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.8;
}
.activity-app .wallet-grid .income-wallet {
  grid-column: auto;
  flex-direction: column;
  justify-content: flex-start;
  background: linear-gradient(180deg, #fff 54%, #f9fbff);
  border-color: #e1e9f9;
}
.activity-app .wallet-grid .income-wallet .balance {
  color: #315386;
}

/* A standalone recharge page. Header back and title are supplied by its HTML shell. */
.recharge-page {
  background: #f5f7fc;
  color: #223b61;
  min-height: 100dvh;
  --recharge-blue: #2858ed;
  --recharge-line: #e3eafa;
}
.recharge-page .recharge-header,
.recharge-page .app-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 22px;
  background: #fff;
  border-bottom: 1px solid #e6ecf5;
}
.recharge-page .recharge-back {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  margin-left: -10px;
  border-radius: 11px;
  color: #243e69;
}
.recharge-page .recharge-back svg {
  height: 23px;
  width: 23px;
  stroke-width: 1.9;
}
.recharge-page .recharge-back:active {
  background: #f0f4fc;
}
.recharge-page .recharge-page-title,
.recharge-page .recharge-header h1 {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}
.recharge-page .recharge-header > span {
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.recharge-page .recharge-main {
  padding: 21px 20px max(35px, env(safe-area-inset-bottom));
  min-width: 0;
}
.recharge-page button {
  min-height: 44px;
}
.recharge-page svg {
  flex-shrink: 0;
}
.recharge-page .recharge-method-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid #e4ebf9;
  border-radius: 15px;
  background: #ebf1fc;
}
.recharge-page .recharge-method-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 15px 8px;
  min-height: 79px;
  border-radius: 11px;
  color: #8a9cba;
  font-size: 14px;
  line-height: 1.6;
  min-width: 0;
}
.recharge-page .recharge-method-tabs button.active {
  background: #fff;
  color: #335fc3;
  box-shadow: 0 3px 10px #2e549a08;
}
.recharge-page .recharge-method-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.recharge-page .recharge-method-label em {
  font-size: 10px;
  font-style: normal;
  line-height: 1.8;
  padding: 1px 5px;
  border-radius: 5px;
  border: 1px solid #dce7fb;
  background: #edf4ff;
  color: #648acd;
  font-weight: 500;
}
.recharge-page .recharge-method-tabs small {
  font-size: 11px;
  font-weight: 400;
  color: #98a8c2;
  line-height: 1.6;
}
.recharge-page .recharge-method-tabs .active small {
  color: #8fa5ca;
}
.recharge-page .recharge-amount-block {
  margin-top: 24px;
}
.recharge-page .recharge-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 2px 12px;
}
.recharge-page .recharge-section-heading h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: #405a83;
}
.recharge-page .recharge-section-heading > span {
  font-size: 11px;
  color: #9aabc5;
  white-space: nowrap;
}
.recharge-page .recharge-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.recharge-page .recharge-amount-grid button {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  position: relative;
  overflow: hidden;
  padding: 14px 4px;
  border: 1px solid #e1e8f6;
  border-radius: 11px;
  background: #fff;
  color: #7b90b2;
  line-height: 1.5;
}
.recharge-page .recharge-amount-grid button small {
  font-size: 12px;
}
.recharge-page .recharge-amount-grid button strong {
  font-family: 'Segoe UI', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
.recharge-page .recharge-amount-grid button.active {
  border-color: #9eb6f1;
  background: #eef4ff;
  color: #436dcc;
  box-shadow: inset 0 0 0 1px #9eb6f133;
}
.recharge-page .recharge-amount-grid button.active::after {
  content: '✓';
  position: absolute;
  right: 6px;
  top: 1px;
  font-size: 10px;
  color: #7a9de8;
}
.recharge-page .recharge-fiat-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e3eafa;
  border-radius: 13px;
  background: #fff;
  padding: 18px 16px;
  margin-top: 20px;
}
.recharge-page .recharge-pay-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: #eef4ff;
  color: #7c9bd6;
}
.recharge-page .recharge-pay-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}
.recharge-page .recharge-fiat-panel > div {
  flex: 1;
  min-width: 0;
}
.recharge-page .recharge-fiat-panel h2 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}
.recharge-page .recharge-fiat-panel p {
  font-size: 11px;
  color: #97a8c2;
  line-height: 1.8;
  margin-top: 2px;
}
.recharge-page .recharge-status-tag {
  padding: 2px 7px;
  border: 1px solid #e7edf8;
  border-radius: 6px;
  background: #f5f8fd;
  font-size: 10px;
  color: #9aabc6;
  line-height: 1.8;
  white-space: nowrap;
}
.recharge-page .recharge-crypto-panel {
  margin-top: 24px;
  min-width: 0;
}
.recharge-page .recharge-network-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.recharge-page .recharge-network-grid button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 91px;
  border: 1px solid #e2e9f7;
  border-radius: 11px;
  padding: 11px 7px;
  background: #fff;
  color: #8398b9;
  min-width: 0;
}
.recharge-page .recharge-network-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  max-width: 100%;
  font-family: 'Segoe UI', sans-serif;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  text-align: center;
  overflow-wrap: anywhere;
}
.recharge-page .recharge-network-standard {
  display: block;
  font-family: 'Segoe UI', sans-serif;
  font-size: 10px;
  letter-spacing: 0.4px;
  line-height: 1.8;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f4f7fc;
  color: #9aabc6;
}
.recharge-page .recharge-network-grid button.active {
  border-color: #a2baf2;
  background: #f0f5ff;
  color: #4f75c8;
  box-shadow: inset 0 0 0 1px #a2baf222;
}
.recharge-page .recharge-network-grid button.active .recharge-network-standard {
  color: #7596d7;
  background: #e5edfe;
}
.recharge-page .recharge-conversion {
  position: relative;
  min-width: 0;
  border: 1px solid #dfe8fc;
  border-radius: 13px;
  background: linear-gradient(120deg, #f3f7ff, #eaf1ff);
  padding: 17px 18px;
  margin-top: 15px;
}
.recharge-page .recharge-conversion > span:first-child {
  display: block;
  font-size: 11px;
  line-height: 1.8;
  color: #8ba1c5;
}
.recharge-page .recharge-conversion > strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  color: #537bbd;
  line-height: 1.5;
  margin-top: 4px;
}
.recharge-page .recharge-conversion b {
  font-family: 'Segoe UI', sans-serif;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.recharge-page .recharge-conversion small {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.recharge-page .recharge-example-rate {
  position: absolute;
  right: 16px;
  top: 17px;
  font-size: 10px;
  line-height: 1.8;
  color: #8da6d1;
  border: 1px solid #dce6f9;
  border-radius: 5px;
  padding: 1px 6px;
  background: #f5f8ff;
}
.recharge-page .recharge-conversion p {
  font-size: 11px;
  color: #94a7c7;
  line-height: 1.8;
  margin-top: 8px;
}
.recharge-page .recharge-conversion p i {
  font-style: normal;
  margin: 0 3px;
  color: #b2c0d6;
}
.recharge-page .recharge-bonus-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 13px 2px 0;
  font-size: 12px;
  color: #7087aa;
  line-height: 1.9;
}
.recharge-page .recharge-bonus-hint svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.4;
  color: #94acd2;
}
.recharge-page .recharge-summary {
  border: 1px solid #e3eafa;
  border-radius: 13px;
  background: #fff;
  padding: 7px 17px;
  margin-top: 19px;
}
.recharge-page .recharge-summary dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 10px 0;
  font-size: 13px;
  line-height: 1.6;
}
.recharge-page .recharge-summary dt {
  color: #9aabc5;
  min-width: 0;
}
.recharge-page .recharge-summary dd {
  color: #6681ac;
  font-family: 'Segoe UI', sans-serif;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.recharge-page .recharge-summary dd strong {
  font-weight: 600;
}
.recharge-page .recharge-summary .recharge-credit-row {
  border-top: 1px solid #eff3fa;
}
.recharge-page .recharge-credit-row dt {
  color: #7f96bb;
}
.recharge-page .recharge-credit-row dd {
  color: #537abc;
  font-size: 16px;
  font-weight: 600;
}
.recharge-page .recharge-summary .recharge-bonus-row {
  border-top: 1px solid #eff3fa;
}
.recharge-page .recharge-bonus-row dt {
  color: #88a5bf;
}
.recharge-page .recharge-bonus-row dt span {
  display: inline-block;
  font-size: 9px;
  padding: 0 3px;
  border: 1px solid #e2edf5;
  border-radius: 3px;
  background: #f1f7fb;
  color: #8eabc3;
  line-height: 1.6;
  vertical-align: middle;
}
.recharge-page .recharge-bonus-row dd {
  color: #58947f;
  font-size: 14px;
}
.recharge-page .recharge-payment-card {
  border: 1px solid #e2e9f7;
  border-radius: 15px;
  background: #fff;
  padding: 20px 18px;
  margin-top: 18px;
}
.recharge-page .recharge-payment-heading {
  display: flex;
  align-items: center;
  gap: 9px;
}
.recharge-page .recharge-payment-symbol {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  border-radius: 9px;
  background: #f1f5fc;
  color: #9aafcf;
}
.recharge-page .recharge-payment-symbol svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
.recharge-page .recharge-payment-heading h2 {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: #7e93b5;
}
.recharge-page .recharge-payment-card > p {
  font-size: 12px;
  color: #a0adc3;
  line-height: 1.9;
  margin: 12px 0 17px;
}
.recharge-page .recharge-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 49px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--recharge-blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.recharge-page .recharge-submit:disabled {
  opacity: 1;
  background: #eaf0fb;
  color: #96a7c5;
  cursor: default;
}
.recharge-page .recharge-payment-card > small {
  display: block;
  text-align: center;
  font-size: 10px;
  color: #b0bbcc;
  line-height: 1.8;
  margin-top: 12px;
}
@media (max-width: 360px) {
  .activity-app .wallet-grid {
    gap: 7px;
  }
  .activity-app .wallet-grid .wallet-card {
    padding: 13px 7px 9px;
    border-radius: 13px;
  }
  .activity-app .wallet-grid .wallet-label {
    font-size: 13px;
  }
  .activity-app .wallet-grid .balance strong {
    font-size: 20px;
    letter-spacing: -0.8px;
  }
  .activity-app .wallet-grid .balance small {
    font-size: 10px;
  }
  .activity-app .wallet-grid .wallet-use {
    font-size: 10px;
  }
  .activity-app .wallet-grid .wallet-action {
    font-size: 12px;
    gap: 2px;
  }
  .recharge-page .recharge-header,
  .recharge-page .app-header {
    height: 70px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .recharge-page .recharge-main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .recharge-page .recharge-method-label {
    font-size: 14px;
    gap: 4px;
  }
  .recharge-page .recharge-method-label em {
    font-size: 9px;
    padding: 1px 4px;
  }
  .recharge-page .recharge-method-tabs button {
    padding-left: 6px;
    padding-right: 6px;
  }
  .recharge-page .recharge-amount-grid {
    gap: 8px;
  }
  .recharge-page .recharge-amount-grid button strong {
    font-size: 18px;
  }
  .recharge-page .recharge-amount-grid button small {
    font-size: 11px;
  }
  .recharge-page .recharge-fiat-panel {
    padding: 16px 13px;
    gap: 8px;
  }
  .recharge-page .recharge-fiat-panel p {
    font-size: 10px;
  }
  .recharge-page .recharge-network-grid {
    gap: 8px;
  }
  .recharge-page .recharge-network-name {
    font-size: 11px;
  }
  .recharge-page .recharge-network-grid button {
    padding-left: 6px;
    padding-right: 6px;
  }
  .recharge-page .recharge-conversion {
    padding-left: 16px;
    padding-right: 16px;
  }
  .recharge-page .recharge-conversion b {
    font-size: 27px;
  }
  .recharge-page .recharge-conversion p {
    font-size: 10px;
  }
  .recharge-page .recharge-bonus-hint {
    font-size: 12px;
  }
  .recharge-page .recharge-summary {
    padding-left: 15px;
    padding-right: 15px;
  }
  .recharge-page .recharge-summary dl > div {
    font-size: 12px;
  }
  .recharge-page .recharge-credit-row dd {
    font-size: 15px;
  }
  .recharge-page .recharge-payment-card {
    padding: 18px 15px;
  }
}

.recharge-page .recharge-network-hint {
  font-size: 11px;
  line-height: 1.8;
  color: #8b9cb9;
  margin: 10px 2px 0;
}
