.recharge-page {
  padding: 40px 60px 80px;
  max-width: 1440px;
  margin: 0 auto;
  min-height: calc(100vh - 74px);
  color: #f5fbff;
  background: #0f0f12;
}

.recharge-header {
  text-align: center;
  margin-bottom: 24px;
}

.recharge-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
  margin: 0 0 12px;
  color: #f5fbff;
}

.recharge-sub-title {
  margin: 0;
  color: rgba(224, 245, 255, 0.48);
  font-size: 14px;
  line-height: 20px;
}

.recharge-loading-wrap {
  text-align: center;
  padding: 100px 0;
}

.recharge-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.recharge-toggle {
  display: flex;
  width: 496px;
  height: 40px;
  padding: 2px;
  background: #1c1e22;
  border: 1px solid rgba(245, 251, 255, 0.04);
  border-radius: 20px;
}

.recharge-toggle-btn {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  color: #f5fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.recharge-toggle-btn.is-active {
  background: rgba(245, 251, 255, 0.08);
  color: #f5fbff;
}

.toggle-badge {
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(95, 91, 102, 0.24);
  color: #ff47ac;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.recharge-toggle-btn.is-active .toggle-badge {
  background: rgba(15, 15, 18, 0.24);
}

.recharge-cards {
  display: grid;
  grid-template-columns: repeat(3, 320px);
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

.recharge-page .recharge-card.ant-card {
  background: #1c1e22;
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.recharge-page .recharge-card .ant-card-body {
  padding: 28px 24px 24px;
}

.recharge-page .recharge-card.is-primary {
  background:
    linear-gradient(180deg, rgba(255, 71, 172, 0.08) 0%, rgba(255, 71, 172, 0) 50%),
    #1c1e22;
  position: relative;
}

.recharge-recommend-badge {
  position: absolute;
  top: 0;
  right: 0;
  height: 30px;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 0 0 0 12px;
  background: linear-gradient(90deg, #ffa8d8 0%, #ffcdf7 50%, #ffe2fc 100%);
  color: #1c1e22;
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}

.tier-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.recharge-card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #f5fbff;
  margin: 0;
}

.promo-tag-inline {
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(245, 251, 255, 0.08);
  color: #ff47ac;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
}

.tier-desc {
  color: rgba(245, 251, 255, 0.48);
  font-size: 12px;
  line-height: 20px;
  margin: 0 0 16px;
}

.recharge-card-price {
  display: flex;
  align-items: flex-end;
  color: #f5fbff;
  margin-bottom: 16px;
}

.recharge-currency {
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  margin-right: 0;
  margin-bottom: 2px;
}

.recharge-amount {
  font-size: 40px;
  font-weight: 600;
  line-height: 45px;
  color: #f5fbff;
}

.recharge-unit {
  font-size: 12px;
  line-height: 20px;
  color: rgba(245, 251, 255, 0.48);
  margin-left: 0;
  margin-bottom: 4px;
}

.price-origin {
  margin-left: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 20px;
  color: rgba(245, 251, 255, 0.48);
}

.price-origin s {
  text-decoration: line-through;
}

.sub-account-section {
  margin: 0 0 32px;
  padding: 0;
  border: none;
}

.sub-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sub-account-control {
  display: flex;
  align-items: center;
  width: 128px;
  height: 32px;
  border-radius: 6px;
  background: rgba(245, 251, 255, 0.08);
  border: 1px solid rgba(245, 251, 255, 0.04);
  overflow: hidden;
  margin: 0;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #f5fbff;
  font-size: 16px;
  line-height: 32px;
  cursor: pointer;
  flex-shrink: 0;
}

.stepper-btn:disabled {
  color: rgba(245, 251, 255, 0.24);
  cursor: not-allowed;
}

.stepper-value {
  flex: 1;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  color: #f5fbff;
  white-space: nowrap;
}

.sub-account-control:has(.stepper-btn:disabled) .stepper-value {
  color: rgba(245, 251, 255, 0.48);
}

.sub-account-total {
  display: flex;
  align-items: flex-end;
  color: rgba(245, 251, 255, 0.48);
  font-size: 12px;
  line-height: 32px;
}

.sub-account-total .total-currency {
  color: #f5fbff;
  font-size: 12px;
  font-weight: 500;
  line-height: 32px;
}

.sub-account-total .total-amount {
  color: #f5fbff;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
}

.sub-account-tip {
  color: rgba(245, 251, 255, 0.48);
  font-size: 12px;
  line-height: 20px;
  margin: 0;
}

.recharge-buy-btn {
  height: 44px !important;
  border: none !important;
  border-radius: 22px !important;
  background: linear-gradient(90deg, #ffa8d8 0%, #ffcdf7 50%, #ffe2fc 100%) !important;
  color: #1c1e22 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

.recharge-buy-btn:hover {
  background: linear-gradient(90deg, #ffa8d8 0%, #ffcdf7 50%, #ffe2fc 100%) !important;
  color: #1c1e22 !important;
  opacity: 0.92;
}

.recharge-buy-btn.is-muted,
.recharge-buy-btn:disabled,
.recharge-buy-btn.ant-btn-disabled {
  background: rgba(245, 251, 255, 0.12) !important;
  color: rgba(245, 251, 255, 0.68) !important;
  cursor: not-allowed;
  opacity: 1;
}

.recharge-buy-btn + .recharge-card-body {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 251, 255, 0.08);
}

.recharge-card-body {
  padding-top: 0;
}

.advanced-benefits {
  border-top: none;
  margin-top: 16px;
}

.benefit-group-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(245, 251, 255, 0.68);
  margin-bottom: 16px;
}

.recharge-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recharge-benefit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: #f5fbff;
}

.benefit-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.recharge-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  position: relative;
}

.recharge-check::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 6px;
  height: 9px;
  border-right: 2px solid #ff47ac;
  border-bottom: 2px solid #ff47ac;
  transform: rotate(45deg);
}

