* { box-sizing: border-box; }
html.session-pending { background: #f4f7fb; }
html.session-pending body { visibility: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: #eef3f8;
}
body.dark {
  color: #e5edf5;
  background: #0f1722;
}
button, input { font: inherit; }
.hidden { display: none !important; }
.icon-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, .72), rgba(26, 85, 117, .62)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover;
}
.auth-stack {
  width: min(560px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
}
.auth-panel {
  width: 100%;
  padding: 28px 42px 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  background: #0f766e;
}
.brand-mark.small { width: 40px; height: 40px; font-size: 18px; }
h1, h2, h3, p { margin: 0; }
.auth-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.auth-heading-text { min-width: 0; }
h1 { font-size: 26px; text-align: left; }
.subtle { margin-top: 8px; color: #6b7280; text-align: left; }
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 18px;
  padding: 4px;
  background: #eef2f7;
  border-radius: 8px;
}
.tab {
  height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}
.tab.active { background: #fff; color: #0f766e; font-weight: 700; box-shadow: 0 1px 5px rgba(15, 23, 42, .1); }
.form { display: none; }
.form.active { display: grid; gap: 14px; }
label { display: grid; gap: 7px; color: #374151; }
label span { font-size: 14px; }
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 44px;
  border: 1px solid #d7dde7;
  border-radius: 6px;
  background: #fff;
}
.input-wrap:focus-within { border-color: #0f766e; box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.field-icon {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 18px;
  color: #7a8797;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 6px;
  padding: 0 12px 0 42px;
  outline: none;
  background: transparent;
}
.has-action input { padding-right: 46px; }
.captcha-row,
.email-code-row {
  display: grid;
  grid-template-columns: 1fr 142px;
  gap: 10px;
  align-items: center;
}
.captcha-image {
  width: 142px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #d7dde7;
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden;
}
.captcha-image:hover {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .1);
}
.captcha-image svg {
  display: block;
  width: 142px;
  height: 48px;
}
.code-btn {
  height: 44px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #f97316;
  cursor: pointer;
  font-weight: 700;
}
.code-btn:disabled {
  cursor: not-allowed;
  opacity: .68;
}
.password-toggle {
  position: absolute;
  right: 6px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #7a8797;
  background: transparent;
  cursor: pointer;
}
.password-toggle:hover { color: #0f766e; background: #edf7f5; }
.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.primary-btn, .ghost-btn {
  height: 44px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.primary-btn { color: #fff; background: #0f766e; }
.ghost-btn { padding: 0 18px; color: #0f766e; background: #e6f4f1; }
.message { min-height: 22px; margin-top: 16px; color: #b42318; font-size: 14px; }
.message.ok { color: #067647; }
.auth-footer {
  width: 100%;
  display: grid;
  gap: 6px;
  text-align: center;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(15, 23, 42, .28);
}
.app-shell { min-height: 100vh; display: flex; }
.mobile-nav-toggle,
.mobile-nav-backdrop {
  display: none;
}
.sidebar {
  width: 238px;
  flex: 0 0 238px;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1f2937;
  padding: 0 14px 22px;
  border-right: 1px solid #dbe3ed;
  transition: width .2s ease, flex-basis .2s ease;
}
.side-brand {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 -14px 18px;
  padding: 0 22px;
  border-bottom: 1px solid #dbe3ed;
}
.side-brand span { display: block; margin-top: 3px; color: #667085; font-size: 12px; }
.nav { display: grid; gap: 10px; }
.nav-item {
  height: 42px;
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #475467;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-item.active, .nav-item:hover { color: #fff; background: #0f766e; }
.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #dbe3ed;
}
.sidebar-toggle {
  width: 100%;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  color: #0f766e;
  background: #ecfdf3;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.sidebar-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-shell.sidebar-collapsed .sidebar {
  width: 74px;
  flex-basis: 74px;
  padding-left: 10px;
  padding-right: 10px;
}
.app-shell.sidebar-collapsed .side-brand {
  justify-content: center;
  margin-left: -10px;
  margin-right: -10px;
  padding: 0;
}
.app-shell.sidebar-collapsed .side-brand > div:not(.brand-mark),
.app-shell.sidebar-collapsed .nav-item span,
.app-shell.sidebar-collapsed .sidebar-toggle span {
  display: none;
}
.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 0;
}
.app-shell.sidebar-collapsed .sidebar-toggle {
  padding: 0;
}
.workspace { flex: 1; min-width: 0; padding: 0 24px 24px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  height: 72px;
  margin: 0 -24px;
  padding: 0 24px;
  border-bottom: 1px solid #dbe3ed;
  background: #fff;
}
.topbar h2 { font-size: 20px; line-height: 1.2; font-weight: 700; }
.topbar p { margin-top: 3px; color: #667085; font-size: 13px; line-height: 1.3; }
.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.icon-btn, .lang-btn {
  border: 1px solid #dbe3ed;
  background: #fff;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
}
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.lang-btn {
  height: 34px;
  min-width: 78px;
  padding: 0 13px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.points-pill {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border: 1px solid #dbe3ed;
  border-radius: 17px;
  color: #475467;
  background: #fff;
  font-size: 13px;
  font-weight: 400;
}
.points-pill strong { color: #0f766e; font-weight: 400; }
.icon-btn svg,
.lang-btn svg,
.points-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-menu { position: relative; }
.profile-btn {
  min-width: 132px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe3ed;
  border-radius: 19px;
  padding: 3px 9px 3px 4px;
  color: #344054;
  background: #f8fafc;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
}
.profile-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0f766e;
}
.profile-avatar svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-name {
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}
.profile-arrow {
  width: 14px;
  height: 14px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  width: 132px;
  padding: 6px;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15, 23, 42, .16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: .16s ease;
}
.profile-menu.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.profile-dropdown button {
  width: 100%;
  height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: #344054;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.profile-dropdown button:hover { background: #edf7f5; color: #0f766e; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 18px 0;
}
.stats article, .content-panel {
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  background: #fff;
}
.stats article { padding: 20px; }
.stats span { color: #667085; }
.stats strong { display: block; margin-top: 12px; font-size: 30px; }
.content-panel { margin-top: 20px; padding: 24px; min-height: 260px; }
.content-panel h3 { font-size: 20px; margin-bottom: 10px; }
.content-panel p { color: #667085; line-height: 1.8; }
.content-panel:has(#downloadCenterPanel:not(.hidden)) > #panelTitle,
.content-panel:has(#downloadCenterPanel:not(.hidden)) > #panelText,
.content-panel:has(#authorizationPanel:not(.hidden)) > #panelTitle,
.content-panel:has(#authorizationPanel:not(.hidden)) > #panelText {
  display: none;
}
.admin-users { margin-top: 0; }
.admin-users .admin-toolbar-actions,
.admin-users #adminModeToggleBtn,
.admin-users #cardSearchField,
.admin-users #cardFilterField,
.admin-users #orderSearchField,
.admin-users #orderFilterField { display: none !important; }
.admin-create-card-btn {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}
.user-detail td,
.authorization-detail td { padding: 0 !important; background: #f8fafc; }
.user-auth-list,
.bound-ip-list { display: grid; gap: 8px; padding: 14px 18px 16px 54px; text-align: left; }
.user-auth-list { overflow-x: auto; }
.user-auth-table {
  width: 100%;
  min-width: 760px;
  border: 1px solid #dbe3ed;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.user-auth-table th,
.user-auth-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f6;
  text-align: center;
  font-size: 12px;
  vertical-align: middle;
}
.user-auth-table tbody td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.user-auth-table th { color: #667085; background: #f4f7fa; font-weight: 600; }
.user-auth-table tbody tr:last-child td { border-bottom: 0; }
.user-auth-table th:nth-child(1) { width: 180px; }
.user-auth-table th:nth-child(2) { width: 110px; }
.user-auth-table th:nth-child(3) { width: 170px; }
.user-auth-table th:nth-child(4) { width: 90px; }
.user-auth-table th:nth-child(5) { width: 240px; }
.user-auth-table .table-actions.user-auth-actions {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
}
.user-auth-table .user-auth-actions button { padding: 0 8px; }
.account-auth-count {
  width: fit-content;
  margin: 0 auto !important;
  padding: 5px 9px;
  border-radius: 6px;
  color: #175cd3 !important;
  background: #eff8ff;
  font-weight: 600;
}
.account-user-cell {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 5px 9px;
  border-radius: 6px;
  color: #6941c6;
  background: #f4f3ff;
  text-align: center;
}
.account-user-cell strong {
  display: block;
  max-width: 100%;
  color: inherit !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-user-cell small {
  display: block;
  margin-top: 2px;
  color: #7f56d9;
  font-size: 11px;
}
.account-points-value { color: #067647; background: #ecfdf3; }
.bound-ip-list { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.bound-ip-list > strong { grid-column: 1 / -1; }
.bound-ip-empty { grid-column: 1 / -1; color: #98a2b3; }
.auth-inline-edit { grid-column: 1 / -1; justify-self: start; }
.bound-ip-chip { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 6px; background: #fff; font-family: Consolas, monospace; }
.bound-ip-chip small { color: #64748b; font-family: inherit; }
.expand-user-btn { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #0f766e; cursor: pointer; font-weight: 600; }
.expand-user-btn svg { width: 16px; height: 16px; }
.license-subvalue { display: block; margin-top: 3px; color: #64748b; font-size: 12px; }
.auth-card-preview { margin: 10px 0; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 6px; color: #475569; background: #f8fafc; }
.authorization-panel { margin-top: 4px; }
.download-center { margin-top: 4px; }
.download-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 14px;
}
.download-section-kicker {
  display: block;
  margin-bottom: 4px;
  color: #98a2b3;
  font-size: 12px;
  letter-spacing: .04em;
}
.download-section-heading h4 {
  margin: 0;
  color: #1d2939;
  font-size: 20px;
  font-weight: 700;
}
.download-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}
.download-toolbar .download-tabs {
  flex: 0 0 auto;
  width: fit-content;
  margin: 0;
  gap: 0;
  border-bottom: 1px solid #e4e7ec;
}
.download-toolbar .download-tab {
  width: auto;
  min-width: 116px;
  height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #667085;
}
.download-toolbar .download-tab.active,
.download-toolbar .download-tab:hover {
  color: #0f766e;
  border-bottom-color: #0f766e;
  background: #f0fdfa;
}
.download-search {
  width: 230px;
  flex: 0 0 230px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #98a2b3;
  background: #fff;
}
.download-search svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.download-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: #344054; background: transparent; font: inherit; }
.download-toolbar > .add-download-btn { flex: 0 0 auto; white-space: nowrap; }
.download-toolbar .download-tab[data-category="android"] { color: #15803d; background: #f0fdf4; }
.download-toolbar .download-tab[data-category="ios"] { color: #2563eb; background: #eff6ff; }
.download-toolbar .download-tab[data-category="mir"] { color: #9333ea; background: #faf5ff; }
.download-toolbar .download-tab[data-category="android"].active,
.download-toolbar .download-tab[data-category="android"]:hover { color: #fff; border-bottom-color: #16a34a; background: #16a34a; }
.download-toolbar .download-tab[data-category="ios"].active,
.download-toolbar .download-tab[data-category="ios"]:hover { color: #fff; border-bottom-color: #2563eb; background: #2563eb; }
.download-toolbar .download-tab[data-category="mir"].active,
.download-toolbar .download-tab[data-category="mir"]:hover { color: #fff; border-bottom-color: #9333ea; background: #9333ea; }
.download-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  margin-bottom: 14px;
  border: 1px solid #eaecf0;
  background: #fff;
}
.download-stats > div { padding: 11px 16px; border-right: 1px solid #eaecf0; }
.download-stats > div:last-child { border-right: 0; }
.download-stats span { display: block; margin-bottom: 4px; color: #98a2b3; font-size: 12px; }
.download-stats strong { color: #344054; font-size: 16px; font-weight: 650; }
.download-notice {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid #ead9a5;
  border-radius: 8px;
  padding: 10px 14px;
  color: #7a5a12;
  background: #fff7dc;
  font-size: 13px;
}
.download-notice svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.license-notice {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border: 1px solid #ead9a5;
  border-radius: 8px;
  padding: 10px 14px;
  color: #7a5a12;
  background: #fff7dc;
  font-size: 13px;
}
.license-notice svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.download-tab {
  width: 128px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  color: #475467;
  background: #f8fafc;
  cursor: pointer;
  font-size: 13px;
}
.download-tab.active,
.download-tab:hover {
  color: #fff;
  border-color: #0f766e;
  background: #0f766e;
}
.download-tab svg,
.add-download-btn svg,
.download-link svg,
.expand-download-btn svg,
.edit-download-btn svg,
.delete-download-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 14px;
  color: #667085;
  font-size: 13px;
}
.download-category-filter { margin-left: 14px; }
.download-category-filter svg { color: #667085; }
.download-pagination { margin-left: auto; }
.download-pagination span { min-width: 82px; text-align: center; color: #667085; font-size: 13px; }
.add-download-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #fff;
  background: #0f766e;
  cursor: pointer;
}
.license-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: #667085;
  font-size: 13px;
}
.license-footer-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.license-filter {
  width: 150px;
  background: #fff;
}
.license-footer .pagination-actions {
  justify-content: center;
}
.license-footer .add-download-btn {
  justify-self: end;
}
.download-table {
  min-width: 980px;
  width: 100%;
  table-layout: fixed;
}
.download-table col:nth-child(1) { width: 8%; }
.download-table col:nth-child(2) { width: 14%; }
.download-table col:nth-child(3) { width: 25%; }
.download-table col:nth-child(4),
.download-table col:nth-child(5),
.download-table col:nth-child(6) { width: 17.666666%; }
.user-table.license-table {
  min-width: 1040px;
  table-layout: fixed;
}
.license-table th:nth-child(1),
.license-table td:nth-child(1) { width: 60px; text-align: left; }
.license-table th:nth-child(2),
.license-table td:nth-child(2) { width: 160px; }
.license-table th:nth-child(3),
.license-table td:nth-child(3) { width: 90px; }
.license-table th:nth-child(4),
.license-table td:nth-child(4) { width: 175px; }
.license-table th:nth-child(5),
.license-table td:nth-child(5) { width: 70px; }
.license-table th:nth-child(6),
.license-table td:nth-child(6) { width: 430px; }
.card-table {
  min-width: 1260px;
  table-layout: fixed;
}
.card-table th:nth-child(1),
.card-table td:nth-child(1) { width: 70px; }
.card-table th:nth-child(2),
.card-table td:nth-child(2) { width: 170px; }
.card-table th:nth-child(3),
.card-table td:nth-child(3) { width: 130px; }
.card-table th:nth-child(4),
.card-table td:nth-child(4) { width: 120px; }
.card-table th:nth-child(5),
.card-table td:nth-child(5) { width: 90px; }
.card-table th:nth-child(6),
.card-table td:nth-child(6) { width: 180px; }
.card-table th:nth-child(7),
.card-table td:nth-child(7) { width: 140px; }
.card-table th:nth-child(8),
.card-table td:nth-child(8) { width: 100px; }
.card-table th:nth-child(9),
.card-table td:nth-child(9) { width: 170px; }
.card-table th,
.card-table td { text-align: center; }
.card-table th:first-child,
.card-table td:first-child { text-align: left; }
.card-table .license-value,
.card-table .status-badge {
  margin-left: auto;
  margin-right: auto;
}
.card-actions {
  justify-content: center;
}
.license-table th,
.license-table td { text-align: center; }
.license-table th:nth-child(1),
.license-table td:nth-child(1) { text-align: left; }
.license-table tbody tr:nth-child(odd) { background: #fbfdff; }
.license-index {
  color: #667085;
  font-weight: 600;
}
.license-value {
  margin: 0 auto;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 6px;
  padding: 5px 8px;
  overflow: hidden;
  color: #344054;
  background: #f2f4f7;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.license-table .license-value {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  margin: 0 auto;
}
.license-table .status-badge {
  margin-left: auto;
  margin-right: auto;
}
.appid-cell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}
.blocked-stamp {
  position: absolute;
  top: -12px;
  right: -22px;
  z-index: 1;
  min-width: 46px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d92d20;
  border-radius: 3px;
  color: #b42318;
  background: #fff1f3;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(45deg);
  pointer-events: none;
  box-shadow: 0 2px 5px rgba(180, 35, 24, .12);
}
.license-table .table-actions {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  width: 100%;
}
.license-table .table-actions button {
  flex: 0 0 78px;
  justify-content: center;
  height: 28px;
  gap: 3px;
  padding: 0 4px;
  font-size: 11px;
}
.license-table .table-actions button svg { width: 13px; height: 13px; }
.license-bit64 { color: #6941c6; background: #f4f3ff; }
.license-game { color: #067647; background: #ecfdf3; }
.license-url { color: #175cd3; background: #eff8ff; }
.license-type { color: #b54708; background: #fffaeb; }
.license-time { color: #3538cd; background: #eef4ff; }
.empty-license {
  height: 96px;
  text-align: center !important;
  color: #667085;
  background: #f8fafc;
  font-size: 14px !important;
}
.download-table th,
.download-table td { width: auto; text-align: center !important; }
.download-table td:nth-child(3) { text-align: center !important; }
.download-table td {
  vertical-align: middle;
}
.software-icon { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid #dbe3ed; display: block; margin: 0 auto; }
.software-icon-placeholder { display: inline-flex; align-items: center; justify-content: center; background: #eef6f5; color: #0f766e; }
.software-icon-placeholder svg { width: 28px; height: 28px; }
.download-name-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #1f2937;
  line-height: 1;
  min-width: 0;
}
.download-name-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.download-app-intro { text-align: center !important; }
.download-table td:nth-child(5) .field-cell { justify-content: center; text-align: center; }
.download-index { color: #667085; font-weight: 650; text-align: left !important; padding-left: 20px !important; padding-right: 0 !important; }
.download-actions { justify-content: center; }
.download-app-intro strong,
.download-app-intro span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.download-app-intro strong { color: #1d2939; font-size: 14px; font-weight: 650; }
.download-app-intro span { margin-top: 5px; color: #98a2b3; font-size: 12px; }
.download-type-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  position: relative;
  display: inline-block;
  border-radius: 8px;
  background: #eef6ff;
}
.download-type-icon svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  display: block;
  transform: translate(-50%, -50%);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-name-android .download-type-icon {
  color: #16a34a;
  background: #dcfce7;
}
.download-name-ios .download-type-icon {
  color: #334155;
  background: #e2e8f0;
}
.download-name-mir .download-type-icon {
  color: #7c3aed;
  background: #ede9fe;
}
.download-name-tools .download-type-icon {
  color: #ea580c;
  background: #ffedd5;
}
.download-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.download-link,
.expand-download-btn,
.edit-download-btn,
.delete-download-btn {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  padding: 0 11px;
  color: #fff;
  background: #0f766e;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
}
.expand-download-btn { background: #475467; }
.edit-download-btn { background: #b7791f; }
.delete-download-btn { background: #dc2626; }
.download-log {
  border-radius: 8px;
  padding: 12px 14px 14px;
  color: #475467;
  background: #f8fafc;
  text-align: left;
}
.download-log strong {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin-bottom: 10px;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  padding: 6px 10px;
  color: #1f2937;
  background: #e8f7f3;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.download-log-title {
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  white-space: nowrap !important;
}
.download-log-title svg,
.download-log-title > span {
  flex: 0 0 auto;
}
.download-log-title svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #0f766e;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.download-log ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.download-log li {
  position: relative;
  padding-left: 16px;
  text-align: left;
  line-height: 1.55;
  white-space: pre-wrap;
}
.download-log li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0f766e;
}
.download-log .download-log-empty {
  color: #98a2b3;
}
.card-mall-panel {
  display: grid;
  gap: 0;
}
.mall-hero {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: 28px;
  border: 1px solid #eadff0;
  border-radius: 12px;
  padding: 34px 44px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 101, 132, .16), transparent 34%),
    radial-gradient(circle at 78% 10%, rgba(124, 58, 237, .11), transparent 34%),
    linear-gradient(105deg, #fff7fb 0%, #f6f8ff 50%, #eef9ff 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
  margin-bottom: 28px;
}
.mall-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.mall-hero-copy h2 {
  margin: 0 0 4px;
  color: #303030;
  font-size: 48px;
  line-height: 1.05;
  font-weight: 900;
}
.mall-hero-copy h3 {
  margin: 0 0 18px;
  color: #4a4a4a;
  font-size: 34px;
  line-height: 1.18;
  font-weight: 900;
}
.mall-hero-copy h3 span { color: #ff4aa1; }
.mall-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.9;
}
.mall-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 30px;
}
.mall-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #475467;
  font-size: 13px;
}
.mall-hero-tags svg,
.mall-hero-actions svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mall-hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}
.mall-hero-price span,
.mall-hero-price strong { color: #ff6670; }
.mall-hero-price span {
  font-size: 24px;
  font-weight: 800;
}
.mall-hero-price strong {
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
}
.mall-hero-price b {
  color: #ff6670;
  font-size: 18px;
  font-weight: 800;
}
.mall-hero-price em {
  align-self: center;
  border-radius: 999px;
  padding: 3px 9px;
  color: #fff;
  background: #ff4aa1;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.mall-hero-price del {
  color: #98a2b3;
  font-size: 13px;
}
.mall-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mall-hero-actions > button,
.mall-hero-plan-tabs button {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0 28px;
  text-decoration: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}
.mall-hero-actions > button {
  gap: 8px;
  min-width: 180px;
  color: #fff;
  background: linear-gradient(90deg, #ff7d73, #ff3f93);
  box-shadow: 0 14px 26px rgba(255, 63, 147, .22);
}
.mall-hero-plan-tabs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.mall-hero-plan-tabs button {
  min-width: 108px;
  padding: 0 16px;
  color: #344054;
  background: rgba(255, 255, 255, .82);
}
.mall-hero-plan-tabs button.active {
  color: #fff;
  background: #ff7d73;
  box-shadow: 0 10px 18px rgba(255, 125, 115, .2);
}
.mall-hero-device {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 330px;
  display: grid;
  place-items: center;
  align-self: center;
}
.mall-hero-image-frame {
  width: min(100%, 620px);
  height: 310px;
  align-self: center;
  justify-self: center;
  border: 2px solid rgba(255, 255, 255, .9);
  border-radius: 14px;
  background: url("/static/images/mall-hero.png") center / 100% 100% no-repeat;
}
.mall-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 18px;
  margin-top: 0;
  padding: 0 0 18px;
  line-height: 1;
}
.mall-section-title > span {
  width: 4px;
  height: 20px;
  border-radius: 3px;
  background: #21d4b4;
}
.mall-section-title strong {
  color: #1f2937;
  font-size: 17px;
  font-weight: 800;
}
.mall-section-title p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}
.mall-section-title em {
  margin-left: auto;
  color: #21d4b4;
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
}
.mall-hero-title {
  padding-bottom: 12px;
}
.mall-hero-title + .mall-hero {
  margin-bottom: 28px;
}
.mall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.mall-card {
  min-width: 0;
  min-height: 244px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: stretch;
  gap: 14px;
  border: 1px solid #e5f2ed;
  border-radius: 10px;
  padding: 18px 20px;
  background: linear-gradient(105deg, #ffffff 0%, #f2fbf7 100%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}
.mall-content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
}
.mall-card-head {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}
.mall-card-head strong {
  color: #1f2937;
  font-size: 16px;
  font-weight: 800;
}
.mall-card-head p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}
.mall-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  align-self: center;
  border-radius: 9px;
  color: #fff;
  background: #32c486;
}
.mall-logo svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mall-features {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #344054;
  font-size: 13px;
}
.mall-features li::before {
  content: "✔";
  margin-right: 8px;
  color: #9aa4ad;
  font-weight: 800;
}
.mall-side {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: end;
  gap: 8px;
}
.mall-visual {
  position: relative;
  height: 142px;
  align-self: center;
}
.mall-visual::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 10px;
  bottom: 8px;
  height: 46px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #dfe7ff);
  box-shadow: 0 18px 32px rgba(73, 97, 180, .18);
  transform: perspective(160px) rotateX(48deg);
}
.mall-visual span,
.mall-visual i,
.mall-visual b {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .16);
}
.mall-visual span {
  right: 48px;
  top: 22px;
  background: linear-gradient(145deg, #98f2e0, #54d2c3);
}
.mall-visual i {
  right: 66px;
  top: 62px;
  background: linear-gradient(145deg, #b7f4ee, #63d6dc);
}
.mall-visual b {
  right: 24px;
  top: 64px;
  background: linear-gradient(145deg, #9ba8ff, #6474f7);
}
.mall-visual::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 42px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #76d7ce;
  transform: rotate(45deg);
}
.mall-visual-user span { background: linear-gradient(145deg, #a7f3d0, #22c55e); }
.mall-visual-user i { background: linear-gradient(145deg, #c7d2fe, #818cf8); }
.mall-visual-user b { background: linear-gradient(145deg, #fde68a, #f59e0b); }
.mall-visual-pay span { background: linear-gradient(145deg, #bae6fd, #38bdf8); }
.mall-visual-pay i { background: linear-gradient(145deg, #fecdd3, #fb7185); }
.mall-visual-pay b { background: linear-gradient(145deg, #ddd6fe, #8b5cf6); }
.mall-exchange-btn {
  width: 115px;
  height: 36px;
  justify-self: center;
  border: 1px solid #8dddb9;
  border-radius: 18px;
  color: #0f8f60;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.mall-exchange-btn span { margin-right: 4px; }
.mall-exchange-btn:hover {
  color: #fff;
  background: #32c486;
}
.mall-points {
  align-self: end;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d92d20;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}
.mall-points svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.admin-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.toolbar-field {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  padding: 0 12px;
  background: #f8fafc;
}
.toolbar-field svg,
.refresh-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.toolbar-field svg { color: #667085; }
.search-field { width: min(360px, 100%); }
.filter-field { width: 158px; }
.toolbar-field input,
.toolbar-field select {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
  color: #344054;
  background: transparent;
  font-size: 13px;
}
.toolbar-field select { cursor: pointer; }
.refresh-btn {
  height: 38px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 0 15px;
  color: #fff;
  background: #0f766e;
  cursor: pointer;
  font-size: 13px;
}
.admin-toolbar-actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.order-center-filter {
  margin-left: auto;
}
.admin-mode-buttons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.admin-toolbar-actions .refresh-btn {
  margin-left: 0;
}
.switch-btn {
  border: 1px solid #cfd8e3;
  color: #344054;
  margin-left: 0;
  background: #f8fafc;
}
.switch-btn.active {
  border-color: #14b8a6;
  color: #0f766e;
  background: #ccfbf1;
  box-shadow: 0 1px 4px rgba(20, 184, 166, .18);
}
.switch-btn:not(.active):hover {
  color: #0f766e;
  border-color: #99f6e4;
  background: #f0fdfa;
}
.refresh-btn:hover { filter: brightness(.95); }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
}
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}
.pagination-info {
  color: #667085;
  font-size: 13px;
}
.pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-pagination,
.order-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
}
.account-pagination .pagination-info,
.order-pagination .pagination-info {
  justify-self: start;
}
.account-pagination .pagination-actions,
.order-pagination .pagination-actions {
  justify-self: center;
  grid-column: 2;
}
.pagination-refresh {
  justify-self: end;
  margin-left: 0;
}
.card-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.card-pagination .pagination-info {
  justify-self: start;
}
.card-pagination .pagination-actions {
  justify-self: center;
  grid-column: 2;
}
.card-pagination .add-download-btn {
  justify-self: end;
  grid-column: 3;
  grid-row: 1;
  margin-right: 92px;
}
.card-pagination .pagination-refresh {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  margin-left: 0;
}
.pricing-pagination {
  display: grid;
  grid-template-columns: 1fr auto;
}
.pricing-pagination .pagination-refresh {
  justify-self: end;
}
.pagination-actions button {
  height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #FF6347;
  border-radius: 7px;
  padding: 0 14px;
  color: #fff;
  background: #FF6347;
  cursor: pointer;
  font-size: 13px;
}
.pagination-actions button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pagination-actions button:not(:disabled):hover {
  color: #fff;
  border-color: #e5533d;
  background: #e5533d;
}
.pagination-actions button:disabled {
  color: #fff7ed;
  border-color: #ff9b89;
  background: #ff9b89;
  cursor: not-allowed;
}
.user-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  background: #fff;
}
.user-table.account-table {
  min-width: 960px;
  width: 100%;
  table-layout: fixed;
}
.account-table th,
.account-table td {
  box-sizing: border-box;
  text-align: center;
}
.account-table col:nth-child(1) { width: 8%; }
.account-table col:nth-child(2) { width: 14%; }
.account-table col:nth-child(3) { width: 10%; }
.account-table col:nth-child(4) { width: 10%; }
.account-table col:nth-child(5) { width: 9%; }
.account-table col:nth-child(6) { width: 14%; }
.account-table col:nth-child(7) { width: 35%; }
.account-table .status-badge {
  width: fit-content;
  min-width: 48px;
  margin: 0 auto;
}
.account-table .license-time {
  padding: 4px 6px;
  font-size: 11px;
}
.account-table > tbody > .user-row > td > .table-actions {
  width: 100%;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
}
.account-table > tbody > .user-row > td > .table-actions button {
  flex: 0 0 auto;
  min-width: 0;
  gap: 4px;
  justify-content: center;
  padding: 0 6px;
  font-size: 11px;
  white-space: nowrap;
}
.compact-card-create {
  display: grid;
  grid-template-columns: 150px 140px minmax(250px, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #cfe4df;
  border-radius: 8px;
  background: #f2faf8;
}
.compact-card-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #344054;
  font-size: 12px;
  font-weight: 600;
}
.compact-card-field input,
.compact-card-field select {
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  min-width: 0;
  border: 1px solid #cfd8e3;
  border-radius: 7px;
  padding: 0 10px;
  color: #1d2939;
  background: #fff;
  outline: none;
}
.compact-card-field input:focus,
.compact-card-field select:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}
.user-table th,
.user-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}
.user-table.account-table th,
.user-table.account-table td {
  text-align: center;
}
.user-table th {
  color: #667085;
  background: #f8fafc;
  font-weight: 600;
}
.user-table.license-table th,
.user-table.license-table td {
  text-align: center;
}
.user-table.license-table th:first-child,
.user-table.license-table td:first-child {
  text-align: left;
}
.user-table.license-table th:last-child,
.user-table.license-table td:last-child {
  text-align: center;
}
.user-table.card-table th,
.user-table.card-table td {
  text-align: center;
}
.user-table.card-table th:first-child,
.user-table.card-table td:first-child {
  text-align: left;
}
.user-table.card-table .license-value,
.user-table.card-table .status-badge {
  margin-left: auto;
  margin-right: auto;
}
.user-table.card-table .table-actions {
  justify-content: center;
  width: 100%;
}
.order-table {
  min-width: 1240px;
  table-layout: fixed;
}
.order-table th,
.order-table td {
  text-align: center;
}
.order-table th:first-child,
.order-table td:first-child {
  width: 70px;
  text-align: left;
}
.order-table th:nth-child(2), .order-table td:nth-child(2) { width: 180px; }
.order-table th:nth-child(3), .order-table td:nth-child(3) { width: 190px; }
.order-table th:nth-child(4), .order-table td:nth-child(4) { width: 150px; }
.order-table th:nth-child(5), .order-table td:nth-child(5) { width: 110px; }
.order-table th:nth-child(6), .order-table td:nth-child(6) { width: 120px; }
.order-table th:nth-child(7), .order-table td:nth-child(7) { width: 180px; }
.order-table th:nth-child(8), .order-table td:nth-child(8) { width: 110px; }
.order-pay-btn {
  height: 30px;
  min-width: 68px;
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  background: #0f766e;
  cursor: pointer;
  font-size: 12px;
}
.order-pay-btn:hover { filter: brightness(.94); }
.order-pay-btn:disabled { opacity: .65; cursor: wait; }
.order-action-muted { color: #98a2b3; font-size: 12px; }
.pricing-table th,
.pricing-table td {
  text-align: center;
}
.pricing-table th:first-child,
.pricing-table td:first-child {
  width: 70px;
  text-align: left;
}
.pricing-table .table-actions {
  justify-content: center;
}
.pricing-input {
  width: 88px;
  height: 32px;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  padding: 0 8px;
  text-align: center;
  color: #344054;
  background: #fff;
  outline: none;
}
.pricing-input:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .12);
}
.pricing-name-input {
  width: 150px;
}
.user-table td strong {
  display: block;
  color: #1f2937;
  font-weight: 500;
}
.user-table td span {
  display: block;
  margin-top: 3px;
  color: #667085;
}
.field-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.field-cell > svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #7a8797;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.status-badge {
  display: inline-flex !important;
  align-items: center;
  height: 24px;
  margin-top: 0 !important;
  padding: 0 9px;
  border-radius: 12px;
  font-size: 12px;
}
.status-badge.active { color: #067647; background: #ecfdf3; }
.status-badge.blocked { color: #b42318; background: #fef3f2; }
.status-badge.pending { color: #b54708; background: #fffaeb; }
.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.table-actions button {
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 6px;
  padding: 0 10px;
  color: #fff;
  background: #475467;
  cursor: pointer;
  font-size: 12px;
}
.table-actions button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.table-actions button.primary { background: #0f766e; }
.table-actions button.warning { background: #b7791f; }
.table-actions button.downgrade { background: #475467; }
.table-actions button.danger { background: #d92d20; }
.table-actions button.success { background: #067647; }
.table-actions button:hover { filter: brightness(.94); }
.table-actions button:disabled,
.table-actions button:disabled:hover {
  color: #f8fafc;
  background: #98a2b3;
  cursor: not-allowed;
  filter: none;
  opacity: .72;
}
.dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, .42);
}
.auto-notice {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 80;
  min-width: 150px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  padding: 16px 24px;
  color: #067647;
  background: #ecfdf3;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .24);
  font-size: 15px;
  text-align: center;
  opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}
.auto-notice.closing {
  opacity: 0;
  transform: translate(-50%, -46%);
}
.payment-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .58);
}
.payment-dialog-card {
  width: min(720px, 100%);
  position: relative;
  border-radius: 12px;
  padding: 34px 38px 30px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .35);
}
.payment-dialog-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #475467;
  background: #f2f4f7;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.payment-dialog-title { display: flex; align-items: center; gap: 16px; }
.payment-dialog-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #fff; background: #2563eb; font-size: 25px; font-weight: 800; }
.payment-dialog-title strong { display: block; color: #101828; font-size: 24px; }
.payment-dialog-title small { display: block; margin-top: 5px; color: #667085; font-size: 14px; }
.payment-dialog-status { margin: 26px 0 18px; border-radius: 8px; padding: 13px 16px; color: #175cd3; background: #eff8ff; font-weight: 700; }
.payment-dialog-status.is-warning { color: #b54708; background: #fffaeb; }
.payment-dialog-summary { display: grid; grid-template-columns: 110px 1fr 100px 1fr; gap: 12px; align-items: center; margin-bottom: 22px; color: #667085; }
.payment-dialog-summary strong { overflow: hidden; color: #101828; text-overflow: ellipsis; white-space: nowrap; }
.payment-dialog-url-label { display: block; margin-bottom: 8px; color: #344054; font-weight: 700; }
.payment-dialog-url-row { display: flex; gap: 10px; }
.payment-dialog-url-row input { min-width: 0; flex: 1; height: 44px; border: 1px solid #d0d5dd; border-radius: 7px; padding: 0 12px; color: #475467; background: #f9fafb; }
.payment-copy-btn, .payment-open-btn, .payment-manual-close { height: 44px; border: 0; border-radius: 7px; padding: 0 18px; font-weight: 700; cursor: pointer; }
.payment-copy-btn { color: #344054; background: #eaecf0; }
.payment-dialog-actions { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.payment-open-btn { color: #fff; background: #2563eb; }
.payment-manual-close { color: #344054; background: #eaecf0; }
.payment-dialog-hint { margin: 22px 0 0; color: #98a2b3; font-size: 13px; text-align: center; }
@media (max-width: 640px) {
  .payment-dialog-card { padding: 28px 20px 24px; }
  .payment-dialog-summary { grid-template-columns: 88px 1fr; }
  .payment-dialog-url-row { flex-direction: column; }
  .payment-dialog-actions { flex-direction: column; }
}
.dialog-card {
  width: min(420px, 100%);
  position: relative;
  border-radius: 8px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}
.dialog:has(.compact-fields) .dialog-card {
  width: min(860px, 100%);
}
.dialog.app-id-dialog .dialog-card {
  width: min(520px, 100%);
  padding: 20px 22px 18px;
}
.dialog.compact-card-dialog .dialog-card {
  width: min(700px, 100%);
  padding: 20px 22px 18px;
}
.dialog.auth-register-dialog .dialog-card {
  width: min(760px, 100%);
  padding: 20px 22px 18px;
}
.dialog.renew-auth-dialog .dialog-card {
  width: min(640px, 100%);
  padding: 20px 22px 18px;
}
.dialog.compact-action-dialog .dialog-card {
  width: min(430px, 100%);
  padding: 20px 22px 18px;
}
.dialog.compact-action-dialog .dialog-actions {
  justify-content: center;
  margin-top: 18px;
}
.dialog.compact-action-dialog .downgrade-auth-panel {
  gap: 12px;
  margin-top: 16px;
}
.dialog.compact-action-dialog .downgrade-auth-panel .renew-summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}
.dialog.compact-action-dialog .downgrade-auth-panel .renew-summary > div {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
}
.dialog.compact-action-dialog .downgrade-auth-panel .renew-summary > div > span {
  white-space: nowrap;
}
.dialog.compact-action-dialog .downgrade-auth-panel .renew-summary select {
  width: 100%;
  height: 36px;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  padding: 0 10px;
  color: #344054;
  background: #fff;
}
.dialog.renew-auth-dialog:has(.auth-create-panel) .dialog-card {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.dialog.mall-exchange-dialog .dialog-card {
  width: min(430px, 100%);
  overflow: hidden;
  padding: 0;
}
.dialog.mall-exchange-dialog .dialog-close {
  z-index: 2;
  color: #fff;
  background: transparent;
}
.dialog.mall-exchange-dialog .dialog-card > h3,
.dialog.mall-exchange-dialog #dialogDesc,
.dialog.mall-exchange-dialog .dialog-actions {
  display: none;
}
.dialog.mall-exchange-dialog .dialog-message {
  min-height: 18px;
  margin: 0 18px 12px;
  color: #d92d20;
  font-size: 13px;
  line-height: 18px;
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  color: #667085;
  background: #f2f4f7;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.dialog-close:hover {
  color: #1f2937;
  background: #e4e7ec;
}
.dialog-card h3 { margin: 0; font-size: 20px; }
.dialog-card p { margin: 8px 0 0; color: #667085; line-height: 1.6; }
.renew-auth-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.renew-notice {
  padding: 12px 14px;
  border: 1px solid #86efac;
  border-radius: 8px;
  color: #067647;
  background: #dcfce7;
  font-size: 14px;
}
.auth-mode-selector {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #86efac;
  background: #dcfce7;
}
.auth-mode-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}
.auth-mode-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  min-height: 32px;
  justify-content: center;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: #101828;
  background: transparent;
  cursor: pointer;
  user-select: none;
}
.auth-mode-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.auth-mode-check {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  position: relative;
  flex: 0 0 16px;
  border: 1px solid #98a2b3;
  border-radius: 4px;
  background: #fff;
}
.auth-mode-option input:checked + .auth-mode-check {
  border-color: #4169E1;
  background: #4169E1;
}
.auth-mode-option input:checked + .auth-mode-check::after {
  content: "";
  width: 7px;
  height: 4px;
  position: absolute;
  left: 3px;
  top: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.auth-mode-option:has(input:focus-visible) {
  outline: 2px solid #4169E1;
  outline-offset: 2px;
}
.auth-mode-option strong {
  font-weight: 600;
}
.auth-section-title {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 26px;
  padding: 0 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(15, 118, 110, .2);
  border-radius: 0;
  color: #0f766e;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}
.renew-coupon,
.renew-summary {
  border: 1px solid #efe3c8;
  border-radius: 8px;
  padding: 14px;
}
.renew-coupon { background: #eaebeb; }
.renew-summary { background: #F0FFFF; }
.renew-coupon {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}
.renew-coupon label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-size: 13px;
}
.renew-coupon input {
  height: 36px;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  padding: 0 10px;
  outline: none;
  color: #344054;
  background: #fff;
}
.renew-verify-btn {
  height: 36px;
  border: 0;
  border-radius: 7px;
  padding: 0 16px;
  color: #fff;
  background: #0f766e;
  cursor: pointer;
}
.renew-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 28px;
}
.renew-summary div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-content: start;
  gap: 8px;
  min-width: 0;
  color: #667085;
  font-size: 13px;
  text-align: left;
}
.renew-summary strong {
  min-width: 0;
  color: #1f2937;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-titled-box > .auth-section-title,
.auth-mode-selector > .auth-section-title {
  display: flex;
  grid-column: 1 / -1;
  grid-template-columns: none;
  align-items: center;
  gap: 0;
  color: #0f766e;
  font-size: 13px;
  text-align: left;
}
.card-buy-panel .renew-summary strong {
  user-select: all;
}
.auth-binding-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.auth-binding-panel .auth-server-list {
  display: block;
  min-width: 0;
}
.auth-binding-panel .auth-server-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(68px, .9fr) minmax(68px, .9fr) minmax(140px, 1.6fr);
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.auth-binding-panel .auth-server-row.auth-manifest-row {
  grid-template-columns: minmax(0, 1fr);
}
.auth-binding-panel .auth-server-row:first-child {
  margin-top: 0;
}
.auth-binding-panel .auth-server-row label {
  display: block;
  min-width: 0;
}
.auth-binding-panel .auth-server-row input {
  box-sizing: border-box;
  width: 100%;
  height: 30px;
  min-width: 0;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  padding: 0 9px;
  color: #344054;
  background: #fff;
  outline: none;
}
.auth-binding-panel .auth-remove-server {
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  align-self: center;
}
.auth-binding-panel .auth-server-row .auth-shield-toggle,
.auth-register-form .auth-server-row .auth-shield-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 30px;
  color: #344054;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.auth-binding-panel .auth-shield-toggle input,
.auth-register-form .auth-shield-toggle input {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  accent-color: #15803d;
}
.auth-edit-mode {
  padding: 8px 10px;
  border: 1px solid #86efac;
  border-radius: 7px;
  color: #067647;
  background: #dcfce7;
  font-size: 13px;
  font-weight: 600;
}
.auth-create-panel .renew-coupon input { text-transform: none; }
.renew-duration select {
  width: 120px;
  height: 32px;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  padding: 0 8px;
  color: #344054;
  background: #fff;
  outline: none;
}
.renew-amount-row strong {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.renew-final-price {
  color: #d92d20;
  font-size: 22px;
  font-weight: 800;
}
.renew-origin-price {
  color: #98a2b3;
  font-size: 12px;
  font-weight: 500;
  text-decoration: line-through;
}
.renew-price-pending {
  color: #b54708;
  font-size: 15px;
  font-weight: 700;
}
.dialog.renew-auth-dialog .dialog-actions {
  justify-content: center;
}
.exchange-dialog {
  background: #fff;
}
.exchange-hero {
  height: 136px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
  background: linear-gradient(135deg, #5bc3f1, #2f8df5);
}
.exchange-hero svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}
.exchange-hero strong {
  font-size: 18px;
  font-weight: 700;
}
.exchange-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 18px 12px;
}
.exchange-points div,
.exchange-select-row {
  border-radius: 8px;
  padding: 12px;
  background: #f7f7f7;
}
.exchange-points span,
.exchange-select-row span {
  display: block;
  margin-bottom: 7px;
  color: #667085;
  font-size: 13px;
}
.exchange-points strong {
  color: #ff3b68;
  font-size: 20px;
}
.exchange-order-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 18px 10px;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f7f7f7;
  color: #667085;
  font-size: 13px;
}
.exchange-order-row strong {
  min-width: 0;
  color: #1f2937;
  font-size: 14px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exchange-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(110px, .72fr);
  gap: 24px;
  margin: 0 18px 10px;
}
.exchange-select-row label {
  display: block;
}
.exchange-select-row select {
  width: 100%;
  height: 36px;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  padding: 0 9px;
  color: #344054;
  background: #fff;
  outline: none;
}
.exchange-select-row strong {
  display: block;
  min-height: 36px;
  line-height: 36px;
  color: #1f2937;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.exchange-meta {
  margin: 0 18px 12px;
  color: #667085;
  font-size: 13px;
}
.exchange-submit-btn {
  width: calc(100% - 36px);
  height: 38px;
  display: block;
  margin: 20px 18px 10px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #ff7a66, #ff3131);
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}
.dialog-field {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.dialog-field input {
  height: 42px;
  border: 1px solid #d7dde7;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
}
.dialog-field select,
.dialog-field textarea {
  height: 42px;
  border: 1px solid #d7dde7;
  border-radius: 6px;
  padding: 0 12px;
  background: #fff;
}
.dialog-field textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}
.dialog-fields.compact-fields {
  display: grid;
  grid-template-columns: 120px 180px 120px 130px;
  justify-content: center;
  gap: 14px;
}
.dialog.app-id-dialog .dialog-fields.compact-fields {
  grid-template-columns: 1fr 1fr;
  column-gap: 22px;
  row-gap: 14px;
}
.dialog-fields.compact-fields .dialog-field {
  margin-top: 18px;
}
.dialog.app-id-dialog .dialog-fields.compact-fields .dialog-field {
  margin-top: 8px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.dialog.app-id-dialog .dialog-card h3 {
  padding-right: 34px;
  font-size: 18px;
}
.dialog.app-id-dialog .dialog-field span {
  white-space: nowrap;
}
.dialog.app-id-dialog .dialog-field input,
.dialog.app-id-dialog .dialog-field select {
  height: 34px;
  padding: 0 9px;
}
.dialog.app-id-dialog .dialog-actions {
  justify-content: center;
  margin-top: 18px;
}
.dialog.compact-card-dialog .dialog-actions {
  justify-content: center;
  margin-top: 18px;
}
.auth-register-form {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}
.auth-register-top,
.auth-server-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.auth-server-row {
  grid-template-columns: minmax(180px, 2fr) minmax(68px, .9fr) minmax(68px, .9fr) minmax(140px, 1.6fr);
  margin-top: 10px;
}
.auth-server-row.auth-manifest-row {
  grid-template-columns: minmax(0, 1fr);
}
.auth-manifest-url-field {
  grid-column: 1 / -1;
}
.manifest-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
}
.manifest-title-row .auth-shield-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.auth-title-action {
  min-height: 24px;
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
#addAuthServerBtn {
  color: #fff;
  background: #2563eb;
}
#addAuthServerBtn:hover { background: #1d4ed8; }
#removeAuthServerBtn {
  color: #fff;
  background: #dc2626;
}
#removeAuthServerBtn:hover { background: #b91c1c; }
.auth-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.auth-register-form label,
.auth-server-row label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: #344054;
  font-size: 13px;
}
.auth-register-form input {
  height: 34px;
  min-width: 0;
  border: 1px solid #d7dde7;
  border-radius: 6px;
  padding: 0 9px;
  background: #fff;
}
.auth-register-form input[readonly] {
  color: #667085;
  background: #f2f4f7;
  cursor: not-allowed;
}
.auth-remove-server {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #dc2626;
  cursor: pointer;
}
.auth-remove-server svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.dialog.auth-register-dialog .dialog-actions {
  justify-content: center;
  margin-top: 18px;
}
.dialog-fields.compact-fields .dialog-field input,
.dialog-fields.compact-fields .dialog-field select {
  min-width: 0;
}
.dialog-message {
  min-height: 20px;
  color: #b42318 !important;
  font-size: 13px;
  text-align: center;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.dialog-btn {
  height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 16px;
  cursor: pointer;
}
.dialog-btn.secondary { color: #344054; background: #eef2f7; }
.dialog-btn.primary { color: #fff; background: #0f766e; }
.auth-binding-panel .auth-section-title.manifest-title-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
}
.auth-binding-panel .auth-section-title.manifest-title-row > .auth-shield-toggle,
.auth-binding-panel .auth-section-title.manifest-title-row > .auth-title-actions {
  margin-left: auto;
}
.dialog-btn.auth-title-action {
  min-height: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 13px;
  line-height: 24px;
}
body.dark .sidebar { background: #09111c; border-right-color: #253247; }
body.dark .app-shell .sidebar { border-left-color: #253247; }
body.dark .workspace { background: #0f1722; }
body.dark .topbar { border-color: #253247; background: transparent; }
body.dark .side-brand { border-bottom-color: #253247; }
body.dark .side-brand span { color: #9fb0c2; }
body.dark .nav-item { color: #cbd6e2; }
body.dark .sidebar-footer { border-top-color: #253247; }
body.dark .sidebar-toggle {
  border-color: #253247;
  color: #86efac;
  background: #102a1d;
}
body.dark .topbar p,
body.dark .content-panel p,
body.dark .stats span { color: #9fb0c2; }
body.dark .stats article,
body.dark .content-panel,
body.dark .table-wrap,
body.dark .user-table,
body.dark .icon-btn,
body.dark .lang-btn,
body.dark .points-pill,
body.dark .profile-btn,
body.dark .profile-dropdown {
  border-color: #253247;
  background: #162233;
  color: #e5edf5;
}
body.dark .profile-dropdown button { color: #e5edf5; }
body.dark .profile-dropdown button:hover { background: #203348; }
body.dark .user-table th,
body.dark .user-table td { border-bottom-color: #253247; }
body.dark .user-table th { color: #9fb0c2; background: #111c2b; }
body.dark .user-table td strong { color: #e5edf5; }
body.dark .user-table td span { color: #9fb0c2; }
body.dark .user-auth-table { border-color: #253247; background: #162233; }
body.dark .user-auth-table th { color: #9fb0c2; background: #111c2b; }
body.dark .user-auth-table td { border-bottom-color: #253247; }
body.dark .account-user-cell { color: #c4b5fd; background: rgba(105, 65, 198, .18); }
body.dark .account-user-cell small { color: #a78bfa; }
body.dark .compact-card-create { border-color: #285848; background: #102a1d; }
body.dark .compact-card-field { color: #e5edf5; }
body.dark .compact-card-field input,
body.dark .compact-card-field select { border-color: #253247; color: #e5edf5; background: #111c2b; }
body.dark .pricing-input {
  border-color: #253247;
  color: #e5edf5;
  background: #111c2b;
}
body.dark .field-cell > svg { color: #9fb0c2; }
body.dark .dialog-card {
  border-color: #253247;
  color: #e5edf5;
  background: #162233;
}
body.dark .dialog-field input { border-color: #253247; color: #e5edf5; background: #111c2b; }
body.dark .dialog-card p { color: #9fb0c2; }
body.dark .dialog-btn.secondary { color: #e5edf5; background: #203348; }
body.dark .renew-notice {
  border-color: #14532d;
  color: #86efac;
  background: #102a1d;
}
body.dark .auth-mode-option {
  border-color: transparent;
  color: #e5edf5;
  background: transparent;
}
body.dark .auth-mode-check {
  border-color: #667085;
  background: #111c2b;
}
body.dark .auth-mode-option input:checked + .auth-mode-check {
  border-color: #4169E1;
  background: #4169E1;
}
body.dark .auth-mode-selector {
  border-color: #14532d;
  background: #102a1d;
}
body.dark .auth-section-title {
  border-color: rgba(134, 239, 172, .18);
  color: #86efac;
  background: transparent;
}
body.dark .auth-edit-mode {
  border-color: #14532d;
  color: #86efac;
  background: #102a1d;
}
body.dark .renew-coupon,
body.dark .renew-summary {
  border-color: #253247;
}
body.dark .renew-coupon label,
body.dark .renew-summary div {
  color: #9fb0c2;
}
body.dark .renew-coupon input {
  border-color: #253247;
  color: #e5edf5;
  background: #111c2b;
}
body.dark .renew-duration select {
  border-color: #253247;
  color: #e5edf5;
  background: #111c2b;
}
body.dark .renew-summary strong {
  color: #e5edf5;
}
body.dark .renew-final-price {
  color: #fda29b;
}
body.dark .toolbar-field {
  border-color: #253247;
  background: #111c2b;
}
body.dark .toolbar-field input,
body.dark .toolbar-field select { color: #e5edf5; }
body.dark .toolbar-field svg { color: #9fb0c2; }
body.dark .download-toolbar { color: #9fb0c2; }
body.dark .download-footer { color: #9fb0c2; }
body.dark .download-section-heading h4,
body.dark .download-stats strong { color: #e5edf5; }
body.dark .download-section-kicker,
body.dark .download-stats span { color: #9fb0c2; }
body.dark .download-toolbar .download-tabs { border-bottom-color: #334155; }
body.dark .download-toolbar .download-tab { color: #9fb0c2; background: transparent; }
body.dark .download-toolbar .download-tab.active,
body.dark .download-toolbar .download-tab:hover { color: #5eead4; background: rgba(15, 118, 110, .18); }
body.dark .download-search,
body.dark .download-stats { border-color: #334155; background: #111c2b; }
body.dark .download-search input { color: #e5edf5; }
body.dark .download-stats > div { border-color: #334155; }
body.dark .download-notice,
body.dark .license-notice {
  border-color: #5f4b1b;
  color: #f6d98b;
  background: #2a2418;
}
body.dark .mall-section-title strong,
body.dark .mall-card-head strong {
  color: #e5edf5;
}
body.dark .mall-section-title p {
  color: #9fb0c2;
}
body.dark .mall-card {
  border-color: #253247;
  background: linear-gradient(105deg, #162233 0%, #111c2b 100%);
}
body.dark .mall-card-head p {
  color: #9fb0c2;
}
body.dark .mall-features {
  color: #9fb0c2;
}
body.dark .license-footer { color: #9fb0c2; }
body.dark .download-tab {
  border-color: #253247;
  color: #e5edf5;
  background: #111c2b;
}
body.dark .download-tab.active,
body.dark .download-tab:hover {
  border-color: #0f766e;
  background: #0f766e;
}
body.dark .dialog-field select,
body.dark .dialog-field textarea { border-color: #253247; color: #e5edf5; background: #111c2b; }
body.dark .download-log { color: #9fb0c2; background: #111c2b; }
body.dark .download-log strong { color: #e5edf5; }
body.dark .download-log strong { border-color: #2c6b66; background: #163b3a; }
body.dark .download-name-cell { color: #e5edf5; }
body.dark .download-app-intro strong { color: #e5edf5; }
body.dark .download-app-intro span { color: #9fb0c2; }
body.dark .download-name-android .download-type-icon { color: #4ade80; background: rgba(22, 163, 74, .16); }
body.dark .download-name-ios .download-type-icon { color: #cbd5e1; background: rgba(148, 163, 184, .16); }
body.dark .download-name-mir .download-type-icon { color: #a78bfa; background: rgba(124, 58, 237, .18); }
body.dark .download-name-tools .download-type-icon { color: #fb923c; background: rgba(234, 88, 12, .18); }
body.dark .license-table tbody tr:nth-child(odd) { background: #142033; }
body.dark .license-value { color: #e5edf5; background: #111c2b; }
body.dark .license-bit64 { color: #c4b5fd; background: rgba(105, 65, 198, .18); }
body.dark .license-game { color: #86efac; background: rgba(6, 118, 71, .18); }
body.dark .license-url { color: #93c5fd; background: rgba(23, 92, 211, .18); }
body.dark .license-type { color: #fbbf24; background: rgba(181, 71, 8, .18); }
body.dark .license-time { color: #a5b4fc; background: rgba(53, 56, 205, .18); }
body.dark .empty-license { color: #9fb0c2; background: #111c2b; }
body.dark .pagination-info { color: #9fb0c2; }
body.dark .pagination-actions button {
  border-color: #FF6347;
  color: #fff;
  background: #FF6347;
}
body.dark .pagination-actions button:disabled {
  color: #fff7ed;
  border-color: #9a3412;
  background: #9a3412;
}
@media (max-width: 1180px) {
  .mall-hero {
    grid-template-columns: 1fr;
    padding: 30px;
  }
  .mall-hero-device {
    min-height: 320px;
  }
  .mall-hero-image-frame {
    height: 300px;
  }
  .mall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .auth-panel { padding: 26px 22px 22px; }
  .auth-heading { gap: 12px; }
  h1 { font-size: 23px; }
  .app-shell { display: block; }
  .sidebar { width: 100%; display: block; }
  .side-brand { margin-bottom: 14px; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { padding: 16px; }
  .topbar { height: auto; align-items: flex-start; flex-direction: column; margin: -16px -16px 0; padding: 16px; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .download-tab { width: calc(50% - 5px); }
  .download-footer { align-items: stretch; flex-direction: column; }
  .download-category-filter { margin-left: 0; width: 100%; }
  .download-pagination { justify-content: flex-end; }
  .download-section-heading { align-items: stretch; flex-direction: column; }
  .download-toolbar { align-items: stretch; flex-direction: column; }
  .download-toolbar .download-tabs { width: 100%; }
  .download-toolbar .download-tab { flex: 1 1 0; min-width: 0; }
  .download-search { width: 100%; flex: 1 1 auto; }
  .download-stats { grid-template-columns: 1fr; }
  .download-stats > div { border-right: 0; border-bottom: 1px solid #eaecf0; }
  .download-stats > div:last-child { border-bottom: 0; }
  .license-footer { display: flex; align-items: stretch; flex-direction: column; }
  .license-footer-left { align-items: stretch; flex-direction: column; }
  .add-download-btn { justify-content: center; }
  .search-field,
  .filter-field,
  .refresh-btn { width: 100%; }
  .refresh-btn { justify-content: center; margin-left: 0; }
  .pagination-bar { align-items: stretch; flex-direction: column; }
  .pagination-actions { justify-content: flex-end; }
  .stats { grid-template-columns: 1fr; }
  .mall-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .mall-hero-copy h2 {
    font-size: 34px;
  }
  .mall-hero-copy h3 {
    font-size: 24px;
  }
  .mall-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .mall-hero-actions > button,
  .mall-hero-plan-tabs,
  .mall-hero-plan-tabs button {
    width: 100%;
  }
  .mall-hero-plan-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }
  .mall-hero-device {
    display: none;
  }
  .mall-grid { grid-template-columns: 1fr; }
  .mall-card { grid-template-columns: 1fr; }
  .mall-side { grid-template-rows: auto auto; }
  .mall-exchange-btn { justify-self: start; }
  .mall-visual { height: 120px; }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .top-actions {
    gap: 10px;
  }
  .profile-btn {
    min-width: 118px;
  }
  .mall-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, .92fr);
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .app-shell {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .sidebar {
    width: 86px;
    flex-basis: 86px;
    padding-inline: 10px;
  }
  .side-brand > div:not(.brand-mark),
  .nav-item span,
  .sidebar-toggle span {
    display: none;
  }
  .nav-item,
  .sidebar-toggle {
    justify-content: center;
    padding-inline: 0;
  }
  .workspace {
    min-width: 0;
    padding-inline: 18px;
  }
  .topbar {
    margin-inline: -18px;
    padding-inline: 18px;
  }
  .top-actions {
    flex-wrap: nowrap;
  }
  .mall-hero {
    grid-template-columns: 1fr;
    margin-bottom: 34px;
  }
  .mall-hero-copy h2 {
    font-size: 42px;
  }
  .mall-hero-copy h3 {
    font-size: 30px;
  }
  .mall-hero-device {
    min-height: 300px;
  }
  .mall-hero-image-frame {
    width: min(100%, 720px);
    height: 300px;
  }
  .mall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-toolbar,
  .download-toolbar {
    flex-wrap: wrap;
  }
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  .auth-shell {
    padding: 14px;
  }
  .auth-panel {
    padding: 24px 18px 20px;
  }
  .auth-heading {
    align-items: center;
  }
  .captcha-row,
  .email-code-row {
    grid-template-columns: 1fr;
  }
  .captcha-image,
  .code-btn {
    width: 100%;
  }
  .app-shell {
    display: block;
    position: relative;
  }
  .mobile-nav-toggle {
    position: fixed;
    left: 12px;
    top: 11px;
    z-index: 70;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #475467;
    background: transparent;
    box-shadow: none;
    transform: none;
    cursor: pointer;
    font-size: 0;
  }
  .mobile-nav-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
  }
  .mobile-nav-backdrop {
    position: fixed;
    inset: 58px 0 0;
    z-index: 58;
    display: block;
    background: rgba(15, 23, 42, .38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .app-shell.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 60;
    width: 100%;
    min-height: 0;
    max-height: calc(100vh - 58px);
    display: flex;
    padding: 0 14px 14px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid #dbe3ed;
    box-shadow: 0 18px 34px rgba(15, 23, 42, .16);
    overflow-y: auto;
    transform: translateY(calc(-100% - 80px));
    transition: transform .22s ease;
  }
  .app-shell.sidebar-collapsed .sidebar {
    width: 100%;
    flex-basis: auto;
  }
  .app-shell.mobile-nav-open .sidebar {
    transform: translateY(0);
  }
  .side-brand {
    display: none;
  }
  .side-brand > div:not(.brand-mark),
  .nav-item span,
  .sidebar-toggle span {
    display: block;
  }
  .nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .nav-item {
    justify-content: flex-start;
    min-width: 0;
    height: 40px;
    padding-inline: 10px;
  }
  .sidebar-footer {
    display: none;
  }
  .sidebar-toggle {
    justify-content: center;
  }
  .workspace {
    padding: 72px 14px 14px;
  }
  .content-panel {
    padding: 16px;
  }
  .topbar {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 55;
    height: 58px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin: 0;
    padding: 0 12px 0 58px;
  }
  .topbar > div:first-child {
    min-width: 0;
    flex: 1;
  }
  .topbar h2,
  .topbar p {
    display: none;
  }
  .top-actions {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
  }
  #themeToggle,
  #langToggle {
    display: none;
  }
  .icon-btn,
  .lang-btn,
  .points-pill,
  .profile-btn {
    width: auto;
    min-width: 0;
  }
  .points-pill {
    height: 32px;
    padding: 0 10px;
  }
  .points-pill span {
    display: none;
  }
  .profile-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
  }
  .profile-name,
  .profile-arrow {
    display: none;
  }
  .profile-menu {
    grid-column: auto;
    position: relative;
  }
  .profile-dropdown {
    left: auto;
    right: 0;
    top: calc(100% + 10px);
    width: 136px;
    z-index: 90;
  }
  .profile-dropdown button {
    height: 38px;
    white-space: nowrap;
  }
  .download-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .download-tab {
    width: 100%;
  }
  .admin-toolbar,
  .download-toolbar,
  .license-footer,
  .license-footer-left,
  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-toolbar-actions {
    width: 100%;
    justify-content: stretch;
  }
  .admin-create-card-btn { margin-left: 0; }
  .switch-btn,
  .refresh-btn,
  .add-download-btn,
  .toolbar-field {
    width: 100%;
  }
  .account-pagination,
  .order-pagination,
  .card-pagination,
  .pricing-pagination {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .account-pagination .pagination-actions,
  .order-pagination .pagination-actions,
  .card-pagination .pagination-actions,
  .card-pagination .add-download-btn,
  .card-pagination .pagination-refresh,
  .pricing-pagination .pagination-refresh,
  .pagination-refresh {
    grid-column: auto;
    grid-row: auto;
    justify-self: stretch;
    margin-right: 0;
  }
  .pagination-actions {
    justify-content: center;
  }
  .pagination-actions button {
    flex: 1;
    justify-content: center;
  }
  .table-wrap {
    max-width: 100%;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  .user-auth-list {
    padding: 12px;
  }
  .mall-hero {
    padding: 20px;
    margin-bottom: 24px;
  }
  .mall-hero-copy h2 {
    font-size: 30px;
  }
  .mall-hero-copy h3 {
    font-size: 22px;
  }
  .mall-hero-tags {
    gap: 10px;
    margin: 18px 0 22px;
  }
  .mall-hero-price {
    align-items: center;
    gap: 6px;
  }
  .mall-hero-price strong {
    font-size: 38px;
  }
  .mall-hero-device {
    min-height: 220px;
  }
  .mall-hero-image-frame {
    height: 220px;
  }
  .mall-grid {
    grid-template-columns: 1fr;
  }
  .mall-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 16px;
  }
  .mall-side {
    grid-template-columns: 1fr;
  }
  .mall-exchange-btn {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .compact-card-create {
    grid-template-columns: 1fr;
  }
  .auth-mode-options {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .auth-mode-option {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }
  .auth-binding-panel .auth-server-row {
    grid-template-columns: 1fr;
  }
  .auth-binding-panel .auth-remove-server {
    justify-self: end;
  }
  .mall-hero {
    grid-template-columns: 1fr;
  }
  .mall-hero-device {
    display: none;
  }
}
