:root {
  --bg: #f3f7ff;
  --surface: #ffffff;
  --surface-soft: #edf4ff;
  --ink: #14213d;
  --muted: #62718f;
  --line: rgba(53, 107, 255, 0.14);
  --blue: #2563ff;
  --blue-deep: #173fb8;
  --glow: 0 28px 60px rgba(37, 99, 255, 0.14);
  --container: 1680px;
  --font-sans: "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(71, 127, 255, 0.16), transparent 24%),
    radial-gradient(circle at left center, rgba(37, 99, 255, 0.1), transparent 20%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 45px rgba(20, 33, 61, 0.08);
}

.topbar.compact {
  position: static;
  border-radius: 28px;
}

.header-actions,
.auth-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 64px;
  height: 64px;
  padding: 4px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(37, 99, 255, 0.16), rgba(37, 99, 255, 0.02));
}

.brand strong {
  display: block;
  font-size: 1.05rem;
}

.brand span,
.section-heading p,
.hero-text,
.account-subtitle,
.panel-label,
.overview-panel span,
.menu-panel small,
.inventory-panel p,
.product-meta {
  color: var(--muted);
}

.brand span:empty,
.admin-sidebar-brand span:empty {
  display: none;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-actions a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--muted);
  transition: 180ms ease;
}

.top-action-button {
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  transition: 180ms ease;
}

.top-actions a:hover,
.top-actions a.is-active,
.top-action-button:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 14px 26px rgba(37, 99, 255, 0.28);
}

.home-layout,
.my-layout,
.admin-layout {
  display: grid;
  gap: 24px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 18px;
  min-height: calc(100vh - 240px);
  min-height: calc(100svh - 240px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 18px 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, #071d3b 0%, #082343 100%);
  box-shadow: 0 20px 44px rgba(7, 29, 59, 0.2);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-brand img {
  width: 46px;
  height: 46px;
  padding: 3px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-brand strong {
  font-size: 14px;
  line-height: 1.35;
}

.admin-sidebar-brand strong,
.admin-sidebar-brand span {
  display: block;
  color: #fff;
}

.admin-sidebar-brand span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav-item,
.admin-nav-group-toggle {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: none;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 120ms ease, background-color 120ms ease, transform 80ms ease;
}

.admin-nav-group-toggle:active {
  transform: translateY(1px);
}

.admin-nav-item:hover,
.admin-nav-item.is-active,
.admin-nav-group-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.admin-nav-group.has-active > .admin-nav-group-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.admin-nav-group.is-open > .admin-nav-group-toggle {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.admin-sidebar::-webkit-scrollbar {
  width: 4px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.admin-nav-group {
  display: grid;
}

.admin-nav-group-toggle {
  justify-content: space-between;
  width: 100%;
  font: inherit;
}

.admin-nav-chevron {
  width: 7px;
  height: 7px;
  margin-right: 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.76;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.admin-nav-group.is-open .admin-nav-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.admin-nav-children {
  display: grid;
  gap: 3px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  will-change: height, opacity;
  transition: height 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 110ms ease;
}

.admin-nav-group.is-open .admin-nav-children {
  opacity: 1;
}

.admin-nav-children .admin-nav-item {
  min-height: 36px;
  margin-left: 8px;
  padding-left: 16px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 600;
}

.admin-nav-children .admin-nav-item.is-active {
  color: #fff;
}

.admin-nav-children .admin-nav-item:first-child {
  margin-top: 3px;
}

.admin-nav-children .admin-nav-item:last-child {
  margin-bottom: 2px;
}

.admin-nav-children .admin-nav-item::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.62;
}

.admin-nav-children .admin-nav-item.is-active::before {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.admin-content {
  display: grid;
  gap: 20px;
}

.admin-section {
  display: none;
  gap: 24px;
}

.admin-section.is-active {
  display: grid;
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-stat-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(70, 113, 240, 0.12);
  box-shadow: var(--glow);
}

.admin-stat-shortcut {
  width: 100%;
  border: 1px solid rgba(70, 113, 240, 0.12);
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.admin-stat-shortcut:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 255, 0.24);
  box-shadow: 0 20px 38px rgba(37, 99, 255, 0.12);
}

.admin-stat-shortcut:focus-visible {
  outline: 3px solid rgba(37, 99, 255, 0.2);
  outline-offset: 2px;
}

.admin-stat-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.admin-stat-card strong {
  display: block;
  font-size: 1.8rem;
}

.hero-panel,
.menu-panel,
.product-section,
.selection-panel,
.account-card,
.my-overview,
.order-board,
.product-form,
.inventory-panel,
.overview-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(70, 113, 240, 0.12);
  box-shadow: var(--glow);
}

.menu-panel-top {
  padding: 0;
  margin-top: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  min-height: 420px;
  padding: 44px;
  border-radius: 36px;
  background: linear-gradient(130deg, rgba(15, 42, 128, 0.96), rgba(37, 99, 255, 0.92));
  color: #fff;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -8% -34% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 62%);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.hero-copy h1 {
  margin: 0 0 16px;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.05;
}

.hero-text {
  max-width: 48ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.hero-cta,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-btn,
.ghost-btn,
.buy-button,
.toggle-button,
.delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  transition: transform 180ms ease;
}

.primary-btn,
.buy-button,
.toggle-button {
  color: #fff;
  background: linear-gradient(135deg, #4b80ff, #2c59dd);
  box-shadow: 0 16px 30px rgba(28, 66, 200, 0.24);
}

.ghost-btn {
  color: var(--blue-deep);
  background: rgba(255, 255, 255, 0.88);
}

.delete-button {
  color: #c53434;
  background: rgba(197, 52, 52, 0.1);
}

.ghost-btn.small {
  min-height: 40px;
}

.primary-btn.small {
  min-height: 40px;
  min-width: auto;
}

.delete-button.small {
  min-height: 40px;
}

.primary-btn:hover,
.ghost-btn:hover,
.buy-button:hover,
.toggle-button:hover,
.delete-button:hover {
  transform: translateY(-1px);
}

.buy-button[disabled] {
  background: #c4cfe7;
  box-shadow: none;
  cursor: not-allowed;
}

.primary-btn[disabled],
.ghost-btn[disabled],
.toggle-button[disabled],
.delete-button[disabled] {
  opacity: 0.56;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.hero-core {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 220px;
  height: 220px;
  border-radius: 42px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.24);
  animation: floatCore 6s ease-in-out infinite;
}

.hero-core img {
  width: 128px;
  height: 128px;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ring-a {
  width: 290px;
  height: 290px;
  animation: spinSlow 14s linear infinite;
}

.ring-b {
  width: 360px;
  height: 360px;
  border-style: dashed;
  opacity: 0.44;
  animation: spinSlowReverse 18s linear infinite;
}

.menu-panel,
.selection-panel,
.product-section,
.account-card,
.my-overview,
.order-board,
.product-form,
.inventory-panel {
  padding: 26px;
  border-radius: 30px;
}

.menu-panel-top {
  border-radius: 0;
}

.section-title,
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title span,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.product-sort-box {
  display: inline-grid;
  gap: 6px;
  justify-items: end;
  min-width: 206px;
}

.product-sort-box span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.product-sort-box select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 14px;
  background: #fff;
  color: var(--blue-deep);
  font-size: 0.95rem;
  outline: none;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.menu-board {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0 16px;
  min-height: 148px;
  padding: 22px 20px 20px;
  border-radius: 6px;
  background: linear-gradient(180deg, #4260ff 0%, #314df0 100%);
  box-shadow: 0 14px 26px rgba(31, 61, 198, 0.28);
}

.menu-board-title {
  display: inline-flex;
  align-items: center;
  color: #ffd862;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.menu-board-grid {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px 18px;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 17px;
  line-height: 1;
  white-space: nowrap;
}

.menu-link.is-active {
  color: #ffd862;
}

.menu-link.is-active .menu-link-icon {
  background: rgba(255, 216, 98, 0.26);
  border-color: rgba(255, 216, 98, 0.42);
}

.menu-link-icon {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.menu-link-icon svg {
  width: 12px;
  height: 12px;
  display: block;
  color: #ffffff;
}

.menu-link-icon img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #2f5dff, #1742bf);
  box-shadow: 0 16px 22px rgba(37, 99, 255, 0.18);
}

.platform-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.8rem;
  font-weight: 700;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 340px;
  gap: 24px;
}

.content-layout-top {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.content-layout-top > .menu-panel-top {
  flex: 1;
}

.content-layout-top > .account-panel {
  width: 420px;
  flex: 0 0 420px;
}

.my-center-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.my-center-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(70, 113, 240, 0.12);
  box-shadow: var(--glow);
}

.my-sidebar-block {
  display: grid;
  gap: 12px;
}

.my-sidebar-block h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--ink);
}

.my-sidebar-links {
  display: grid;
  gap: 8px;
}

.my-sidebar-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: linear-gradient(180deg, #f9fbff, #eef4ff);
  border: 1px solid rgba(37, 99, 255, 0.08);
}

.my-sidebar-links a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.18);
}

.my-sidebar-links a.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.18);
}

.my-center-content {
  display: grid;
  gap: 24px;
}

.my-section-panel {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(70, 113, 240, 0.12);
  box-shadow: var(--glow);
}

.my-section-panel[hidden] {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.product-pagination {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 22px;
}

.product-pagination-summary {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.product-pagination-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.product-page-btn {
  min-width: 46px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-deep);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-page-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.24);
  box-shadow: 0 12px 22px rgba(148, 163, 184, 0.12);
}

.product-page-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.18);
}

.product-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.selection-panel {
  display: grid;
  gap: 18px;
  padding: 24px 28px;
  border-radius: 30px;
}

.selection-panel[hidden] {
  display: none;
}

.selection-panel-head h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.selection-panel-head p {
  margin: 0;
  color: var(--muted);
}

.selection-group {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.selection-label {
  padding-top: 10px;
  color: var(--ink);
  font-weight: 700;
}

.selection-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.selection-empty {
  padding: 10px 0;
  color: var(--muted);
}

.selection-chip {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, #f9fbff, #eef4ff);
  color: var(--muted);
  transition: 180ms ease;
}

.selection-chip:hover,
.selection-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.2);
}

.category-builder {
  display: grid;
  gap: 10px;
}

.category-builder-list {
  display: grid;
  gap: 10px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.category-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.category-icon-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.2);
}

.category-icon-btn.is-sort {
  font-size: 1.1rem;
  color: var(--blue-deep);
  background: linear-gradient(180deg, #f8fbff, #e9f1ff);
  border: 1px solid rgba(37, 99, 255, 0.14);
  box-shadow: none;
}

.category-icon-btn.is-remove {
  background: linear-gradient(135deg, #ff7d7d, #ff5a66);
  box-shadow: 0 16px 28px rgba(255, 90, 102, 0.2);
}

.category-builder-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.upload-dropzone {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px 18px;
  border: 1.5px dashed rgba(37, 99, 255, 0.24);
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  transition: 180ms ease;
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
  border-color: rgba(37, 99, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.08);
  background: linear-gradient(180deg, #fafdff, #e9f1ff);
}

.upload-dropzone.has-file {
  border-style: solid;
}

.upload-dropzone-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  flex: none;
  color: #fff;
  font-size: 1.7rem;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.18);
}

.upload-dropzone-copy {
  display: grid;
  gap: 4px;
}

.upload-dropzone-copy strong {
  font-size: 1rem;
  color: var(--ink);
}

.upload-dropzone-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.product-image-preview {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  border: 1px solid rgba(37, 99, 255, 0.14);
}

.product-image-preview img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex: none;
  background: #eaf1ff;
}

.product-image-preview-copy {
  display: grid;
  gap: 4px;
}

.product-image-preview-copy strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.product-image-preview-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-images-preview {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.detail-image-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}

.detail-image-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: #eaf1ff;
}

.detail-image-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.detail-image-actions span {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-image-remove {
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff7d7d, #ff5a66);
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(255, 90, 102, 0.18);
}

.product-card,
.inventory-item,
.order-item {
  overflow: hidden;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

.product-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  padding: 14px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 34px rgba(37, 99, 255, 0.12);
}

.product-card.is-maintenance {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.68;
}

.product-card.is-maintenance:hover {
  transform: none;
  box-shadow: none;
}

.product-card.is-maintenance .product-foot {
  justify-content: flex-end;
}

.maintenance-button {
  color: #fff;
  background: #6b7280;
  box-shadow: none;
  cursor: not-allowed;
}

.product-cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, #f5f9ff, #eaf1ff);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 255, 0.08);
}

.product-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #f8fbff;
}

.product-cover.is-placeholder img {
  object-fit: contain;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.product-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  padding-top: 10px;
}

.product-min-purchase {
  padding-top: 10px;
  color: #ff5a4a;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
}

.product-min-purchase.is-muted {
  color: var(--muted);
  font-weight: 600;
}

.product-copy h3 {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-path {
  min-height: 1.6em;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  margin: 0;
  min-height: 3.2em;
  line-height: 1.6;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
}

.product-foot strong {
  color: #ff4d3f;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0;
}

.product-foot strong.price-text-muted,
.product-detail-price strong.price-text-muted {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}

.product-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 12px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, #f5f9ff, #eaf1ff);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 255, 0.08);
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  background: #f8fbff;
}

.product-thumb.is-placeholder img {
  object-fit: contain;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #f5f9ff);
}

.tag-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.tag-badge {
  position: absolute;
  top: 26px;
  right: 26px;
  color: #fff;
  background: linear-gradient(135deg, #ff7d7d, #ff4d65);
}

.product-info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
}

.product-name {
  display: -webkit-box;
  min-height: 2.8em;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta-path {
  min-height: 1.6em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

.product-meta-description {
  display: -webkit-box;
  min-height: 3.2em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
}

.price-value {
  color: #ff4d3f;
  font-size: 1.7rem;
  font-weight: 700;
}

.price-value-hint {
  color: #6f7f9f;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.supplier-dispatch-editor.is-collapsed .supplier-dispatch-head {
  margin-bottom: 0;
}

.center-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  min-width: 180px;
  max-width: min(82vw, 320px);
  padding: 14px 22px;
  border-radius: 16px;
  background: rgba(17, 27, 54, 0.88);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 18px 40px rgba(31, 77, 197, 0.24);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.center-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.center-toast.is-success {
  background: rgba(22, 33, 62, 0.92);
}

.account-card {
  position: sticky;
  top: 106px;
  padding-top: 22px;
}

.account-card-top {
  top: 0;
  margin-top: 0;
}

.account-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0;
  border-radius: 50%;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #eef4ff, #dbe8ff);
}

.avatar-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.user-avatar-button {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(37, 99, 255, 0.16);
  cursor: pointer;
  transition: box-shadow 160ms ease;
}

.user-avatar-button::after {
  content: "更换";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 3px 0 4px;
  color: #fff;
  background: rgba(22, 53, 120, 0.76);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: center;
}

.user-avatar-button:hover:not(:disabled) {
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.1);
}

.user-avatar-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.user-avatar-button:disabled {
  cursor: default;
}

.user-avatar-button:disabled::after {
  display: none;
}

.user-avatar-entry {
  display: grid;
  flex-shrink: 0;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

html:not([data-user-avatar-enabled="true"]) .user-avatar-entry > span,
.user-avatar-entry > span[hidden] {
  display: none;
}

.admin-avatar-config {
  max-width: 820px;
  padding: clamp(20px, 3vw, 32px);
}

.admin-avatar-config-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
}

.admin-avatar-config-toggle > span {
  display: grid;
  gap: 8px;
}

.admin-avatar-config-toggle strong {
  font-size: 1.1rem;
}

.admin-avatar-config-toggle > span > span,
.admin-avatar-config-help,
.admin-avatar-config-status {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.9rem;
}

.admin-avatar-config-toggle input {
  appearance: none;
  flex: 0 0 48px;
  width: 48px;
  height: 28px;
  margin: 0;
  padding: 3px;
  border: 1px solid #bdc9de;
  border-radius: 20px;
  background: #dce4f1;
  cursor: pointer;
}

.admin-avatar-config-toggle input::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 150ms ease;
}

.admin-avatar-config-toggle input:checked {
  border-color: var(--blue);
  background: var(--blue);
}

.admin-avatar-config-toggle input:checked::before {
  transform: translateX(20px);
}

.admin-avatar-config-toggle input:focus-visible {
  outline: 3px solid #b8cbff;
  outline-offset: 4px;
}

.admin-avatar-config-toggle input:disabled {
  opacity: 0.55;
  cursor: default;
}

.admin-avatar-config-summary {
  margin-top: 26px;
  font-weight: 700;
}

.admin-avatar-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.admin-avatar-config-actions button:disabled {
  opacity: 0.55;
  cursor: default;
}

.admin-avatar-config-status {
  min-height: 1.7em;
  margin-bottom: 0;
}

.admin-avatar-config-status.is-error {
  color: #c52639;
}

.user-avatar-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

body[data-page="mobile-my"] .user-avatar-button {
  width: 60px;
  height: 60px;
}

body[data-page="mobile-my"] .user-avatar-identity .mobile-summary-figure {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.auth-modal-dialog.user-avatar-dialog {
  width: min(calc(100% - 24px), 420px);
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  margin-top: min(8vh, 48px);
  overflow-y: auto;
}

.user-avatar-dialog .auth-modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.user-avatar-preview {
  display: block;
  width: 176px;
  height: 176px;
  margin: 24px auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px #f0f5ff;
}

.user-avatar-help,
.user-avatar-status {
  margin: 12px 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}

.user-avatar-status:empty {
  display: none;
}

.user-avatar-status.is-error {
  color: #bd263b;
}

.user-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.user-avatar-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}


