:root {
  --user-bg: #10131a;
  --user-panel: #ffffff;
  --user-panel-soft: #f5f7fb;
  --user-text: #18202f;
  --user-muted: #697387;
  --user-line: #dfe5ef;
  --user-cyan: #0f9ec4;
  --user-green: #2f9d67;
  --user-amber: #b7791f;
  --user-rose: #c2416f;
  --user-sidebar: #171b24;
}

body.user-center-page,
body.user-auth-page {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--user-text);
  background:
    linear-gradient(135deg, rgba(15, 158, 196, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(47, 157, 103, 0.14), transparent 32%),
    var(--user-bg);
}

.user-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 328px minmax(0, 1fr);
}

.user-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--user-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 26px 18px;
  overflow-y: auto;
  z-index: 20;
}

.user-brand,
.user-auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.user-brand {
  gap: 14px;
  padding: 0 14px 30px;
  font-size: 22px;
  line-height: 1.25;
}

.user-brand img,
.user-auth-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.user-nav {
  flex: 1;
}

.user-tree {
  display: grid;
  margin: 0;
  padding: 0;
}

.user-tree li {
  list-style: none;
}

.user-tree > li + li,
.user-sidebar-foot a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-tree a,
.user-tree-label,
.user-sidebar-foot a {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 0 14px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}

.user-tree a i,
.user-tree-label i,
.user-sidebar-foot a i {
  width: 26px;
  text-align: center;
  font-size: 22px;
  flex-shrink: 0;
}

.user-tree a:hover,
.user-tree a.active,
.user-sidebar-foot a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.user-tree a.active {
  box-shadow: inset 5px 0 0 var(--user-cyan);
}

.user-tree .user-tree {
  margin-left: 16px;
  margin-top: 4px;
}

.user-sidebar-foot {
  display: grid;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-main {
  min-width: 0;
  background: #eef2f7;
}

.user-topbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--user-line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.user-kicker {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--user-muted);
}

.user-topbar h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 750;
  color: var(--user-text);
}

.user-sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--user-text);
  cursor: pointer;
}

.user-top-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--user-text);
  font-size: 14px;
  white-space: nowrap;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--user-panel-soft);
  border: 1px solid var(--user-line);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-content {
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 56px;
  display: grid;
  gap: 20px;
}

.user-hero-panel,
.user-panel,
.user-metric-card {
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: var(--user-panel);
  box-shadow: 0 14px 34px rgba(26, 35, 52, 0.08);
}

.user-hero-panel {
  min-height: 168px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(15, 158, 196, 0.92), rgba(22, 30, 43, 0.98)),
    var(--user-panel);
  color: #ffffff;
}

.user-hero-panel p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
}

.user-hero-panel h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 780;
}

.user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.user-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.user-badges span.on {
  background: rgba(75, 215, 134, 0.18);
  color: #dcffe9;
}

.user-badges span.high {
  background: rgba(255, 207, 102, 0.18);
  color: #fff1bd;
}

.user-hero-metrics {
  display: flex;
  gap: 12px;
}

.user-hero-metrics div {
  width: 112px;
  min-height: 88px;
  display: grid;
  align-content: center;
  justify-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.user-hero-metrics strong {
  font-size: 28px;
}

.user-hero-metrics span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.user-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.user-metric-card {
  min-height: 118px;
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--user-text);
  text-decoration: none;
}

.user-metric-card i,
.panel-mark i {
  color: var(--user-cyan);
  font-size: 22px;
}

.user-metric-card.green i {
  color: var(--user-green);
}

.user-metric-card.amber i {
  color: var(--user-amber);
}

.user-metric-card.rose i {
  color: var(--user-rose);
}

.user-metric-card span {
  color: var(--user-muted);
  font-size: 13px;
}

.user-metric-card strong {
  font-size: 28px;
  line-height: 1;
}

