/* ========================================
   设置类页面：账户设置 / 计费中心
   顶栏 + 居中内容区（与工作台同宽对齐），卡片统一扁平样式
   ======================================== */

.sp-page {
  --sp-bg: #f6f8fb;
  --sp-card: #fff;
  --sp-border: rgba(24, 50, 74, 0.1);
  --sp-border-strong: rgba(24, 50, 74, 0.18);
  --sp-text: #1f2937;
  --sp-muted: #6b7280;
  --sp-faint: #9ca3af;
  --sp-hover: rgba(24, 50, 74, 0.04);
  --sp-radius: 12px;
  --sp-gutter: max(40px, calc((100% - 1120px) / 2));
  min-height: 100vh;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: var(--font-ui);
  font-size: 14px;
}

.sp-page *,
.sp-page *::before,
.sp-page *::after {
  box-sizing: border-box;
}

/* --- 顶栏 --- */
.sp-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 var(--sp-gutter);
  background: rgba(246, 248, 251, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--sp-border);
}

.sp-topbar__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--sp-text);
  white-space: nowrap;
}

.sp-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px var(--sp-gutter) 56px;
}

/* --- 通用组件 --- */
.sp-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 22px 24px;
}

.sp-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sp-card__head h2,
.sp-card__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-text);
}

.sp-card__head p {
  margin: 4px 0 0;
  color: var(--sp-muted);
  font-size: 13px;
  line-height: 1.6;
}

.sp-label {
  display: block;
  color: var(--sp-muted);
  font-size: 12px;
  line-height: 1.4;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--sp-border-strong);
  border-radius: var(--radius-btn);
  background: #fff;
  color: var(--sp-text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.sp-btn svg {
  width: 15px;
  height: 15px;
}

.sp-btn:hover {
  background: var(--sp-hover);
  border-color: rgba(24, 50, 74, 0.26);
}

.sp-btn--primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.sp-btn--primary:hover {
  border-color: var(--color-primary-hover);
  background: var(--color-primary-hover);
}

.sp-btn--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--sp-muted);
}

.sp-btn--ghost:hover {
  background: var(--sp-hover);
  border-color: transparent;
  color: var(--sp-text);
}

.sp-btn--danger:hover {
  color: var(--color-error);
}

.sp-btn--sm {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.sp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.sp-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-primary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.sp-link:hover {
  text-decoration: underline;
}

.sp-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(24, 50, 74, 0.06);
  color: var(--sp-muted);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.sp-badge--success { background: var(--color-success-ultra-light, #f0fdf4); color: #15803d; }
.sp-badge--info { background: rgba(var(--color-primary-rgb), 0.08); color: var(--color-primary); }
.sp-badge--warning { background: var(--color-warning-ultra-light, #fffbeb); color: #b45309; }
.sp-badge--muted { background: rgba(24, 50, 74, 0.05); color: var(--sp-faint); }

/* 进度条 */
.sp-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(24, 50, 74, 0.08);
  overflow: hidden;
}

.sp-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-primary);
}

.sp-meter.is-warning > span { background: var(--color-warning); }
.sp-meter.is-success > span { background: var(--color-success); }

/* 提醒条 */
.sp-alerts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-alerts:empty,
.sp-alerts[hidden] {
  display: none;
}

.sp-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.18);
  border-radius: 10px;
  background: rgba(var(--color-primary-rgb), 0.04);
}

.sp-alert--warning {
  border-color: var(--color-warning-border, rgba(217, 119, 6, 0.3));
  background: var(--color-warning-ultra-light, #fffbeb);
}

.sp-alert--neutral {
  border-color: var(--sp-border);
  background: #fff;
}

.sp-alert__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.sp-alert--warning .sp-alert__dot { background: var(--color-warning); }
.sp-alert--neutral .sp-alert__dot { background: var(--color-error); }

.sp-alert__copy {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
}

.sp-alert__copy strong {
  margin-right: 8px;
  font-weight: 600;
}

.sp-alert__copy span {
  color: var(--sp-muted);
}

/* 横向标签页 */
.sp-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: -4px;
  border-bottom: 1px solid var(--sp-border);
}