.account-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
}

.account-subtitle {
  margin: 0 0 20px;
  text-align: center;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.product-section-wide {
  width: 100%;
}

.status-strip.large {
  margin-bottom: 18px;
}

.status-item {
  padding: 14px 10px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 255, 0.08);
  background: linear-gradient(180deg, #f6f9ff, #ebf2ff);
  cursor: pointer;
}

.status-item.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.16);
}

.status-item strong {
  display: block;
  color: var(--blue);
  font-size: 1.18rem;
}

.status-item.is-active strong,
.status-item.is-active span {
  color: #fff;
}

.status-item span {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

body[data-page="home"] .account-card .status-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 320px;
  margin: 0 auto 18px;
}

body[data-page="home"] .account-card .status-item {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 84px;
  padding: 14px 10px 12px;
  border-radius: 20px;
}

body[data-page="home"] .account-card .status-item strong {
  font-size: 1.55rem;
  line-height: 1;
  margin-bottom: 6px;
}

body[data-page="home"] .account-card .status-item span {
  font-size: 0.96rem;
  line-height: 1.15;
  white-space: normal;
}

body[data-page="home"] .account-card .quick-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 320px;
  margin: 8px auto 0;
}

body[data-page="home"] .account-card .quick-links a {
  min-height: 78px;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  background: linear-gradient(180deg, #f8fbff, #edf3ff);
  box-shadow: 0 12px 24px rgba(37, 99, 255, 0.08);
  color: #23314f;
  font-weight: 600;
}

body[data-page="home"] .account-card .quick-links a::before {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(37, 99, 255, 0.1);
  color: var(--blue);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

body[data-page="home"] .account-card .quick-links a:nth-child(1)::before {
  content: "账";
}

body[data-page="home"] .account-card .quick-links a:nth-child(2)::before {
  content: "充";
}

body[data-page="home"] .account-card .quick-links a:nth-child(3)::before {
  content: "佣";
}

body[data-page="home"] .account-card .quick-links a:nth-child(4)::before {
  content: "单";
}

body[data-page="home"] .account-card .quick-links a span {
  font-size: 0.95rem;
  line-height: 1.15;
}

.my-order-toolbar {
  margin-bottom: 18px;
}

.my-order-filter-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 22px 0;
  padding: 1px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #15358d, #3156d8);
}

.member-banner div {
  padding: 18px 16px;
  background: linear-gradient(135deg, rgba(10, 28, 90, 0.24), rgba(255, 255, 255, 0.04));
}

.member-banner strong,
.member-banner span {
  display: block;
}

.member-banner span {
  margin-top: 6px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  text-align: center;
}

.quick-links a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 62px;
  padding: 8px 6px;
  border-radius: 14px;
  background: transparent;
  color: #30384A;
  white-space: nowrap;
}

.quick-links a svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.quick-links a span {
  font-size: 0.98rem;
  line-height: 1;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.overview-panel {
  padding: 22px;
  border-radius: 22px;
}

.overview-panel strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.order-list,
.inventory-list {
  display: grid;
  gap: 14px;
}

.nav-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-item-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-height: 48px;
}

.nav-item-preview svg,
.nav-item-preview img {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-item-preview img {
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.form-state-hint {
  margin: 0 0 16px;
  color: var(--muted);
}

.nav-admin-shell {
  display: grid;
  grid-template-columns: minmax(380px, 460px) minmax(0, 1fr);
  gap: 28px;
}

.nav-admin-side {
  display: grid;
  gap: 18px;
  align-self: start;
}

.nav-admin-side-card {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(70, 113, 240, 0.12);
  box-shadow: var(--glow);
}

.nav-admin-side-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.nav-admin-side-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.product-inspection-status-card,
.product-zero-sale-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff, #f3f7ff);
  border: 1px solid rgba(37, 99, 255, 0.12);
}

.product-zero-sale-card h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--blue-deep);
}

.product-side-fold {
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  background: linear-gradient(180deg, #fbfdff, #f3f7ff);
  overflow: hidden;
}

.product-side-fold summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 800;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-side-fold summary::-webkit-details-marker {
  display: none;
}

.product-side-fold summary::after {
  content: "展开";
  font-size: 0.84rem;
  color: var(--blue);
  font-weight: 700;
}

.product-side-fold[open] summary::after {
  content: "收起";
}

.product-side-fold > .product-inspection-status-card,
.product-side-fold > .product-zero-sale-card {
  border: none;
  border-top: 1px solid rgba(37, 99, 255, 0.08);
  border-radius: 0;
  background: transparent;
}

.inspection-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.inspection-status-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(37, 99, 255, 0.08);
}

.inspection-status-item span {
  color: var(--muted);
  font-size: 0.84rem;
}

.inspection-status-item strong {
  color: var(--blue-deep);
  font-size: 0.98rem;
}

.nav-admin-side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-admin-main {
  display: grid;
  gap: 18px;
}

.nav-admin-toolbar {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(70, 113, 240, 0.12);
}

.nav-admin-toolbar input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #f8fbff;
  outline: none;
}

.nav-admin-toolbar input:focus {
  border-color: rgba(37, 99, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.1);
}

.admin-order-toolbar {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(70, 113, 240, 0.12);
}

.admin-order-status-strip {
  margin-bottom: 18px;
}

.admin-order-status-strip .status-item {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 84px;
}

.admin-order-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-order-filter-grid label {
  display: grid;
  gap: 8px;
}

.admin-order-filter-grid span {
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-order-filter-grid input,
.admin-order-filter-grid select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 14px;
  background: #fff;
  outline: none;
}

.admin-order-filter-grid input:focus,
.admin-order-filter-grid select:focus {
  border-color: rgba(37, 99, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.1);
}

.admin-order-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-order-cleanup-box {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 90, 102, 0.18);
  background: linear-gradient(180deg, #fff8f8, #fff2f4);
}

.admin-order-cleanup-copy {
  display: grid;
  gap: 6px;
}

.admin-order-cleanup-copy strong {
  color: #b42331;
  font-size: 1rem;
}

.admin-order-cleanup-copy p {
  margin: 0;
  color: #7a4b55;
  font-size: 0.92rem;
  line-height: 1.6;
}

.admin-order-cleanup-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(120px, 160px) minmax(180px, 220px) auto;
  gap: 12px;
  align-items: end;
}

.admin-order-cleanup-form label {
  display: grid;
  gap: 8px;
}

.admin-order-cleanup-form span {
  font-size: 0.9rem;
  color: var(--muted);
}

.admin-order-cleanup-form input,
.admin-order-cleanup-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 90, 102, 0.18);
  border-radius: 14px;
  background: #fff;
  outline: none;
}

.admin-order-cleanup-form input:focus,
.admin-order-cleanup-form select:focus {
  border-color: rgba(255, 90, 102, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 90, 102, 0.08);
}

@media (max-width: 1100px) {
  .admin-order-cleanup-form {
    grid-template-columns: 1fr;
  }
}

.admin-order-filter-summary {
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-order-status-editor {
  display: grid;
  gap: 8px;
  min-width: 160px;
}

.admin-order-status-editor span {
  font-size: 0.86rem;
  color: var(--muted);
}

.admin-order-status-editor select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  background: #fff;
  outline: none;
}

.admin-order-status-editor select:focus {
  border-color: rgba(37, 99, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.1);
}

.nav-editor-panel[hidden] {
  display: none;
}

.nav-editor-panel {
  padding: 22px;
}

.nav-editor-panel .form-grid {
  grid-template-columns: 1fr;
}

.product-form label:has([name="option"]),
.product-form label:has([name="imageUrl"]),
.product-form label:has([name="tag"]),
.product-form label:has([name="description"]) {
  display: none !important;
}

.selection-group:has(#tertiaryOptionChips) {
  display: none !important;
}

.nav-editor-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.nav-editor-head h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.nav-list-panel {
  padding: 18px;
}

.nav-list-panel > .inventory-list {
  gap: 18px;
}

.product-admin-filter-zone {
  display: grid;
  gap: 16px;
  margin: -6px 0 22px;
}

.product-admin-toolbar {
  max-width: none;
}

.product-filter-panel {
  display: grid;
  gap: 14px;
}

.product-filter-fold {
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 255, 0.1);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.product-filter-fold summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--blue-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-filter-fold summary::-webkit-details-marker {
  display: none;
}

.product-filter-fold summary::after {
  content: "展开";
  font-size: 0.84rem;
  color: var(--blue);
  font-weight: 700;
}

.product-filter-fold[open] summary::after {
  content: "收起";
}

.product-filter-fold > .product-filter-group-secondary {
  margin-top: 0;
  border: none;
  border-top: 1px solid rgba(37, 99, 255, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.product-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-filter-group-secondary {
  gap: 12px;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.supplier-admin-shell {
  align-items: start;
}

.supplier-config-form .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.supplier-config-status-row {
  display: grid;
  gap: 10px;
}

.supplier-config-status-row > .field-check {
  margin-left: 0;
}

.supplier-form-actions {
  justify-content: space-between;
}

.supplier-catalog-panel {
  gap: 18px;
}

.supplier-sync-toolbar {
  margin-bottom: 0;
}

.supplier-sync-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.supplier-card,
.supplier-goods-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.inventory-item.supplier-card,
.inventory-item.supplier-goods-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.inventory-item.supplier-card > *,
.inventory-item.supplier-goods-card > * {
  min-width: 0;
}

.supplier-card-head,
.supplier-goods-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.supplier-card-head strong,
.supplier-goods-head strong {
  font-size: 1.04rem;
  color: var(--blue-deep);
  margin-bottom: 0;
}

.supplier-card-copy,
.supplier-goods-copy {
  display: grid;
  gap: 6px;
}

.supplier-card-copy p,
.supplier-goods-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.supplier-card-meta,
.supplier-goods-meta,
.supplier-goods-params {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-card-meta span,
.supplier-goods-meta span,
.supplier-goods-params span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.08);
  color: var(--blue-deep);
  font-size: 0.86rem;
  white-space: nowrap;
}

.supplier-card-meta .is-disabled,
.supplier-goods-meta .is-disabled {
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
}

.supplier-card-actions,
.supplier-goods-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.supplier-linked-note {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.supplier-linked-note strong {
  font-size: 0.88rem;
  color: #dc2626;
}

.supplier-linked-note span {
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.supplier-card-actions .ghost-btn,
.supplier-card-actions .primary-btn,
.supplier-goods-actions .ghost-btn,
.supplier-goods-actions .primary-btn {
  white-space: nowrap;
}

.supplier-goods-card {
  grid-template-columns: minmax(0, 1fr);
}

.supplier-batch-toolbar {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff, #f3f7ff);
}

.supplier-batch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.supplier-batch-grid label {
  display: grid;
  gap: 8px;
}

.supplier-batch-grid select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  background: #fff;
  outline: none;
}

.supplier-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.supplier-batch-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.08);
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-batch-toolbar {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfdff, #f3f7ff);
}

.product-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.product-batch-status {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.08);
  color: var(--blue-deep);
  font-size: 0.9rem;
  font-weight: 600;
}

.product-batch-select {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 44px;
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.product-batch-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.supplier-goods-layout {
  display: grid;
  grid-template-columns: auto 108px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.supplier-goods-select {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 4px;
  color: var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 600;
}

.supplier-goods-select input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.supplier-goods-thumb {
  width: 108px;
  height: 108px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  object-fit: cover;
}

.supplier-goods-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.88rem;
}

.supplier-hint-block {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf0, #fff6de);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #8a5a00;
  line-height: 1.7;
}

.supplier-goods-card.is-selected {
  border-color: rgba(37, 99, 255, 0.28);
  box-shadow: 0 18px 34px rgba(37, 99, 255, 0.12);
}

.supplier-secret-chip {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.product-platform-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  color: var(--blue-deep);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-platform-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.22);
}

.product-platform-tab span {
  font-size: 0.94rem;
  font-weight: 600;
}

.product-platform-tab strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font-size: 0.82rem;
}

.product-platform-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.16);
}

.product-platform-tab.is-active strong {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.product-category-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #fff;
  color: var(--blue-deep);
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.product-category-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.24);
  box-shadow: 0 12px 22px rgba(148, 163, 184, 0.12);
}

.product-category-tab span {
  font-size: 0.94rem;
  font-weight: 600;
}

.product-category-tab strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.08);
  color: inherit;
  font-size: 0.82rem;
}

.product-category-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.16);
}

.product-category-tab.is-active strong {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav-status-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.nav-status-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fbff, #eef4ff);
  color: var(--blue-deep);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-status-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.24);
}

.nav-status-tab span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  font-size: 0.88rem;
}

.nav-status-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 28px rgba(37, 99, 255, 0.18);
}

.nav-status-tab.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav-status-tab-danger {
  border-color: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.nav-status-tab-danger span {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.nav-status-tab-danger.is-active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 16px 28px rgba(220, 38, 38, 0.24);
}

.nav-status-group {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.96));
}

.nav-status-group.is-off {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.96), rgba(243, 246, 251, 0.96));
}

.nav-status-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-status-group-head h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  color: var(--blue-deep);
}

.nav-status-group-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-status-list {
  gap: 14px;
}

.nav-status-empty {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px dashed rgba(37, 99, 255, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.nav-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
  will-change: transform;
}

.nav-list-item.is-editing {
  border-color: rgba(37, 99, 255, 0.3);
  box-shadow: 0 18px 34px rgba(37, 99, 255, 0.12);
}

.nav-list-item.is-dragging {
  position: relative;
  z-index: 3;
  opacity: 1;
  border-color: rgba(37, 99, 255, 0.42);
  background: linear-gradient(180deg, #ffffff, #f1f6ff);
  box-shadow: 0 24px 42px rgba(37, 99, 255, 0.2);
}

.nav-list-item.is-drop-target {
  transform: translateY(18px);
  border-color: rgba(37, 99, 255, 0.52);
  background: linear-gradient(180deg, #f8fbff, #edf4ff);
  box-shadow: 0 18px 34px rgba(37, 99, 255, 0.14);
}

.nav-list-item.is-pointer-dragging {
  border-color: rgba(37, 99, 255, 0.42);
  background: linear-gradient(180deg, #ffffff, #f1f6ff);
  box-shadow: 0 24px 42px rgba(37, 99, 255, 0.2);
  cursor: grabbing;
}

.nav-drag-placeholder {
  border: 1px dashed rgba(37, 99, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(240, 246, 255, 0.7), rgba(233, 242, 255, 0.9));
}

.nav-drag-handle {
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 46px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 12px;
  color: var(--blue-deep);
  background: linear-gradient(180deg, #f9fbff, #eef4ff);
  cursor: grab;
  font-size: 1rem;
  line-height: 1;
  touch-action: none;
  user-select: none;
}

.nav-drag-handle:active {
  cursor: grabbing;
}

.nav-drag-handle:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

body.nav-sort-active {
  user-select: none;
}

.nav-list-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-list-main:hover strong {
  color: var(--blue-deep);
}

.nav-list-item > .inventory-actions {
  flex: 0 0 auto;
}

.nav-sort-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 14px;
  color: var(--blue-deep);
  background: linear-gradient(180deg, #fbfdff, #eef4ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-list-copy {
  display: grid;
  gap: 8px;
}

.nav-list-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-inline-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: linear-gradient(180deg, #f7faff, #eaf1ff);
  font-size: 0.88rem;
}

.nav-inline-empty {
  color: var(--muted);
}

.auth-user-pill {
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  color: var(--blue-deep);
}

.auth-user-pill strong {
  font-size: 0.95rem;
}

.auth-user-pill span {
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-login-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 180px);
}

.admin-login-card {
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(70, 113, 240, 0.12);
  box-shadow: var(--glow);
}

.admin-login-card h1 {
  margin: 0 0 10px;
  font-size: 1.9rem;
}

.admin-login-card p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-login-tip {
  margin-top: 14px;
  font-size: 0.92rem;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.auth-modal[hidden] {
  display: none;
}

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 33, 61, 0.4);
  backdrop-filter: blur(8px);
}

.auth-modal-dialog {
  position: relative;
  width: min(calc(100% - 24px), 460px);
  margin: 8vh auto 0;
  padding: 22px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(20, 33, 61, 0.2);
}

.purchase-success-dialog {
  width: min(calc(100% - 24px), 520px);
}

.auth-modal-head,
.auth-modal-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-modal-head {
  justify-content: space-between;
  margin-bottom: 18px;
}

.auth-tab,
.auth-close {
  border: none;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue-deep);
}

.auth-tab {
  min-height: 38px;
  padding: 0 14px;
}

.auth-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.auth-close {
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
}

.auth-view {
  display: none;
}

.auth-view.is-active {
  display: block;
}

.auth-view h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.auth-view p {
  margin: 0 0 16px;
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #f8fbff;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(37, 99, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.1);
}

.purchase-success-body {
  display: grid;
  gap: 24px;
}

.purchase-success-copy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.purchase-success-copy p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
}

.purchase-success-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #74d44c, #4bb53f);
  box-shadow: 0 12px 24px rgba(75, 181, 63, 0.24);
  position: relative;
}

.purchase-success-icon::before {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}

.purchase-success-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.purchase-success-actions .ghost-btn,
.purchase-success-actions .primary-btn {
  min-width: 108px;
  min-height: 42px;
  border-radius: 14px;
}

