.user-center-page {
  --user-bg: #f3f5f0;
  --user-surface: #ffffff;
  --user-line: #dfe4de;
  --user-line-soft: #e9ede8;
  --user-muted: #6f7a74;
  --user-radius: 12px;
  --user-shadow: 0 3px 14px rgba(20, 33, 27, .045);
  min-height: 100vh;
  color: var(--ink);
  background: var(--user-bg);
  font-size: 14px;
  line-height: 1.5;
}

.user-center-page .site-header {
  background: rgba(249, 250, 247, .94);
  border-bottom-color: var(--user-line);
  box-shadow: 0 1px 5px rgba(20, 33, 27, .025);
}

.user-center-page .nav-wrap {
  min-height: 66px;
}

.user-center-page .brand {
  gap: 9px;
  font-size: 18px;
}

.user-center-page .brand-mark {
  width: 33px;
  height: 33px;
  border-radius: 9px;
  font-size: 16px;
}

.user-center-page .btn {
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  font-weight: 700;
}

.user-center-page .btn:hover {
  transform: none;
}

.user-center-page .btn-primary,
.user-center-page .btn-primary:hover {
  box-shadow: none;
}

.user-nav-wrap {
  justify-content: space-between;
}

.user-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
}

.user-nav a {
  position: relative;
  padding: 23px 0;
  color: var(--muted);
}

.user-nav a.active,
.user-nav a:hover {
  color: var(--ink);
}

.user-nav a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
}

.user-nav-actions {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-left: 28px;
}

.user-nav-actions > span {
  max-width: 220px;
  overflow: hidden;
  color: var(--user-muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-nav-actions .btn {
  min-height: 36px;
  padding: 0 15px;
  border-radius: 8px;
  font-size: 14px;
}

.user-main {
  min-height: calc(100vh - 67px);
  padding: 28px 0 56px;
}

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

/* Allow every grid item to shrink before asynchronously loaded service text arrives. */
.user-shell > *,
.user-overview > *,
.user-stats > *,
.user-tab-panel,
.user-quick-layout,
.user-quick-layout > *,
.user-quick-order .order-fields,
.user-quick-order .order-fields > * {
  min-width: 0;
}

.user-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 23px;
  color: var(--white);
  background: var(--dark);
  border: 1px solid #26342d;
  border-radius: 14px;
  box-shadow: 0 5px 16px rgba(15, 25, 20, .08);
}

.user-welcome .eyebrow {
  margin-bottom: 7px;
  color: #b8c2bc;
  font-size: 12px;
  letter-spacing: 1.3px;
}

.user-welcome h1 {
  margin: 0;
  font-size: 29px;
  line-height: 1.18;
  letter-spacing: -1px;
}

.user-welcome > div > p:last-child {
  margin: 6px 0 0;
  color: #aeb8b2;
  font-size: 14px;
}

.user-card {
  background: var(--user-surface);
  border: 1px solid var(--user-line);
  border-radius: var(--user-radius);
  box-shadow: var(--user-shadow);
}

.user-overview {
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 2.2fr);
  gap: 12px;
}

.account-card {
  min-width: 0;
  padding: 18px 20px;
}

.user-card-label,
.user-stat > span,
.user-stat-head > span {
  color: var(--user-muted);
  font-size: 14px;
  font-weight: 600;
}

.account-card > strong {
  display: block;
  margin: 9px 0 15px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: var(--user-muted);
  font-size: 12px;
}

#account-status {
  min-height: 22px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  color: #315f0f;
  background: #f0f9e5;
  border: 1px solid #bfdf91;
  border-radius: 999px;
  font-weight: 700;
}

#account-status.is-disabled {
  color: #9a3412;
  background: #fff2ec;
  border-color: #f2c9b8;
}

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

.user-stat {
  min-width: 0;
  padding: 18px 20px;
}

.user-stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.wallet-recharge-button {
  min-height: 27px;
  padding: 0 11px;
  border-radius: 7px;
  box-shadow: none;
  font-size: 12px;
}

.wallet-recharge-button:hover {
  box-shadow: none;
  transform: none;
}

