/* Account panel behind the avatar in the console top bar (topMenu.js).
   Link rules are scoped under .ax-user-panel to outrank consoleShell.css's
   .ax-topbar a { color:#c9c9c9 !important }, which is meant for the dark bar. */
.ax-user-panel {
  position: absolute; right: -8px; top: 46px; z-index: 1200;
  width: 400px; max-width: calc(100vw - 16px); box-sizing: border-box;
  padding: 22px 22px 6px; background: #fff; color: #1d2129; text-align: left; cursor: default;
  border: 1px solid #e5e8ef; box-shadow: 0 12px 32px rgba(15, 35, 80, .16);
  font: 14px/1.5 Arial, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  animation: ax-up-in .16s ease-out both;
}
@keyframes ax-up-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.ax-up-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ax-up-name strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 20px; font-weight: 500; line-height: 28px; color: #1d2129; }
.ax-up-badge { flex-shrink: 0; padding: 2px 10px; border-radius: 12px; background: #e3f8ec; color: #08843f; font-size: 13px; line-height: 20px; }
.ax-up-badge.is-sub { background: #fff3e0; color: #a35a00; }
.ax-up-id { margin: 12px 0 16px; color: #4e5969; font-size: 14px; line-height: 22px; }

.ax-up-wallet { padding: 18px 20px 0; background: #f0f4ff; }
.ax-up-wallet-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #dde4f3; }
.ax-up-wallet-amount { min-width: 0; }
.ax-up-wallet-label { display: flex; align-items: center; gap: 6px; color: #4e5969; font-size: 14px; line-height: 22px; }
.ax-up-eye { display: inline-flex; padding: 2px; border: 0; background: none; color: #4e5969; cursor: pointer; }
.ax-up-eye:hover { color: #0052d9; }
.ax-up-balance { display: block; margin-top: 4px; font-size: 26px; font-weight: 600; line-height: 34px; color: #1d2129; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ax-user-panel .ax-up-recharge { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-width: 80px; height: 38px; padding: 0 18px; background: #0052d9; color: #fff !important; font-size: 14px; text-decoration: none !important; }
.ax-user-panel .ax-up-recharge:hover { background: #003eab; }
.ax-up-wallet-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0 14px; color: #4e5969; font-size: 13px; line-height: 20px; }
.ax-up-wallet-foot b { font-weight: 400; font-variant-numeric: tabular-nums; }

.ax-up-stats { display: flex; padding: 20px 0 18px; border-bottom: 1px solid #eef0f4; }
.ax-user-panel .ax-up-stats a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #1d2129 !important; text-decoration: none !important; }
.ax-up-stats b { font-size: 20px; font-weight: 600; line-height: 26px; font-variant-numeric: tabular-nums; }
.ax-up-stats span { color: #4e5969; font-size: 14px; line-height: 20px; }
.ax-user-panel .ax-up-stats a:hover b { color: #0052d9; }

.ax-up-group { padding: 8px 0; }
.ax-up-group + .ax-up-group { border-top: 1px solid #eef0f4; }
.ax-user-panel .ax-up-item { display: flex !important; align-items: center; gap: 14px; width: 100%; height: 40px; padding: 0 2px; border: 0; background: none; color: #1d2129 !important; font: inherit; font-size: 14px; text-align: left; text-decoration: none !important; cursor: pointer; }
.ax-user-panel .ax-up-item:hover, .ax-user-panel .ax-up-item:focus-visible { color: #0052d9 !important; }
.ax-up-ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 600px) {
  .ax-user-panel { position: fixed; top: 52px; left: 8px; right: 8px; width: auto; max-width: none; max-height: calc(100vh - 64px); overflow-y: auto; padding: 18px 16px 6px; }
  .ax-up-wallet { padding: 16px 16px 0; }
  .ax-user-panel .ax-up-item { height: 44px; }
}