.wallet-recharge-modal-dialog {
  position: relative;
  width: min(calc(100% - 24px), 760px);
  max-height: min(92vh, calc(100vh - 20px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#walletRechargeModalBody {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 124px;
  overscroll-behavior: contain;
}

#walletRechargeModalFooter {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 12;
}

#walletRechargeModalFooter[hidden] {
  display: none;
}

.wallet-recharge-fixed-footer-card {
  padding-top: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.96) 22%, #fff 100%);
}

.wallet-recharge-fixed-footer-card .recharge-modal-actions {
  justify-content: flex-end;
}

.recharge-method-alert {
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 183, 77, 0.16);
  color: #ba7a13;
  line-height: 1.7;
}

.recharge-method-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.recharge-method-switch button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 14px;
  background: #f7faff;
  color: var(--blue-deep);
}

.recharge-method-switch button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 30px rgba(28, 66, 200, 0.2);
}

.recharge-modal-form {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.recharge-modal-fields {
  display: grid;
  gap: 16px;
}

.recharge-modal-fields label {
  display: grid;
  gap: 8px;
}

.recharge-modal-fields label span {
  color: var(--muted);
}

.recharge-modal-fields input,
.recharge-modal-fields select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #f8fbff;
  outline: none;
}

.recharge-modal-fields input:focus,
.recharge-modal-fields select:focus {
  border-color: rgba(37, 99, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.08);
}

.crypto-currency-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.crypto-currency-label {
  color: var(--muted);
}

.recharge-amount-field {
  position: relative;
  min-width: 0;
}

.crypto-minimum-status {
  position: absolute;
  right: 12px;
  bottom: 8px;
}

.crypto-minimum-status [data-crypto-minimum-message] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.recharge-modal-fields input.has-minimum-retry {
  padding-right: 108px;
}

.crypto-minimum-retry {
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #2050d5;
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.crypto-minimum-retry:focus-visible {
  outline: 2px solid #2050d5;
  outline-offset: 3px;
  border-radius: 2px;
}

.nowpayments-minimum-setting {
  color: var(--muted);
  font-size: 14px;
}

.nowpayments-minimum-setting p {
  margin: 10px 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.crypto-currency-picker {
  min-width: 0;
  color: var(--ink);
  text-align: left;
}

.crypto-currency-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 12px 16px;
  border: 1px solid #dce5f5;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.crypto-currency-trigger:hover:not(:disabled) {
  border-color: #a6bff5;
}

.crypto-currency-trigger[aria-expanded="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.08);
}

.crypto-currency-trigger:disabled {
  cursor: not-allowed;
  background: #f7f9fc;
  color: var(--muted);
  opacity: 0.7;
}

.crypto-currency-selection {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.crypto-currency-trigger:focus-visible,
.crypto-currency-close:focus-visible,
.crypto-currency-option:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.crypto-currency-icon {
  position: relative;
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
  background: #f0f4fa;
}

.crypto-currency-icon img {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0;
}

.crypto-currency-icon.is-loaded img,
.crypto-currency-icon img.is-loaded {
  opacity: 1;
}

.crypto-currency-monogram {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #5c7090;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.crypto-currency-monogram svg {
  width: 20px;
  height: 20px;
}

.crypto-currency-icon.is-loaded .crypto-currency-monogram,
.crypto-currency-icon img.is-loaded + .crypto-currency-monogram {
  visibility: hidden;
}

.crypto-currency-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  gap: 3px;
}

.crypto-currency-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  gap: 4px 6px;
}

.crypto-currency-picker .crypto-currency-symbol {
  min-width: 0;
  max-width: 100%;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.crypto-currency-picker .crypto-currency-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.crypto-currency-picker .crypto-currency-network {
  --crypto-network-background: #edf1f6;
  --crypto-network-foreground: #53647b;
  display: inline-block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 16px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--crypto-network-background);
  color: var(--crypto-network-foreground);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="tron"] {
  --crypto-network-background: #c93644;
  --crypto-network-foreground: #fff;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="ethereum"] {
  --crypto-network-background: #3265b8;
  --crypto-network-foreground: #fff;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="bsc"] {
  --crypto-network-background: #8a610f;
  --crypto-network-foreground: #fff;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="polygon"] {
  --crypto-network-background: #7247b2;
  --crypto-network-foreground: #fff;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="solana"] {
  --crypto-network-background: #176b65;
  --crypto-network-foreground: #fff;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="arbitrum"] {
  --crypto-network-background: #285d8f;
  --crypto-network-foreground: #fff;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="base"] {
  --crypto-network-background: #225ac6;
  --crypto-network-foreground: #fff;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="optimism"] {
  --crypto-network-background: #c43145;
  --crypto-network-foreground: #fff;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="avalanche"] {
  --crypto-network-background: #c73a3c;
  --crypto-network-foreground: #fff;
}

.crypto-currency-picker .crypto-currency-network[data-network-tone="bitcoin"] {
  --crypto-network-background: #995700;
  --crypto-network-foreground: #fff;
}

.crypto-currency-placeholder {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.crypto-currency-chevron {
  display: grid;
  flex: 0 0 18px;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: #7a8ba5;
  transition: transform 180ms ease;
}

.crypto-currency-chevron svg {
  width: 18px;
  height: 18px;
}

.crypto-currency-trigger[aria-expanded="true"] .crypto-currency-chevron {
  transform: rotate(180deg);
}

.crypto-currency-panel {
  min-width: 0;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid #dce5f5;
  border-radius: 14px;
  background: #fff;
}

.crypto-currency-panel:not([hidden]) {
  animation: crypto-currency-reveal 160ms ease-out;
}

.crypto-currency-search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #edf1f7;
}

.crypto-currency-search-box {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #f5f7fb;
  color: #8190a7;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.crypto-currency-search-box:focus-within {
  border-color: #a6bff5;
  box-shadow: 0 0 0 2px rgba(37, 99, 255, 0.07);
}

.crypto-currency-search-box > svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

.crypto-currency-picker input.crypto-currency-search,
.crypto-currency-picker input.crypto-currency-search:focus {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 14px;
}

.crypto-currency-picker input.crypto-currency-search::placeholder {
  color: #8190a7;
  opacity: 1;
}

.crypto-currency-close {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #74839b;
  font-size: 22px;
  line-height: 1;
  transition: background-color 140ms ease, color 140ms ease;
}

.crypto-currency-close:hover {
  background: #f0f4fb;
  color: var(--ink);
}

.crypto-currency-close svg {
  width: 18px;
  height: 18px;
}

.crypto-currency-results {
  max-height: 276px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd6e8 transparent;
}

.crypto-currency-results::-webkit-scrollbar {
  width: 6px;
}

.crypto-currency-results::-webkit-scrollbar-thumb {
  border: 1px solid #fff;
  border-radius: 6px;
  background: #cbd6e8;
}

.crypto-currency-group {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 12px 16px 6px;
  color: #78869d;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.crypto-currency-group small {
  color: #95a0b2;
  font-size: 11px;
  font-weight: 400;
}

.crypto-currency-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 62px;
  padding: 10px 16px;
  border: 0;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.crypto-currency-option:hover,
.crypto-currency-option.is-active,
.crypto-currency-option:focus-visible {
  background: #f4f7fd;
}

.crypto-currency-option:focus-visible {
  outline-offset: -2px;
}

.crypto-currency-option[aria-selected="true"] {
  background: #edf3ff;
}

.crypto-currency-option[aria-selected="true"] .crypto-currency-symbol {
  color: var(--blue-deep);
}

.crypto-currency-check {
  display: grid;
  flex: 0 0 16px;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--blue);
  visibility: hidden;
}

.crypto-currency-check svg {
  width: 16px;
  height: 16px;
}

.crypto-currency-option[aria-selected="true"] .crypto-currency-check {
  visibility: visible;
}

.crypto-currency-option:disabled,
.crypto-currency-option[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

.crypto-currency-empty {
  margin: 0;
  padding: 30px 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
  overflow-wrap: anywhere;
}

.crypto-currency-empty > span {
  display: block;
  margin-top: 6px;
  color: #8190a7;
  font-size: 12px;
}

.crypto-currency-footnote {
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid #edf1f7;
  color: #8190a7;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@keyframes crypto-currency-reveal {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .crypto-currency-selection {
    gap: 8px;
  }

  .crypto-currency-trigger,
  .crypto-currency-option {
    gap: 8px;
    padding: 10px 12px;
  }

  .crypto-currency-title {
    column-gap: 5px;
  }

  .crypto-currency-picker .crypto-currency-symbol {
    font-size: 13px;
  }

  .crypto-currency-picker .crypto-currency-name {
    font-size: 11px;
  }

  .crypto-currency-search-row {
    gap: 4px;
    padding: 10px;
  }

  .crypto-currency-search-box {
    gap: 6px;
    padding: 0 9px;
  }

  .crypto-currency-picker input.crypto-currency-search,
  .crypto-currency-picker input.crypto-currency-search:focus {
    font-size: 16px;
  }

  .crypto-currency-results {
    max-height: min(276px, 42vh);
  }

  .crypto-currency-group,
  .crypto-currency-footnote {
    padding-right: 12px;
    padding-left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crypto-currency-trigger,
  .crypto-currency-chevron,
  .crypto-currency-search-box,
  .crypto-currency-close,
  .crypto-currency-option {
    transition: none;
  }

  .crypto-currency-panel:not([hidden]) {
    animation: none;
  }
}

.recharge-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.recharge-modal-guide {
  margin-top: 18px;
}

.recharge-modal-summary {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef4ff;
  color: var(--blue-deep);
  line-height: 1.7;
}

.recharge-modal-guide-phone {
  margin-top: 20px;
}

.wallet-phone-topup-shell {
  display: grid;
  gap: 16px;
}

.wallet-phone-topup-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.94));
  box-shadow: 0 18px 36px rgba(37, 99, 255, 0.08);
}

.wallet-phone-topup-card.is-live {
  border-color: rgba(37, 99, 255, 0.22);
}

.wallet-phone-topup-empty {
  display: grid;
  gap: 14px;
  text-align: center;
  padding: 8px 0;
}

.wallet-phone-topup-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.wallet-phone-topup-amount-picks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.wallet-phone-topup-amount-picks button {
  min-height: 50px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #f7faff;
  color: var(--blue-deep);
  font-weight: 700;
}

.wallet-phone-topup-amount-picks button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 16px 30px rgba(28, 66, 200, 0.2);
}

.wallet-phone-topup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wallet-phone-topup-head strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.wallet-phone-topup-badge,
.phone-topup-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.1);
  color: var(--blue-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.wallet-phone-topup-countdown {
  min-width: 90px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(37, 99, 255, 0.08);
  color: var(--blue-deep);
  font-weight: 700;
  text-align: center;
}

.wallet-phone-topup-grid,
.phone-topup-admin-item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wallet-phone-topup-grid.compact {
  gap: 10px;
}

.wallet-phone-topup-grid div,
.phone-topup-admin-item-grid span {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(37, 99, 255, 0.1);
}

.wallet-phone-topup-grid span {
  color: var(--muted);
}

.alipay-remark-code {
  color: #e53935;
  font-weight: 800;
}

.wallet-phone-topup-submit-form {
  display: grid;
  gap: 14px;
}

.wallet-phone-topup-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wallet-phone-topup-submit-form label {
  display: grid;
  gap: 8px;
}

.wallet-phone-topup-submit-form label span,
.wallet-phone-topup-order-field span {
  color: var(--muted);
}

.wallet-phone-topup-submit-form input[type="file"],
.wallet-phone-topup-order-field input,
.phone-topup-import-form textarea,
.phone-topup-admin-review-box textarea {
  width: 100%;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #f8fbff;
  outline: none;
}

.wallet-phone-topup-submit-form input[type="file"] {
  min-height: 52px;
  padding: 12px 14px;
}

.wallet-phone-topup-order-field input {
  min-height: 50px;
  padding: 0 16px;
}

.wallet-phone-topup-result {
  display: grid;
  gap: 14px;
}

.wallet-phone-topup-result-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.wallet-phone-topup-result-copy.is-error strong,
.wallet-phone-topup-result-copy.is-error p {
  color: #e53935;
}

.wallet-alipay-remark-card {
  gap: 10px;
  padding: 14px;
}

.wallet-alipay-remark-card .wallet-phone-topup-head strong {
  font-size: 1rem;
  line-height: 1.3;
  word-break: break-all;
}

.wallet-alipay-remark-card .wallet-phone-topup-grid div {
  padding: 9px 12px;
}

.wallet-alipay-remark-card .recharge-guide-grid {
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-top: 6px !important;
  align-items: start;
}

.wallet-alipay-remark-card .recharge-guide-copy {
  gap: 8px;
}

.wallet-alipay-remark-card .recharge-guide-copy strong {
  font-size: 1.1rem;
}

.wallet-alipay-remark-card .recharge-guide-copy p,
.wallet-alipay-remark-card .recharge-guide-note {
  line-height: 1.5;
}

.wallet-alipay-remark-card .recharge-guide-note,
.wallet-alipay-remark-card .recharge-guide-placeholder {
  padding: 10px 12px;
}

.wallet-alipay-remark-card .recharge-guide-image-card {
  min-height: 128px;
  max-height: 160px;
  padding: 8px;
}

.wallet-alipay-remark-card .recharge-guide-image-card img {
  max-height: 144px;
  object-fit: contain;
}

.wallet-alipay-remark-card .wallet-phone-topup-submit-form {
  gap: 10px;
  margin-top: 10px !important;
  padding-bottom: 0;
}

.wallet-alipay-remark-top-actions {
  justify-content: flex-start;
  margin-bottom: -4px;
}

.wallet-alipay-remark-card .wallet-alipay-remark-reset-actions {
  margin-top: 0;
  padding: 12px 0 12px;
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: linear-gradient(180deg, rgba(240, 246, 255, 0), rgba(240, 246, 255, 0.96) 26%, rgba(240, 246, 255, 0.99));
}

.wallet-alipay-remark-card .wallet-phone-topup-upload-grid {
  gap: 10px;
}

.wallet-alipay-remark-card .wallet-phone-topup-submit-form input[type="file"] {
  min-height: 46px;
  padding: 10px 12px;
}

@media (max-width: 720px) {
  .wallet-recharge-modal-dialog {
    max-height: calc(100vh - 16px);
  }

  #walletRechargeModalBody {
    padding-right: 2px;
    padding-bottom: 132px;
  }

  #walletRechargeModalFooter {
    left: 14px;
    right: 14px;
    bottom: 12px;
  }

  .wallet-alipay-remark-card {
    padding: 14px;
  }

  .wallet-alipay-remark-card .recharge-guide-grid {
    grid-template-columns: 1fr;
  }

  .wallet-alipay-remark-card .recharge-guide-image-card {
    min-height: 136px;
    max-height: 168px;
  }

  .wallet-alipay-remark-card .recharge-guide-image-card img {
    max-height: 148px;
  }
}

.wallet-phone-topup-proof-grid,
.phone-topup-admin-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wallet-phone-topup-proof-grid a,
.phone-topup-admin-proof-grid a {
  display: block;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.wallet-phone-topup-proof-grid img,
.phone-topup-admin-proof-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.wallet-alipay-remark-card .wallet-phone-topup-proof-grid {
  grid-template-columns: 1fr;
}

.wallet-alipay-remark-card .wallet-phone-topup-proof-grid a {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10px;
  overflow: visible;
}

.wallet-alipay-remark-card .wallet-phone-topup-proof-grid img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 12px;
}

.phone-topup-import-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.phone-topup-import-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.phone-topup-import-grid label {
  display: grid;
  gap: 8px;
}

.phone-topup-import-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.phone-topup-import-result {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  background: rgba(243, 248, 255, 0.96);
}

.phone-topup-import-result.has-errors {
  border-color: rgba(255, 126, 95, 0.24);
  background: rgba(255, 245, 241, 0.98);
}

.phone-topup-import-result p {
  margin: 0;
  color: var(--muted);
}

.phone-topup-import-error-list,
.phone-topup-import-success-copy {
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.phone-topup-import-form textarea,
.phone-topup-admin-review-box textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

@media (max-width: 900px) {
  .phone-topup-import-grid {
    grid-template-columns: 1fr;
  }
}

.phone-topup-admin-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.phone-topup-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.phone-topup-history-fold {
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.92);
  padding: 14px 16px;
}

.phone-topup-history-fold summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.phone-topup-history-fold summary::-webkit-details-marker {
  display: none;
}

.phone-topup-history-fold summary::after {
  content: "展开";
  font-size: 0.84rem;
  color: var(--blue);
  font-weight: 700;
}

.phone-topup-history-fold[open] summary::after {
  content: "收起";
}

.phone-topup-admin-item {
  display: block !important;
  gap: 14px;
  align-items: stretch;
  padding: 20px;
}

.phone-topup-admin-item > * {
  min-width: 0;
}

.phone-topup-admin-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.phone-topup-admin-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  min-width: 0;
}

.phone-topup-admin-taskno {
  display: block;
  margin: 0 !important;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.45;
}

.phone-topup-status-pill {
  flex-shrink: 0;
}

.phone-topup-admin-item-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phone-topup-admin-item-grid span {
  min-width: 0;
  line-height: 1.65;
  word-break: break-word;
}

.phone-topup-admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.phone-topup-admin-review-box {
  display: grid;
  gap: 12px;
}

.phone-topup-admin-review-box,
.phone-topup-admin-proof-grid,
.phone-topup-admin-item-grid {
  min-width: 0;
}

.phone-topup-inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.phone-topup-risk-table {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.phone-topup-risk-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(37, 99, 255, 0.08);
}