.user-stat strong {
  display: block;
  margin: 9px 0 4px;
  overflow: hidden;
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-stat small {
  display: block;
  overflow: hidden;
  color: #6f7973;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-page-message {
  min-height: 16px;
  margin: -6px 2px -5px;
  color: #32750f;
  font-size: 14px;
  line-height: 16px;
}

.user-page-message.error {
  color: #b42318;
}

.user-page-message:empty {
  display: none;
}

.user-tabs {
  width: max-content;
  max-width: 100%;
  padding: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  border-radius: 12px;
}

.user-tab {
  min-height: 36px;
  padding: 0 17px;
  flex: 0 0 auto;
  color: var(--user-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.user-tab:hover {
  color: var(--ink);
  background: #f6f8f4;
}

.user-tab.is-active,
.user-tab[aria-selected="true"] {
  color: #315f0f;
  background: #eef9df;
  border-color: #b9dc84;
}

.user-tab:focus-visible {
  outline: 3px solid rgba(83, 145, 34, .2);
  outline-offset: 1px;
}

.user-tab-panel[hidden] {
  display: none;
}

.user-tab-panel {
  scroll-margin-top: 82px;
}

.user-quick-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  align-items: stretch;
  gap: 14px;
}

.user-quick-order {
  padding: 22px 24px;
  background: var(--user-surface);
  border-color: var(--user-line);
  border-radius: var(--user-radius);
  box-shadow: var(--user-shadow);
}

.user-quick-order .panel-title,
.user-quick-faq .panel-title {
  margin-bottom: 17px;
  align-items: center;
}

.user-quick-order .panel-title > span,
.user-quick-faq .panel-title > span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.35px;
}

.user-quick-order .panel-title small,
.user-quick-faq .panel-title small {
  font-size: 12px;
}

.user-quick-order .order-fields {
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px 13px;
}

.user-quick-order .order-fields label {
  color: #4e5a53;
  font-size: 14px;
  font-weight: 600;
}

.user-quick-order .order-fields select,
.user-quick-order .order-fields input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: #fbfcfa;
  border-color: #d5dbd4;
  border-radius: 8px;
  font-size: 14px;
}

.user-quick-order .order-fields input {
  background: #fff;
}

.user-quick-order .order-fields input:focus::placeholder {
  color: transparent;
}

.user-quick-order .order-fields select:hover,
.user-quick-order .order-fields input:hover {
  border-color: #bec7bd;
}

.order-choice-grid {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.category-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.quantity-choice-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.order-choice-card {
  min-width: 0;
  min-height: 42px;
  padding: 7px 9px;
  overflow: hidden;
  color: #4f5b54;
  background: #fbfcfa;
  border: 1px solid #d5dbd4;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: center;
  touch-action: manipulation;
  transition: none;
}

.order-choice-card:hover:not(:disabled) {
  color: var(--ink);
  background: #f5f9ef;
  border-color: #b9ce9e;
}

.order-choice-card:active:not(:disabled),
.order-choice-card.is-active,
.order-choice-card[aria-checked="true"],
.order-choice-card[aria-pressed="true"] {
  color: #18320b;
  background: var(--green);
  border-color: #92ce43;
  box-shadow: inset 0 0 0 1px rgba(54, 105, 12, .12);
}

.order-choice-card:disabled {
  color: #9aa39d;
  background: #f3f5f2;
  border-color: #e2e6e1;
  cursor: not-allowed;
  opacity: .72;
}

.order-choice-placeholder {
  grid-column: 1 / -1;
  min-height: 42px;
  padding: 10px 12px;
  display: grid;
  place-items: center;
  color: var(--user-muted);
  background: #f7f9f6;
  border: 1px dashed #d5dbd4;
  border-radius: 8px;
  font-size: 12px;
}

.quantity-choice-field {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.quantity-choice-grid .custom-quantity-input {
  min-width: 0;
  margin: 0;
  text-align: center;
}

.quantity-choice-grid .custom-quantity-input.is-active {
  color: #315f0f;
  background: #fff;
  border-color: #a8d267;
  box-shadow: inset 0 0 0 1px rgba(121, 189, 41, .15);
}

.user-quick-order .order-summary {
  margin: 16px 0 13px;
  padding: 12px 14px;
  gap: 14px;
  background: #f7f9f5;
  border-color: #dce2da;
  border-radius: 9px;
}

.user-quick-order .order-summary > div {
  gap: 3px;
}

.user-quick-order .order-summary span {
  font-size: 12px;
}

.user-quick-order .order-summary #order-summary-text {
  font-size: 14px;
}

.user-quick-order #order-unit-price {
  color: var(--user-muted);
  font-size: 12px;
  font-weight: 600;
}

.user-quick-order .order-price {
  font-size: 24px;
  letter-spacing: -.7px;
}

.user-quick-order .order-submit {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 8px;
  justify-content: center;
  box-shadow: none;
  font-size: 14px;
}

.user-quick-order .order-submit:hover {
  box-shadow: none;
  transform: none;
}