.user-grid.two {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.user-panel {
  padding: 22px;
}

.user-panel-head {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.user-panel-head h3 {
  margin: 0;
  font-size: 18px;
  color: var(--user-text);
}

.user-panel-head a {
  color: var(--user-cyan);
  text-decoration: none;
  font-size: 14px;
}

.panel-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #edf8fb;
}

.profile-basic-editor {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: var(--user-panel-soft);
}

.profile-basic-editor.compact {
  margin-bottom: 0;
}

.profile-avatar-preview {
  width: 96px;
  height: 96px;
  display: inline-flex;
  overflow: hidden;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--user-line);
  box-shadow: 0 10px 24px rgba(26, 35, 52, 0.08);
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-basic-forms {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.user-inline-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.user-inline-form label {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: var(--user-muted);
  font-size: 14px;
}

.user-inline-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--user-text);
  padding: 12px 13px;
  outline: none;
}

.user-inline-form input:focus {
  border-color: rgba(15, 158, 196, 0.68);
  box-shadow: 0 0 0 3px rgba(15, 158, 196, 0.12);
}

.merged-profile-panel {
  display: grid;
  gap: 4px;
}

.merged-profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 16px;
  align-items: stretch;
}

.merged-profile-card {
  min-height: 190px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 158, 196, 0.1), rgba(47, 157, 103, 0.08)),
    var(--user-panel-soft);
}

.merged-profile-card > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.merged-profile-card strong {
  color: var(--user-text);
  font-size: 20px;
  line-height: 1.25;
  word-break: break-word;
}

.merged-profile-card span,
.merged-profile-card small {
  color: var(--user-muted);
  font-size: 13px;
}

.merged-profile-info {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.merged-profile-info .merged-profile-address {
  grid-column: 1 / -1;
}

.user-modal-wrap[hidden] {
  display: none;
}

body.user-modal-open {
  overflow: hidden;
}

.user-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 28px;
}

.user-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 23, 36, 0.48);
}

.user-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(820px, calc(100vh - 56px));
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(13, 23, 36, 0.28);
}

.user-modal-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--user-line);
  background: linear-gradient(135deg, rgba(15, 158, 196, 0.08), rgba(47, 157, 103, 0.06));
}

.user-modal-head h3,
.user-modal-head p {
  margin: 0;
}

.user-modal-head h3 {
  color: var(--user-text);
  font-size: 18px;
}

.user-modal-head p {
  margin-top: 6px;
  color: var(--user-muted);
  font-size: 13px;
}

.user-modal-head button {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--user-muted);
  cursor: pointer;
}

.profile-modal-body {
  overflow-y: auto;
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
}

.user-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.user-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.user-table th,
.user-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--user-line);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

.user-table th {
  color: var(--user-muted);
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--user-amber);
  background: rgba(183, 121, 31, 0.12);
  font-size: 12px;
}

.status-pill.ok {
  color: var(--user-green);
  background: rgba(47, 157, 103, 0.12);
}

.user-info-list,
.user-info-grid {
  display: grid;
  gap: 12px;
  margin: 0;
}

.user-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-info-list div,
.user-info-grid div,
.security-list div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: var(--user-panel-soft);
}

.user-info-list dt,
.user-info-grid dt {
  color: var(--user-muted);
  font-size: 13px;
}

.user-info-list dd,
.user-info-grid dd {
  margin: 0;
  color: var(--user-text);
  font-weight: 650;
  word-break: break-word;
}

.product-strip,
.product-grid {
  display: grid;
  gap: 14px;
}

.product-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-card {
  min-height: 130px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 16px;
}

.product-card.large {
  min-height: 180px;
}

.product-card span {
  color: var(--user-cyan);
  font-size: 12px;
}

.product-card h4 {
  margin: 0;
  color: var(--user-text);
  font-size: 16px;
}

.product-card p {
  margin: 0;
  color: var(--user-muted);
  line-height: 1.6;
}