.sp-page .sp-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: none;
  color: var(--sp-muted);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.sp-page .sp-tab:hover {
  background: none;
  color: var(--sp-text);
  transform: none;
}

.sp-page .sp-tab.is-active {
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--color-primary);
  font-weight: 600;
}

.sp-page .sp-tab.is-active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
}

.sp-tab__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-error);
}

.sp-tab__dot[hidden] {
  display: none;
}

.sp-panel[hidden] {
  display: none !important;
}

.sp-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 分段切换 */
.sp-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--radius-btn);
  background: rgba(24, 50, 74, 0.06);
}

.sp-seg__btn {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--sp-muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.sp-seg__btn.is-active {
  background: #fff;
  color: var(--sp-text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* 键值列表 */
.sp-kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
}

.sp-kv__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(24, 50, 74, 0.06);
  font-size: 13px;
}

.sp-kv__row dt {
  color: var(--sp-muted);
  white-space: nowrap;
}

.sp-kv__row dd {
  margin: 0;
  color: var(--sp-text);
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

/* 数字统计条 */
.sp-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--sp-card);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
}

.sp-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
}

.sp-stat + .sp-stat {
  border-left: 1px solid var(--sp-border);
}

button.sp-stat {
  cursor: pointer;
  transition: background var(--transition-fast);
}

button.sp-stat:hover {
  background: var(--sp-hover);
}

.sp-stat strong {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sp-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 4px 0 0;
  color: var(--sp-faint);
  font-size: 12px;
  text-align: center;
}

.sp-footnote svg {
  width: 13px;
  height: 13px;
  color: #e11d48;
  flex-shrink: 0;
}

.sp-footnote b {
  color: var(--sp-muted);
  font-weight: 600;
}

/* ========================================
   账户设置
   ======================================== */

.sp-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sp-page .sp-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  flex-shrink: 0;
  overflow: hidden;
}

.sp-page .sp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-profile__main {
  flex: 1;
  min-width: 0;
}

.sp-profile__name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-profile__name h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-profile__meta {
  margin: 6px 0 0;
  color: var(--sp-muted);
  font-size: 13px;
}

.sp-profile__plan {
  min-width: 160px;
  padding: 0 24px;
  border-left: 1px solid var(--sp-border);
}

.sp-profile__plan strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.sp-profile__plan small {
  display: block;
  margin-top: 2px;
  color: var(--sp-muted);
  font-size: 12px;
}

.sp-quota-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 40px;
}

.sp-quota__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sp-quota__value {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sp-quota__value small {
  margin-left: 4px;
  color: var(--sp-faint);
  font-size: 12px;
  font-weight: 400;
}

.sp-quota__value.is-warning {
  color: #b45309;
}

.sp-quota__note {
  margin-top: 8px;
  color: var(--sp-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* 其余标签页：沿用原有组件，统一成扁平卡片 */
.sp-page .account-panel {
  padding: 22px 24px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  background: var(--sp-card);
  box-shadow: none;
}

.sp-page .account-panel-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 0;
  border: 0;
}

.sp-page .account-panel-header__icon {
  display: none;
}

.sp-page .account-panel-header h2 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--sp-text);
}

.sp-page .account-panel-header p {
  margin: 4px 0 0;
  color: var(--sp-muted);
  font-size: 13px;
}

.sp-page .account-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
}

.sp-page .account-form {
  margin-top: 0;
}

.sp-page .account-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.sp-page .account-field::after {
  display: none;
}

.sp-page .account-field span {
  color: var(--sp-text);
  font-size: 13px;
  font-weight: 500;
}

.sp-page .account-field input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--sp-border-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--sp-text);
  font: inherit;
  font-size: 14px;
  box-shadow: none;
}

.sp-page .account-field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}

.sp-page .account-field input:disabled {
  background: #f8fafc;
  color: var(--sp-muted);
}

.sp-page .account-form-actions {
  margin-top: 4px;
}

.sp-page .account-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-btn);
  background: var(--color-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  transform: none;
}

.sp-page .account-primary-btn:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: none;
}

.sp-page .account-primary-btn svg {
  width: 15px;
  height: 15px;
}