.user-quick-order .order-submit:disabled {
  cursor: not-allowed;
  box-shadow: none;
  opacity: .55;
  transform: none;
}

.user-quick-order .order-message {
  min-height: 15px;
  margin-top: 8px;
  font-size: 12px;
}

.user-quick-order .order-message.error {
  color: #b42318;
}

.user-quick-faq {
  padding: 22px 24px;
}

.user-faq-title {
  margin-bottom: 4px !important;
}

.user-faq-list article {
  padding: 14px 0;
  border-bottom: 1px solid var(--user-line-soft);
}

.user-faq-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.user-faq-list h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.user-faq-list p {
  margin: 0;
  color: var(--user-muted);
  font-size: 14px;
  line-height: 1.65;
}

.user-table-card {
  overflow: hidden;
}

.user-section-head {
  min-height: 58px;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--user-line);
}

.user-section-head h2 {
  margin: 0 0 2px;
  font-size: 15px;
  line-height: 1.35;
}

.user-section-head p {
  margin: 0;
  color: var(--user-muted);
  font-size: 12px;
}

.user-section-head > a {
  padding: 5px 9px;
  color: #446f1e;
  background: #f2f8e9;
  border: 1px solid #d5e6bd;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.user-section-head > a:hover {
  color: #315f0f;
  background: #eaf7d8;
  border-color: #b8d98a;
}

.user-table-wrap {
  overflow-x: auto;
  scrollbar-color: #bdc5bc #f2f4f0;
  scrollbar-width: thin;
}

.user-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #4f5c55;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.user-table th,
.user-table td {
  height: 42px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--user-line-soft);
  border-right: 1px solid #edf0ec;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.user-table th:last-child,
.user-table td:last-child {
  border-right: 0;
}

.user-table th {
  height: 38px;
  color: #737e78;
  background: #f7f9f6;
  font-size: 14px;
  font-weight: 700;
}

.user-table tbody tr:last-child td {
  border-bottom: 0;
}

.user-table tbody tr:hover {
  background: #fafcf8;
}

.user-table td:first-child {
  color: #344139;
  font-weight: 700;
}

#panel-orders .user-table {
  min-width: 920px;
}

#panel-wallet .user-table {
  min-width: 820px;
}

#panel-orders .user-table td:nth-child(2) {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}

#panel-orders .user-table th:nth-child(6),
#panel-orders .user-table td:nth-child(6) {
  text-align: center;
}

#panel-orders .user-table th,
#panel-orders .user-table td,
#panel-wallet .user-table th,
#panel-wallet .user-table td {
  text-align: center;
}

.user-table .order-service-cell {
  width: 340px;
  max-width: 340px;
}