.product-card strong {
  color: var(--user-rose);
  font-size: 24px;
}

.recharge-page {
  padding: 0;
  overflow: hidden;
}

.recharge-title-row,
.recharge-user-panel,
.recharge-order-form,
.recharge-contact-tip {
  margin: 0 22px;
}

.recharge-title-row {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
}

.recharge-title-row p {
  margin: 0 0 4px;
  color: var(--user-muted);
  font-size: 13px;
}

.recharge-title-row h3 {
  margin: 0;
  font-size: 20px;
  color: var(--user-text);
}

.recharge-user-panel {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 158, 196, 0.12), rgba(47, 157, 103, 0.08)),
    var(--user-panel-soft);
}

.recharge-user-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.recharge-avatar {
  width: 64px;
  height: 64px;
  display: inline-flex;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgba(15, 158, 196, 0.36);
  background: #ffffff;
}

.recharge-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recharge-user-main strong,
.recharge-expire strong {
  display: block;
  color: var(--user-text);
  font-size: 17px;
}

.recharge-user-main span,
.recharge-expire span {
  display: block;
  margin-top: 6px;
  color: var(--user-muted);
  font-size: 13px;
}

.recharge-expire {
  text-align: right;
}

.recharge-order-form {
  margin-top: 16px;
}

.recharge-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--user-line);
  border-radius: 8px 8px 0 0;
  background: #f8fafd;
  overflow: hidden;
}

.recharge-tabs button {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-right: 1px solid var(--user-line);
  background: transparent;
  color: var(--user-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.recharge-tabs button:last-child {
  border-right: 0;
}

.recharge-tabs button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.recharge-tabs button:not(:disabled):hover,
.recharge-tabs button.active {
  background: rgba(15, 158, 196, 0.1);
  color: var(--user-cyan);
}

.recharge-tabs button.active {
  box-shadow: inset 0 -3px 0 var(--user-cyan);
}

.recharge-tabs i {
  font-size: 30px;
}

.recharge-tabs span {
  display: grid;
  gap: 4px;
  text-align: left;
}

.recharge-tabs strong {
  color: inherit;
  font-size: 16px;
}

.recharge-tabs small {
  color: var(--user-muted);
  font-size: 12px;
}

.recharge-feature-section {
  display: none;
  padding: 18px;
  border: 1px solid var(--user-line);
  border-top: 0;
  background: #fbfcff;
}

.recharge-feature-section.active {
  display: block;
}

.recharge-feature-section > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--user-amber);
  font-size: 15px;
}

.recharge-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.recharge-feature-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recharge-feature-grid div {
  min-height: 92px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(15, 158, 196, 0.14);
  border-radius: 8px;
  background: rgba(15, 158, 196, 0.05);
  text-align: center;
}

.recharge-feature-grid i {
  color: var(--user-cyan);
  font-size: 26px;
}

.recharge-feature-grid b {
  color: var(--user-text);
  font-size: 14px;
}

.recharge-feature-grid span {
  color: var(--user-muted);
  font-size: 12px;
}

.recharge-product-area {
  border: 1px solid var(--user-line);
  border-top: 0;
  padding: 18px;
  background: #ffffff;
}

