#xbyl-member-benefits {
  --mb-bg: #060a26;
  --mb-surface: rgba(18, 20, 67, 0.9);
  --mb-surface-strong: rgba(12, 14, 48, 0.97);
  --mb-line: rgba(157, 133, 255, 0.24);
  --mb-text: #f8f8ff;
  --mb-muted: #aaaed0;
  --mb-cyan: #4ee5ff;
  --mb-violet: #8b5cf6;
  --mb-pink: #e879f9;
  --mb-gold: #ffd67b;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  color: var(--mb-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at 12% 4%, rgba(36, 217, 255, 0.16), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(232, 121, 249, 0.18), transparent 31%),
    linear-gradient(155deg, #060a26 0%, #0c0d36 52%, #18082f 100%);
}

#xbyl-member-benefits::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

#xbyl-member-benefits.is-visible {
  display: block;
}

html.xbyl-mb-open,
html.xbyl-mb-open body {
  overflow: hidden;
  background: #060a26 !important;
}

/* 旧版 /agent 只有一张宣传图；代理中心接管该路由时直接移除旧页面，
   避免它因旧层级或缓存而再次遮住申请、客服和佣金内容。 */
html.xbyl-mb-open .agent {
  display: none !important;
}

.xbyl-mb-shell {
  position: relative;
  width: min(100%, 780px);
  min-height: 100%;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 16px max(42px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.xbyl-mb-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.xbyl-mb-back {
  min-width: 58px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 13px;
  color: var(--mb-text);
  font: 600 14px/1 inherit;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
}

.xbyl-mb-heading {
  min-width: 0;
}

.xbyl-mb-eyebrow {
  margin-bottom: 5px;
  color: var(--mb-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.xbyl-mb-title {
  margin: 0;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-shadow: 0 0 28px rgba(139, 92, 246, 0.4);
}

.xbyl-mb-subtitle {
  max-width: 540px;
  margin: 8px 0 0;
  color: var(--mb-muted);
  font-size: 13px;
  line-height: 1.55;
}

.xbyl-mb-message,
.xbyl-mb-wheel-hero,
.xbyl-mb-agent-hero,
.xbyl-mb-records,
.xbyl-mb-cooperation,
.xbyl-mb-vpn-card {
  border: 1px solid var(--mb-line);
  background:
    linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(78, 229, 255, 0.035)),
    var(--mb-surface);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.27);
  backdrop-filter: blur(18px);
}

.xbyl-mb-message {
  padding: 24px 18px;
  border-radius: 20px;
  color: var(--mb-muted);
  text-align: center;
}

.xbyl-mb-message p {
  margin: 0;
  line-height: 1.6;
}

.xbyl-mb-message .xbyl-mb-primary {
  margin-top: 16px;
}

.xbyl-mb-notice {
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(78, 229, 255, 0.25);
  border-radius: 14px;
  color: var(--mb-cyan);
  font-size: 13px;
  text-align: center;
  background: rgba(78, 229, 255, 0.07);
}

.xbyl-mb-wheel-hero {
  position: relative;
  overflow: hidden;
  padding: 16px 14px 22px;
  border-radius: 28px;
}

.xbyl-mb-agent-hero {
  padding: 16px 14px 18px;
  border-radius: 24px;
}

.xbyl-mb-agent-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xbyl-mb-agent-brand {
  position: relative;
  overflow: hidden;
  margin: -2px -2px 14px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 214, 123, 0.24);
  border-radius: 19px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 214, 123, 0.26), transparent 31%),
    linear-gradient(120deg, rgba(70, 31, 146, 0.74), rgba(9, 19, 67, 0.74));
}

.xbyl-mb-agent-brand::after {
  content: "568";
  position: absolute;
  right: 14px;
  bottom: -18px;
  color: rgba(255, 255, 255, 0.06);
  font-size: 86px;
  font-weight: 900;
  letter-spacing: -0.1em;
}

.xbyl-mb-agent-kicker {
  position: relative;
  z-index: 1;
  color: var(--mb-gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.xbyl-mb-agent-brand h2,
.xbyl-mb-agent-brand p {
  position: relative;
  z-index: 1;
}

.xbyl-mb-agent-brand h2 {
  max-width: 310px;
  margin: 7px 0 5px;
  font-size: clamp(21px, 5.5vw, 31px);
  letter-spacing: -0.04em;
}

.xbyl-mb-agent-brand p {
  max-width: 370px;
  margin: 0;
  color: rgba(248, 248, 255, 0.74);
  font-size: 12px;
  line-height: 1.65;
}

.xbyl-mb-agent-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px 10px;
  align-items: baseline;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  color: var(--mb-muted);
  font-size: 12px;
  background: rgba(4, 7, 31, 0.42);
}

.xbyl-mb-agent-status strong {
  color: var(--mb-cyan);
  text-align: right;
}

.xbyl-mb-agent-status p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(248, 248, 255, 0.72);
  line-height: 1.5;
}

