:root {
  --rg-price-blue: #2457c5;
  --rg-price-navy: #102341;
  --rg-price-muted: #64748b;
  --rg-price-line: #dbe4f0;
  --rg-price-soft: #f5f8fd;
}

#vipModal:not([data-rg-v2]) { display: none !important; }

.sec-original-card header [data-open-pricing] {
  margin-top: 14px;
  padding: 9px 13px;
  border: 1px solid #b9c9e7;
  border-radius: 9px;
  color: #234d9c;
  background: #f4f7fd;
  font-weight: 700;
  cursor: pointer;
}

.rg-pricing-lock {
  overflow: hidden !important;
}

.rg-pricing-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 25, 49, .62);
  backdrop-filter: blur(5px);
}

.rg-pricing-overlay.is-open { display: flex; }

.rg-pricing-dialog {
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  height: min(760px, calc(100dvh - 48px));
  max-height: calc(100vh - 48px);
  overflow: hidden;
  color: var(--rg-price-navy);
  background: #fff;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(5, 22, 48, .26);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

.rg-pricing-head {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--rg-price-line);
}

.rg-pricing-head h2 { margin: 0; font-size: 25px; line-height: 1.2; }
.rg-pricing-head p { margin: 8px 0 0; color: var(--rg-price-muted); font-size: 14px; }