@media (max-width: 900px) {
  .phone-topup-history-grid,
  .phone-topup-admin-summary,
  .wallet-phone-topup-grid,
  .wallet-phone-topup-upload-grid,
  .wallet-phone-topup-proof-grid,
  .wallet-phone-topup-amount-picks,
  .phone-topup-admin-item-grid,
  .phone-topup-admin-proof-grid,
  .phone-topup-risk-row {
    grid-template-columns: 1fr;
  }

  .phone-topup-admin-item-actions {
    justify-content: flex-start;
  }
}

.register-page {
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 420px);
  gap: 24px;
  align-items: stretch;
}

.register-hero,
.register-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 55px rgba(20, 33, 61, 0.08);
}

.register-hero {
  position: relative;
  overflow: hidden;
  padding: 42px;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 255, 0.18), transparent 24%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(237, 244, 255, 0.96));
}

.register-hero::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 255, 0.18), rgba(37, 99, 255, 0));
}

.register-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.1);
  color: var(--blue-deep);
  font-weight: 600;
}

.register-hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.register-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.register-orbit-showcase {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 26px;
  padding: 64px 28px;
  border-radius: 30px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 24px 56px rgba(0, 0, 0, 0.34);
}

.register-orbit-stage {
  --far-orbit-size: clamp(424px, 48vw, 640px);
  --outer-orbit-size: clamp(328px, 36vw, 500px);
  --inner-orbit-size: clamp(224px, 24vw, 340px);
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 1 / 1;
  min-height: 520px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.register-orbit-stage::before {
  width: var(--outer-orbit-size);
  height: var(--outer-orbit-size);
}

.register-orbit-stage::after {
  width: var(--inner-orbit-size);
  height: var(--inner-orbit-size);
}

.register-orbit-showcase::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  pointer-events: none;
  background:
    radial-gradient(circle at 4% 10%, rgba(255, 255, 255, 0.92) 0 0.55px, transparent 0.95px),
    radial-gradient(circle at 6% 42%, rgba(255, 255, 255, 0.86) 0 0.6px, transparent 1px),
    radial-gradient(circle at 7% 13%, rgba(255, 255, 255, 0.95) 0 0.65px, transparent 1px),
    radial-gradient(circle at 9% 74%, rgba(255, 255, 255, 0.82) 0 0.58px, transparent 0.95px),
    radial-gradient(circle at 11% 62%, rgba(255, 255, 255, 0.76) 0 0.55px, transparent 1px),
    radial-gradient(circle at 13% 28%, rgba(255, 255, 255, 0.88) 0 0.62px, transparent 1px),
    radial-gradient(circle at 16% 32%, rgba(199, 217, 255, 0.78) 0 0.7px, transparent 1.2px),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.86) 0 0.8px, transparent 1.2px),
    radial-gradient(circle at 20% 54%, rgba(255, 255, 255, 0.74) 0 0.55px, transparent 0.95px),
    radial-gradient(circle at 22% 48%, rgba(255, 255, 255, 0.7) 0 0.55px, transparent 1px),
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.9) 0 0.65px, transparent 1px),
    radial-gradient(circle at 27% 62%, rgba(255, 255, 255, 0.78) 0 0.58px, transparent 0.95px),
    radial-gradient(circle at 31% 70%, rgba(186, 205, 255, 0.74) 0 0.7px, transparent 1.1px),
    radial-gradient(circle at 36% 26%, rgba(255, 255, 255, 0.96) 0 0.85px, transparent 1.2px),
    radial-gradient(circle at 37% 58%, rgba(255, 255, 255, 0.78) 0 0.58px, transparent 0.95px),
    radial-gradient(circle at 39% 87%, rgba(255, 255, 255, 0.82) 0 0.6px, transparent 1px),
    radial-gradient(circle at 44% 9%, rgba(255, 255, 255, 0.9) 0 0.75px, transparent 1.1px),
    radial-gradient(circle at 45% 43%, rgba(255, 255, 255, 0.74) 0 0.55px, transparent 0.95px),
    radial-gradient(circle at 48% 58%, rgba(175, 197, 255, 0.74) 0 0.7px, transparent 1.1px),
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.82) 0 0.6px, transparent 1px),
    radial-gradient(circle at 53% 21%, rgba(255, 255, 255, 0.85) 0 0.65px, transparent 1px),
    radial-gradient(circle at 56% 48%, rgba(255, 255, 255, 0.8) 0 0.58px, transparent 0.95px),
    radial-gradient(circle at 58% 77%, rgba(255, 255, 255, 0.92) 0 0.9px, transparent 1.25px),
    radial-gradient(circle at 63% 34%, rgba(206, 222, 255, 0.72) 0 0.6px, transparent 1px),
    radial-gradient(circle at 64% 62%, rgba(255, 255, 255, 0.76) 0 0.58px, transparent 0.95px),
    radial-gradient(circle at 68% 13%, rgba(255, 255, 255, 0.95) 0 0.7px, transparent 1.05px),
    radial-gradient(circle at 70% 48%, rgba(255, 255, 255, 0.86) 0 0.62px, transparent 1px),
    radial-gradient(circle at 73% 88%, rgba(255, 255, 255, 0.9) 0 0.75px, transparent 1.1px),
    radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.82) 0 0.65px, transparent 1px),
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.78) 0 0.58px, transparent 0.95px),
    radial-gradient(circle at 82% 17%, rgba(184, 203, 255, 0.76) 0 0.7px, transparent 1.1px),
    radial-gradient(circle at 86% 64%, rgba(255, 255, 255, 0.95) 0 0.9px, transparent 1.25px),
    radial-gradient(circle at 88% 48%, rgba(255, 255, 255, 0.82) 0 0.6px, transparent 0.95px),
    radial-gradient(circle at 91% 29%, rgba(255, 255, 255, 0.88) 0 0.75px, transparent 1.1px),
    radial-gradient(circle at 94% 83%, rgba(213, 226, 255, 0.72) 0 0.65px, transparent 1px),
    radial-gradient(circle at 96% 12%, rgba(255, 255, 255, 0.86) 0 0.58px, transparent 0.95px);
  opacity: 1;
}

.register-orbit-showcase::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 24%, rgba(255, 255, 255, 0.18) 0 1.8px, transparent 4px),
    radial-gradient(circle at 9% 72%, rgba(255, 255, 255, 0.16) 0 1.5px, transparent 3.8px),
    radial-gradient(circle at 29% 76%, rgba(171, 193, 255, 0.16) 0 2px, transparent 4.6px),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.18) 0 1.8px, transparent 4px),
    radial-gradient(circle at 47% 11%, rgba(255, 255, 255, 0.16) 0 2px, transparent 4.8px),
    radial-gradient(circle at 44% 64%, rgba(255, 255, 255, 0.14) 0 1.6px, transparent 4px),
    radial-gradient(circle at 64% 69%, rgba(159, 184, 255, 0.14) 0 1.8px, transparent 4.2px),
    radial-gradient(circle at 66% 18%, rgba(255, 255, 255, 0.16) 0 1.7px, transparent 4px),
    radial-gradient(circle at 83% 36%, rgba(255, 255, 255, 0.16) 0 2.1px, transparent 4.8px),
    radial-gradient(circle at 88% 78%, rgba(255, 255, 255, 0.14) 0 1.7px, transparent 4px),
    radial-gradient(circle at 92% 14%, rgba(255, 255, 255, 0.17) 0 1.6px, transparent 4px);
  filter: blur(0.15px);
  opacity: 0.95;
}

.register-orbit-stage::before,
.register-orbit-stage::after {
  content: "";
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(139, 166, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(72, 100, 188, 0.05),
    inset 0 0 18px rgba(132, 160, 255, 0.06);
  opacity: 0.92;
}

.register-orbit-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(139, 166, 255, 0.28);
  box-shadow:
    0 0 0 1px rgba(72, 100, 188, 0.05),
    inset 0 0 18px rgba(132, 160, 255, 0.06);
  opacity: 0.92;
}

.register-orbit-ring {
  --orbit-size: var(--outer-orbit-size);
  --orbit-radius: calc(var(--orbit-size) / 2);
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin-left: calc(var(--orbit-size) / -2);
  margin-top: calc(var(--orbit-size) / -2);
  border-radius: 50%;
  z-index: 1;
}

.register-orbit-ring-far {
  --orbit-size: var(--far-orbit-size);
  --orbit-radius: calc(var(--orbit-size) / 2);
  --orbit-start-angle: -92deg;
  --orbit-step-angle: 20deg;
  animation: orbitSpin 104s linear infinite;
}

.register-orbit-ring-outer {
  --orbit-start-angle: -82deg;
  --orbit-step-angle: 21.1764705882deg;
  animation: orbitSpinReverse 78s linear infinite;
}

.register-orbit-ring-inner {
  --orbit-size: var(--inner-orbit-size);
  --orbit-radius: calc(var(--orbit-size) / 2);
  --orbit-start-angle: -90deg;
  --orbit-step-angle: 30deg;
  animation: orbitSpin 56s linear infinite;
}

.register-orbit-core {
  position: relative;
  z-index: 2;
  width: 216px;
  height: 216px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  border: none;
  box-shadow: none;
}

.register-orbit-moon {
  overflow: hidden;
  background: #000;
  box-shadow: none;
  filter: none;
}

.register-orbit-moon::after,
.register-orbit-moon::before,
.register-orbit-moon span {
  pointer-events: none;
}

