.invite-body { padding: 0 var(--s4); }

.invite-banner {
  margin: 4px 0 20px;
  padding: 24px 20px;
  border-radius: var(--r-xl);
  background:
    linear-gradient(135deg, rgba(245,197,66,0.2) 0%, rgba(212,160,23,0.06) 100%);
  border: 0.5px solid rgba(245,197,66,0.35);
  position: relative;
  overflow: hidden;
}
.invite-banner::before {
  content: "";
  position: absolute;
  top: -40px; right: -20px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(245,197,66,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.invite-banner-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
}
.invite-banner-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 1;
}
.invite-banner-icon {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 48px;
  opacity: 0.55;
  z-index: 0;
}

.invite-code-card {
  padding: 20px;
  border-radius: var(--r-xl);
  background: var(--bg-card);
  border: 1px solid var(--gold);
  box-shadow: 0 8px 32px rgba(245,197,66,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
  margin-bottom: 20px;
  position: relative;
}
.inv-code-label {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.inv-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.inv-code {
  flex: 1;
  font-family: "SF Mono", monospace;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inv-link {
  font-size: 12px;
  color: var(--text-2);
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.03);
  border: 0.5px solid var(--divider);
  margin-bottom: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "SF Mono", monospace;
}
.inv-share-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.inv-share-icons button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--r-md);
  transition: background 160ms ease;
}
.inv-share-icons button:active { background: rgba(255,255,255,0.05); }
.si-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(255,255,255,0.06);
}
.si-icon.wx { background: rgba(7,193,96,0.14); }
.si-icon.py { background: linear-gradient(135deg, rgba(245,197,66,0.2), rgba(255,154,158,0.18)); }
.si-icon.lk { background: rgba(10,132,255,0.14); }
.si-icon.ph { background: rgba(191,90,242,0.16); }
.inv-share-icons span {
  font-size: 11px;
  color: var(--text-2);
}

.level-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.level-row {
  padding: 14px 16px;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 0.5px solid var(--gold-border);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.level-row.cur {
  border-color: var(--gold);
  background: rgba(245,197,66,0.1);
  box-shadow: 0 0 0 3px rgba(245,197,66,0.08);
}
.level-tag {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #1a1200;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.level-main { flex: 1; min-width: 0; }
.level-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.level-cur-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  background: var(--gold);
  color: #1a1200;
  border-radius: 4px;
  font-weight: 700;
}
.level-bar-wrap {
  margin-top: 6px;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}
.level-bar {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 999px;
}
.level-req { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.level-rate {
  text-align: right;
  flex-shrink: 0;
}
.level-rate b {
  display: block;
  font-family: "SF Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.level-rate span { font-size: 10px; color: var(--text-3); }

.rank-list {
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 0.5px solid var(--gold-border);
  overflow: hidden;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--divider);
}
.rank-row:last-child { border-bottom: none; }
.rank-no {
  width: 26px;
  font-family: "SF Mono", monospace;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  color: var(--text-3);
  flex-shrink: 0;
}
.rank-row.top .rank-no { color: var(--gold); }
.rank-row.top1 .rank-avatar { border-color: #FFD700; box-shadow: 0 0 12px rgba(255,215,0,0.4); }
.rank-row.top2 .rank-avatar { border-color: #C0C0C0; box-shadow: 0 0 12px rgba(192,192,192,0.3); }
.rank-row.top3 .rank-avatar { border-color: #CD7F32; box-shadow: 0 0 12px rgba(205,127,50,0.3); }
.rank-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, #2a2a35, #0f0f16);
  border: 2px solid transparent;
  flex-shrink: 0;
}
.rank-main { flex: 1; min-width: 0; }
.rank-name {
  font-family: "SF Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.rank-sub { font-size: 11px; color: var(--text-3); }
.rank-right { text-align: right; flex-shrink: 0; }
.rank-earn {
  font-family: "SF Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
}
.rank-team { font-size: 11px; color: var(--text-3); margin-top: 2px; }