.order-service-name,
.order-account-link {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-service-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.order-account-link {
  margin-top: 2px;
  color: #4d7e20;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}

.order-account-link:hover {
  text-decoration: underline;
}

.wallet-table td:nth-child(5) {
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-empty {
  height: 72px !important;
  color: var(--user-muted);
  font-size: 14px;
  text-align: center !important;
}

.user-table .user-empty {
  color: var(--user-muted);
  font-weight: 400;
}

.user-list-pagination {
  min-height: 52px;
  padding: 9px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  border-top: 1px solid var(--user-line);
  background: #fff;
  font-variant-numeric: tabular-nums;
}

.user-list-pagination[hidden] {
  display: none;
}

.user-list-pagination button {
  min-width: 32px;
  height: 32px;
  padding: 0 9px;
  color: #4f5c55;
  background: #fff;
  border: 1px solid #d8ded7;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.user-list-pagination button:hover:not(:disabled):not(.is-current) {
  color: #315f0f;
  border-color: #a8d267;
}

.user-list-pagination button.is-current {
  color: #315f0f;
  background: #eef9df;
  border-color: #a8d267;
  cursor: default;
}

.user-list-pagination button:disabled {
  color: #a3aaa5;
  background: #f6f7f5;
  border-color: #e2e6e1;
  cursor: not-allowed;
}

.user-pagination-ellipsis {
  min-width: 20px;
  color: var(--user-muted);
  font-size: 12px;
  text-align: center;
}

.user-pagination-summary {
  margin-left: 5px;
  color: var(--user-muted);
  font-size: 12px;
  white-space: nowrap;
}

.user-status {
  min-height: 21px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.user-status.pending_payment {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.user-status.paid,
.user-status.processing {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.user-status.cancelled {
  color: #59645e;
  background: #f2f4f2;
  border-color: #d7ddd8;
}

.user-status.failed {
  color: #9a3412;
  background: #fff2ec;
  border-color: #f2c9b8;
}

.user-status.completed {
  color: #1f6c46;
  background: #eaf7ef;
  border-color: #bfe2cd;
}

.amount-positive {
  color: #2d7110;
  font-weight: 800;
}

.amount-negative {
  color: #b42318;
  font-weight: 800;
}

.user-center-page dialog {
  padding: 28px 30px;
  border-color: #cfd6ce;
  border-radius: 14px;
  box-shadow: 0 20px 54px rgba(10, 16, 13, .22);
}

.user-center-page dialog h2 {
  margin-bottom: 7px;
  font-size: 24px;
  letter-spacing: -.6px;
}

.user-center-page dialog > p:not(.eyebrow) {
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.6;
}

.user-center-page dialog .eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
}

.user-center-page .dialog-close {
  top: 12px;
  right: 12px;
  height: 27px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 12px;
}

.user-center-page dialog input {
  height: 43px;
  border-radius: 8px;
  font-size: 14px;
}

.user-center-page .dialog-form {
  gap: 10px;
}

.recharge-form > label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.recharge-amount-wrap {
  position: relative;
}

.recharge-amount-wrap > span {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 1;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-50%);
}

.recharge-amount-wrap input {
  padding-left: 31px;
}

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

.recharge-presets button {
  height: 34px;
  color: #4f5c55;
  background: #f7f8f4;
  border: 1px solid var(--user-line);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.recharge-presets button:hover {
  color: #315f0f;
  background: #eefbdc;
  border-color: #b7df7d;
}

.recharge-preview {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--user-muted);
  background: #f7f8f4;
  border: 1px solid var(--user-line-soft);
  border-radius: 8px;
  font-size: 12px;
}

.recharge-preview strong {
  color: #b42318;
  font-size: 14px;
}

.user-center-page dialog .btn {
  min-height: 40px;
  border-radius: 8px;
  font-size: 14px;
}

.user-center-page dialog .btn-primary {
  box-shadow: none;
}

.user-center-page dialog .btn-primary:hover {
  box-shadow: none;
  transform: none;
}

.user-center-page .dialog-message {
  min-height: 16px;
  margin-top: 7px;
  font-size: 12px;
}

.order-success-dialog {
  width: min(440px, calc(100% - 32px));
  text-align: center;
}

.order-success-dialog .eyebrow {
  justify-content: center;
}

.order-success-dialog > p:not(.eyebrow) {
  display: block;
  margin-bottom: 16px;
}

.order-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 13px;
  display: grid;
  place-items: center;
  color: #315f0f;
  background: #eefbdc;
  border: 1px solid #b7df7d;
  border-radius: 50%;
  font-size: 23px;
  font-weight: 900;
}

.order-success-number {
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--user-muted);
  background: #f7f8f4;
  border: 1px solid var(--user-line);
  border-radius: 8px;
  font-size: 12px;
  text-align: left;
}

.order-success-number + .order-success-number {
  margin-top: 8px;
}

.order-success-number strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-center-page .order-success-dialog .dialog-actions {
  gap: 9px;
  margin-top: 14px;
}

@media (max-width: 950px) {
  .user-nav { display: none; }
  .user-overview { grid-template-columns: 1fr; }
  .user-quick-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .user-nav-actions > span { display: none; }
  .user-main { padding: 20px 0 42px; }
  .user-shell { gap: 12px; }
  .user-welcome { align-items: flex-start; flex-direction: column; padding: 20px; }
  .user-welcome h1 { font-size: 26px; }
  .user-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .user-stats { display: contents; }
  .account-card,
  .user-stat { min-height: 112px; padding: 14px; }
  .account-card > strong { margin: 8px 0 12px; font-size: 14px; }
  .user-stat strong { margin: 10px 0 5px; font-size: 21px; }
  .user-stat small { line-height: 1.45; text-overflow: clip; white-space: normal; }
  .wallet-recharge-button { min-height: 25px; padding: 0 9px; }
  .user-tabs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .user-tab { width: 100%; padding: 0 7px; }
  .user-quick-order,
  .user-quick-faq { padding: 20px; }
  .user-quick-order .panel-title,
  .user-quick-faq .panel-title { align-items: flex-start; }
  .user-quick-order .order-fields { grid-template-columns: 1fr; gap: 6px; }
  .user-quick-order .order-fields label,
  .user-quick-order .order-fields .select-wrap,
  .user-quick-order .order-fields input,
  .user-quick-order .order-fields .order-choice-grid,
  .user-quick-order .order-fields .quantity-choice-field { grid-column: 1; }
  .category-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quantity-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .user-quick-order .order-summary { align-items: stretch; flex-direction: column; }
  .user-quick-order .order-summary > div {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .user-table-card {
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .user-list-pagination {
    margin-top: 10px;
    padding: 9px 10px;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--user-surface);
    border: 1px solid var(--user-line);
    border-radius: 10px;
  }

  .user-pagination-summary {
    width: 100%;
    margin: 1px 0 0;
    text-align: center;
  }

  .user-section-head {
    margin-bottom: 10px;
    background: var(--user-surface);
    border: 1px solid var(--user-line);
    border-radius: 10px;
  }

  .user-table-wrap {
    overflow: visible;
  }

  #panel-orders .user-table,
  #panel-wallet .user-table,
  .user-table tbody {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .user-table thead {
    display: none;
  }

  .user-table tbody {
    display: grid;
    gap: 10px;
  }

  .user-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    background: var(--user-surface);
    border: 1px solid var(--user-line);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(20, 33, 27, .035);
  }

  .user-table th,
  .user-table td,
  #panel-orders .user-table th,
  #panel-orders .user-table td,
  #panel-wallet .user-table th,
  #panel-wallet .user-table td {
    width: auto;
    max-width: none;
    height: auto;
    min-height: 54px;
    padding: 9px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--user-line-soft);
    color: #344139;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-overflow: ellipsis;
    white-space: normal;
  }

  #panel-orders .user-table td:nth-child(odd),
  #panel-wallet .user-table td:nth-child(odd) {
    border-right: 1px solid var(--user-line-soft);
  }

  .user-table td::before {
    display: block;
    margin-bottom: 3px;
    color: var(--user-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
  }

  #panel-orders .user-table td:nth-child(1)::before { content: "订单号"; }
  #panel-orders .user-table td:nth-child(2)::before { content: "服务"; }
  #panel-orders .user-table td:nth-child(3)::before { content: "数量"; }
  #panel-orders .user-table td:nth-child(4)::before { content: "初始数据"; }
  #panel-orders .user-table td:nth-child(5)::before { content: "金额"; }
  #panel-orders .user-table td:nth-child(6)::before { content: "状态"; }
  #panel-orders .user-table td:nth-child(7)::before { content: "下单时间"; }

  #panel-wallet .user-table td:nth-child(1)::before { content: "类型"; }
  #panel-wallet .user-table td:nth-child(2)::before { content: "订单号"; }
  #panel-wallet .user-table td:nth-child(3)::before { content: "金额"; }
  #panel-wallet .user-table td:nth-child(4)::before { content: "变动后余额"; }
  #panel-wallet .user-table td:nth-child(5)::before { content: "说明"; }
  #panel-wallet .user-table td:nth-child(6)::before { content: "时间"; }

  #panel-orders .user-table td:nth-child(1),
  #panel-orders .user-table td:nth-child(2),
  #panel-orders .user-table td:nth-child(7),
  #panel-wallet .user-table td:nth-child(5),
  #panel-wallet .user-table td:nth-child(6) {
    grid-column: 1 / -1;
    border-right: 0;
  }

  #panel-orders .user-table td:nth-child(2),
  #panel-wallet .user-table td:nth-child(5) {
    background: #fafcf8;
  }

  #panel-orders .user-table td:last-child,
  #panel-wallet .user-table td:last-child {
    border-bottom: 0;
  }

  #panel-orders .user-table td.order-service-cell {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }

  .order-service-name,
  .order-account-link {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  #panel-orders .user-table .user-empty,
  #panel-wallet .user-table .user-empty {
    min-height: 82px;
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    border: 0;
    color: var(--user-muted);
    font-weight: 400;
  }

  #panel-orders .user-table .user-empty::before,
  #panel-wallet .user-table .user-empty::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .user-center-page .nav-wrap { min-height: 60px; }
  .user-center-page .brand { font-size: 16px; }
  .user-nav-actions { margin-left: auto; }
  .user-nav-actions .btn { min-height: 34px; padding: 0 12px; font-size: 12px; }
  .user-overview { gap: 8px; }
  .account-card,
  .user-stat { min-height: 108px; padding: 12px; }
  .user-card-label,
  .user-stat > span,
  .user-stat-head > span { font-size: 12px; }
  .user-stat strong { font-size: 19px; }
  .user-stat small { font-size: 12px; }
  .quantity-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-quick-order .order-fields .quantity-choice-grid .custom-quantity-input { grid-column: 1 / -1; }
  .user-center-page dialog { padding: 25px 20px; }
}
