/* 邀请激励：嵌入控制台主区，保留左侧导航 */
html.bx-invite-route #root {
  display: block !important;
}

.bushaoxin-invite-page,
.bushaoxin-invite-embedded {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 20px 48px;
  box-sizing: border-box;
}

.bx-inv-shell { display: flex; flex-direction: column; gap: 16px; }
.bx-inv-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.bx-inv-header h1 {
  margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #122033;
}
.bx-inv-header p { margin: 0; color: #5b6b82; font-size: 14px; line-height: 1.55; }

.bx-inv-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px;
}
@media (max-width: 860px) { .bx-inv-grid { grid-template-columns: 1fr; } }

.bx-inv-card {
  background: #fff; border: 1px solid rgba(30,55,90,.10); border-radius: 16px;
  padding: 16px 18px; box-shadow: 0 10px 30px rgba(40,70,110,.06);
  box-sizing: border-box;
}
.bx-inv-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #0f9f8a;
  text-transform: uppercase; margin-bottom: 10px;
}
.bx-inv-login-cta h2 {
  margin: 0 0 8px; font-size: 18px; color: #122033; font-weight: 800;
}
.bx-inv-login-cta p { margin: 0 0 8px; color: #5b6b82; font-size: 14px; line-height: 1.55; }
.bx-inv-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px !important; }
.bx-inv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; border-radius: 10px; text-decoration: none;
  font-weight: 700; background: linear-gradient(135deg,#0f9f8a,#3b6ef5); color: #fff !important;
}
.bx-inv-btn-ghost {
  background: #fff; color: #0f9f8a !important; border: 1px solid rgba(15,159,138,.28);
}
.bx-inv-btn:hover { filter: brightness(1.04); }

.bx-inv-linkrow { display: flex; gap: 8px; }
.bx-inv-linkrow input {
  flex: 1; height: 40px; border-radius: 10px; border: 1px solid rgba(30,55,90,.16);
  padding: 0 12px; background: #f7fafc; color: #122033; font-size: 13px;
}
.bx-inv-linkrow button {
  height: 40px; padding: 0 14px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg,#0f9f8a,#3b6ef5); color: #fff; font-weight: 700;
}
.bx-inv-meta { margin-top: 10px; color: #5b6b82; font-size: 13px; }
.bx-inv-meta b { color: #122033; }
.bx-inv-cap { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.bx-inv-cap > div {
  background: linear-gradient(180deg,#f6fffc,#f4f8ff); border-radius: 12px;
  padding: 12px 10px; text-align: center; border: 1px solid rgba(15,159,138,.12);
}
.bx-inv-cap span { display: block; color: #5b6b82; font-size: 12px; margin-bottom: 6px; }
.bx-inv-cap b { font-size: 18px; color: #122033; }
.bx-inv-note, .bx-inv-empty, .bx-inv-loading { color: #5b6b82; font-size: 13px; line-height: 1.55; }
.bx-inv-rules ul { margin: 0; padding-left: 18px; color: #334155; font-size: 14px; line-height: 1.75; }
.bx-inv-rules b { color: #0f9f8a; }
.bx-inv-table-wrap { overflow: auto; }
.bx-inv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bx-inv-table th, .bx-inv-table td {
  text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(30,55,90,.08);
  color: #334155; white-space: nowrap;
}
.bx-inv-table th { color: #64748b; font-weight: 700; }
.bx-inv-dynamic { display: flex; flex-direction: column; gap: 14px; }

/* Kill leftover wallet promo clutter */
.bushaoxin-invite-wallet-hint { display: none !important; }


/* route-guard: never show invite chrome outside invite route */
html:not(.bx-invite-route) #bushaoxin-invite-page,
html:not(.bx-invite-route) .bushaoxin-invite-page,
html:not(.bx-invite-route) .bushaoxin-invite-embedded,
html:not(.bx-invite-route) .bx-inv-shell {
  display: none !important;
}
#bushaoxin-invite-wallet-hint,
.bushaoxin-invite-wallet-hint { display: none !important; }
