/* ============ subscription ============ */
.sub-page--plans {
  position: relative; display: block; overflow-y: auto; background: #FAFAFB; padding: 0;
}
.sub-close {
  position: absolute; top: 18px; right: 20px; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; color: #6E7480;
  display: grid; place-items: center; z-index: 3;
}
.sub-close:hover { background: #F2F4F7; }
.sub-close .icon { width: 18px; height: 18px; }
.sub-wrap { max-width: 1600px; margin: 0 auto; padding: 44px 40px 54px; }
.sub-hero { text-align: center; }
.sub-hero h1 { font-size: 30px; font-weight: 600; letter-spacing: -.6px; color: #15171B; }
.sub-hero p { font-size: 13px; color: #555C67; margin-top: 12px; }
.sub-link {
  border: 0; background: none; padding: 0; color: #6FA9B8; font-size: 13px;
  font-weight: 500;
}
.sub-link:hover { color: #4E93A5; text-decoration: underline; }
.sub-sep { color: #C9CED6; margin: 0 8px; }

.wallet-strip {
  max-width: 1480px; margin: 28px auto 0; display: flex; align-items: center; gap: 34px;
  background: #fff; border: 1px solid #EDEFF3; border-radius: 12px; padding: 14px 20px;
}
.wallet-balance { display: flex; flex-direction: column; gap: 2px; }
.wallet-balance span, .wallet-item span { font-size: 9.5px; color: #9AA0AA; }
.wallet-balance b { font-size: 22px; font-weight: 600; color: #15171B; letter-spacing: -.3px; }
.wallet-item { display: flex; flex-direction: column; gap: 3px; }
.wallet-item b { font-size: 11px; font-weight: 500; color: #3F4550; }
.wallet-more {
  margin-left: auto; border: 0; background: none; color: #6E7480; font-size: 10.5px;
  display: inline-flex; align-items: center; gap: 2px;
}
.wallet-more .icon { width: 12px; height: 12px; }
.wallet-more:hover { color: #3D6DF5; }

.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.plan-card {
  display: flex; flex-direction: column; min-height: 520px;
  background: #fff; border: 1px solid #E9ECF1; border-radius: 14px;
  padding: 22px 22px 20px; position: relative;
}
.plan-card.is-featured {
  border-color: #A9DCE8;
  box-shadow: 0 16px 36px rgba(126, 196, 212, .12);
}
.plan-head { display: flex; align-items: center; gap: 8px; }
.plan-head h3 { font-size: 18px; font-weight: 600; letter-spacing: -.2px; color: #15171B; }
.plan-head h3 em { font-style: normal; font-size: 15px; font-weight: 600; }
.plan-badge {
  margin-left: auto; border: 1px solid #D6E8EF; color: #6FA9B8; background: #F7FCFD;
  font-size: 9.5px; padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.plan-price { display: flex; align-items: baseline; gap: 5px; margin-top: 24px; }
.plan-price b { font-size: 34px; font-weight: 600; letter-spacing: -1px; line-height: 1; color: #15171B; }
.plan-yen { font-size: 16px; font-weight: 500; color: #15171B; }
.plan-price s { font-size: 12px; color: #A9AEB8; margin-left: 3px; }
.plan-contact { font-size: 26px; font-weight: 600; letter-spacing: -.5px; margin: 24px 0 4px; color: #15171B; }
.plan-desc { font-size: 11.5px; color: #7A808B; margin-top: 8px; }
.plan-credits { display: flex; align-items: center; gap: 9px; margin-top: 20px; }
.pc-ico { color: #6FA9B8; display: grid; place-items: center; }
.pc-ico .icon { width: 14px; height: 14px; }
.plan-credits b { font-size: 17px; font-weight: 600; color: #15171B; }
.pc-valid {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: #6FA9B8;
  background: #F2F9FB; border-radius: 5px; padding: 5px 8px; margin-left: 4px;
}
.pc-valid .icon { width: 12px; height: 12px; }
.plan-rule { height: 1px; background: #F1F3F6; margin: 22px 0 16px; }
.plan-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 11.5px; color: #3F4550; line-height: 1.55; }
.plan-features .icon { width: 12px; height: 12px; color: #7A808B; flex: none; margin-top: 1px; }
.plan-btn {
  margin-top: auto; height: 46px; border-radius: 8px; border: 1px solid transparent;
  background: #17181C; color: #fff; font-size: 12.5px; font-weight: 600;
  transition: background .15s, transform .15s;
}
.plan-btn:hover { background: #2B2D33; }
.plan-btn.featured { background: #8FD3E3; color: #fff; }
.plan-btn.featured:hover { background: #7BC8DA; }
.plan-btn.ghost { background: #fff; border-color: #E3E7ED; color: #3F4550; }
.plan-btn.ghost:hover { background: #F7F8FA; }
.sub-foot {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  font-size: 9.5px; color: #A9AEB8; margin-top: 26px; text-align: center;
}
.sub-foot .icon { width: 11px; height: 11px; color: #B8935A; }

/* purchase modal */
.purchase-modal { width: min(1000px, 94vw); padding: 30px 34px 22px; }
.purchase-head { text-align: center; }
.purchase-head h2 { font-size: 30px; font-weight: 600; letter-spacing: -.6px; }
.purchase-head p { font-size: 13px; color: #555C67; margin-top: 10px; }
.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.pack-card {
  height: 140px; border: 1.5px solid #EDEFF3; border-radius: 10px; background: #fff;
  padding: 18px 20px; text-align: left; display: flex; flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.pack-card:hover { border-color: #C9D3DF; }
.pack-card.is-selected { border-color: #A9DCE8; box-shadow: 0 0 0 1px #A9DCE8 inset; }
.pack-card b { font-size: 26px; font-weight: 600; color: #15171B; letter-spacing: -.5px; }
.pack-card span { font-size: 12.5px; color: #7A808B; margin-top: 8px; }
.pack-card em { font-style: normal; font-size: 9.5px; color: #6FA9B8; margin-top: auto; }
.purchase-action { display: flex; justify-content: center; margin-top: 22px; }
.purchase-btn {
  width: 320px; height: 48px; border: 0; border-radius: 8px;
  background: #8FD3E3; color: #fff; font-size: 14px; font-weight: 600;
}
.purchase-btn:hover { background: #7BC8DA; }
.purchase-note { text-align: center; font-size: 10.5px; color: #9AA0AA; margin-top: 16px; }
.purchase-note b { color: #6FA9B8; background: #F2F9FB; padding: 4px 9px; border-radius: 5px; margin: 0 4px; font-weight: 500; }

/* redeem modal */
.redeem-modal { width: min(620px, 92vw); padding: 30px 32px 24px; }
.redeem-head { display: flex; align-items: center; gap: 12px; }
.redeem-ico { width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid #15171B; display: grid; place-items: center; }
.redeem-ico .icon { width: 17px; height: 17px; }
.redeem-head h2 { font-size: 20px; font-weight: 600; }
.redeem-label { display: block; font-size: 12.5px; color: #3F4550; margin-top: 26px; }
.redeem-input {
  width: 100%; height: 48px; border: 1px solid #E3E7ED; border-radius: 8px;
  padding: 0 14px; font-size: 13px; outline: 0; margin-top: 9px;
}
.redeem-input:focus { border-color: #A9DCE8; box-shadow: 0 0 0 3px rgba(143, 211, 227, .18); }
.redeem-hint { font-size: 9.5px; color: #A9AEB8; margin-top: 7px; }
.redeem-line { height: 1px; background: #F1F3F6; margin: 24px 0 18px; }
.redeem-foot { display: flex; justify-content: flex-end; gap: 10px; }
.redeem-close, .redeem-submit { height: 42px; padding: 0 22px; border-radius: 8px; font-size: 12.5px; font-weight: 600; }
.redeem-close { border: 1px solid #E3E7ED; background: #fff; color: #3F4550; }
.redeem-submit { border: 0; background: #17181C; color: #fff; }
.redeem-submit:hover { background: #2B2D33; }


/* checkout & payment */
.checkout-modal { width: min(480px, 92vw); padding: 26px 28px 22px; }
.checkout-modal h2 { font-size: 21px; font-weight: 600; }
.checkout-sub { font-size: 11px; color: #8A909B; margin-top: 5px; }
.checkout-product { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #F7F9FB; border: 1px solid #EDF0F4; border-radius: 10px; padding: 14px 16px; margin-top: 20px; }
.checkout-product b { display: block; font-size: 13px; font-weight: 600; color: #23272E; }
.checkout-product small { display: block; font-size: 9.5px; color: #9AA0AA; margin-top: 4px; }
.checkout-product > span { font-size: 19px; font-weight: 600; color: #15171B; }
.checkout-label { font-size: 10px; color: #8A909B; margin-top: 18px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 8px; }
.pay-method { height: 44px; border: 1.5px solid #E9ECF1; border-radius: 9px; background: #fff; color: #4B5160; font-size: 11.5px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.pay-method.active { border-color: #A9DCE8; background: #F7FCFD; color: #15171B; font-weight: 500; }
.pm-dot { width: 8px; height: 8px; border-radius: 50%; }
.pm-dot.wechat { background: #22B573; }
.pm-dot.alipay { background: #1677FF; }
.checkout-submit { width: 100%; height: 46px; border: 0; border-radius: 9px; background: #8FD3E3; color: #fff; font-size: 13px; font-weight: 600; margin-top: 20px; }
.checkout-submit:hover { background: #7BC8DA; }
.checkout-note { font-size: 9px; color: #B0B5BE; text-align: center; margin-top: 11px; line-height: 1.7; }

.pay-modal { width: min(400px, 92vw); padding: 24px 26px 20px; text-align: center; }
.pay-modal h2 { font-size: 18px; font-weight: 600; }
.pay-order { font-size: 9px; color: #A9AEB8; margin-top: 5px; letter-spacing: .2px; }
.pay-amount { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-top: 12px; }
.pay-amount span { font-size: 16px; color: #15171B; }
.pay-amount b { font-size: 32px; font-weight: 600; letter-spacing: -1px; color: #15171B; }
.pay-qr { width: 214px; height: 214px; margin: 14px auto 0; border: 1px solid #EDF0F4; border-radius: 10px; padding: 10px; background: #fff; }
.pay-qr.wechat { border-color: #CFEEDF; }
.pay-qr.alipay { border-color: #D6E5FF; }
.qr-svg { width: 100%; height: 100%; display: block; }
.pay-scan { font-size: 10px; color: #7A808B; margin-top: 9px; }
.pay-countdown { font-size: 9.5px; color: #A9AEB8; margin-top: 7px; }
.pay-countdown b { color: #D4544F; font-weight: 500; font-variant-numeric: tabular-nums; }
.pay-mock { width: 100%; height: 42px; border: 0; border-radius: 8px; background: #17181C; color: #fff; font-size: 12px; font-weight: 500; margin-top: 14px; }
.pay-mock:hover { background: #2B2D33; }
.pay-cancel { width: 100%; height: 38px; border: 0; background: none; color: #9AA0AA; font-size: 10.5px; margin-top: 4px; }
.pay-cancel:hover { color: #555C67; }

/* ledger / success / contact */
.ledger-modal { width: min(520px, 92vw); padding: 24px 26px 20px; }
.ledger-head h2 { font-size: 20px; font-weight: 600; }
.ledger-head p { font-size: 11px; color: #9AA0AA; margin-top: 5px; }
.ledger-head p b { color: #15171B; }
.ledger-list { margin-top: 16px; max-height: 380px; overflow-y: auto; }
.ledger-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #F4F5F8; }
.ledger-row:last-child { border-bottom: 0; }
.ledger-row b { display: block; font-size: 11.5px; font-weight: 500; color: #2E333B; }
.ledger-row small { display: block; font-size: 9px; color: #A9AEB8; margin-top: 2px; }
.ledger-row .plus { color: #1F9D68; font-size: 12px; font-weight: 600; }
.ledger-row .minus { color: #D4544F; font-size: 12px; font-weight: 600; }
.ledger-empty { text-align: center; padding: 30px; color: #A9AEB8; font-size: 11px; }
.success-modal, .contact-modal { width: min(420px, 92vw); padding: 32px 30px 24px; text-align: center; }
.success-ico { width: 50px; height: 50px; border-radius: 50%; background: #EAF7F0; color: #1F9D68; display: grid; place-items: center; margin: 0 auto 16px; }
.contact-modal .success-ico { background: #EEF3FF; color: #3D6DF5; }
.success-ico .icon { width: 24px; height: 24px; }
.success-modal h2, .contact-modal h2 { font-size: 18px; font-weight: 600; }
.success-modal p, .contact-modal p { font-size: 11.5px; color: #7A808B; line-height: 1.9; margin-top: 8px; }
.success-credits { font-size: 11px; color: #9AA0AA; margin-top: 14px; }
.success-credits b { font-size: 18px; color: #15171B; margin-left: 4px; }
.contact-code { display: inline-block; margin-top: 14px; padding: 8px 14px; border-radius: 7px; background: #F4F6F9; font-size: 12px; letter-spacing: 1px; color: #3F4550; }
.success-btn { width: 100%; height: 42px; border: 0; border-radius: 8px; background: #17181C; color: #fff; font-size: 12.5px; margin-top: 20px; }

@media (max-width: 1300px) {
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card { min-height: 440px; }
  .sub-wrap { padding: 38px 24px 46px; }
}
@media (max-width: 760px) {
  .plans-grid { grid-template-columns: 1fr; }
  .wallet-strip { flex-wrap: wrap; gap: 14px; }
  .wallet-more { margin-left: 0; }
  .pack-grid { grid-template-columns: 1fr 1fr; }
  .purchase-modal { padding: 24px 18px; }
  .purchase-btn { width: 100%; }
  .pack-card { height: 120px; padding: 14px; }
}