.register-orbit-moon::before,
.register-orbit-moon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.register-orbit-moon::before {
  background: url("./assets/moon-real.png") center/150% no-repeat;
  -webkit-mask-image: radial-gradient(circle at 50% 52%, #000 0 29.5%, rgba(0, 0, 0, 0.98) 31%, transparent 33%);
  mask-image: radial-gradient(circle at 50% 52%, #000 0 29.5%, rgba(0, 0, 0, 0.98) 31%, transparent 33%);
  animation: moonSpin 120s linear infinite;
  will-change: transform;
}

.register-orbit-moon::after {
  box-shadow: none;
}

.register-orbit-moon > span {
  display: none;
}

.platform-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  --angle: calc(var(--orbit-start-angle, -90deg) + (var(--orbit-step-angle, 30deg) * var(--orbit-index, 0))) !important;
  width: 62px;
  height: 62px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: normal;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 18px rgba(111, 143, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  z-index: 2;
  overflow: hidden;
  transform:
    translate(-50%, -50%)
    rotate(var(--angle))
    translateX(calc(var(--orbit-radius) - 2px))
    rotate(calc(var(--angle) * -1));
}

.register-orbit-ring-far .platform-badge:nth-child(1) { --orbit-index: 0; }
.register-orbit-ring-far .platform-badge:nth-child(2) { --orbit-index: 1; }
.register-orbit-ring-far .platform-badge:nth-child(3) { --orbit-index: 2; }
.register-orbit-ring-far .platform-badge:nth-child(4) { --orbit-index: 3; }
.register-orbit-ring-far .platform-badge:nth-child(5) { --orbit-index: 4; }
.register-orbit-ring-far .platform-badge:nth-child(6) { --orbit-index: 5; }
.register-orbit-ring-far .platform-badge:nth-child(7) { --orbit-index: 6; }
.register-orbit-ring-far .platform-badge:nth-child(8) { --orbit-index: 7; }
.register-orbit-ring-far .platform-badge:nth-child(9) { --orbit-index: 8; }
.register-orbit-ring-far .platform-badge:nth-child(10) { --orbit-index: 9; }
.register-orbit-ring-far .platform-badge:nth-child(11) { --orbit-index: 10; }
.register-orbit-ring-far .platform-badge:nth-child(12) { --orbit-index: 11; }
.register-orbit-ring-far .platform-badge:nth-child(13) { --orbit-index: 12; }
.register-orbit-ring-far .platform-badge:nth-child(14) { --orbit-index: 13; }
.register-orbit-ring-far .platform-badge:nth-child(15) { --orbit-index: 14; }
.register-orbit-ring-far .platform-badge:nth-child(16) { --orbit-index: 15; }
.register-orbit-ring-far .platform-badge:nth-child(17) { --orbit-index: 16; }
.register-orbit-ring-far .platform-badge:nth-child(18) { --orbit-index: 17; }

.register-orbit-ring-outer .platform-badge:nth-child(1) { --orbit-index: 0; }
.register-orbit-ring-outer .platform-badge:nth-child(2) { --orbit-index: 1; }
.register-orbit-ring-outer .platform-badge:nth-child(3) { --orbit-index: 2; }
.register-orbit-ring-outer .platform-badge:nth-child(4) { --orbit-index: 3; }
.register-orbit-ring-outer .platform-badge:nth-child(5) { --orbit-index: 4; }
.register-orbit-ring-outer .platform-badge:nth-child(6) { --orbit-index: 5; }
.register-orbit-ring-outer .platform-badge:nth-child(7) { --orbit-index: 6; }
.register-orbit-ring-outer .platform-badge:nth-child(8) { --orbit-index: 7; }
.register-orbit-ring-outer .platform-badge:nth-child(9) { --orbit-index: 8; }
.register-orbit-ring-outer .platform-badge:nth-child(10) { --orbit-index: 9; }
.register-orbit-ring-outer .platform-badge:nth-child(11) { --orbit-index: 10; }
.register-orbit-ring-outer .platform-badge:nth-child(12) { --orbit-index: 11; }
.register-orbit-ring-outer .platform-badge:nth-child(13) { --orbit-index: 12; }
.register-orbit-ring-outer .platform-badge:nth-child(14) { --orbit-index: 13; }
.register-orbit-ring-outer .platform-badge:nth-child(15) { --orbit-index: 14; }
.register-orbit-ring-outer .platform-badge:nth-child(16) { --orbit-index: 15; }
.register-orbit-ring-outer .platform-badge:nth-child(17) { --orbit-index: 16; }

.register-orbit-ring-inner .platform-badge:nth-child(1) { --orbit-index: 0; }
.register-orbit-ring-inner .platform-badge:nth-child(2) { --orbit-index: 1; }
.register-orbit-ring-inner .platform-badge:nth-child(3) { --orbit-index: 2; }
.register-orbit-ring-inner .platform-badge:nth-child(4) { --orbit-index: 3; }
.register-orbit-ring-inner .platform-badge:nth-child(5) { --orbit-index: 4; }
.register-orbit-ring-inner .platform-badge:nth-child(6) { --orbit-index: 5; }
.register-orbit-ring-inner .platform-badge:nth-child(7) { --orbit-index: 6; }
.register-orbit-ring-inner .platform-badge:nth-child(8) { --orbit-index: 7; }
.register-orbit-ring-inner .platform-badge:nth-child(9) { --orbit-index: 8; }
.register-orbit-ring-inner .platform-badge:nth-child(10) { --orbit-index: 9; }
.register-orbit-ring-inner .platform-badge:nth-child(11) { --orbit-index: 10; }
.register-orbit-ring-inner .platform-badge:nth-child(12) { --orbit-index: 11; }

.platform-badge-mini {
  width: 40px;
  height: 40px;
}

.register-orbit-ring-far .platform-badge {
  width: 58px;
  height: 58px;
  font-size: 0.64rem;
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.34),
    0 0 22px rgba(111, 143, 255, 0.08);
}

.register-orbit-ring-far .platform-badge-mini {
  width: 44px;
  height: 44px;
}

.register-orbit-ring-inner .platform-badge {
  width: 54px;
  height: 54px;
  font-size: 0.62rem;
}

.platform-douyin {
  background: #05070d url("./assets/orbit-douyin.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-qqmusic {
  background: #f7d31c url("./assets/orbit-qqmusic.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-shadowrocket {
  background: #ffffff url("./assets/orbit-shadowrocket.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-instagram {
  background: #d94d86 url("./assets/orbit-instagram.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-weipinhui {
  background: #ff2f92 url("./assets/orbit-weipinhui.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-ximalaya {
  background: #ff5a1f url("./assets/orbit-ximalaya.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-baiduwangpan {
  background: #2f86ff url("./assets/orbit-baiduwangpan.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-pipixia {
  background: #ff5f8e url("./assets/orbit-pipixia.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-wechatread {
  background: #14d85a url("./assets/orbit-wechatread.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-miaojian {
  background: #ef8b57 url("./assets/orbit-miaojian.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-wechat {
  background: #18c44f url("./assets/orbit-wechat.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-neteasemusic {
  background: #ef2020 url("./assets/orbit-neteasemusic.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-facebook {
  background: #1877f2 url("./assets/orbit-facebook.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-youtube {
  background: #ff1e14 url("./assets/orbit-youtube.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-telegram {
  background: #2ca5e0 url("./assets/orbit-telegram.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-hongguo {
  background: #ff7b2a url("./assets/orbit-hongguo.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-fanqie {
  background: #ff6a1f url("./assets/orbit-fanqie.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-dazhongdianping {
  background: #ff6a1f url("./assets/orbit-dazhongdianping.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-taobao {
  background: #ff7a16 url("./assets/orbit-taobao.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-pinduoduo {
  background: #ff2525 url("./assets/orbit-pinduoduo.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-cclive {
  background: #2d8fff url("./assets/orbit-cclive.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-amap {
  background: #4ea0ff url("./assets/orbit-amap.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-tencentvideo {
  background: #2ca8ff url("./assets/orbit-tencentvideo.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-toutiao {
  background: #ff2e38 url("./assets/orbit-toutiao.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-qq {
  background: #ffffff url("./assets/orbit-qq.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-jingdong {
  background: #ff2626 url("./assets/orbit-jingdong.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-mangotv {
  background: #ff9b1a url("./assets/orbit-mangotv.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-appleid {
  background: #ffffff url("./assets/orbit-appleid.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-x {
  background: #000000 url("./assets/orbit-x.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-bosszhipin {
  background: #1fc9c8 url("./assets/orbit-bosszhipin.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-xianyu {
  background: #f4cf18 url("./assets/orbit-xianyu.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-grok {
  background: #111111 url("./assets/orbit-grok.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-qiyu {
  background: #2f77ff url("./assets/orbit-qiyu.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-meituan {
  background: #f7c61c url("./assets/orbit-meituan.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-dewu {
  background: #161616 url("./assets/orbit-dewu.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-zuiyou {
  background: #2f94ff url("./assets/orbit-zuiyou.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-chatgpt {
  background: #3eb79f url("./assets/orbit-chatgpt.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-huya {
  background: #f6b11f url("./assets/orbit-huya.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-youku {
  background: #ff4a87 url("./assets/orbit-youku.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-douyu {
  background: #ff8a1f url("./assets/orbit-douyu.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-xigua {
  background: #ff2d45 url("./assets/orbit-xigua.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-weibo {
  background: #f3c949 url("./assets/orbit-weibo.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-gpt {
  background: radial-gradient(circle at 30% 28%, #1f8f68, #101b16 72%);
  color: #f5fffb;
}

.platform-gemini {
  background: radial-gradient(circle at 30% 28%, #7c88ff, #5a48ef 74%);
  color: #fff;
}

.platform-iqiyi {
  background: #1bd85a url("./assets/orbit-iqiyi.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-xiaohongshu {
  background: #ff2a5f url("./assets/orbit-xiaohongshu.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-bilibili {
  background: #f05a8b url("./assets/orbit-bilibili.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-kuaishou {
  background: #ff6a00 url("./assets/orbit-kuaishou.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-midjourney {
  background: radial-gradient(circle at 30% 28%, #f4f7ff, #b9c8ef 76%);
  color: #294189;
}

.platform-claude {
  background: radial-gradient(circle at 30% 28%, #d8834d, #8b4e2b 74%);
  color: #fff7ef;
}

.platform-zhihu {
  background: #2f7dff url("./assets/orbit-zhihu.png") center/cover no-repeat;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border: none;
}

.platform-nf {
  background: radial-gradient(circle at 30% 28%, #6a6a76, #18181f 74%);
  color: #f2f2f4;
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpinReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes moonSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.register-points {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.register-point {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(37, 99, 255, 0.12);
}

.register-point strong {
  font-size: 1rem;
}

.register-point span {
  color: var(--muted);
  line-height: 1.6;
}

.register-card {
  padding: 28px;
}

#loginPageFormCard,
#registerPageFormCard {
  padding-top: 280px;
}

.register-card h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.register-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.register-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 16px;
  background: #eef4ff;
}

.auth-mode-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #667391;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.auth-mode-button:hover {
  color: var(--blue-deep);
}

.auth-mode-button.is-active {
  background: #fff;
  color: var(--blue-deep);
  box-shadow: 0 8px 22px rgba(37, 99, 255, 0.12);
}

.auth-mode-button:active {
  transform: scale(0.985);
}

.login-mode-panel {
  display: grid;
  gap: 14px;
  animation: auth-panel-enter 220ms ease both;
}

.login-mode-panel[hidden],
.login-new-user-fields[hidden] {
  display: none !important;
}

.login-account-state {
  padding: 11px 13px;
  border-radius: 14px;
  background: #f5f7fb;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  transition: color 180ms ease, background 180ms ease;
}

.login-account-state.is-existing {
  background: #edf9f2;
  color: #157347;
}

.login-account-state.is-new {
  background: #fff7e8;
  color: #9a5b00;
}

.login-new-user-fields {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 255, 0.13);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(238, 244, 255, 0.88), rgba(255, 255, 255, 0.96));
  animation: auth-fields-reveal 260ms ease both;
}

.login-new-user-heading {
  display: grid;
  gap: 4px;
}

.login-new-user-heading strong {
  color: var(--ink);
}

.login-new-user-heading span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

@keyframes auth-panel-enter {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-fields-reveal {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .auth-mode-button,
  .login-mode-panel,
  .login-new-user-fields {
    animation: none;
    transition: none;
  }
}

.register-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.auth-inline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.auth-inline-row .ghost-btn,
.auth-inline-row .primary-btn {
  width: auto;
  white-space: nowrap;
}

.register-form small,
.register-ref-hint {
  color: var(--muted);
  line-height: 1.5;
}

.register-bonus-note {
  color: #dc2626;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.register-form .primary-btn,
.register-form .ghost-btn {
  width: 100%;
}

.register-form .ghost-btn {
  background: #eef4ff;
}

.register-card-footer {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.register-card-footer button {
  font-weight: 600;
}

.register-success {
  display: grid;
  gap: 16px;
}

.register-success-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 18px 32px rgba(28, 66, 200, 0.24);
}

.register-success-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.register-success-actions .primary-btn,
.register-success-actions .ghost-btn {
  flex: 1 1 180px;
}

/* Compact dark authentication portal over the invitation landing page. */
body.auth-portal-page {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: #f4f8fa;
  background: #02090d;
}

.auth-portal-background,
.auth-portal-shade {
  position: fixed;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  border: 0;
}

.auth-portal-background {
  z-index: 0;
  pointer-events: none;
  filter: blur(8px) brightness(0.46) saturate(0.76);
  transform: scale(1.02);
}

.auth-portal-shade {
  z-index: 1;
  background: radial-gradient(circle at 50% 46%, rgba(5, 16, 22, 0.08) 0 16%, rgba(1, 7, 10, 0.36) 58%, rgba(1, 6, 9, 0.64) 100%), rgba(0, 6, 9, 0.28);
  backdrop-filter: blur(2px);
  animation: auth-shade-in 220ms ease-out both;
}

.auth-portal-stage {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.auth-portal-card {
  position: relative;
  width: min(100%, 390px);
  box-sizing: border-box;
  padding: 26px 26px 22px;
  overflow: hidden;
  border: 1px solid rgba(122, 169, 189, 0.2);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(23, 31, 37, 0.985), rgba(16, 21, 27, 0.985));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  animation: auth-dialog-in 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.auth-portal-page #loginPageFormCard,
body.auth-portal-page #registerPageFormCard {
  padding: 26px 26px 22px;
}

.auth-portal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 211, 226, 0.45), transparent);
  opacity: 0.72;
}

.auth-page-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #89939d;
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.auth-page-close:hover {
  color: #f4f8fa;
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(4deg);
}

.auth-portal-brand {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 12px;
  border: 1px solid rgba(29, 203, 218, 0.28);
  border-radius: 13px;
  background: #071014;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 28px rgba(19, 202, 218, 0.08);
}

.auth-portal-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.auth-portal-kicker,
.auth-portal-card h1,
.auth-portal-intro { text-align: center; }

.auth-portal-kicker {
  margin: 0 0 5px;
  color: #a6b0b8;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
}

.auth-portal-card h1 {
  margin: 0;
  color: #f5f7f8;
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.auth-portal-intro {
  margin: 8px 0 0;
  color: #77838c;
  font-size: 0.82rem;
  line-height: 1.6;
}

.auth-portal-form { gap: 14px; margin-top: 21px; }

.auth-portal-form .auth-mode-switch {
  margin-top: 0;
  padding: 0;
  gap: 0;
  border-width: 0 0 1px;
  border-color: rgba(129, 152, 164, 0.18);
  border-radius: 0;
  background: transparent;
}

.auth-portal-form .auth-mode-button {
  position: relative;
  min-height: 43px;
  border-radius: 0;
  color: #747e87;
  font-size: 0.88rem;
  font-weight: 650;
}

.auth-portal-form .auth-mode-button::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -1px;
  left: 12%;
  height: 2px;
  border-radius: 99px;
  background: #17d0df;
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.auth-portal-form .auth-mode-button:hover,
.auth-portal-form .auth-mode-button.is-active { color: #18d3e3; }

.auth-portal-form .auth-mode-button.is-active { background: transparent; box-shadow: none; }
.auth-portal-form .auth-mode-button.is-active::after { opacity: 1; transform: scaleX(1); }
.auth-portal-form .login-mode-panel { gap: 13px; }

.auth-portal-form label {
  display: grid;
  gap: 7px;
  color: #aab3ba;
  font-size: 0.78rem;
  font-weight: 600;
}

.auth-portal-form input {
  min-height: 44px;
  box-sizing: border-box;
  padding: 0 13px;
  border: 1px solid rgba(134, 155, 165, 0.22);
  border-radius: 7px;
  color: #edf4f6;
  background: rgba(11, 17, 22, 0.6);
  caret-color: #17d0df;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-portal-form input::placeholder { color: #555f67; }

.auth-portal-form input:focus {
  border-color: rgba(23, 208, 223, 0.64);
  background: rgba(8, 15, 19, 0.82);
  box-shadow: 0 0 0 3px rgba(23, 208, 223, 0.08);
}

.auth-portal-form .auth-inline-row { grid-template-columns: minmax(0, 1fr) 102px; gap: 8px; }

.auth-code-button {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(23, 208, 223, 0.28);
  border-radius: 7px;
  color: #17d0df;
  background: rgba(16, 31, 36, 0.62);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.auth-code-button:hover { border-color: rgba(23, 208, 223, 0.58); color: #5ce9f1; background: rgba(18, 47, 53, 0.74); }
.auth-code-button:disabled { opacity: 0.56; cursor: wait; }

.auth-portal-form .login-account-state,
.auth-portal-form .login-account-state.is-existing,
.auth-portal-form .login-account-state.is-new {
  padding: 0;
  border-radius: 0;
  color: #69757d;
  background: transparent;
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: center;
}

.auth-portal-form .login-account-state.is-existing { color: #69cda5; }
.auth-portal-form .login-account-state.is-new { color: #eab95f; }
.auth-portal-form.is-checking-account .login-account-state { color: #17d0df; }

.auth-portal-form .login-new-user-fields {
  gap: 12px;
  padding: 13px;
  border-color: rgba(23, 208, 223, 0.16);
  border-radius: 9px;
  background: rgba(8, 15, 19, 0.48);
}

.auth-portal-form .login-new-user-heading strong { color: #dbe5e8; font-size: 0.82rem; }
.auth-portal-form .login-new-user-heading span { color: #67747c; font-size: 0.74rem; }

.auth-portal-submit,
.auth-portal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 7px;
  text-decoration: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-portal-submit {
  border: 1px solid #13bccb;
  color: #031014;
  background: linear-gradient(100deg, #12bfd0, #20d9e3);
  box-shadow: 0 12px 28px rgba(15, 195, 210, 0.14);
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.auth-portal-submit:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 16px 34px rgba(15, 195, 210, 0.2); }
.auth-portal-submit:disabled { opacity: 0.55; cursor: wait; transform: none; }

.auth-portal-secondary { border: 1px solid rgba(134, 155, 165, 0.22); color: #b6c0c6; background: rgba(255, 255, 255, 0.025); }
.auth-register-gift { color: #e7c05d; font-size: 0.77rem; text-align: center; }
.auth-portal-footer { margin: 18px 0 0; color: #69747c; font-size: 0.78rem; text-align: center; }
.auth-portal-footer a { color: #17d0df; text-decoration: none; }
.auth-portal-footer a:hover { text-decoration: underline; }

.auth-portal-logged { display: grid; gap: 16px; text-align: center; }
.auth-portal-logged .register-success-badge { margin: 0 auto; background: linear-gradient(135deg, #12bfd0, #20d9e3); color: #061115; box-shadow: 0 18px 38px rgba(15, 195, 210, 0.2); }
.auth-portal-logged > p { margin: 0; color: #7d8991; }
.auth-portal-logged .register-success-actions { display: grid; }

@keyframes auth-shade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 560px) {
  .auth-portal-stage { place-items: center; padding: max(20px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom)); }
  .auth-portal-card { width: min(100%, 372px); padding: 24px 20px 20px; border-radius: 14px; }
  body.auth-portal-page #loginPageFormCard,
  body.auth-portal-page #registerPageFormCard { padding: 24px 20px 20px; }
  .auth-portal-background { filter: blur(7px) brightness(0.42) saturate(0.72); }
  .auth-portal-brand { width: 46px; height: 46px; margin-bottom: 10px; }
  .auth-portal-brand img { width: 35px; height: 35px; }
  .auth-portal-card h1 { font-size: 1.32rem; }
  .auth-portal-form { margin-top: 18px; }
}

@media (max-height: 720px) and (min-width: 561px) {
  .auth-portal-stage { place-items: start center; padding-top: 18px; }
  .auth-portal-card { padding-top: 20px; padding-bottom: 18px; }
  body.auth-portal-page #loginPageFormCard,
  body.auth-portal-page #registerPageFormCard { padding-top: 20px; padding-bottom: 18px; }
  .auth-portal-brand { width: 42px; height: 42px; margin-bottom: 7px; }
  .auth-portal-brand img { width: 33px; height: 33px; }
  .auth-portal-form { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-portal-card,
  .auth-portal-shade { animation: none; }
}

.product-card.is-clickable {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.account-sections {
  display: grid;
  gap: 24px;
}

.account-block {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(70, 113, 240, 0.12);
  box-shadow: var(--glow);
}

.commission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 22px;
}

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

.profile-summary-panel {
  min-width: 0;
  min-height: 158px;
  box-shadow: none;
  background: #fbfdff;
  animation: promotionPanelIn 280ms ease both;
}

.profile-summary-panel:nth-child(2) {
  animation-delay: 40ms;
}

.profile-summary-panel:nth-child(3) {
  animation-delay: 80ms;
}

.profile-summary-panel > strong {
  overflow-wrap: anywhere;
}

.profile-summary-panel > span {
  line-height: 1.55;
}

.profile-recharge-panel {
  position: relative;
  padding-right: 70px;
  cursor: pointer;
  background: linear-gradient(145deg, #fbfdff, #f1f6ff);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.profile-recharge-panel::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 22px;
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 22px rgba(37, 99, 255, 0.18);
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.profile-recharge-panel:hover {
  border-color: rgba(37, 99, 255, 0.3);
  box-shadow: 0 16px 30px rgba(37, 99, 255, 0.1);
  transform: translateY(-2px);
}

.profile-recharge-panel:hover::after {
  transform: translate(3px, -50%);
}

.profile-recharge-panel:focus-visible {
  outline: 3px solid rgba(37, 99, 255, 0.22);
  outline-offset: 3px;
}

#wallet > .section-heading {
  margin-bottom: 28px;
}

.account-wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(320px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.wallet-balance-panel,
.wallet-withdraw-panel,
.wallet-history-panel {
  border-radius: 24px;
  border-color: rgba(37, 99, 255, 0.12);
  box-shadow: none;
  background: #fbfdff;
}

.wallet-balance-panel {
  display: grid;
  align-content: space-between;
  min-height: 210px;
  animation: promotionPanelIn 280ms ease both;
}

.wallet-balance-panel > strong {
  margin: 16px 0;
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
}

.wallet-balance-panel > span,
.wallet-withdraw-panel > p {
  color: var(--muted);
  line-height: 1.65;
}

.wallet-commission-panel {
  animation-delay: 40ms;
}

.wallet-withdraw-panel {
  padding: 22px;
  animation: promotionPanelIn 320ms 80ms ease both;
}

.wallet-withdraw-panel .form-grid {
  grid-template-columns: 1fr;
  margin-top: 16px;
}

.wallet-withdraw-panel .form-actions {
  margin-top: 18px;
}

.wallet-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.wallet-recharge-center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 220px;
  margin-top: 0;
  padding: 22px 24px;
  border: 1px solid rgba(37, 99, 255, 0.16);
  border-radius: 24px;
  animation: promotionPanelIn 340ms 120ms ease both;
}

.wallet-top-recharge {
  align-items: stretch;
  flex-direction: column;
  min-height: 210px;
}

.wallet-top-recharge .wallet-recharge-entry {
  align-self: flex-start;
}

.wallet-recharge-center > div {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.wallet-recharge-center strong {
  color: var(--ink);
  font-size: 1.22rem;
}

.wallet-recharge-center span:not(.wallet-recharge-entry) {
  color: var(--muted);
  line-height: 1.55;
}

.wallet-recharge-entry {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(37, 99, 255, 0.18);
}

.wallet-history-panel {
  height: 100%;
  margin-top: 0;
  animation: promotionPanelIn 360ms 160ms ease both;
}

#promotion > .section-heading {
  margin-bottom: 28px;
}

.promotion-invite-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  overflow: hidden;
  margin-bottom: 22px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 24px;
  background: #fbfdff;
  animation: promotionPanelIn 280ms ease both;
}

.promotion-invite-main {
  min-width: 0;
  padding: 26px;
}

.promotion-invite-main > strong,
.promotion-binding-note > strong {
  display: block;
  margin: 8px 0;
  color: var(--ink);
  font-size: 1.5rem;
}

.promotion-invite-main > span,
.promotion-binding-note > span {
  color: var(--muted);
  line-height: 1.65;
}

.promotion-binding-note {
  display: grid;
  align-content: center;
  padding: 26px;
  border-left: 1px solid rgba(37, 99, 255, 0.12);
  background: linear-gradient(145deg, #f4f8ff, #edf3ff);
}

.promotion-subordinate-panel,
.promotion-pricing-panel {
  border-radius: 24px;
  border-color: rgba(37, 99, 255, 0.12);
  box-shadow: none;
  background: #fbfdff;
}

.promotion-subordinate-panel {
  margin-bottom: 22px;
  animation: promotionPanelIn 320ms 40ms ease both;
}

.promotion-pricing-panel {
  margin-bottom: 22px;
  animation: promotionPanelIn 340ms 80ms ease both;
}


.promotion-pricing-panel .inventory-item {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.promotion-pricing-panel .inventory-item:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.24);
  background: #fff;
}

.pricing-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 150px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 20px;
  background: linear-gradient(145deg, #f8fbff, #f2f7ff);
}

.pricing-search-field,
.pricing-page-size-field {
  display: grid;
  min-width: 0;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.pricing-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.pricing-search-control input,
.pricing-page-size-field select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pricing-search-control input:focus,
.pricing-page-size-field select:focus {
  border-color: rgba(37, 99, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.08);
}

.pricing-search-control input:focus-visible,
.pricing-page-size-field select:focus-visible,
.commission-pricing-pagination .product-page-btn:focus-visible {
  outline: 3px solid rgba(37, 99, 255, 0.22);
  outline-offset: 2px;
}

.pricing-search-control .ghost-btn,
.pricing-filter-clear {
  min-height: 48px;
  white-space: nowrap;
}

.pricing-filter-summary {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.commission-pricing-pagination {
  padding-top: 18px;
  border-top: 1px solid rgba(37, 99, 255, 0.1);
}

.product-page-ellipsis {
  display: inline-grid;
  min-width: 30px;
  min-height: 42px;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

@keyframes promotionPanelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compact-form h3 {
  margin: 0 0 16px;
}

.promo-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 14px 0 10px;
}

.promo-link-row input,
.price-inline-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #f8fbff;
  outline: none;
}

.field-builder {
  display: grid;
  gap: 10px;
}

.field-builder-list {
  display: grid;
  gap: 10px;
}

.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.field-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.price-inline-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.price-inline-actions {
  display: grid;
  grid-template-columns: minmax(220px, 280px) auto;
  gap: 12px;
  align-items: end;
}

.price-inline-field {
  display: grid;
  gap: 8px;
}

.price-inline-editor input {
  width: 120px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 14px;
  background: #f8fbff;
}

.commission-rate-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-left: auto;
  flex: 0 0 360px;
  width: min(100%, 360px);
}

.commission-rate-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.commission-rate-copy strong {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.2;
}

.commission-rate-copy span {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}

.commission-rate-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.commission-rate-actions .price-inline-field span {
  font-size: 0.88rem;
}

.commission-rate-actions .price-inline-field input {
  width: 100%;
}

.commission-rate-actions .primary-btn {
  min-width: 104px;
  white-space: nowrap;
}

.price-inline-editor > div,
.price-inline-actions,
.price-inline-field {
  min-width: 0;
}

.price-inline-editor strong {
  overflow-wrap: anywhere;
}

.price-inline-actions .price-inline-field input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1100px) {
  .account-wallet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wallet-top-recharge {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .promotion-invite-panel {
    grid-template-columns: 1fr;
  }

  .promotion-binding-note {
    border-top: 1px solid rgba(37, 99, 255, 0.12);
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .wallet-secondary-grid {
    grid-template-columns: 1fr;
  }

  .promotion-pricing-panel > .section-heading {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
  }

  .commission-rate-toolbar {
    width: 100%;
    margin-left: 0;
    flex: none;
  }

  .price-inline-editor {
    grid-template-columns: 1fr;
  }

  .pricing-filter-toolbar {
    grid-template-columns: minmax(0, 1fr) 150px;
  }

  .pricing-search-field,
  .pricing-filter-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  #wallet,
  #promotion {
    padding: 18px;
  }

  .account-wallet-grid {
    grid-template-columns: 1fr;
  }

  .wallet-balance-panel,
  .wallet-withdraw-panel,
  .wallet-history-panel {
    padding: 20px;
  }

  .wallet-recharge-center {
    align-items: stretch;
    flex-direction: column;
    padding: 20px;
  }

  .wallet-recharge-entry {
    width: 100%;
    text-align: center;
  }

  .promotion-invite-main,
  .promotion-binding-note,
  .promotion-subordinate-panel,
  .promotion-pricing-panel {
    padding: 20px;
  }

  .promo-link-row,
  .price-inline-actions,
  .commission-rate-actions {
    grid-template-columns: 1fr;
  }

  .promo-link-row .ghost-btn,
  .price-inline-actions .primary-btn,
  .commission-rate-actions .primary-btn {
    width: 100%;
  }

  .price-inline-editor input {
    width: 100%;
  }

  .pricing-filter-toolbar {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .pricing-page-size-field,
  .pricing-filter-clear {
    width: 100%;
  }

  .pricing-search-control {
    grid-template-columns: 1fr;
  }

  .pricing-search-control .ghost-btn {
    width: 100%;
  }
}

.order-modal-dialog {
  width: min(calc(100% - 24px), 560px);
}

.contact-modal-dialog {
  width: min(calc(100% - 24px), 560px);
}

.contact-modal-copy {
  display: grid;
  gap: 14px;
}

.contact-modal-heading {
  display: block;
  font-size: 1.1rem;
}

.contact-modal-description {
  color: var(--ink);
  line-height: 1.8;
}

.contact-modal-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: #f6f9ff;
  border: 1px solid rgba(37, 99, 255, 0.12);
  color: var(--muted);
  line-height: 1.75;
}

.contact-modal-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.order-product-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
}

.order-product-preview-thumb {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #fff;
}

.order-product-preview-thumb img {
  max-width: 72px;
  max-height: 72px;
}

.order-product-preview-copy {
  display: grid;
  gap: 8px;
}

.order-product-preview-copy strong {
  font-size: 1.05rem;
}

.order-product-preview-copy span {
  color: var(--muted);
}

.order-summary {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fbff;
}

.order-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.order-summary strong {
  color: var(--ink);
}

.product-detail-page {
  display: grid;
  gap: 24px;
}

.product-detail-shell {
  display: grid;
  gap: 24px;
}

.product-detail-card,
.product-detail-desc {
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(70, 113, 240, 0.12);
  box-shadow: var(--glow);
}

.product-detail-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
}

.product-detail-media {
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  min-height: 280px;
}

.product-detail-media img {
  width: 180px;
  height: 180px;
  object-fit: contain;
}

.product-detail-main {
  display: grid;
  gap: 22px;
}

.product-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.product-detail-head h1 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.product-detail-head p {
  margin: 0;
  color: var(--muted);
}

.product-detail-price {
  padding: 14px 18px;
  border-radius: 18px;
  background: #eef4ff;
  color: var(--blue-deep);
}

.product-detail-price strong {
  font-size: 1.6rem;
  color: #ff4d3d;
}

.product-detail-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.detail-field {
  display: grid;
  gap: 8px;
}

.detail-field.full,
.product-detail-summary,
.product-detail-actions {
  grid-column: 1 / -1;
}

.detail-field input,
.detail-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #f8fbff;
  outline: none;
}

.detail-field-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.batch-order-toggle {
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
}

.batch-order-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
}

.batch-order-check input {
  width: 18px;
  height: 18px;
  accent-color: #2f63ff;
}

.batch-order-field.is-hidden {
  display: none;
}

.batch-order-admin-section.is-disabled {
  opacity: 0.68;
}

.batch-order-admin-section.is-disabled .supplier-enable-check {
  cursor: not-allowed;
}

.product-detail-summary {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
}

.product-detail-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-total-card {
  align-items: end;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2f63ff, #173cae);
  box-shadow: 0 18px 28px rgba(37, 99, 255, 0.18);
}

.summary-total-label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.summary-total-value {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.summary-row {
  align-items: center;
  padding: 2px 0;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
}

.product-detail-content {
  line-height: 1.9;
  color: #34415f;
}

.detail-section {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(70, 113, 240, 0.12);
  box-shadow: var(--glow);
}

.detail-section h2 {
  margin: 0;
  font-size: 1.5rem;
}

.detail-copy {
  line-height: 1.9;
  color: #34415f;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.detail-gallery-item {
  margin: 0;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}

.detail-gallery-image {
  display: block;
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  background: #eaf1ff;
}

.order-item,
.inventory-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.order-item strong,
.inventory-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.06rem;
}

.order-product-link {
  color: inherit;
  text-decoration: none;
}

.order-product-link strong {
  color: var(--blue-deep);
  transition: color 180ms ease;
}

.order-product-link:hover strong {
  color: var(--blue);
  text-decoration: underline;
}

.order-meta,
.inventory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.inventory-status-badge.is-error {
  color: #b91c1c;
  font-weight: 700;
}

.order-actions,
.inventory-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.product-exception-note {
  margin-top: 12px;
}

.product-inspection-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.product-zero-sale-summary {
  color: var(--blue-deep);
  font-size: 0.92rem;
  font-weight: 700;
}

.product-zero-sale-list {
  display: grid;
  gap: 10px;
}

.product-zero-sale-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(37, 99, 255, 0.08);
}

.product-zero-sale-item strong {
  color: var(--blue-deep);
}

.admin-order-card {
  align-items: start;
  gap: 20px;
}

.admin-order-main {
  display: grid;
  gap: 16px;
}

.admin-order-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.admin-order-title {
  min-width: 0;
}

.admin-order-title strong {
  margin-bottom: 6px;
  font-size: 1.16rem;
}

.admin-order-subtitle {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.admin-order-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.admin-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-order-field {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, #fcfdff, #f4f8ff);
}

.admin-order-key {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.admin-order-value {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}

.admin-order-detail-value {
  color: var(--ink);
  line-height: 1.7;
  word-break: break-word;
}

.admin-order-error {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 95, 86, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff9f8, #fff1ef);
}

.admin-section[data-admin-panel="users"] {
  gap: 14px;
}

.admin-section[data-admin-panel="users"] > .section-heading {
  margin-bottom: 0;
}

.admin-user-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid #e4e9f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(24, 55, 98, 0.06);
}

.admin-user-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(170px, 0.62fr) minmax(210px, 0.76fr) auto;
  gap: 14px;
  align-items: end;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #e9edf3;
  background: #fff;
}

.admin-user-toolbar label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-user-toolbar label > span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-user-toolbar input,
.admin-user-toolbar select {
  width: 100%;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dce3ed;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.admin-user-toolbar input:focus,
.admin-user-toolbar select:focus {
  border-color: #2563ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.11);
}

.admin-user-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-user-toolbar-actions .primary-btn,
.admin-user-toolbar-actions .ghost-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  white-space: nowrap;
}

.admin-user-table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid #e9edf3;
  color: #718096;
  font-size: 0.8rem;
}

.admin-user-table-meta > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.admin-user-table-meta i,
.admin-user-activity-state i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #94a3b8;
}

.admin-user-table-scroll {
  max-width: 100%;
  overflow: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #cbd5e1 transparent;
}

.admin-user-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #0b1f3a;
  font-size: 0.84rem;
}

.admin-user-table th,
.admin-user-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e9edf3;
  text-align: left;
  vertical-align: middle;
}

.admin-user-table th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8fafc;
  color: #617084;
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-user-table th:nth-child(1) { width: 18%; }
.admin-user-table th:nth-child(2) { width: 12%; }
.admin-user-table th:nth-child(3) { width: 10%; }
.admin-user-table th:nth-child(4) { width: 14%; }
.admin-user-table th:nth-child(5) { width: 6%; }
.admin-user-table th:nth-child(6) { width: 13%; }
.admin-user-table th:nth-child(7) { width: 11%; }
.admin-user-table th:nth-child(8) { width: 8%; }
.admin-user-table th:nth-child(9) { width: 8%; }

.admin-user-table th:first-child,
.admin-user-row > td:first-child {
  position: sticky;
  left: 0;
}

.admin-user-table th:first-child {
  z-index: 5;
}

.admin-user-row > td:first-child {
  z-index: 2;
  background: #fff;
}

.admin-user-table th:last-child,
.admin-user-action-cell {
  position: sticky;
  right: 0;
}

.admin-user-table th:last-child {
  z-index: 5;
}

.admin-user-action-cell {
  z-index: 2;
  background: #fff;
}

.admin-user-action-cell.is-menu-open {
  z-index: 20;
}

.admin-user-table th button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.admin-user-table th button:hover,
.admin-user-table th button.is-active {
  color: #1747c7;
}

.admin-user-table th button:focus-visible {
  outline: 2px solid rgba(37, 99, 255, 0.32);
  outline-offset: 4px;
  border-radius: 3px;
}

.admin-user-row {
  transition: background-color 120ms ease;
}

.admin-user-row:hover > td,
.admin-user-row:hover > td:first-child,
.admin-user-row:hover > .admin-user-action-cell {
  background: #f7faff;
}

.admin-user-row.is-banned > td,
.admin-user-row.is-banned > td:first-child,
.admin-user-row.is-banned > .admin-user-action-cell {
  background: #fffafa;
}

.admin-user-row.is-banned:hover > td,
.admin-user-row.is-banned:hover > td:first-child,
.admin-user-row.is-banned:hover > .admin-user-action-cell {
  background: #fff5f5;
}

.admin-user-row.is-banned .admin-user-avatar {
  color: #a23b3b;
  background: #feeeee;
}

.admin-user-identity {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  color: #164bc8;
  background: #eaf1ff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
}

.admin-user-identity > div,
.admin-user-cell-stack,
.admin-user-time-cell {
  min-width: 0;
}

.admin-user-identity strong,
.admin-user-cell-stack strong,
.admin-user-time-cell > strong {
  display: block;
  overflow: hidden;
  color: #071d3b;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-identity > div > span,
.admin-user-cell-stack span,
.admin-user-time-cell > span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #7a8799;
  font-size: 0.75rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-identity strong {
  overflow: visible;
  line-height: 1.32;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.admin-user-code strong,
.admin-user-time-cell > strong {
  font-variant-numeric: tabular-nums;
}

.admin-user-registration-cell > strong,
.admin-user-registration-cell > span {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.admin-user-registration-cell > span {
  font-variant-numeric: tabular-nums;
}

.admin-user-money strong {
  color: #0b5a39;
}

.admin-user-money-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.admin-user-money-line > strong {
  min-width: 0;
}

.admin-user-balance-toggle {
  flex: 0 0 auto;
  padding: 2px 0;
  border: 0;
  color: #2563ff;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.admin-user-balance-toggle:hover {
  color: #1747c7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-user-order-count {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.admin-user-order-count strong {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.admin-user-order-count span {
  color: #7a8799;
  font-size: 0.75rem;
}

.admin-user-time-cell > strong.is-empty {
  color: #8a96a8;
  font-weight: 600;
}

.admin-user-time-cell > .admin-user-activity-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-user-activity-state.is-online {
  color: #16834c;
  font-weight: 700;
}

.admin-user-activity-state.is-online i {
  background: #22a861;
  box-shadow: 0 0 0 3px rgba(34, 168, 97, 0.12);
}

.admin-user-login-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 27px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}

.admin-user-login-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.admin-user-login-status.is-enabled {
  color: #16834c;
  background: #edf9f2;
}

.admin-user-login-status.is-banned {
  color: #c53b43;
  background: #fff0f1;
}

.admin-user-more {
  position: relative;
  display: inline-flex;
}

.admin-user-action-cell .ghost-btn {
  min-height: 34px;
  padding-inline: 10px;
  border-color: rgba(37, 99, 255, 0.2);
  color: #1747c7;
  background: #f7faff;
  font-size: 0.75rem;
  white-space: nowrap;
}

.admin-user-more-toggle span {
  font-size: 0.82rem;
  transition: transform 140ms ease;
}

.admin-user-more-toggle {
  outline: none;
}

.admin-user-more-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.admin-user-more-toggle:focus-visible {
  outline: 2px solid rgba(37, 99, 255, 0.32);
  outline-offset: 2px;
}

.admin-user-more-menu[hidden] {
  display: none;
}

.admin-user-more-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: grid;
  width: 150px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid #dbe4f0;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 36, 67, 0.16);
}

.admin-user-more-menu button {
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: #233957;
  background: transparent;
  font-size: 0.77rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.admin-user-more-menu button:hover {
  background: #f4f7fb;
}

.admin-user-action-cell .admin-user-login-action.is-ban {
  border-color: rgba(209, 57, 66, 0.24);
  color: #c3333c;
  background: #fff7f7;
}

.admin-user-action-cell .admin-user-delete-action {
  border-color: rgba(190, 36, 46, 0.3);
  color: #b4232d;
  background: #fff3f4;
}

.admin-user-action-cell .admin-user-delete-action:hover {
  border-color: rgba(190, 36, 46, 0.44);
  background: #ffe9eb;
}

.admin-user-action-cell .admin-user-login-action.is-unban {
  border-color: rgba(22, 131, 76, 0.22);
  color: #117343;
  background: #f1faf5;
}

.admin-user-action-cell .admin-user-login-action:disabled,
.admin-user-action-cell .admin-user-delete-action:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-user-balance-row[hidden],
.admin-user-password-row[hidden] {
  display: none;
}

.admin-user-balance-row > td,
.admin-user-password-row > td {
  padding: 0;
  background: #f7faff;
}

.admin-user-balance-form,
.admin-user-password-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(190px, 0.8fr) minmax(190px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 22px;
  border-left: 3px solid #2563ff;
}

.admin-user-balance-form {
  grid-template-columns: minmax(230px, 1.1fr) minmax(170px, 0.75fr) minmax(190px, 0.9fr) minmax(125px, 0.55fr) auto;
}

.admin-user-balance-form label,
.admin-user-balance-heading,
.admin-user-password-form label,
.admin-user-password-heading {
  display: grid;
  gap: 7px;
}

.admin-user-balance-heading span,
.admin-user-balance-form label > span,
.admin-user-password-heading span,
.admin-user-password-form label > span {
  color: #64748b;
  font-size: 0.76rem;
}

.admin-user-balance-form input,
.admin-user-password-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d8e1ed;
  border-radius: 9px;
  background: #fff;
  outline: none;
}

.admin-user-balance-form input:focus,
.admin-user-password-form input:focus {
  border-color: #2563ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 255, 0.1);
}

.admin-user-balance-preview {
  display: grid;
  gap: 7px;
}

.admin-user-balance-preview > span {
  color: #64748b;
  font-size: 0.76rem;
}

.admin-user-balance-preview > strong {
  min-height: 42px;
  display: flex;
  align-items: center;
  color: #0b5a39;
  font-size: 0.96rem;
  font-variant-numeric: tabular-nums;
}

.admin-user-balance-form.is-invalid .admin-user-balance-preview > strong {
  color: #c3333c;
}

.admin-user-balance-actions,
.admin-user-password-actions {
  display: flex;
  gap: 8px;
}

.admin-user-balance-actions button,
.admin-user-password-actions button {
  min-height: 42px;
  white-space: nowrap;
}

.admin-user-empty-row td {
  height: 180px;
  color: #7a8799;
  text-align: center;
}

.status-badge {
  color: var(--blue-deep);
  background: rgba(37, 99, 255, 0.1);
}

.status-badge.pending {
  color: #b46900;
  background: rgba(255, 181, 60, 0.15);
}

.status-badge.processing {
  color: #0068ac;
  background: rgba(0, 151, 211, 0.12);
}

.status-badge.done {
  color: #14803f;
  background: rgba(48, 186, 101, 0.14);
}

.status-badge.refunding,
.status-badge.error {
  color: #a33030;
  background: rgba(211, 73, 73, 0.12);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

.auto-delivery-editor {
  border: 1px dashed rgba(37, 99, 255, 0.2);
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fbff, #f2f7ff);
  display: grid;
  gap: 16px;
}

.auto-delivery-block {
  display: grid;
  gap: 8px;
}

.auto-delivery-title {
  font-size: 0.95rem;
  color: var(--muted);
}

#autoDeliveryRemainingPreview {
  background: rgba(37, 99, 255, 0.04);
  color: var(--text);
}

.delivery-stats-box {
  margin-top: 4px;
}

.delivery-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.delivery-stats-grid div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(37, 99, 255, 0.06);
  display: grid;
  gap: 6px;
}

.delivery-stats-grid span {
  font-size: 0.88rem;
  color: var(--muted);
}

.delivery-stats-grid strong {
  font-size: 1.1rem;
  color: var(--text);
}

.order-detail-box {
  margin-top: 16px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f3f8ff);
  overflow: hidden;
}

.order-detail-box summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text);
}

.order-detail-box summary::-webkit-details-marker {
  display: none;
}

.order-detail-static-box {
  overflow: hidden;
}

.order-detail-static-title {
  padding: 14px 18px;
  font-weight: 700;
  color: var(--text);
}

.order-detail-section {
  padding: 0 18px 18px;
  display: grid;
  gap: 12px;
}

.order-detail-section h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}

.order-detail-grid {
  display: grid;
  gap: 10px;
}

.order-detail-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
}

.order-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.order-progress-card {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 255, 0.08);
}

.order-progress-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.order-progress-value {
  margin: 0;
  font-size: 1.06rem;
  color: var(--text);
  line-height: 1.5;
  word-break: break-word;
}

.order-progress-card-wide {
  grid-column: 1 / -1;
}

.order-progress-copy {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  word-break: break-word;
}

.order-delivery-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(37, 99, 255, 0.08);
  color: var(--text);
  line-height: 1.7;
  word-break: break-word;
}

.product-delivery-note {
  margin-top: 8px;
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 255, 0.08);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-delivery-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(37, 99, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff, #f3f8ff);
  display: grid;
  gap: 12px;
}

.admin-delivery-head {
  display: grid;
  gap: 4px;
}

.admin-delivery-head strong {
  margin: 0;
  font-size: 1rem;
}

.admin-delivery-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-delivery-textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  resize: vertical;
  outline: none;
}

.admin-delivery-textarea:focus {
  border-color: rgba(37, 99, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.08);
}

.admin-delivery-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.admin-delivery-hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-grid span {
  font-size: 0.95rem;
  color: var(--muted);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #f8fbff;
  outline: none;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  border-color: rgba(37, 99, 255, 0.42);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.1);
}

.empty-state {
  padding: 22px;
  text-align: center;
  border-radius: 22px;
  color: var(--muted);
  background: linear-gradient(180deg, #f7faff, #eef4ff);
}

@keyframes floatCore {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes spinSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes spinSlowReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@media (max-width: 1180px) {
  .platform-grid,
  .product-grid,
  .admin-order-meta-grid,
  .admin-user-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .content-layout,
  .admin-grid,
  .nav-admin-shell,
  .hero-panel,
  .my-center-shell {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    grid-template-columns: 224px minmax(0, 1fr);
    gap: 20px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .my-center-sidebar {
    position: static;
  }

  .content-layout-top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .content-layout-top > .account-panel {
    width: 100%;
    flex: none;
  }

  .account-card {
    position: static;
  }

  .menu-board-title,
  .menu-board-grid {
    display: block;
    width: 100%;
  }

  .menu-board-title {
    margin: 0 0 14px;
  }
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .recharge-config-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--container));
    padding-top: 14px;
  }

  .topbar,
  .topbar.compact {
    flex-direction: column;
    align-items: stretch;
    border-radius: 28px;
  }

  .top-actions {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .admin-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    min-height: 0;
    max-height: none;
    justify-self: stretch;
    padding: 14px;
  }

  .admin-sidebar-brand {
    margin-bottom: 12px;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .header-actions,
  .auth-actions {
    flex-wrap: wrap;
  }

  .register-page {
    grid-template-columns: 1fr;
  }

  .register-hero,
  .register-card {
    padding: 24px;
    border-radius: 24px;
  }

  #loginPageFormCard,
  #registerPageFormCard {
    padding-top: 64px;
  }

  .register-success-actions .primary-btn,
  .register-success-actions .ghost-btn {
    width: 100%;
  }

  .register-orbit-showcase {
    padding: 42px 14px;
  }

  .register-orbit-stage {
    width: min(100%, 452px);
    min-height: 392px;
    --far-orbit-size: clamp(304px, 84vw, 452px);
    --outer-orbit-size: clamp(232px, 64vw, 344px);
    --inner-orbit-size: clamp(152px, 42vw, 236px);
  }

  .register-orbit-core {
    width: 166px;
    height: 166px;
  }

  .platform-badge {
    width: 54px;
    height: 54px;
    padding: 0;
    font-size: 0.66rem;
  }

  .register-orbit-ring-far .platform-badge {
    width: 50px;
    height: 50px;
    font-size: 0.56rem;
  }

  .register-orbit-ring-inner .platform-badge {
    width: 44px;
    height: 44px;
    font-size: 0.52rem;
  }

  .hero-panel {
    min-height: auto;
    padding: 28px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .account-head {
    justify-content: center;
  }

  .platform-grid,
  .product-grid,
  .overview-grid,
  .commission-grid,
  .admin-stats-grid,
  .admin-order-meta-grid,
  .admin-user-metrics,
  .admin-order-filter-grid,
  .admin-user-filter-grid,
  .form-grid,
  .selection-group,
  .status-strip,
  .quick-links,
  .member-banner {
    grid-template-columns: 1fr;
  }

  .order-item,
  .inventory-item {
    grid-template-columns: 1fr;
  }

  .product-detail-card,
  .field-row {
    grid-template-columns: 1fr;
  }

  .order-actions,
  .inventory-actions {
    justify-content: start;
  }

  .order-progress-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-order-badges {
    justify-content: start;
  }

  .admin-user-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .menu-board {
    padding: 16px 14px;
    min-height: auto;
  }

  .menu-board-grid {
    gap: 12px 14px;
  }

  .menu-link {
    font-size: 13px;
  }
}

.nav-list-panel .inventory-item.nav-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  grid-template-columns: none;
}

.nav-list-panel .nav-list-main {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list-panel .nav-list-item > .inventory-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-left: auto;
}

@media (max-width: 820px) {
  .product-filter-group {
    gap: 8px;
  }

  .product-filter-group-secondary {
    gap: 10px;
    margin-top: 8px;
    padding: 10px 12px;
  }

  .product-platform-tab {
    min-height: 40px;
    padding: 0 12px;
  }

  .product-category-tab {
    min-height: 40px;
    padding: 0 12px;
  }

  .nav-status-switch {
    grid-template-columns: 1fr;
  }

  .nav-list-panel .inventory-item.nav-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .nav-list-panel .nav-list-item > .inventory-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 820px) {
  .recharge-guide-grid {
    grid-template-columns: 1fr;
  }

  .crypto-checkout-card {
    width: 100%;
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .crypto-checkout-amount strong {
    font-size: 1.7rem;
  }
}

body[data-page="home"] .account-card .status-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 352px;
  margin: 0 auto 18px;
}

body[data-page="home"] .account-card .status-item {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 72px;
  padding: 10px 4px 8px;
  border-radius: 18px;
}

body[data-page="home"] .account-card .status-item strong {
  font-size: 1.45rem;
  line-height: 1;
  margin-bottom: 5px;
}

body[data-page="home"] .account-card .status-item span {
  font-size: 0.86rem;
  line-height: 1.05;
  white-space: nowrap;
}

body[data-page="home"] .account-card .quick-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 352px;
  margin: 8px auto 0;
}

