/* Compact account page: membership stays visible and invite becomes primary. */
#accountView .membership-card {
  margin: 0;
  padding: 12px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#accountView .membership-card::after {
  display: none;
}

#accountView .membership-card-head {
  margin-bottom: 10px;
}

#accountView .membership-daily {
  min-height: 0;
  margin-bottom: 10px;
  padding: 10px 12px;
}

#accountView .membership-plans {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 3px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

#accountView .membership-plans::-webkit-scrollbar {
  display: none;
}

#accountView .membership-plan {
  flex: 0 0 min(78vw, 270px);
  min-height: 0;
  padding: 11px;
  scroll-snap-align: start;
}

#accountView .membership-plan-tags {
  display: none;
}

#accountView .invite-quick-card {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(213, 224, 240, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(28, 55, 90, 0.05);
}

#accountView .invite-quick-head,
#accountView .invite-quick-meta,
#accountView .invite-network-compact,
#accountView .invite-network-compact > div {
  display: flex;
  align-items: center;
}

#accountView .invite-quick-head {
  justify-content: space-between;
  gap: 12px;
}

#accountView .invite-quick-head > div {
  display: flex;
  align-items: center;
}

#accountView .invite-quick-head span,
#accountView .invite-quick-meta span,
#accountView .invite-network-compact span,
#accountView .invite-network-compact small {
  color: #7d8a9a;
  font-size: 11px;
}

#accountView .invite-quick-head strong {
  color: #172033;
  font-size: 17px;
}

#accountView .invite-quick-action {
  min-width: 88px;
  min-height: 36px;
  padding: 7px 14px;
  border: 0;
  border-radius: 18px;
  background: #55a7ff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

#accountView .invite-quick-action strong,
#accountView .invite-quick-action small {
  display: block;
  line-height: 1.15;
}

#accountView .invite-quick-action small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
}

#accountView .invite-quick-meta {
  justify-content: space-between;
  margin-top: 12px;
  padding: 9px 11px;
  border-radius: 6px;
  background: #f5f8fc;
}

#accountView .invite-quick-meta strong {
  color: #348fff;
  font-size: 13px;
}

#accountView .invite-network-card {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

#accountView .invite-network-compact {
  justify-content: space-between;
  gap: 10px;
}

#accountView .invite-network-compact > div {
  gap: 5px;
}

#accountView .invite-network-compact strong {
  color: #172033;
  font-size: 19px;
  line-height: 1;
}

#accountView .invite-level-list {
  margin-top: 7px;
}

#accountView .invite-bind-card {
  margin-top: 10px;
}

#accountView .invite-bind-card.needs-bind {
  padding: 13px;
  border-color: rgba(52, 143, 255, 0.34);
  background: linear-gradient(180deg, rgba(238, 247, 255, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 10px 26px rgba(52, 143, 255, 0.1);
}

#accountView .invite-bind-card.needs-bind > span {
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

#accountView .invite-bind-card.needs-bind input {
  background: #fff;
  border-color: rgba(52, 143, 255, 0.28);
}

#accountView .invite-bind-card.needs-bind button {
  background: #348fff;
  box-shadow: 0 8px 18px rgba(52, 143, 255, 0.22);
}

#accountView .reward-wallet-card {
  grid-column: auto;
  width: 100%;
  margin: 0 0 10px;
  padding: 11px;
  border-radius: 6px;
}

#accountView .reward-wallet-card small {
  font-size: 16px !important;
}

#accountView .reward-wallet-card .gold-balance-line {
  min-height: 58px;
  border-radius: 8px;
}

.auto-agent-head {
  min-height: 32px;
  flex-wrap: nowrap;
}

.auto-agent-head > div {
  display: flex;
  align-items: center;
  min-height: 30px;
  padding-left: 2px;
}

.auto-agent-head > div > strong {
  font-size: 15px;
  line-height: 30px;
}

.auth-footer a {
  color: #348fff;
  text-decoration: none;
}

.auth-footer a:active {
  opacity: 0.68;
}

/* dark account invite readability v174 */
html.theme-dark #accountView .invite-quick-card {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.28) !important;
  color: #eef6ff !important;
}

html.theme-dark #accountView .invite-quick-head strong,
html.theme-dark #accountView .invite-quick-meta strong,
html.theme-dark #accountView #inviteCodeLabel {
  color: #eef6ff !important;
  opacity: 1 !important;
}

html.theme-dark #accountView .invite-quick-head span,
html.theme-dark #accountView .invite-quick-meta span,
html.theme-dark #accountView .invite-network-compact span,
html.theme-dark #accountView .invite-network-compact small {
  color: #b7c9dd !important;
  opacity: 1 !important;
}

html.theme-dark #accountView .invite-network-compact strong {
  color: #eef6ff !important;
}

/* dark invite code chip v175 */
html.theme-dark #accountView .invite-quick-meta {
  background: rgba(4, 12, 26, 0.88) !important;
  border: 1px solid rgba(96, 165, 250, 0.28) !important;
  gap: 10px !important;
}

html.theme-dark #accountView .invite-quick-meta > span {
  flex: 0 0 auto !important;
  color: #cfe6ff !important;
}

html.theme-dark #accountView #inviteCodeLabel {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  display: inline-flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  padding: 5px 8px !important;
  border-radius: 999px !important;
  background: rgba(77, 163, 255, 0.22) !important;
  border: 1px solid rgba(77, 163, 255, 0.36) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-align: right !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  opacity: 1 !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* dark-account-panel-unify-v177 */
html.theme-dark #accountView .invite-quick-card,
html.theme-dark #accountView .invite-quick-meta,
html.theme-dark #accountView .invite-bind-card,
html.theme-dark #accountView .invite-network-card,
html.theme-dark #accountView .reward-wallet-card,
html.theme-dark #accountView .membership-card {
  background: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  background-image: linear-gradient(180deg, rgba(15, 28, 46, 0.98), rgba(9, 18, 32, 0.98)) !important;
  border-color: rgba(96, 165, 250, 0.26) !important;
  color: #eef6ff !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26) !important;
}

html.theme-dark #accountView .invite-quick-card :is(strong, b),
html.theme-dark #accountView .invite-network-card :is(strong, b),
html.theme-dark #accountView .reward-wallet-card :is(strong, b),
html.theme-dark #accountView .membership-card :is(strong, b) {
  color: #eef6ff !important;
  -webkit-text-fill-color: #eef6ff !important;
}

html.theme-dark #accountView .invite-quick-card :is(span, small, p, em),
html.theme-dark #accountView .invite-network-card :is(span, small, p, em),
html.theme-dark #accountView .reward-wallet-card :is(span, small, p, em),
html.theme-dark #accountView .membership-card :is(span, small, p, em) {
  color: #9db3cc !important;
}

html.theme-dark #accountView #inviteCodeLabel,
html.theme-dark #accountView .invite-quick-action,
html.theme-dark #accountView #inviteBindBtn {
  background: linear-gradient(135deg, #2563eb, #4da3ff) !important;
  border-color: rgba(96, 165, 250, 0.5) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