.recharge-product-list {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.recharge-product-list.active {
  display: grid;
}

.recharge-product-card {
  position: relative;
  min-height: 124px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 15px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--user-panel-soft);
  color: var(--user-text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}

.recharge-product-card:hover,
.recharge-product-card.checked {
  transform: translateY(-2px);
  border-color: rgba(15, 158, 196, 0.56);
  background: rgba(15, 158, 196, 0.08);
  box-shadow: 0 10px 24px rgba(26, 35, 52, 0.1);
}

.recharge-product-card.checked::after {
  content: "\2713";
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--user-cyan);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.recharge-product-icon {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.recharge-product-title {
  display: grid;
  gap: 4px;
  padding-right: 42px;
}

.recharge-product-title strong {
  color: var(--user-text);
  font-size: 19px;
}

.recharge-product-title small,
.recharge-product-total,
.recharge-product-card del {
  color: var(--user-muted);
  font-size: 12px;
}

.recharge-product-price {
  color: var(--user-cyan);
  font-size: 16px;
  font-weight: 750;
}

.recharge-product-total b {
  color: var(--user-rose);
  font-size: 17px;
}

.recharge-pay-panel {
  border: 1px solid var(--user-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: #f8fafd;
  overflow: hidden;
}

.recharge-pay-methods {
  display: flex;
  border-bottom: 1px solid var(--user-line);
}

.recharge-pay-methods button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  border: 0;
  border-right: 1px solid var(--user-line);
  background: transparent;
  color: var(--user-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.recharge-pay-methods button:hover,
.recharge-pay-methods button.active {
  color: var(--user-cyan);
  background: rgba(15, 158, 196, 0.08);
}

.recharge-pay-methods i {
  font-size: 24px;
}

.recharge-pay-summary {
  position: relative;
  min-height: 128px;
  display: grid;
  grid-template-columns: 260px auto minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 20px;
}

.recharge-pay-summary > div {
  display: grid;
  gap: 4px;
}

.recharge-pay-summary span,
.recharge-pay-summary small,
.recharge-pay-summary aside {
  color: var(--user-muted);
  font-size: 13px;
}

.recharge-pay-summary strong {
  color: var(--user-rose);
  font-size: 26px;
}

.recharge-pay-summary aside {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--user-line);
  line-height: 1.6;
}

.recharge-pay-summary aside b {
  color: var(--user-text);
}

.recharge-contact-tip {
  margin-top: 16px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 158, 196, 0.16);
  border-radius: 8px;
  background: rgba(15, 158, 196, 0.05);
  color: var(--user-muted);
  font-size: 13px;
}

.recharge-contact-tip strong {
  color: var(--user-cyan);
}

.recharge-success-notice[hidden] {
  display: none;
}

.recharge-success-notice {
  margin: -6px 0 22px;
  padding: 14px 16px;
  border: 1px solid rgba(53, 199, 121, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(53, 199, 121, 0.1), rgba(15, 158, 196, 0.08));
  color: #1f7f4c;
  font-size: 14px;
  line-height: 1.65;
}

.recharge-success-notice strong {
  color: #12935a;
}

.payment-contact-tip {
  padding: 12px 14px;
  border: 1px solid rgba(15, 158, 196, 0.16);
  border-radius: 8px;
  background: rgba(15, 158, 196, 0.05);
  color: var(--user-muted);
  font-size: 13px;
  line-height: 1.6;
}

.recharge-qrcode-wrap[hidden] {
  display: none;
}

.recharge-qrcode-wrap {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 18, 28, 0.62);
}

.recharge-qrcode-dialog {
  width: min(640px, 100%);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  overflow: hidden;
}

.recharge-qrcode-head,
.recharge-qrcode-actions {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--user-line);
}

.recharge-qrcode-head span {
  color: var(--user-text);
  font-weight: 750;
}

.recharge-qrcode-head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: var(--user-panel-soft);
  color: var(--user-muted);
  cursor: pointer;
}

.recharge-qrcode-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.recharge-qrcode-box {
  position: relative;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
}

.recharge-qrcode-box canvas,
.recharge-qrcode-box img {
  max-width: 160px;
  max-height: 160px;
}

.recharge-qrcode-mask[hidden] {
  display: none;
}

.recharge-qrcode-mask {
  position: absolute;
  inset: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(16, 19, 26, 0.68);
}

.recharge-qrcode-mask.blur {
  backdrop-filter: blur(4px);
}

.recharge-qrcode-status {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 750;
}

.recharge-qrcode-status .status-icon {
  font-size: 34px;
}

.recharge-qrcode-status.success {
  color: #35c779;
}

