#lx-real-recharge {
  --lx-accent: var(--brand-primary, #1456e0);
  --lx-accent-hover: var(--brand-primary-hover, #0f4fcf);
  --lx-ink: var(--neutral-ink, #0f172a);
  --lx-text: var(--neutral-text, #475569);
  --lx-muted: var(--neutral-sub, #64748b);
  --lx-line: var(--neutral-line, #e2e8f0);
  --lx-soft: var(--neutral-bg-sub, #f8fafc);
  color: var(--lx-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
#lx-real-recharge *, #lx-payment-overlay * { box-sizing: border-box; }
.lx-recharge-panel, .lx-orders {
  border: 1px solid var(--lx-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}
.lx-recharge-panel { padding: 24px; }
.lx-orders { margin-top: 20px; padding: 20px; }
.lx-recharge-intro, .lx-orders-head, .lx-checkout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lx-recharge-intro { padding-bottom: 20px; border-bottom: 1px solid var(--lx-line); }
.lx-recharge-intro h2, .lx-orders-head h2 { margin: 0; color: var(--lx-ink); font-size: 18px; line-height: 1.35; }
.lx-recharge-intro p, .lx-orders-head p { margin: 5px 0 0; color: var(--lx-muted); font-size: 13px; line-height: 1.6; }
.lx-recharge-intro > span {
  flex: none;
  border-radius: 8px;
  background: rgba(20, 86, 224, .08);
  color: var(--lx-accent);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
}
.lx-step { padding: 22px 0; border-bottom: 1px solid var(--lx-line); }
.lx-step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lx-step-title > span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--lx-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.lx-step-title strong, .lx-step-title small { display: block; }
.lx-step-title strong { font-size: 14px; line-height: 1.35; }
.lx-step-title small { margin-top: 2px; color: var(--lx-muted); font-size: 12px; }
.lx-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lx-product-option, .lx-package-option, .lx-method-option {
  appearance: none;
  border: 1px solid var(--lx-line);
  background: #fff;
  color: var(--lx-ink);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.lx-product-option:hover, .lx-package-option:hover, .lx-method-option:not(:disabled):hover { border-color: rgba(20, 86, 224, .55); }
.lx-product-option:active, .lx-package-option:active, .lx-method-option:not(:disabled):active, .lx-primary:active { transform: translateY(1px); }
.lx-product-option:focus-visible, .lx-package-option:focus-visible, .lx-method-option:focus-visible, .lx-primary:focus-visible, .lx-orders-head button:focus-visible, .lx-dialog-close:focus-visible {
  outline: 2px solid var(--lx-accent);
  outline-offset: 2px;
}
.lx-product-option.is-selected, .lx-package-option.is-selected, .lx-method-option.is-selected {
  border-color: var(--lx-accent);
  background: rgba(20, 86, 224, .045);
}
.lx-product-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}
.lx-product-mark {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(20, 86, 224, .09);
  color: var(--lx-accent);
  font-size: 15px;
  font-weight: 750;
}
.lx-product-copy strong, .lx-product-copy small, .lx-product-balance strong, .lx-product-balance small { display: block; }
.lx-product-copy strong { font-size: 14px; }
.lx-product-copy small { overflow: hidden; margin-top: 3px; color: var(--lx-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lx-product-balance { text-align: right; }
.lx-product-balance small { color: var(--lx-muted); font-size: 10px; }
.lx-product-balance strong { margin-top: 2px; color: var(--lx-accent); font-size: 15px; }
.lx-package-grid, .lx-method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.lx-package-option { min-height: 116px; border-radius: 12px; padding: 16px; text-align: left; }
.lx-package-option span, .lx-package-option strong { display: block; }
.lx-package-name { color: var(--lx-text); font-size: 13px; font-weight: 650; }
.lx-package-option > strong { margin-top: 12px; color: var(--lx-accent); font-size: 23px; line-height: 1; }
.lx-package-option > strong small { display: inline; font-size: 11px; font-weight: 500; }
.lx-package-price { margin-top: 9px; color: var(--lx-ink); font-size: 14px; }
.lx-method-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 74px;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
}
.lx-method-option:disabled { cursor: not-allowed; opacity: .58; }
.lx-method-logo { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: 10px; color: #fff; font-size: 14px; font-weight: 750; }
.lx-method-logo.wechat { background: #16884b; }
.lx-method-logo.alipay { background: #1769aa; }
.lx-method-option strong, .lx-method-option small { display: block; }
.lx-method-option strong { font-size: 14px; }
.lx-method-option small { margin-top: 4px; color: var(--lx-muted); font-size: 11px; line-height: 1.35; }
.lx-method-state { color: var(--lx-muted); font-size: 11px; white-space: nowrap; }
.lx-notice { display: flex; align-items: center; gap: 10px; margin-top: 12px; border-radius: 10px; padding: 11px 13px; font-size: 12px; line-height: 1.55; }
.lx-notice strong { flex: none; }
.lx-notice.warning { border: 1px solid #f3d7a5; background: #fffaf0; color: #7c4a03; }
.lx-notice.error { border: 1px solid #fecaca; background: #fff7f7; color: #991b1b; }
.lx-notice button { margin-left: auto; border: 1px solid currentColor; border-radius: 7px; background: transparent; color: inherit; padding: 5px 9px; cursor: pointer; }
.lx-checkout { padding-top: 20px; }
.lx-checkout > div { min-width: 110px; }
.lx-checkout small, .lx-checkout strong { display: block; }
.lx-checkout small { color: var(--lx-muted); font-size: 11px; }
.lx-checkout strong { margin-top: 3px; font-size: 20px; }
.lx-primary {
  min-width: 154px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: var(--lx-accent);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: background .16s ease, transform .16s ease;
}
.lx-primary:hover { background: var(--lx-accent-hover); }
.lx-primary:disabled { cursor: not-allowed; opacity: .46; }
.lx-orders-head { margin-bottom: 14px; }
.lx-orders-head button { border: 1px solid var(--lx-line); border-radius: 8px; background: #fff; color: var(--lx-text); padding: 7px 11px; cursor: pointer; font-size: 12px; }
.lx-order-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.lx-order-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 12px; }
.lx-order-table th { border-bottom: 1px solid var(--lx-line); color: var(--lx-muted); font-weight: 600; text-align: left; }
.lx-order-table th, .lx-order-table td { padding: 11px 10px; white-space: nowrap; }
.lx-order-table td { color: var(--lx-text); }
.lx-order-table tbody tr + tr td { border-top: 1px solid #f1f5f9; }
.lx-status { display: inline-flex; border-radius: 6px; padding: 3px 7px; font-size: 11px; font-weight: 650; }
.lx-status.success { background: #ecfdf5; color: #087344; }
.lx-status.pending { background: #fff7ed; color: #9a4d05; }
.lx-status.failed { background: #fef2f2; color: #b91c1c; }
.lx-empty { border: 1px dashed var(--lx-line); border-radius: 12px; padding: 34px 16px; color: var(--lx-muted); text-align: center; font-size: 13px; }
.lx-empty.compact { padding: 24px 16px; }
.lx-recharge-skeletons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lx-recharge-skeleton { height: 92px; border-radius: 12px; background: linear-gradient(90deg, #f1f5f9 25%, #f8fafc 40%, #f1f5f9 60%); background-size: 300% 100%; }
@media (prefers-reduced-motion: no-preference) { .lx-recharge-skeleton { animation: lx-recharge-shimmer 1.4s ease infinite; } }
@keyframes lx-recharge-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
#lx-payment-overlay { position: fixed; inset: 0; z-index: 200000; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .56); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.lx-payment-dialog { position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 16px; background: #fff; box-shadow: 0 24px 80px rgba(15, 23, 42, .28); padding: 26px; color: #0f172a; }
.lx-dialog-close { position: absolute; top: 12px; right: 12px; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: #f1f5f9; color: #475569; cursor: pointer; font-size: 24px; line-height: 1; }
.lx-payment-result { text-align: center; }
.lx-payment-result h2 { margin: 4px 0 8px; font-size: 21px; }
.lx-payment-result p { margin: 10px auto; max-width: 34ch; color: #64748b; font-size: 13px; line-height: 1.6; }
.lx-payment-result small { display: block; margin-top: 12px; color: #94a3b8; font-size: 11px; word-break: break-all; }
.lx-payment-channel { color: #1456e0 !important; font-weight: 700; }
.lx-payment-amount { display: block; margin: 10px 0 16px; font-size: 29px; }
.lx-payment-qr { display: block; width: min(240px, 72vw); height: auto; margin: 0 auto; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; }
.lx-result-mark { display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center; border-radius: 50%; background: #ecfdf5; color: #087344; font-size: 30px; font-weight: 700; }
.lx-result-mark.pending { background: #fff7ed; color: #9a4d05; }
@media (max-width: 1100px) { .lx-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .lx-recharge-panel { padding: 16px; }
  .lx-orders { margin-top: 14px; padding: 16px; }
  .lx-recharge-intro { align-items: flex-start; }
  .lx-recharge-intro > span { display: none; }
  .lx-product-grid, .lx-package-grid, .lx-method-grid, .lx-recharge-skeletons { grid-template-columns: 1fr; }
  .lx-product-option { min-height: 70px; }
  .lx-step { padding: 18px 0; }
  .lx-checkout { display: grid; grid-template-columns: 1fr 1fr; }
  .lx-primary { grid-column: 1 / -1; width: 100%; }
  .lx-notice { align-items: flex-start; flex-direction: column; }
  .lx-notice button { margin-left: 0; }
  .lx-payment-dialog { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  #lx-real-recharge *, #lx-payment-overlay * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
}