/* 邀请与分红 */
.sp-page .account-referral-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sp-page .account-referral-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(var(--color-primary-rgb), 0.16);
  border-radius: 10px;
  background: rgba(var(--color-primary-rgb), 0.03);
  box-shadow: none;
}

.sp-page .account-referral-hero-card::before,
.sp-page .account-referral-hero-card::after {
  display: none;
}

.sp-page .account-referral-hero-copy p {
  margin: 8px 0 0;
  color: var(--sp-muted);
  font-size: 13px;
  line-height: 1.6;
}

.sp-page .account-referral-code-row strong {
  font-family: var(--font-mono, monospace);
  font-weight: 500;
}

.sp-page .account-referral-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.sp-page .account-referral-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  overflow: hidden;
}

.sp-page .account-referral-summary-card {
  padding: 16px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  min-height: 0;
}

.sp-page .account-referral-summary-card::before {
  display: none;
}

.sp-page .account-referral-summary-card:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--sp-border);
}

.sp-page .account-referral-summary-card:nth-child(n + 4) {
  border-top: 1px solid var(--sp-border);
}

.sp-page .account-referral-summary-card__head {
  gap: 6px;
  color: var(--sp-muted);
  font-size: 12px;
}

.sp-page .account-referral-summary-card__icon {
  display: none;
}

.sp-page .account-referral-summary-card strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 600;
  color: var(--sp-text);
}

.sp-page .account-referral-summary-card p {
  margin: 6px 0 0;
  color: var(--sp-faint);
  font-size: 12px;
  line-height: 1.5;
}

.sp-page .account-referral-tab-bar {
  display: inline-flex;
  align-self: flex-start;
  gap: 0;
  padding: 3px;
  border: 0;
  border-radius: var(--radius-btn);
  background: rgba(24, 50, 74, 0.06);
}

.sp-page .account-referral-tab {
  height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--sp-muted);
  font-size: 13px;
  box-shadow: none;
}

.sp-page .account-referral-tab.is-active {
  background: #fff;
  color: var(--sp-text);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.sp-page .account-detail-card {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.sp-page .account-detail-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--sp-muted);
  font-size: 13px;
}

.sp-page .account-detail-card__title h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-text);
}

.sp-page .account-detail-card__icon {
  display: none;
}

.sp-page .account-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  overflow: hidden;
}

.sp-page .account-activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.sp-page .account-activity-row + .account-activity-row {
  border-top: 1px solid rgba(24, 50, 74, 0.06);
}

.sp-page .account-activity-row__copy strong {
  font-size: 13px;
  font-weight: 600;
}

.sp-page .account-activity-row__copy span {
  display: block;
  margin-top: 2px;
  color: var(--sp-muted);
  font-size: 12px;
}

.sp-page .account-activity-row__meta {
  color: var(--sp-muted);
  font-size: 12px;
  white-space: nowrap;
}

/* 通知 */
.sp-page .account-notice-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  overflow: hidden;
}

.sp-page .account-notice-card {
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.sp-page .account-notice-card::before {
  display: none;
}

.sp-page .account-notice-card + .account-notice-card {
  border-top: 1px solid rgba(24, 50, 74, 0.06);
}

.sp-page .account-notice-card.is-unread {
  background: rgba(var(--color-primary-rgb), 0.03);
}

.sp-page .account-notice-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sp-page .account-notice-card__type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sp-faint);
  font-size: 12px;
}

.sp-page .account-notice-card h3 {
  margin: 2px 0 0;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--sp-text);
}

.sp-page .account-notice-card > p {
  margin: 6px 0 0;
  color: var(--sp-muted);
  font-size: 13px;
  line-height: 1.6;
}

.sp-page .account-notice-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sp-faint);
  font-size: 12px;
  white-space: nowrap;
}

.sp-page .account-notice-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--sp-faint);
  font-size: 12px;
  opacity: 0;
  cursor: pointer;
  transition: opacity var(--transition-fast), background var(--transition-fast);
}

.sp-page .account-notice-card:hover .account-notice-delete-btn,
.sp-page .account-notice-delete-btn:focus-visible {
  opacity: 1;
}