.recharge-qrcode-status.processing {
  color: #f0b83a;
}

.recharge-qrcode-text {
  display: grid;
  gap: 12px;
  color: var(--user-muted);
  font-size: 14px;
}

.recharge-qrcode-text p {
  margin: 0;
}

.recharge-qrcode-text span {
  color: var(--user-text);
  font-weight: 700;
}

.recharge-qrcode-actions {
  justify-content: flex-end;
  border-top: 1px solid var(--user-line);
  border-bottom: 0;
}

.security-list,
.message-list {
  display: grid;
  gap: 12px;
}

.security-list div {
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.security-list i {
  color: var(--user-cyan);
  font-size: 22px;
}

.security-list span {
  color: var(--user-muted);
}

.message-list article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: var(--user-panel-soft);
}

.message-list article.unread {
  border-color: rgba(15, 158, 196, 0.38);
  background: #eefbff;
}

.message-list span,
.message-list time {
  color: var(--user-muted);
  font-size: 12px;
}

.message-list h4 {
  margin: 0;
  font-size: 15px;
}

.message-list p {
  margin: 0;
  color: var(--user-muted);
  line-height: 1.6;
}

.message-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.message-card-head button {
  border: 0;
  background: transparent;
  color: var(--user-cyan);
  cursor: pointer;
}

.message-list pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--user-text);
  line-height: 1.7;
  font-family: inherit;
}

.message-list a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--user-cyan);
  text-decoration: none;
}

.user-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  color: var(--user-muted);
  border: 1px dashed var(--user-line);
  border-radius: 8px;
  background: var(--user-panel-soft);
}

.user-form {
  display: grid;
  gap: 14px;
}

.profile-detail-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.profile-detail-form .profile-address-row,
.profile-detail-form .user-form-actions {
  grid-column: 1 / -1;
}

.user-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.user-form label {
  display: grid;
  gap: 8px;
  color: var(--user-muted);
  font-size: 14px;
}

.user-form input,
.user-form select,
.user-form textarea,
.user-auth-form input {
  width: 100%;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--user-text);
  padding: 12px 13px;
  outline: none;
}

.user-form textarea {
  resize: vertical;
  line-height: 1.7;
}

.user-form input:focus,
.user-form select:focus,
.user-form textarea:focus,
.user-auth-form input:focus {
  border-color: rgba(15, 158, 196, 0.68);
  box-shadow: 0 0 0 3px rgba(15, 158, 196, 0.12);
}

.user-panel-subtitle {
  margin: 6px 0 0;
  color: var(--user-muted);
  font-size: 13px;
  line-height: 1.6;
}

.user-chat {
  display: grid;
  gap: 14px;
}

.user-chat-status {
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(15, 158, 196, 0.22);
  border-radius: 8px;
  background: rgba(15, 158, 196, 0.08);
  color: var(--user-cyan);
  padding: 0 12px;
  font-size: 14px;
}

.user-chat-messages {
  height: 360px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 14px;
}

.user-chat-message {
  width: min(78%, 620px);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.chat-message-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--user-line);
  background: #ffffff;
}

.chat-message-bubble {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
}

.user-chat-message.user {
  justify-self: end;
  flex-direction: row-reverse;
}

.user-chat-message.user .chat-message-bubble {
  border-color: rgba(15, 158, 196, 0.28);
  background: rgba(15, 158, 196, 0.08);
}

.user-chat-message.system {
  justify-self: center;
  width: auto;
  max-width: 78%;
}

.user-chat-message.system .chat-message-bubble {
  background: #eef2f7;
}

.chat-message-bubble > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--user-muted);
  font-size: 12px;
}