.rg-pricing-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 10px;
  color: #41526c;
  background: var(--rg-price-soft);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.rg-pricing-main {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.rg-pricing-nav { min-height: 0; padding: 18px 14px; overflow-y: auto; background: var(--rg-price-soft); }
.rg-pricing-tab {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 0 6px;
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  color: #44546c;
  background: transparent;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.rg-pricing-tab:hover { background: #e9f0fb; }
.rg-pricing-tab.is-active { color: #fff; background: var(--rg-price-blue); }

.rg-pricing-content {
  min-height: 0;
  padding: 24px 26px 26px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.rg-pricing-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.rg-pricing-section-head h3 { margin: 0; font-size: 21px; }
.rg-pricing-section-head span { color: var(--rg-price-muted); font-size: 13px; }
.rg-billing-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: -4px 0 18px;
  padding: 4px;
  border: 1px solid var(--rg-price-line);
  border-radius: 11px;
  background: var(--rg-price-soft);
}
.rg-billing-switch button {
  padding: 9px 14px;
  border: 0;
  border-radius: 8px;
  color: #53627a;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.rg-billing-switch button.is-active {
  color: #fff;
  background: var(--rg-price-blue);
  box-shadow: 0 4px 12px rgba(36, 87, 197, .2);
}
.rg-pricing-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rg-pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--rg-price-line);
  border-radius: 15px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.rg-pricing-card:hover { transform: translateY(-2px); border-color: #9db8ef; box-shadow: 0 12px 28px rgba(31, 73, 151, .11); }
.rg-pricing-card.is-featured { border-color: #6f96e6; background: linear-gradient(180deg, #f6f9ff 0%, #fff 55%); }
.rg-plan-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rg-plan-name { font-size: 16px; font-weight: 760; }
.rg-plan-badge { padding: 4px 8px; border-radius: 999px; color: #2256bd; background: #e8f0ff; font-size: 11px; font-weight: 700; }
.rg-plan-price { margin-top: 14px; color: var(--rg-price-navy); font-size: 32px; font-weight: 800; letter-spacing: -.04em; }
.rg-plan-price small { margin-left: 3px; color: var(--rg-price-muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.rg-plan-note { min-height: 19px; margin-top: 3px; color: var(--rg-price-muted); font-size: 12px; }
.rg-plan-rights { display: grid; gap: 7px; margin: 16px 0 18px; color: #405069; font-size: 13px; }
.rg-plan-rights span::before { content: "✓"; margin-right: 7px; color: #1d9f72; font-weight: 800; }
.rg-plan-buy {
  width: 100%;
  margin-top: auto;
  padding: 11px 14px;
  border: 1px solid var(--rg-price-blue);
  border-radius: 10px;
  color: #fff;
  background: var(--rg-price-blue);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.rg-plan-buy:hover { background: #1948ad; }
.rg-plan-buy:disabled { cursor: wait; opacity: .6; }
.rg-plan-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: auto; }
.rg-plan-actions .rg-plan-buy { margin-top: 0; padding: 10px 8px; font-size: 13px; }
.rg-plan-buy-wechat { border-color: #16894b; background: #16894b; }
.rg-plan-buy-wechat:hover { background: #10733e; }
.rg-pricing-foot { margin: 18px 2px 0; color: var(--rg-price-muted); font-size: 12px; line-height: 1.6; }
.rg-pricing-message { display: none; margin-bottom: 14px; padding: 10px 12px; border-radius: 9px; color: #923535; background: #fff0f0; font-size: 13px; }
.rg-pricing-message.is-visible { display: block; }

.rg-wechat-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 25, 49, .7);
  backdrop-filter: blur(5px);
}
.rg-wechat-overlay.is-open { display: flex; }
.rg-wechat-dialog {
  position: relative;
  width: min(390px, 100%);
  padding: 28px 30px 30px;
  border-radius: 18px;
  color: var(--rg-price-navy);
  background: #fff;
  box-shadow: 0 28px 80px rgba(5, 22, 48, .32);
  text-align: center;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.rg-wechat-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  color: #53627a;
  background: #f0f4fa;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.rg-wechat-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 14px;
  color: #fff;
  background: #16894b;
  font-size: 21px;
  font-weight: 800;
}
.rg-wechat-dialog h2 { margin: 0; font-size: 23px; }
.rg-wechat-plan { min-height: 20px; margin: 8px 0 16px; color: #44546c; font-size: 14px; font-weight: 700; }
.rg-wechat-qr {
  display: grid;
  place-items: center;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  border: 1px solid #dce5f1;
  border-radius: 14px;
  color: #71819a;
  background: #fff;
  font-size: 13px;
}
.rg-wechat-qr canvas { width: 220px !important; height: 220px !important; }
.rg-wechat-status { margin: 16px 0 0; color: #243650; font-size: 14px; font-weight: 700; }
.rg-wechat-help { margin: 7px 0 0; color: var(--rg-price-muted); font-size: 12px; line-height: 1.5; }
.rg-wechat-overlay.is-paid .rg-wechat-icon { background: #0f9c56; }
.rg-wechat-overlay.is-paid .rg-wechat-status { color: #0f8149; }

@media (max-width: 760px) {
  .rg-pricing-overlay { padding: 0; align-items: stretch; }
  .rg-pricing-dialog { width: 100%; height: 100dvh; max-height: 100vh; border-radius: 0; }
  .rg-pricing-head { padding: 18px 18px 14px; }
  .rg-pricing-head h2 { font-size: 21px; }
  .rg-pricing-main { display: flex; flex-direction: column; min-height: 0; }
  .rg-pricing-nav { display: flex; flex: 0 0 auto; gap: 7px; padding: 10px 12px; overflow-x: auto; }
  .rg-pricing-tab { flex: 0 0 auto; width: auto; margin: 0; padding: 9px 12px; white-space: nowrap; }
  .rg-pricing-content { flex: 1 1 auto; max-height: none; min-height: 0; padding: 18px 14px 24px; }
  .rg-pricing-section-head { align-items: flex-start; flex-direction: column; }
  .rg-billing-switch { display: grid; width: 100%; }
  .rg-billing-switch button { padding: 9px 7px; font-size: 12px; }
  .rg-pricing-cards { grid-template-columns: 1fr; }
  .rg-pricing-card { min-height: 210px; }
  .rg-plan-actions { grid-template-columns: 1fr; }
  .rg-wechat-dialog { padding: 24px 20px 26px; border-radius: 15px; }
}