body[data-page="home"] .account-card .quick-links a {
  min-height: 58px;
  gap: 6px;
  padding: 8px 4px 10px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 255, 0.1);
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  color: #23314f;
  font-weight: 600;
}

body[data-page="home"] .account-card .quick-links a::before {
  display: none;
}

body[data-page="home"] .account-card .quick-link-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(37, 99, 255, 0.08);
  color: var(--blue);
}

body[data-page="home"] .account-card .quick-link-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

body[data-page="home"] .account-card .quick-links a span {
  font-size: 0.88rem;
  line-height: 1;
}

.recharge-guide-panel {
  margin-top: 18px;
}

.recharge-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.recharge-config-card {
  align-self: start;
}

.wallet-action-card {
  cursor: pointer;
  border-color: rgba(37, 99, 255, 0.16);
  background: linear-gradient(180deg, #fbfdff, #f3f7ff);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wallet-action-card:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.22);
  background: linear-gradient(180deg, #f9fcff, #eef4ff);
  box-shadow: 0 16px 30px rgba(37, 99, 255, 0.12);
}

.wallet-action-card.is-active {
  border-color: rgba(37, 99, 255, 0.28);
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  box-shadow: 0 18px 34px rgba(37, 99, 255, 0.14);
}

.recharge-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.recharge-guide-copy {
  display: grid;
  gap: 12px;
}

.recharge-guide-copy strong {
  font-size: 1.3rem;
}

.recharge-guide-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.recharge-guide-note,
.recharge-guide-placeholder {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(37, 99, 255, 0.1);
  color: var(--muted);
  line-height: 1.7;
}

.recharge-guide-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.recharge-guide-image-card,
.recharge-config-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 16px;
  border-radius: 20px;
  background: #f8fbff;
  border: 1px dashed rgba(37, 99, 255, 0.18);
}

.recharge-guide-image-card img,
.recharge-config-preview img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 16px;
}