.chat-message-bubble p {
  margin: 0;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-attachment {
  display: inline-grid;
  gap: 6px;
  color: var(--user-text);
  text-decoration: none;
}

.chat-attachment.image img {
  max-width: 220px;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
}

.chat-attachment.image span,
.chat-attachment.file span,
.chat-read-state {
  color: var(--user-muted);
  font-size: 12px;
}

.chat-attachment.file {
  width: min(100%, 360px);
  border: 1px solid var(--user-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.chat-read-state {
  justify-self: end;
}

.user-chat-send {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 10px;
  align-items: end;
}

.user-chat-send textarea {
  min-height: 86px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  resize: vertical;
  padding: 12px 13px;
  line-height: 1.7;
  outline: none;
}

.user-chat-send textarea:focus {
  border-color: rgba(15, 158, 196, 0.68);
  box-shadow: 0 0 0 3px rgba(15, 158, 196, 0.12);
}

.user-chat-actions {
  display: grid;
  gap: 8px;
}

.user-chat-file {
  min-height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  color: var(--user-muted);
  cursor: pointer;
  background: #ffffff;
}

.user-chat-file input {
  display: none;
}

.user-chat-file:hover {
  border-color: rgba(15, 158, 196, 0.42);
  color: var(--user-text);
}

.chat-pending-file {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--user-text);
}

.chat-pending-file[hidden] {
  display: none;
}

[data-support-chat-unread][hidden],
[data-user-support-chat-unread][hidden],
[data-support-chat-unread].is-empty,
[data-user-support-chat-unread].is-empty {
  display: none !important;
}

.chat-pending-file img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--user-line);
  border-radius: 6px;
  background: #f8fafc;
}

.chat-pending-file span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--user-muted);
  font-size: 13px;
}

.chat-pending-file button {
  border: 0;
  background: transparent;
  color: var(--user-brand);
  cursor: pointer;
  font: inherit;
}

.user-chat-send .user-form-tip {
  grid-column: 1 / -1;
}

.user-primary-btn,
.user-outline-btn,
.user-auth-form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--user-cyan);
  color: #ffffff;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 650;
}

.user-primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.minute-switch-box {
  display: grid;
  gap: 16px;
}

.user-outline-btn {
  border: 1px solid rgba(15, 158, 196, 0.3);
  background: #ffffff;
  color: var(--user-cyan);
  width: max-content;
}

.user-outline-btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.pay-method-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: var(--user-panel-soft);
  color: var(--user-muted);
  font-size: 14px;
}

.pay-method-bar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--user-text);
}

.pay-method-bar input {
  width: 16px;
  height: 16px;
}

.compact-exchange-form {
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
}

.compact-exchange-form input {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: Consolas, "SFMono-Regular", Menlo, monospace;
  font-weight: 700;
}

.compact-exchange-form .user-form-tip {
  grid-column: 1 / -1;
}

.exchange-tips-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(15, 158, 196, 0.18);
  border-radius: 8px;
  background: rgba(15, 158, 196, 0.06);
}

.exchange-tips-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--user-cyan);
}

.exchange-tips-box p {
  margin: 0;
  color: var(--user-muted);
  line-height: 1.7;
}

.checkin-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}

.checkin-rewards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.checkin-rewards span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: var(--user-panel-soft);
  color: var(--user-muted);
  font-size: 13px;
}

.checkin-rewards strong {
  color: var(--user-cyan);
}

.wallet-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.wallet-filter-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--user-muted);
  text-decoration: none;
  font-size: 13px;
}

.wallet-filter-tabs a.active {
  border-color: rgba(15, 158, 196, 0.34);
  background: rgba(15, 158, 196, 0.08);
  color: var(--user-cyan);
}

.product-card small {
  color: var(--user-muted);
}

.user-table-link,
.user-pagination a {
  color: var(--user-cyan);
  text-decoration: none;
}

.user-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--user-muted);
  font-size: 14px;
}