.benefit-val {
  color: #f5fbff;
}

.benefit-unavailable {
  color: rgba(245, 251, 255, 0.24);
  font-size: 14px;
}

.recharge-section-title-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.recharge-section-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 34px;
  color: #f5fbff;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.recharge-title-icon {
  font-size: 14px;
  color: rgba(245, 251, 255, 0.48);
}

.recharge-benefit-table-wrap {
  margin-top: 0;
}

.recharge-benefit-table {
  background: transparent;
  margin-bottom: 80px;
}

.recharge-benefit-table .ant-table {
  background: transparent;
  color: #f5fbff;
}

.recharge-benefit-table .ant-table-container,
.recharge-benefit-table .ant-table-content,
.recharge-benefit-table table {
  border: none !important;
}

.recharge-benefit-table .ant-table-thead > tr > th {
  background: transparent !important;
  color: #f5fbff !important;
  font-weight: 600;
  font-size: 18px;
  border: none !important;
  padding: 24px !important;
}

.recharge-benefit-table .ant-table-tbody > tr > td {
  background: transparent !important;
  color: #f5fbff !important;
  border: none !important;
  border-bottom: 1px solid rgba(245, 251, 255, 0.08) !important;
  padding: 20px 24px !important;
  height: 60px;
}

.recharge-benefit-table .ant-table-tbody > tr > td.ant-table-cell-row-hover,
.grouped-table .ant-table-tbody > tr:hover > td,
.grouped-table .ant-table-cell-row-hover {
  background: rgba(245, 251, 255, 0.04) !important;
}

.benefit-group-name {
  color: #f5fbff;
  font-weight: 600;
  font-size: 14px;
}

.benefit-feature-name {
  color: #f5fbff;
  font-size: 14px;
}

.benefit-val-text {
  color: #f5fbff;
}

.benefit-table-loading {
  padding: 100px 0;
  text-align: center;
}

/* Payment Modal Style Optimization */
.payment-method-modal .ant-modal-content {
  background: #1f1f1f;
  color: #fff;
  border: 1px solid #333;
}

