* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  min-height: 100vh;
  padding: clamp(16px, 4vw, 48px) clamp(12px, 3vw, 32px);
  color: #222;
  -webkit-font-smoothing: antialiased;
}
.container {
  background: #fff;
  border-radius: 20px;
  padding: clamp(24px, 4vw, 48px) clamp(18px, 5vw, 56px);
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.narrow { max-width: 560px; }
.back { display: inline-block; color: #888; font-size: 14px; text-decoration: none; margin-bottom: 12px; }
.back:hover { color: #fe2c55; }
.header { text-align: center; margin-bottom: 32px; }
h1 { font-size: clamp(24px, 4.6vw, 32px); color: #1a1a2e; margin-bottom: 10px; letter-spacing: -0.5px; }
h2 { font-size: 17px; color: #1a1a2e; margin-bottom: 12px; }
.subtitle { color: #888; font-size: clamp(14px, 2.6vw, 16px); }
.highlight { color: #fe2c55; font-weight: 600; }
.muted { color: #888; font-size: 14px; line-height: 1.7; }

.btn {
  display: block; width: 100%; padding: 14px 16px; border: none; border-radius: 12px;
  background: linear-gradient(135deg, #fe2c55 0%, #ff6b81 100%); color: #fff;
  font-size: 16px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-small { width: auto; padding: 11px 20px; font-size: 15px; white-space: nowrap; }
.btn-ghost { background: #f5f5f7; color: #333; }

.member-card { position: relative; margin-bottom: 28px; padding: 20px 22px; border: 2px solid #b7ebc6; border-radius: 16px; background: #f0fff4; }
.member-card .mc-title { font-size: 18px; font-weight: 700; color: #1f6b3a; margin-bottom: 6px; }
.member-card .mc-desc { font-size: 14px; color: #2f5d3e; line-height: 1.7; }
.member-card .mc-order { margin-top: 6px; font-size: 13px; color: #5b7f67; word-break: break-all; }
.member-card .mc-go { position: absolute; right: 20px; top: 20px; background: #1aad5d; }
@media (max-width: 720px) { .member-card .mc-go { position: static; margin-top: 12px; display: inline-block; } }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 20px; border: 2px solid #eee; border-radius: 16px; }
.plan.featured { border-color: #fe2c55; box-shadow: 0 10px 30px rgba(254, 44, 85, 0.15); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #fe2c55; color: #fff; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 20px; }
.plan-name { font-size: 16px; font-weight: 600; color: #1a1a2e; text-align: center; }
.plan-price { font-size: 38px; font-weight: 700; color: #fe2c55; text-align: center; margin: 10px 0 2px; }
.plan-price .yen { font-size: 20px; margin-right: 2px; }
.plan-note { font-size: 13px; color: #888; text-align: center; margin-bottom: 16px; }
.plan ul { list-style: none; font-size: 14px; color: #444; line-height: 2; margin-bottom: 20px; flex: 1; }
.plan li::before { content: '✓'; color: #1aad5d; font-weight: 700; margin-right: 8px; }

.section { margin-top: 36px; padding-top: 28px; border-top: 1px solid #f0f0f0; }
.notes { padding-left: 18px; font-size: 14px; color: #555; line-height: 1.9; }
.restore { display: flex; gap: 10px; margin-top: 14px; }
.restore input { flex: 1; min-width: 0; padding: 11px 14px; border: 2px solid #eee; border-radius: 12px; font-size: 15px; outline: none; }
.restore input:focus { border-color: #fe2c55; }
.msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.msg.ok { color: #1aad5d; }
.msg.err { color: #ff4d4f; }

.order { border: 1px solid #f0f0f0; border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.order-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; font-size: 15px; }
.order-row + .order-row { border-top: 1px solid #f5f5f5; }
.order-row .k { color: #888; }
.order-row .v { color: #1a1a2e; font-weight: 500; text-align: right; }
.order-row.total .v { color: #fe2c55; font-size: 22px; font-weight: 700; }
.methods { margin-bottom: 24px; }
.method { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 2px solid #1677ff; border-radius: 14px; background: #f5f9ff; }
.method .logo { width: 34px; height: 34px; border-radius: 8px; background: #1677ff; color: #fff; font-weight: 700; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.method .name { font-size: 16px; font-weight: 600; color: #1a1a2e; }
.method .desc { font-size: 13px; color: #888; }
.method .check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; background: #1677ff; color: #fff; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.btn-alipay { background: #1677ff; }
.fineprint { margin-top: 14px; font-size: 13px; color: #999; text-align: center; line-height: 1.7; }

.status { text-align: center; padding: 12px 0 8px; }
.status .icon { font-size: 54px; margin-bottom: 12px; }
.status .title { font-size: 22px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.status .desc { font-size: 15px; color: #666; line-height: 1.8; }
.status .order-no { margin: 16px auto 0; padding: 12px 14px; background: #f7f7f9; border-radius: 10px; font-size: 13px; color: #555; word-break: break-all; max-width: 420px; }
.actions { display: flex; gap: 12px; margin-top: 24px; }
.actions .btn { flex: 1; }
.spinner { display: inline-block; width: 40px; height: 40px; border: 4px solid #ffd6de; border-top-color: #fe2c55; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
  .restore { flex-direction: column; }
  .actions { flex-direction: column; }
}
