.membership-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 13px 15px;
  border: 1px solid #35506f;
  border-radius: 15px;
  background:
    radial-gradient(circle at 78% -80%, rgba(242, 169, 0, .3), transparent 48%),
    linear-gradient(135deg, #172235, #111925 72%);
}
.membership-bar[hidden] { display: none; }
.membership-bar::after {
  content: "";
  position: absolute;
  right: 18%;
  top: -32px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}
.membership-bar-copy { position: relative; z-index: 1; min-width: 0; }
.membership-bar-copy > span { display: block; color: #f2bd55; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.membership-bar-copy b { display: block; margin-top: 3px; font-size: 14px; }
.membership-bar-copy small { display: block; margin-top: 2px; color: #8fa4c2; font-size: 10px; }
.membership-button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  border: 1px solid #b78635;
  border-radius: 10px;
  padding: 8px 13px;
  color: #211707;
  background: linear-gradient(135deg, #f5bf58, #ff934f);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.membership-bar.active { border-color: rgba(83, 205, 162, .55); }
.membership-bar.active .membership-bar-copy > span { color: #79dfbd; }
.membership-bar.active .membership-button { border-color: #4c9b83; color: #061d16; background: linear-gradient(135deg, #79dfbd, #4fbda0); }
.tab.membership-locked { opacity: .66; }
.tab.membership-locked::after {
  content: "会员";
  margin-left: 5px;
  padding: 2px 5px;
  border: 1px solid rgba(242, 169, 0, .38);
  border-radius: 8px;
  color: #f2bd55;
  font-size: 8px;
  vertical-align: 1px;
}
.membership-panel { position: fixed; inset: 0; z-index: 10030; display: grid; place-items: center; padding: 20px; }
.membership-panel[hidden] { display: none; }
.membership-backdrop { position: absolute; inset: 0; border: 0; background: rgba(4, 8, 14, .78); backdrop-filter: blur(9px); cursor: default; }
.membership-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border: 1px solid #4b5f79;
  border-radius: 22px;
  padding: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(242, 169, 0, .16), transparent 32%),
    linear-gradient(150deg, #172235, #0e1521 68%);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .72);
}
.membership-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.membership-dialog-head span { color: #f2bd55; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.membership-dialog-head h2 { margin-top: 5px; font-size: 22px; }
.membership-close { border: 0; border-radius: 9px; padding: 2px 8px; color: #9fb0c7; background: rgba(255, 255, 255, .06); font-size: 25px; cursor: pointer; }
.membership-status-card { margin-top: 18px; padding: 16px 18px; border: 1px solid #715f3c; border-radius: 15px; background: rgba(242, 169, 0, .07); }
.membership-status-card > span { color: #c5a969; font-size: 10px; font-weight: 800; }
.membership-status-card > b { display: block; margin: 5px 0 3px; color: #ffd17b; font-size: 25px; }
.membership-status-card p { color: #a99d86; font-size: 11px; line-height: 1.6; }
.membership-status-card.active { border-color: rgba(83, 205, 162, .5); background: rgba(83, 205, 162, .07); }
.membership-status-card.active > span { color: #79dfbd; }
.membership-status-card.active > b { color: #8cebc9; }
.membership-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 13px; }
.membership-feature-grid article { display: flex; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #293b54; border-radius: 13px; background: #111a28; }
.membership-feature-grid i { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 12px; color: #f4c66c; background: #202b3d; font-size: 10px; font-style: normal; font-weight: 900; }
.membership-feature-grid b { display: block; font-size: 11px; }
.membership-feature-grid span { display: block; margin-top: 4px; color: #8094af; font-size: 9px; line-height: 1.5; }
.membership-message { min-height: 18px; margin-top: 12px; color: #82dfb9; font-size: 11px; line-height: 1.55; }
.membership-message.error { color: #ff9d91; }
.membership-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 5px; }
.membership-actions button { flex: 1 1 180px; border-radius: 10px; padding: 10px 13px; font-size: 11px; font-weight: 850; cursor: pointer; }
.membership-primary { border: 1px solid #d59b3c; color: #201505; background: linear-gradient(135deg, #f2bd55, #ff9450); }
.membership-secondary { border: 1px solid #3b4d66; color: #b7c6da; background: #192436; }
.membership-actions button:disabled { opacity: .55; cursor: wait; }
.membership-footnote { margin-top: 13px; color: #6f829e; font-size: 9px; line-height: 1.55; }
@media (max-width: 720px) {
  .membership-bar { align-items: flex-start; }
  .membership-feature-grid { grid-template-columns: 1fr; }
  .membership-dialog { padding: 18px; border-radius: 18px; }
}