.user-page-link,
.user-page-current,
.user-page-ellipsis {
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.user-page-link {
  border: 1px solid rgba(15, 158, 196, 0.2);
  background: rgba(15, 158, 196, 0.06);
}

.user-page-link:hover {
  border-color: rgba(15, 158, 196, 0.42);
  background: rgba(15, 158, 196, 0.12);
}

.user-page-current {
  color: #061016;
  background: var(--user-cyan);
  font-weight: 700;
}

.user-page-ellipsis {
  min-width: 22px;
  color: var(--user-muted);
}

.user-pagination-summary {
  color: var(--user-muted);
}

.invite-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 158, 196, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 158, 196, 0.12), rgba(54, 200, 139, 0.1));
}

.invite-hero div {
  display: grid;
  gap: 8px;
}

.invite-hero span,
.invite-link-box span,
.invite-log-list time {
  color: var(--user-muted);
  font-size: 13px;
}

.invite-hero strong {
  color: var(--user-cyan);
  font-size: 34px;
  letter-spacing: 0;
}

.invite-link-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.invite-link-box > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.invite-link-box input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--user-text);
  padding: 12px 14px;
  outline: none;
}

.invite-stats {
  margin-top: 18px;
}

.invite-log-list {
  display: grid;
  gap: 12px;
}

.invite-log-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: var(--user-panel-soft);
}

.invite-log-list article div {
  display: grid;
  gap: 6px;
}

.invite-log-list strong {
  color: var(--user-text);
}

.invite-log-list span {
  color: var(--user-muted);
  line-height: 1.6;
}

.order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 8px;
  background: var(--user-panel-soft);
}

.order-detail-head h2 {
  margin: 12px 0 8px;
  font-size: 22px;
  color: var(--user-text);
}

.order-detail-head p {
  margin: 0;
  color: var(--user-muted);
}

.order-detail-head strong {
  color: var(--user-cyan);
  font-size: 30px;
}

.order-pending-box {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(183, 121, 31, 0.2);
  border-radius: 8px;
  background: rgba(183, 121, 31, 0.08);
}

.order-pending-box h4,
.order-pending-box p {
  margin: 0;
}

.order-pending-box p {
  color: var(--user-muted);
  line-height: 1.7;
}

.order-action-row,
.payment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.payment-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
}

.payment-summary,
.payment-stage {
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: var(--user-panel-soft);
  padding: 18px;
}

.payment-summary h2 {
  margin: 14px 0 8px;
  color: var(--user-cyan);
  font-size: 34px;
}

.payment-summary p {
  margin: 0 0 16px;
  color: var(--user-muted);
  word-break: break-all;
}

.payment-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.payment-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--user-line);
  padding-top: 10px;
}

.payment-summary dt {
  color: var(--user-muted);
}

.payment-summary dd {
  margin: 0;
  font-weight: 650;
  text-align: right;
}

.payment-stage {
  display: grid;
  gap: 14px;
  align-content: start;
}

.payment-state {
  min-height: 228px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px dashed var(--user-line);
  border-radius: 8px;
  background: #ffffff;
  text-align: center;
  color: var(--user-muted);
}

.payment-state i {
  color: var(--user-cyan);
  font-size: 38px;
}

.payment-state strong {
  color: var(--user-text);
  font-size: 18px;
}

.payment-state.ok i,
.payment-state.ok strong {
  color: var(--user-green);
}

.payment-state.pending i {
  color: var(--user-amber);
}

.payment-qr-box {
  min-height: 228px;
  display: grid;
  place-items: center;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  background: #ffffff;
}

.payment-qr-box img,
.payment-qr-box canvas {
  width: min(220px, 80%);
  aspect-ratio: 1;
  object-fit: contain;
}

.user-form-tip {
  min-height: 20px;
  margin: 0;
  color: var(--user-muted);
}

.user-form-tip.success {
  color: var(--user-green);
}

.user-form-tip.error {
  color: var(--user-rose);
}

.user-auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.user-auth-panel {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 30px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
}

.user-auth-brand {
  color: var(--user-text);
  margin-bottom: 26px;
}