.xbyl-mb-agent-status-approved strong { color: #82f6c2; }
.xbyl-mb-agent-status-rejected strong,
.xbyl-mb-agent-status-suspended strong { color: #ff9eaa; }

.xbyl-mb-agent-rule {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-left: 2px solid var(--mb-gold);
  border-radius: 0 10px 10px 0;
  color: rgba(255, 214, 123, 0.9);
  font-size: 12px;
  line-height: 1.5;
  background: rgba(255, 214, 123, 0.06);
}

.xbyl-mb-agent-application {
  display: grid;
  gap: 11px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(139, 92, 246, 0.36);
  border-radius: 17px;
  background: rgba(5, 8, 35, 0.48);
}

.xbyl-mb-agent-application strong {
  color: var(--mb-text);
  font-size: 14px;
  line-height: 1.55;
}

.xbyl-mb-agent-application p {
  margin: 0;
  color: var(--mb-muted);
  font-size: 12px;
}

.xbyl-mb-agent-note {
  min-height: 70px;
  box-sizing: border-box;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  outline: none;
  resize: vertical;
  color: var(--mb-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(3, 5, 26, 0.66);
}

.xbyl-mb-agent-note:focus {
  border-color: rgba(78, 229, 255, 0.66);
  box-shadow: 0 0 0 3px rgba(78, 229, 255, 0.09);
}

.xbyl-mb-agent-support {
  width: 100%;
  margin-top: 12px;
}

.xbyl-mb-agent-invite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(78, 229, 255, 0.18);
  border-radius: 17px;
  background: rgba(4, 7, 31, 0.46);
}

.xbyl-mb-agent-invite-copy {
  min-width: 0;
}

.xbyl-mb-agent-invite-copy span,
.xbyl-mb-agent-invite-copy strong,
.xbyl-mb-agent-invite-copy p {
  display: block;
}

.xbyl-mb-agent-invite-copy span {
  color: var(--mb-cyan);
  font-size: 10px;
}

.xbyl-mb-agent-invite-copy strong {
  margin-top: 3px;
  color: var(--mb-gold);
  font-size: 20px;
  letter-spacing: 0.08em;
}

.xbyl-mb-agent-invite-copy p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--mb-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xbyl-mb-agent-claim {
  width: 100%;
  margin-top: 12px;
}

.xbyl-mb-wheel-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  top: 70px;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(139, 92, 246, 0.28);
  filter: blur(72px);
}

.xbyl-mb-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.xbyl-mb-stat {
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  text-align: center;
  background: rgba(4, 7, 31, 0.44);
}

.xbyl-mb-stat-label,
.xbyl-mb-stat-value {
  display: block;
}

.xbyl-mb-stat-label {
  color: var(--mb-muted);
  font-size: 10px;
}

.xbyl-mb-stat-value {
  margin-top: 3px;
  color: var(--mb-gold);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.xbyl-mb-wheel-stage {
  position: relative;
  width: min(78vw, 390px);
  aspect-ratio: 1;
  margin: 5px auto 12px;
}

.xbyl-mb-wheel-stage::before,
.xbyl-mb-wheel-stage::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(78, 229, 255, 0.3);
  box-shadow:
    0 0 0 5px rgba(139, 92, 246, 0.11),
    0 0 46px rgba(78, 229, 255, 0.2),
    inset 0 0 28px rgba(255, 255, 255, 0.09);
}

.xbyl-mb-wheel-stage::after {
  inset: -15px;
  border-style: dashed;
  opacity: 0.42;
  animation: xbyl-mb-orbit 24s linear infinite;
}

@keyframes xbyl-mb-orbit {
  to { transform: rotate(360deg); }
}

.xbyl-mb-wheel {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-sizing: border-box;
  box-shadow:
    inset 0 0 42px rgba(0, 0, 0, 0.34),
    0 20px 45px rgba(0, 0, 0, 0.35);
  transition: transform 3.8s cubic-bezier(0.12, 0.72, 0.16, 1);
}

.xbyl-mb-wheel::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.xbyl-mb-pointer {
  position: absolute;
  z-index: 5;
  top: -18px;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
  border-top: 0;
  border-bottom: 30px solid var(--mb-gold);
  filter: drop-shadow(0 4px 8px rgba(255, 214, 123, 0.5));
}

.xbyl-mb-wheel-label {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: min(24vw, 108px);
  color: #fff;
  font-size: clamp(9px, 2.6vw, 13px);
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
  word-break: break-word;
}

.xbyl-mb-wheel-hub {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 78px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  color: #17112f;
  background: radial-gradient(circle at 35% 30%, #fff2b7, #ffc65c 52%, #a95d15);
  box-shadow: 0 0 25px rgba(255, 214, 123, 0.54);
}

.xbyl-mb-wheel-hub span {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.xbyl-mb-wheel-hub small {
  margin-top: 2px;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.xbyl-mb-spin,
.xbyl-mb-primary,
.xbyl-mb-claim,
.xbyl-mb-contact {
  border: 0;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(110deg, #6d4aff, #bf39e8);
  box-shadow: 0 10px 28px rgba(109, 74, 255, 0.32);
}

.xbyl-mb-spin {
  width: min(78%, 310px);
  min-height: 50px;
  display: block;
  margin: 6px auto 0;
  border-radius: 17px;
  font-size: 16px;
}

.xbyl-mb-primary {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 14px;
}

.xbyl-mb-spin:disabled,
.xbyl-mb-primary:disabled,
.xbyl-mb-claim:disabled {
  color: #8d8eac;
  background: #282948;
  box-shadow: none;
}

.xbyl-mb-wheel-note {
  max-width: 540px;
  margin: 14px auto 0;
  color: var(--mb-muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.xbyl-mb-result {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 214, 123, 0.32);
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(120deg, rgba(255, 214, 123, 0.09), rgba(232, 121, 249, 0.08));
  animation: xbyl-mb-rise 420ms ease-out both;
}

@keyframes xbyl-mb-rise {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.xbyl-mb-result-kicker,
.xbyl-mb-result-name {
  display: block;
}

.xbyl-mb-result-kicker {
  color: var(--mb-gold);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.xbyl-mb-result-name {
  margin-top: 5px;
  font-size: 23px;
}

.xbyl-mb-result p {
  margin: 7px 0 12px;
  color: var(--mb-muted);
  font-size: 12px;
}

.xbyl-mb-records {
  margin-top: 14px;
  padding: 17px 14px;
  border-radius: 22px;
}

.xbyl-mb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.xbyl-mb-section-head h2 {
  margin: 0;
  font-size: 16px;
}

.xbyl-mb-section-head span {
  color: var(--mb-cyan);
  font-size: 11px;
}

.xbyl-mb-record-list {
  display: grid;
  gap: 8px;
}

.xbyl-mb-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(4, 6, 28, 0.42);
}

.xbyl-mb-record strong,
.xbyl-mb-record span {
  display: block;
}

.xbyl-mb-record strong {
  font-size: 13px;
}

.xbyl-mb-record div > span {
  margin-top: 4px;
  color: var(--mb-muted);
  font-size: 10px;
}

.xbyl-mb-claim {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 11px;
}

.xbyl-mb-record-state {
  color: var(--mb-gold);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.xbyl-mb-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 14px;
  color: var(--mb-muted);
  text-align: center;
}

.xbyl-mb-cooperation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
}

.xbyl-mb-cooperation-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #141331;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--mb-cyan), #b8f7ff);
  box-shadow: 0 10px 24px rgba(78, 229, 255, 0.22);
}

.xbyl-mb-cooperation h2 {
  margin: 0;
  font-size: 15px;
}

.xbyl-mb-cooperation p {
  margin: 5px 0 0;
  color: var(--mb-muted);
  font-size: 11px;
  line-height: 1.45;
}

.xbyl-mb-contact {
  min-height: 38px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 11px;
}

.xbyl-mb-vpn-grid {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.xbyl-mb-vpn-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
}

.xbyl-mb-vpn-icon {
  width: 54px;
  height: 54px;
  display: grid;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  color: var(--mb-cyan);
  font-size: 22px;
  font-weight: 900;
  background: rgba(5, 8, 35, 0.56);
}

.xbyl-mb-vpn-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.xbyl-mb-vpn-copy {
  min-width: 0;
}

.xbyl-mb-vpn-type {
  color: var(--mb-cyan);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.xbyl-mb-vpn-copy h2 {
  margin: 3px 0 0;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xbyl-mb-vpn-copy p {
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--mb-muted);
  font-size: 11px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xbyl-mb-download {
  min-width: 76px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(78, 229, 255, 0.38);
  border-radius: 12px;
  color: var(--mb-cyan);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  background: rgba(78, 229, 255, 0.08);
}

.xbyl-mb-download[aria-disabled="true"] {
  color: #777993;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 520px) {
  .xbyl-mb-shell {
    padding-right: 13px;
    padding-left: 13px;
  }

  .xbyl-mb-cooperation {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .xbyl-mb-contact {
    grid-column: 1 / -1;
    width: 100%;
  }

  .xbyl-mb-vpn-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .xbyl-mb-agent-invite {
    grid-template-columns: 1fr;
  }

  .xbyl-mb-agent-invite .xbyl-mb-primary {
    width: 100%;
  }

  .xbyl-mb-download {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xbyl-mb-wheel,
  .xbyl-mb-result {
    transition-duration: 1ms;
    animation-duration: 1ms;
  }

  .xbyl-mb-wheel-stage::after {
    animation: none;
  }
}