.recharge-guide-image-card-empty {
  min-height: 220px;
  background: transparent;
  border-style: solid;
  border-color: rgba(37, 99, 255, 0.08);
}

.crypto-checkout-shell {
  display: grid;
  gap: 20px;
  justify-items: center;
  padding: 6px 0 2px;
}

.crypto-checkout-brand {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.crypto-checkout-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.crypto-checkout-brand strong {
  font-size: 1.45rem;
  line-height: 1;
  color: #132043;
}

.crypto-checkout-brand span {
  color: #7583a7;
  letter-spacing: 0.08em;
}

.crypto-checkout-card {
  width: min(100%, 360px);
  padding: 20px 18px 18px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top, rgba(86, 130, 255, 0.08), transparent 35%),
    linear-gradient(180deg, #ffffff, #f8fbff 68%, #f5f8ff);
  border: 1px solid rgba(27, 67, 193, 0.08);
  box-shadow: 0 30px 60px rgba(18, 35, 84, 0.14);
  display: grid;
  gap: 18px;
}

.crypto-checkout-card.is-complete {
  box-shadow: 0 30px 60px rgba(18, 120, 76, 0.14);
}

.crypto-checkout-amount {
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}

.crypto-checkout-amount strong {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  line-height: 1;
  color: #132043;
}

.crypto-checkout-amount span {
  color: #6d7b9c;
  font-size: 0.95rem;
}

.crypto-checkout-timer {
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f7f9ff, #edf3ff);
  color: #53627f;
  font-weight: 600;
  text-align: center;
}

.crypto-checkout-timer.is-complete {
  background: linear-gradient(180deg, #eefdf5, #dcf7ea);
  color: #1f8d59;
}

.crypto-checkout-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7d8aad;
  font-size: 0.85rem;
}

.crypto-checkout-status-row span:last-child {
  color: #17337a;
  font-weight: 700;
}

.crypto-checkout-detail-list {
  display: grid;
  gap: 8px;
}

.crypto-checkout-detail-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #7080a3;
  font-size: 0.88rem;
}

.crypto-checkout-detail-list strong {
  color: #19284a;
  font-weight: 700;
}

.crypto-checkout-qr-wrap {
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(27, 67, 193, 0.08);
  display: grid;
  place-items: center;
}

.crypto-checkout-qr-image {
  width: min(100%, 220px);
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}

.crypto-checkout-qr-fallback {
  width: min(100%, 220px);
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px dashed rgba(27, 67, 193, 0.16);
  background: linear-gradient(180deg, #f9fbff, #f0f5ff);
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #6f7d9d;
}

.crypto-checkout-address-block {
  display: grid;
  gap: 8px;
}

.crypto-checkout-address-block span,
.crypto-checkout-address-block small {
  color: #7a87a6;
}

.crypto-checkout-address-block strong {
  font-size: 0.92rem;
  color: #1a2748;
  line-height: 1.5;
  word-break: break-all;
}

.crypto-checkout-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.crypto-checkout-actions .ghost-btn {
  min-height: 40px;
  border-radius: 14px;
  border-color: rgba(37, 99, 255, 0.16);
  background: #f7faff;
  color: #2342a1;
}

.crypto-checkout-footnote {
  display: grid;
  gap: 12px;
}

.crypto-checkout-footnote p {
  margin: 0;
  color: #657493;
  line-height: 1.8;
  text-align: center;
}

.admin-rich-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 255, 0.14);
  border-radius: 16px;
  background: #f8fbff;
  outline: none;
  resize: vertical;
  min-height: 110px;
}

.admin-rich-textarea:focus {
  border-color: rgba(37, 99, 255, 0.34);
  box-shadow: 0 0 0 4px rgba(37, 99, 255, 0.08);
}

.recharge-config-preview {
  margin-top: 14px;
}

/* Admin operations overview */
.admin-overview-section {
  min-width: 0;
  gap: 20px;
}

.admin-overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 2px 0;
}

.admin-overview-heading h1,
.overview-panel-heading h2,
.overview-product-drawer-head h2 {
  margin: 5px 0 0;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.admin-overview-heading h1 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.admin-overview-heading p,
.overview-panel-heading p,
.overview-product-drawer-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-overview-eyebrow {
  color: #2455c7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.admin-overview-heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.admin-overview-heading-actions > span {
  color: var(--muted);
  font-size: 12px;
}

.overview-refresh-button {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(37, 99, 255, 0.18);
  border-radius: 11px;
  color: #24416f;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.overview-refresh-button:hover:not(:disabled) {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.overview-refresh-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.admin-overview-root {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.overview-kpi-grid.is-refreshing {
  opacity: 0.68;
  transition: opacity 160ms ease;
}

.overview-kpi-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 168px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(41, 78, 145, 0.12);
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 14px 36px rgba(29, 67, 133, 0.07);
  text-align: left;
  animation: overviewCardIn 360ms both;
}

.overview-kpi-card:nth-child(2) {
  animation-delay: 45ms;
}

.overview-kpi-card:nth-child(3) {
  animation-delay: 90ms;
}

.overview-kpi-card:nth-child(4) {
  animation-delay: 135ms;
}

.overview-kpi-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--overview-card-accent, var(--blue));
  opacity: 0.9;
}

.overview-kpi-card.is-revenue {
  --overview-card-accent: #2563ff;
}

.overview-kpi-card.is-active-users {
  --overview-card-accent: #15243d;
}

.overview-kpi-card.is-products {
  --overview-card-accent: #0c8f72;
}

.overview-kpi-card.is-new-users {
  --overview-card-accent: #6a59d1;
}

.overview-kpi-button {
  width: 100%;
  appearance: none;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.overview-kpi-button:hover {
  transform: translateY(-2px);
  border-color: var(--overview-card-accent);
  box-shadow: 0 18px 40px rgba(29, 67, 133, 0.13);
}

.overview-kpi-button.is-selected {
  border-color: var(--overview-card-accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.96));
  box-shadow: 0 16px 38px rgba(29, 67, 133, 0.12), inset 0 0 0 1px var(--overview-card-accent);
}

.overview-kpi-button.is-selected .overview-kpi-label em {
  color: #fff;
  background: var(--overview-card-accent);
}

.overview-kpi-button:focus-visible,
.overview-refresh-button:focus-visible,
.overview-range-switch button:focus-visible,
.overview-metric-switch button:focus-visible,
.overview-ranking-scopes button:focus-visible,
.overview-drawer-close:focus-visible {
  outline: 3px solid rgba(37, 99, 255, 0.22);
  outline-offset: 2px;
}