.sp-page .account-notice-delete-btn:hover {
  background: var(--color-error-ultra-light, #fef2f2);
  color: var(--color-error);
}

.sp-page .account-notice-delete-btn svg {
  width: 13px;
  height: 13px;
}

.sp-page .account-empty-state {
  padding: 36px 24px;
  border: 1px dashed var(--sp-border-strong);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

/* ========================================
   计费中心
   ======================================== */

.sp-plan-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px;
}

.sp-plan-summary__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.sp-plan-summary__name h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.sp-plan-summary__desc {
  margin: 10px 0 0;
  color: var(--sp-muted);
  font-size: 13px;
  line-height: 1.7;
}

.sp-plan-summary__actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.sp-plan-summary__balances {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding-left: 32px;
  border-left: 1px solid var(--sp-border);
}

.sp-plan-summary__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.sp-page .billing-other-subs {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--sp-border);
  border-radius: 10px;
  background: #fafbfc;
  font-size: 13px;
}

#billingPlansSection {
  scroll-margin-top: 76px;
}

.sp-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.sp-section__head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.sp-section__head p {
  margin: 4px 0 0;
  color: var(--sp-muted);
  font-size: 13px;
}

.sp-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.sp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  background: var(--sp-card);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.sp-plan:hover {
  border-color: rgba(var(--color-primary-rgb), 0.35);
  box-shadow: 0 6px 20px rgba(24, 50, 74, 0.06);
}

.sp-plan.is-current {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary) inset;
}

.sp-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sp-plan__head h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.sp-plan__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
}

.sp-plan__price strong {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.sp-plan__price span {
  color: var(--sp-muted);
  font-size: 13px;
}

.sp-plan__quota {
  margin-top: 6px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 500;
}

.sp-plan__features {
  flex: 1;
  margin: 16px 0 18px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(24, 50, 74, 0.07);
  list-style: none;
}

.sp-plan__features li {
  position: relative;
  padding-left: 20px;
  color: var(--sp-muted);
  font-size: 13px;
  line-height: 1.6;
}

.sp-plan__features li + li {
  margin-top: 6px;
}

.sp-plan__features li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 4px;
  border-left: 1.6px solid var(--color-success);
  border-bottom: 1.6px solid var(--color-success);
  transform: rotate(-45deg);
}

.sp-plan__cta {
  width: 100%;
}

.sp-table-wrap {
  margin: 0 -24px;
  overflow-x: auto;
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sp-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--sp-border);
  background: #fafbfc;
  color: var(--sp-muted);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.sp-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(24, 50, 74, 0.06);
  vertical-align: middle;
}

.sp-table th:first-child,
.sp-table td:first-child {
  padding-left: 24px;
}

.sp-table th:last-child,
.sp-table td:last-child {
  padding-right: 24px;
  text-align: right;
}

.sp-table tbody tr:hover {
  background: #fafbfc;
}

.sp-table tr[hidden] {
  display: none;
}

.sp-table__plan {
  font-weight: 600;
}

.sp-table__sub {
  margin-top: 3px;
  color: var(--sp-faint);
  font-size: 12px;
}

.sp-table__sub.is-warning,
.sp-table__sub.is-expired {
  color: #b45309;
}

.sp-table__sub.is-success {
  color: var(--sp-muted);
}

.sp-table__num {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.sp-table__mono {
  color: var(--sp-faint);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  white-space: nowrap;
}

.sp-table__date {
  color: var(--sp-muted);
  white-space: nowrap;
}

.sp-table__actions {
  display: inline-flex;
  gap: 6px;
}

.sp-search {
  position: relative;
  display: flex;
  align-items: center;
}

.sp-search svg {
  position: absolute;
  left: 10px;
  width: 14px;
  height: 14px;
  color: var(--sp-faint);
  pointer-events: none;
}

.sp-search input {
  width: 220px;
  height: 32px;
  padding: 0 12px 0 30px;
  border: 1px solid var(--sp-border-strong);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.sp-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
}

.sp-empty {
  margin: 0;
  padding: 32px 0 12px;
  color: var(--sp-faint);
  font-size: 13px;
  text-align: center;
}

.sp-card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  color: var(--sp-muted);
  font-size: 13px;
}

.sp-card__foot[hidden] {
  display: none;
}
