.cycle-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.cycle-toggle {
  display: inline-flex;
  background: var(--fc-surface-2);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
}

.cycle-toggle button {
  border: none;
  background: transparent;
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
}

.cycle-toggle button.active {
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--fc-shadow-card);
}

.cycle-hint {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

.plan-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  position: relative;
}

.plan-card.vip {
  border: 2px solid var(--gold);
}

.plan-card.svip {
  background: var(--navy);
  color: var(--fc-on-dark);
  border: none;
}

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 8px;
}

.plan-card-header .badge:not(.badge-planned) {
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.plan-card.svip .plan-name {
  color: var(--fc-on-dark);
}

.plan-price-block {
  margin-bottom: 8px;
}

.plan-price {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
}

.plan-price .currency {
  font-size: 20px;
  font-weight: 600;
}

.plan-price .period {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-card.svip .plan-price .period {
  color: rgba(255, 255, 255, 0.75);
}

.plan-points-display {
  font-size: 32px;
  font-weight: 700;
}

.plan-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.plan-card.svip .plan-sub {
  color: rgba(255, 255, 255, 0.8);
}

.plan-save {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
  min-height: 20px;
}

.plan-card.points .plan-save {
  visibility: hidden;
}

.first-time-price {
  background: var(--fc-surface-2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}

.first-time-price strong {
  color: var(--navy);
  font-size: 15px;
}

.plan-benefits {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.plan-benefits li {
  /* t1721: 对勾固定在句首左侧，正文紧随其后；多行时悬挂对齐，避免整句掉到勾下方 */
  display: flex;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
  line-height: 1.45;
}

.plan-benefits .benefit-text {
  flex: 1 1 auto;
  min-width: 0;
}

.plan-benefits .badge-planned {
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
}

.billing-rules-section {
  margin-top: 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--border);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.billing-rules-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  text-align: center;
}

.billing-rules-list {
  margin: 0;
  padding-left: 1.2em;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.billing-rules-list li {
  margin-bottom: 8px;
}

.plan-card.svip .plan-benefits li {
  color: rgba(255, 255, 255, 0.95);
}

.plan-benefits li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.plan-card.points .plan-benefits li::before {
  color: var(--navy);
}

.svip-crown {
  width: 28px;
  height: 28px;
  opacity: 0.9;
}

.referral-section {
  margin-top: 48px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border);
}

.referral-title {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 28px;
}

.referral-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  text-align: center;
}

@media (max-width: 600px) {
  .referral-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.referral-stat .value {
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
}

.referral-stat .label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

.referral-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 20px;
  line-height: 1.6;
}