.overview-kpi-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #40506e;
  font-size: 13px;
  font-weight: 750;
}

.overview-kpi-label i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 99px;
  background: var(--overview-card-accent, var(--blue));
}

.overview-kpi-label em {
  margin-left: auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: #78859b;
  background: #f1f4f8;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.overview-kpi-card > strong {
  align-self: center;
  margin: 14px 0;
  font-size: clamp(1.8rem, 2.6vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.overview-kpi-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(41, 78, 145, 0.09);
  color: #7a879c;
  font-size: 11px;
}

.overview-kpi-footer span {
  min-width: 0;
}

.overview-kpi-footer b {
  color: #25344e;
  font-weight: 800;
}

.overview-kpi-top-product {
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.overview-data-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(41, 78, 145, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 40px rgba(29, 67, 133, 0.06);
}

.overview-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.overview-panel-heading h2,
.overview-product-drawer-head h2 {
  font-size: 1.38rem;
}

.overview-panel-heading p,
.overview-product-drawer-head p {
  font-size: 12px;
}

.overview-trend-heading {
  align-items: center;
}

.overview-range-switch,
.overview-ranking-scopes {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(41, 78, 145, 0.12);
  border-radius: 12px;
  background: #f7f9fc;
}

.overview-range-switch button,
.overview-ranking-scopes button {
  min-height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 9px;
  color: #718097;
  background: transparent;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.overview-range-switch button.is-active,
.overview-ranking-scopes button.is-active {
  color: #fff;
  background: #172640;
  box-shadow: 0 7px 16px rgba(23, 38, 64, 0.16);
}

.overview-metric-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 8px;
}

.overview-metric-switch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(41, 78, 145, 0.11);
  border-radius: 10px;
  color: #718097;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  transition: border-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.overview-metric-switch button i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.overview-metric-switch button.is-active {
  color: #21314e;
  border-color: rgba(41, 78, 145, 0.22);
  box-shadow: 0 7px 16px rgba(31, 61, 116, 0.08);
}

.overview-chart-scroll {
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.overview-chart-stage {
  position: relative;
  min-width: 680px;
}

.overview-chart {
  display: block;
  width: 100%;
  min-width: 0;
  height: auto;
  overflow: visible;
}

.overview-chart-hit-area {
  fill: transparent;
  pointer-events: all;
  cursor: crosshair;
}

.overview-chart-hover-target {
  outline: none;
}

.overview-chart-hover-guide,
.overview-chart-hover-point {
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.overview-chart-hover-guide {
  stroke: #8d9aaf;
  stroke-width: 1;
  stroke-dasharray: 4 5;
  vector-effect: non-scaling-stroke;
}

.overview-chart-hover-point {
  stroke: #fff;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 3px 5px rgba(18, 34, 61, 0.28));
}

.overview-chart-hover-target:hover .overview-chart-hover-guide,
.overview-chart-hover-target:hover .overview-chart-hover-point,
.overview-chart-hover-target:focus-visible .overview-chart-hover-guide,
.overview-chart-hover-target:focus-visible .overview-chart-hover-point,
.overview-chart-hover-target.is-active .overview-chart-hover-guide,
.overview-chart-hover-target.is-active .overview-chart-hover-point {
  opacity: 1;
}

.overview-chart-tooltip {
  position: absolute;
  z-index: 4;
  display: grid;
  width: 188px;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  color: #fff;
  background: #172640;
  box-shadow: 0 16px 34px rgba(11, 26, 52, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.overview-chart-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.overview-chart-tooltip > strong {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 750;
}

.overview-chart-tooltip > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 11px;
}

.overview-chart-tooltip i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}

.overview-chart-tooltip b {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-chart-tooltip em {
  margin-left: auto;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.overview-chart-grid-line {
  stroke: rgba(40, 69, 119, 0.1);
  stroke-width: 1;
}

.overview-chart-axis-label {
  fill: #8a96a9;
  font-family: var(--font-sans);
  font-size: 10px;
}

.overview-chart-area {
  opacity: 0.065;
}

.overview-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1900;
  stroke-dashoffset: 1900;
  animation: overviewLineDraw 760ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.overview-chart-point {
  stroke: #fff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.overview-chart-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 12px 2px 0;
  border-top: 1px solid rgba(41, 78, 145, 0.09);
  color: #8390a4;
  font-size: 11px;
}

.overview-chart-summary strong {
  color: #2d3b54;
}

.overview-chart-empty,
.overview-loading-panel,
.overview-error-panel,
.overview-ranking-empty {
  display: grid;
  min-height: 210px;
  place-content: center;
  padding: 28px;
  border: 1px dashed rgba(41, 78, 145, 0.18);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(248, 251, 255, 0.8);
  text-align: center;
}

.overview-error-panel {
  gap: 10px;
}

.overview-error-panel strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.overview-error-panel p {
  margin: 0;
}

.overview-error-panel .primary-btn {
  justify-self: center;
  margin-top: 4px;
}

.overview-daily-panel {
  padding-bottom: 10px;
}

.overview-table-scroll {
  max-height: 520px;
  margin-top: 18px;
  overflow: auto;
  border: 1px solid rgba(41, 78, 145, 0.09);
  border-radius: 15px;
}

.overview-daily-table {
  width: 100%;
  min-width: 920px;
  border-collapse: separate;
  border-spacing: 0;
  color: #40506d;
  font-size: 12px;
}

.overview-daily-table th,
.overview-daily-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(41, 78, 145, 0.08);
  text-align: left;
  white-space: nowrap;
}

.overview-daily-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #6f7e95;
  background: #f7f9fc;
  font-size: 11px;
  font-weight: 800;
}

.overview-daily-table tbody tr:last-child td {
  border-bottom: none;
}

.overview-daily-table tbody tr:hover td {
  background: rgba(244, 248, 255, 0.72);
}

.overview-daily-table td strong {
  color: #293953;
}

.overview-today-tag {
  display: inline-flex;
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 99px;
  color: #2455c7;
  background: #eaf1ff;
  font-size: 9px;
  font-weight: 800;
}

.overview-table-product {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.overview-unavailable {
  color: #a4adbb;
}

.overview-skeleton-card {
  display: grid;
  min-height: 168px;
  gap: 18px;
  padding: 19px;
  border: 1px solid rgba(41, 78, 145, 0.08);
  border-radius: 20px;
  background: #fff;
}

.overview-skeleton-card i,
.overview-skeleton-card b,
.overview-skeleton-card span {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 50%, #eef2f7 75%);
  background-size: 220% 100%;
  animation: overviewSkeleton 1.15s linear infinite;
}

.overview-skeleton-card i {
  width: 42%;
  height: 14px;
}

.overview-skeleton-card b {
  width: 64%;
  height: 34px;
}

.overview-skeleton-card span {
  width: 100%;
  height: 12px;
}

body.admin-overview-drawer-open {
  overflow: hidden;
}

.overview-product-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 120;
}

.overview-product-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 24, 49, 0.46);
  cursor: default;
  animation: overviewBackdropIn 180ms ease both;
}

.overview-product-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(560px, 92vw);
  height: 100%;
  padding: 24px;
  background: #f8faff;
  box-shadow: -28px 0 70px rgba(8, 25, 55, 0.2);
  animation: overviewDrawerIn 260ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.overview-product-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(41, 78, 145, 0.1);
}

.overview-drawer-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(41, 78, 145, 0.12);
  border-radius: 12px;
  place-items: center;
  color: #53627a;
  background: #fff;
  font-size: 25px;
  line-height: 1;
}

.overview-ranking-scopes {
  justify-self: start;
  margin: 18px 0;
}

.overview-product-ranking-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.overview-product-ranking-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(41, 78, 145, 0.1);
  border-radius: 15px;
  background: #fff;
}

.overview-ranking-number {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  place-items: center;
  color: #718097;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 850;
}

.overview-ranking-number.is-top {
  color: #fff;
  background: #172640;
}

.overview-ranking-main {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.overview-ranking-title-row,
.overview-ranking-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.overview-ranking-title-row strong {
  min-width: 0;
  overflow: hidden;
  color: #25344e;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-ranking-title-row b {
  flex: none;
  color: #0c8f72;
  font-size: 12px;
}

.overview-ranking-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf1f6;
}

.overview-ranking-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #18a584, #0c8f72);
}

.overview-ranking-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: #8290a5;
  font-size: 10px;
}

.overview-ranking-empty {
  min-height: 180px;
}

@keyframes overviewCardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes overviewLineDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes overviewSkeleton {
  to { background-position: -220% 0; }
}

@keyframes overviewBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes overviewDrawerIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@media (max-width: 1380px) {
  .overview-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .admin-overview-heading,
  .overview-trend-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-overview-heading-actions {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 620px) {
  .overview-kpi-grid {
    grid-template-columns: 1fr;
  }

  .overview-data-panel {
    padding: 17px;
    border-radius: 18px;
  }

  .overview-range-switch {
    width: 100%;
    overflow-x: auto;
  }

  .overview-range-switch button {
    flex: 1 0 auto;
  }

  .overview-product-drawer {
    width: 100%;
    padding: 18px;
  }

  .overview-ranking-meta {
    gap: 5px 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overview-kpi-card,
  .overview-chart-line,
  .overview-skeleton-card i,
  .overview-skeleton-card b,
  .overview-skeleton-card span,
  .overview-product-drawer-backdrop,
  .overview-product-drawer {
    animation: none !important;
  }
}

.invite-hero-copy-admin {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(320px, 1.35fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid rgba(45, 102, 230, 0.12);
  border-radius: 18px;
  background: rgba(242, 247, 255, 0.72);
}

.invite-hero-copy-admin h3 {
  margin: 0 0 8px;
  color: #16213a;
  font-size: 17px;
}

.invite-hero-copy-admin p {
  margin: 0;
  color: #657493;
  font-size: 13px;
  line-height: 1.7;
}

.invite-hero-copy-admin .admin-rich-textarea {
  min-height: 142px;
  background: #fff;
}

.invite-hero-fixed-admin {
  grid-template-columns: minmax(220px, 0.45fr) minmax(480px, 1.55fr);
}

.invite-hero-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.invite-hero-fields > label,
.invite-hero-stats-admin label {
  display: grid;
  gap: 7px;
  color: #657493;
  font-size: 12px;
}

.invite-hero-fields input,
.invite-hero-fields textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(36, 92, 190, 0.16);
  border-radius: 11px;
  background: #fff;
  color: #16213a;
  font: inherit;
  outline: none;
}

.invite-hero-fields input {
  height: 42px;
  padding: 0 12px;
}

.invite-hero-fields textarea {
  min-height: 82px;
  padding: 10px 12px;
  line-height: 1.65;
  resize: vertical;
}

.invite-hero-fields input:focus,
.invite-hero-fields textarea:focus {
  border-color: rgba(45, 102, 230, 0.62);
  box-shadow: 0 0 0 3px rgba(45, 102, 230, 0.08);
}

.invite-hero-field-wide {
  grid-column: 1 / -1;
}

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

.invite-hero-stats-admin fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(45, 102, 230, 0.12);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
}

.invite-hero-stats-admin legend {
  padding: 0 5px;
  color: #344464;
  font-size: 12px;
  font-weight: 700;
}

.invite-copy-admin-toolbar {
  margin-top: 20px;
  margin-bottom: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(45, 102, 230, 0.1);
}

.invite-icon-admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.invite-icon-admin-toolbar p {
  margin: 0;
  color: #657493;
  font-size: 13px;
}

.invite-icon-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.invite-icon-admin-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(28, 68, 135, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.invite-icon-admin-card.is-new {
  border-color: rgba(45, 102, 230, 0.46);
  box-shadow: 0 14px 30px rgba(45, 102, 230, 0.12);
  animation: invite-icon-card-in 260ms ease both;
}

.invite-icon-add-button {
  color: #245bdd;
  border-color: rgba(45, 102, 230, 0.24);
  background: #eef4ff;
}

.invite-icon-admin-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
}

.invite-icon-admin-card-head > span {
  color: #9aa6ba;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.invite-icon-admin-card-head button {
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(220, 38, 38, 0.14);
  border-radius: 8px;
  color: #c43737;
  background: rgba(254, 242, 242, 0.74);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.invite-icon-admin-card-head button:hover {
  color: #fff;
  border-color: #dc2626;
  background: #dc2626;
}

@keyframes invite-icon-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.invite-icon-admin-preview {
  position: relative;
  width: 64px;
  height: 64px;
  overflow: hidden;
  border: 1px solid rgba(36, 92, 190, 0.16);
  border-radius: 15px;
  background: #f4f7fc;
  cursor: pointer;
}

.invite-icon-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invite-icon-admin-preview span {
  position: absolute;
  inset: auto 0 0;
  padding: 3px 2px;
  background: rgba(9, 24, 51, 0.72);
  color: #fff;
  font-size: 10px;
  text-align: center;
}

.invite-icon-admin-fields {
  display: grid;
  gap: 9px;
}

.invite-icon-admin-fields label {
  display: grid;
  gap: 5px;
  color: #657493;
  font-size: 12px;
}

.invite-icon-admin-fields input:not([type="checkbox"]),
.invite-icon-admin-fields textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(36, 92, 190, 0.16);
  border-radius: 10px;
  background: #fff;
  color: #16213a;
  font: inherit;
  outline: none;
}

.invite-icon-admin-fields input:not([type="checkbox"]) {
  height: 38px;
  padding: 0 10px;
}

.invite-icon-admin-fields input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0 6px 0 0;
  vertical-align: -3px;
  accent-color: #2d66e6;
}

.invite-icon-admin-fields textarea {
  min-height: 58px;
  padding: 9px 10px;
  resize: vertical;
}

.invite-icon-admin-fields input:not([type="checkbox"]):focus,
.invite-icon-admin-fields textarea:focus {
  border-color: rgba(45, 102, 230, 0.62);
  box-shadow: 0 0 0 3px rgba(45, 102, 230, 0.08);
}

@media (max-width: 1180px) {
  .invite-icon-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .invite-hero-copy-admin {
    grid-template-columns: 1fr;
  }

  .invite-hero-fields,
  .invite-hero-stats-admin {
    grid-template-columns: 1fr;
  }

  .invite-icon-admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-icon-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .admin-user-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-user-search-field {
    grid-column: 1 / -1;
  }

  .admin-user-toolbar-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 820px) {
  .admin-user-panel {
    overflow: visible;
    border-radius: 18px;
  }

  .admin-user-toolbar {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .admin-user-search-field {
    grid-column: auto;
  }

  .admin-user-toolbar-actions {
    justify-content: stretch;
  }

  .admin-user-toolbar-actions button {
    flex: 1 1 0;
  }

  .admin-user-table-meta {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .admin-user-table-scroll {
    overflow: visible;
  }

  .admin-user-table {
    display: block;
    min-width: 0;
    table-layout: auto;
  }

  .admin-user-table thead {
    display: none;
  }

  .admin-user-table tbody {
    display: grid;
    gap: 12px;
    padding: 14px;
  }

  .admin-user-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid #e1e8f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(18, 45, 91, 0.06);
  }

  .admin-user-table .admin-user-row > td {
    position: static;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px;
    border: 0;
    border-radius: 10px;
    background: #f8fafc;
  }

  .admin-user-table .admin-user-row:hover > td {
    background: #f8fafc;
  }

  .admin-user-table .admin-user-row.is-banned > td,
  .admin-user-table .admin-user-row.is-banned:hover > td {
    background: #fff7f7;
  }

  .admin-user-table .admin-user-row > td:not(.admin-user-primary-cell)::before {
    content: attr(data-label);
    color: #7a8799;
    font-size: 0.7rem;
    font-weight: 700;
  }

  .admin-user-table .admin-user-primary-cell,
  .admin-user-table .admin-user-row > td:nth-child(4),
  .admin-user-table .admin-user-row > td:nth-child(6),
  .admin-user-table .admin-user-row > td:nth-child(7),
  .admin-user-table .admin-user-action-cell {
    grid-column: 1 / -1;
  }

  .admin-user-table .admin-user-primary-cell {
    padding: 2px 2px 10px;
    background: transparent;
  }

  .admin-user-identity strong,
  .admin-user-cell-stack strong,
  .admin-user-cell-stack span,
  .admin-user-time-cell > strong,
  .admin-user-time-cell > span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .admin-user-action-cell .ghost-btn {
    width: 100%;
    min-height: 44px;
  }

  .admin-user-more {
    display: block;
    width: 100%;
  }

  .admin-user-more-menu {
    width: min(220px, calc(100vw - 16px));
  }

  .admin-user-more-menu button {
    min-height: 44px;
  }

  .admin-user-balance-row,
  .admin-user-password-row {
    display: block;
    margin-top: -12px;
  }

  .admin-user-balance-row > td,
  .admin-user-password-row > td {
    display: block;
    padding: 0;
    border: 0;
  }

  .admin-user-balance-form,
  .admin-user-password-form {
    grid-template-columns: 1fr;
    padding: 16px;
    border: 1px solid #dbe5f4;
    border-left: 3px solid #2563ff;
    border-radius: 0 0 14px 14px;
  }

  .admin-user-balance-actions button,
  .admin-user-password-actions button {
    flex: 1 1 0;
    min-height: 44px;
  }

  .admin-user-empty-row {
    display: block;
  }

  .admin-user-empty-row td {
    display: block;
    height: auto;
    padding: 56px 16px;
    border: 0;
  }
}