.payment-method-modal .ant-modal-header {
  background: transparent;
  border-bottom: 1px solid #333;
  padding-bottom: 16px;
}

.payment-method-modal .ant-modal-title {
  color: #fff;
}

.payment-methods-list {
  padding: 24px 0;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.payment-method-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #333;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  text-align: center;
}

.payment-method-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #444;
}

.payment-method-item.is-active {
  background: rgba(229, 74, 148, 0.05);
  border-color: #e54a94;
}

.method-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-right: 0;
  margin-bottom: 16px;
}

.method-icon.wechat {
  background: #07c160;
  color: #fff;
}

.method-icon.alipay {
  background: #1677ff;
  color: #fff;
}

.method-info {
  flex: none;
}

.method-name {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 2px;
}

.method-desc {
  font-size: 12px;
  color: #666;
}

.method-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  border: 2px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.payment-method-item.is-active .method-check {
  border-color: #e54a94;
}

.check-dot {
  width: 10px;
  height: 10px;
  background: transparent;
  border-radius: 50%;
  transition: all 0.2s;
}

.payment-method-item.is-active .check-dot {
  background: #e54a94;
}

.payment-modal-footer {
  padding-top: 8px;
}

.confirm-payment-btn {
  height: 50px;
  font-size: 16px;
}

/* Checkout Page Styles */
.checkout-page-container {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.checkout-card {
  background: #1f1f1f !important;
  border: 1px solid #333 !important;
  border-radius: 12px;
  padding: 32px;
}

.checkout-content-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 48px;
  align-items: start;
}

.checkout-left-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 32px;
  border-radius: 16px;
  border: 1px solid #333;
}

.checkout-content-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.checkout-header {
  margin-bottom: 32px;
}

.checkout-title {
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 0;
  text-align: center;
}

.checkout-amount-section {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.amount-label {
  color: #a9a9a9;
  font-size: 14px;
}

.amount-value {
  color: #e54a94;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.amount-value .currency {
  font-size: 24px;
  font-weight: 600;
}

.amount-value .number {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
}

.order-details-section {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #333;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.detail-row .label {
  color: #666;
}

.detail-row .value {
  color: #fff;
  font-weight: 500;
}

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.qr-wrapper {
  background: #fff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.qr-status-info {
  min-height: 24px;
}

.status-pending {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #e54a94;
  font-size: 14px;
}

.qr-tip {
  color: #999;
  font-size: 14px;
  text-align: center;
}

.qr-tip span {
  color: #e54a94;
  font-weight: 600;
}

.checkout-footer {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.countdown-label {
  color: #666;
  font-size: 14px;
}

.back-btn {
  color: #666 !important;
}

.back-btn:hover {
  color: #fff !important;
}

/* Alipay Redirect Styles */
.alipay-redirect-tip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 20px 0;
}

.alipay-icon-wrap {
  margin-bottom: 8px;
  background: #1677ff;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alipay-redirect-tip h3 {
  color: #fff;
  font-size: 18px;
  margin: 0;
}

.alipay-redirect-tip p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.alipay-status-check {
  text-align: center;
  width: 100%;
}

.alipay-status-check p {
  color: #a9a9a9;
  font-size: 14px;
  margin-bottom: 16px;
}

.status-check-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.status-check-buttons .ant-btn-primary {
  background: #e54a94;
  border-color: #e54a94;
}

.status-check-buttons .ant-btn-default {
  background: transparent;
  color: #a9a9a9;
  border-color: #333;
}

.status-check-buttons .ant-btn-default:hover {
  color: #fff;
  border-color: #666;
}

/* Override Result styles for dark mode */
.checkout-page-container .ant-result-title {
  color: #fff !important;
}

.checkout-page-container .ant-result-subtitle {
  color: #999 !important;
}
.common-page-content {
  padding: 0 16px 40px 0;
  box-sizing: border-box;
  flex: 1;
  width: 100%;
  min-width: 1100px;
  overflow: visible;
  height: auto;
}

.common-layout {
  background: transparent;
}
