.tech-tree-node-active {
  box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.55), 0 0 18px rgba(34, 211, 238, 0.35);
  border-color: rgba(34, 211, 238, 0.65) !important;
}

.promo-carousel-track {
  transition: transform 0.6s ease;
}

section[aria-label="Featured"] {
  overflow: hidden;
}

/* ── Header / Nav ── */
.bs-site-header .bs-main-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.bs-site-header .bs-main-nav::-webkit-scrollbar {
  display: none;
}
.bs-nav-link.is-active {
  color: rgb(167, 139, 250);
}

/* ── Mystery Box hero ── */
.mystery-box-stage {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.18), transparent 55%),
    linear-gradient(145deg, rgba(109, 40, 217, 0.25), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(34, 211, 238, 0.35);
  overflow: hidden;
}
.mystery-box-cube {
  position: relative;
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  animation: mystery-float 3s ease-in-out infinite;
}
.mystery-box-cube-inner {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 35%, #a855f7 100%);
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.65), 0 0 80px rgba(168, 85, 247, 0.35),
    inset 0 2px 12px rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.mystery-box-cube-inner::before {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.mystery-box-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.45), transparent 70%);
  animation: mystery-pulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mystery-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes mystery-pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}
.mystery-box-stage.is-spinning .mystery-box-cube {
  animation: mystery-spin 0.8s ease-in-out infinite;
}
@keyframes mystery-spin {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(1.08); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* ── Mystery result modal ── */
.mystery-result-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(4px);
}
.mystery-result-modal.hidden {
  display: none !important;
}
.mystery-result-card {
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
  padding: 28px 22px 22px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}
.mystery-result-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
}
.mystery-result-title {
  font-size: 18px;
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}
.mystery-result-prize {
  margin: 14px 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #22d3ee;
}
.mystery-result-desc {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.5;
}

/* ── Invite locked state ── */
.invite-locked {
  border: 1px dashed rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.05);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
}
.invite-link-box {
  display: none;
}
.invite-link-box.is-ready {
  display: block;
}

/* ── Dashboard stat cards ── */
.bs-stat-card {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.65));
  padding: 1.25rem;
}
.bs-stat-card strong {
  font-size: 1.5rem;
  line-height: 1.2;
  color: rgb(34, 211, 238);
}

/* ── Savings page (ref alignment) ── */
.bs-savings-tabs .bs-tab-btn {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.65);
  color: rgb(148, 163, 184);
}
.bs-savings-tabs .bs-tab-btn:last-child { border-right: 0; }
.bs-savings-tabs .bs-tab-btn.is-active {
  background: rgb(255, 255, 255);
  color: rgb(15, 23, 42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.bs-subtabs button {
  background: transparent;
  border: none;
  color: rgb(148, 163, 184);
  font-size: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.bs-subtabs button.is-active {
  color: rgb(34, 211, 238);
  border-bottom-color: rgb(34, 211, 238);
  font-weight: 600;
}
.bs-vip-card {
  background: linear-gradient(180deg, rgba(30, 27, 75, 0.55), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 30px rgba(109, 40, 217, 0.15);
}
.bs-vip-hero {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.95));
}
.bs-vip-hero-img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
}
.bs-vip-hero-1 { background: radial-gradient(circle at 30% 40%, rgba(34, 211, 238, 0.35), transparent 55%), linear-gradient(135deg, #1e1b4b, #0f172a); }
.bs-vip-hero-2 { background: radial-gradient(circle at 70% 30%, rgba(168, 85, 247, 0.4), transparent 50%), linear-gradient(135deg, #312e81, #0f172a); }
.bs-vip-hero-3 { background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.35), transparent 55%), linear-gradient(135deg, #1e3a5f, #0f172a); }
.bs-vip-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border: 1px solid rgba(34, 197, 94, 0.65);
  color: #4ade80;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.bs-vip-vault {
  display: none;
}
.bs-vip-title {
  background: linear-gradient(90deg, #c084fc, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.bs-vip-rate {
  font-size: 2rem;
  font-weight: 800;
  color: rgb(34, 211, 238);
  line-height: 1.1;
}
.bs-vip-stat p {
  letter-spacing: 0.01em;
}
.bs-vip-cta {
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}
.bs-acc-action {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.65rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(226, 232, 240);
  cursor: pointer;
}
.bs-loan-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.45), rgba(34, 211, 238, 0.05));
  border: 2px solid rgba(34, 211, 238, 0.55);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  position: relative;
}
.bs-loan-icon::before {
  content: "◎";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: rgb(34, 211, 238);
}
.bs-dep-section {
  border-color: rgba(34, 211, 238, 0.2);
}
.bs-loan-hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 27, 75, 0.55));
}
.price-up { color: rgb(34, 197, 94); }
.price-down { color: rgb(239, 68, 68); }

/* ── Mobile drawer：实心底 + 可点（不依赖 Tailwind 任意值） ── */
#bs-mobile-drawer {
  position: fixed !important;
  inset: 0 !important;
  z-index: 99980 !important;
}
#bs-mobile-drawer.hidden {
  display: none !important;
}
#bs-mobile-drawer:not(.hidden) {
  display: block !important;
}
#bs-mobile-drawer-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(0, 0, 0, 0.72) !important;
  z-index: 1 !important;
}
#bs-mobile-drawer .bs-drawer-panel {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: min(18rem, 86vw) !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #0b1220 !important;
  border-right: 1px solid rgba(34, 211, 238, 0.35) !important;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.55) !important;
  padding: 1rem !important;
  pointer-events: auto !important;
  color: #e2e8f0 !important;
}
#bs-mobile-drawer .bs-drawer-panel a {
  color: #cbd5e1 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 3 !important;
}
#bs-mobile-drawer .bs-drawer-panel a:hover,
#bs-mobile-drawer .bs-drawer-panel a:active {
  background: rgba(34, 211, 238, 0.12) !important;
  color: #a78bfa !important;
}
#bs-mobile-drawer .bs-drawer-nav {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-bottom: 0.75rem !important;
}
#bs-mobile-drawer .bs-drawer-lang {
  flex-shrink: 0 !important;
  border-top: 1px solid rgba(148, 163, 184, 0.25) !important;
  padding-top: 0.75rem !important;
  margin-top: 0.5rem !important;
}

/* ── layer 弹层：暗色站 body 浅色字继承到白底弹窗 → 字看不见 ── */
.layui-layer,
.layui-layer-dialog,
.layui-layer-msg:not(.layui-layer-hui) {
  color: #0f172a !important;
}
.layui-layer .layui-layer-content,
.layui-layer-dialog .layui-layer-content,
.layui-layer-msg:not(.layui-layer-hui) .layui-layer-content {
  color: #0f172a !important;
}
.layui-layer-hui,
.layui-layer-hui .layui-layer-content {
  color: #ffffff !important;
}
.layui-layer-title {
  color: #0f172a !important;
}

/* 自建提示条（不依赖 layer 白底） */
#bs-toast-host {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  z-index: 2147483000;
  max-width: min(92vw, 360px);
  pointer-events: none;
}
.bs-toast {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: #f8fafc !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  word-break: break-word;
}
.bs-toast.is-ok {
  border-color: rgba(34, 197, 94, 0.55);
}
.bs-toast.is-err {
  border-color: rgba(251, 191, 36, 0.65);
}