.user-auth-panel h1 {
  margin: 0 0 8px;
  font-size: 26px;
}

.user-auth-panel p {
  margin: 0 0 22px;
  color: var(--user-muted);
  line-height: 1.7;
}

.user-auth-error {
  min-height: 36px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(194, 65, 111, 0.24);
  border-radius: 8px;
  background: rgba(194, 65, 111, 0.08);
  color: var(--user-rose) !important;
  padding: 8px 10px;
}

.user-auth-form {
  display: grid;
  gap: 14px;
}

.user-auth-form label {
  display: grid;
  gap: 8px;
  color: var(--user-muted);
}

.user-auth-form button {
  margin-top: 6px;
  width: 100%;
}

.user-auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.user-auth-links a {
  color: var(--user-cyan);
  text-decoration: none;
  font-size: 14px;
}

.webview-only {
  display: none;
}

@media (max-width: 980px) {
  .user-shell {
    grid-template-columns: 1fr;
  }

  .user-sidebar {
    position: fixed;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: 328px;
  }

  .user-sidebar.open {
    transform: translateX(0);
  }

  .user-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .user-topbar {
    justify-content: flex-start;
  }

  .user-top-profile {
    margin-left: auto;
  }

  .user-metric-grid,
  .product-strip,
  .product-grid,
  .merged-profile-layout,
  .recharge-feature-grid,
  .recharge-feature-grid.compact,
  .recharge-product-list,
  .recharge-pay-summary,
  .recharge-qrcode-body,
  .profile-detail-form,
  .profile-basic-editor,
  .user-grid.two,
  .user-info-grid,
  .compact-exchange-form,
  .payment-shell {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .user-content {
    width: min(100% - 24px, 540px);
    margin-top: 14px;
  }

  .user-topbar {
    min-height: 68px;
    padding: 0 14px;
  }

  .user-topbar h1 {
    font-size: 18px;
  }

  .user-top-profile span:last-child {
    display: none;
  }

  .user-hero-panel,
  .user-hero-metrics {
    display: grid;
  }

  .user-hero-panel {
    padding: 22px;
  }

  .user-hero-panel h2 {
    font-size: 24px;
  }

  .user-hero-metrics {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .user-hero-metrics div {
    width: auto;
  }

  .user-metric-grid,
  .product-strip,
  .product-grid,
  .merged-profile-layout,
  .merged-profile-info,
  .recharge-tabs,
  .recharge-feature-grid,
  .recharge-feature-grid.compact,
  .recharge-product-list,
  .recharge-pay-summary,
  .recharge-qrcode-body,
  .profile-detail-form,
  .profile-basic-editor,
  .user-inline-form,
  .user-grid.two,
  .user-info-grid,
  .security-list div,
  .compact-exchange-form,
  .invite-link-box > div,
  .payment-shell {
    grid-template-columns: 1fr;
  }

  .merged-profile-card {
    align-items: flex-start;
  }

  .user-modal-wrap {
    align-items: end;
    padding: 12px;
  }

  .user-modal-dialog {
    max-height: calc(100vh - 24px);
  }

  .profile-modal-body {
    padding: 16px;
  }

  .invite-hero,
  .invite-log-list article,
  .recharge-user-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .recharge-title-row,
  .recharge-user-panel,
  .recharge-order-form,
  .recharge-contact-tip {
    margin-left: 18px;
    margin-right: 18px;
  }

  .recharge-expire {
    text-align: left;
  }

  .recharge-tabs button {
    justify-content: flex-start;
    padding: 0 16px;
  }

  .recharge-pay-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .recharge-pay-methods button {
    justify-content: center;
    padding: 0 12px;
  }

  .recharge-pay-summary aside {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--user-line);
    padding-top: 14px;
  }

  .recharge-qrcode-actions {
    justify-content: stretch;
  }

  .user-panel {
    padding: 18px;
  }

  .user-auth-panel {
    padding: 24px;
  }
}
