.admin-portal-page {
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(57, 183, 122, 0.08), transparent 34%),
    linear-gradient(180deg, #101311 0%, #0b0d0c 100%);
  color: var(--ivory);
  font-family: var(--font-body);
}

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

.user-console {
  background: #11120f;
  color: #f2ead8;
}

.user-console .admin-app-shell {
  background:
    repeating-linear-gradient(0deg, rgba(242, 234, 216, 0.035) 0, rgba(242, 234, 216, 0.035) 1px, transparent 1px, transparent 40px),
    #11120f;
}

.user-console .admin-main {
  padding: 30px;
}

.user-console .admin-sidebar {
  background: #0d0f0d;
  border-right-color: rgba(242, 234, 216, 0.12);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  border-right: 1px solid rgba(240, 234, 220, 0.13);
  background: rgba(12, 15, 13, 0.9);
}

.admin-brand,
.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ivory);
  font-family: var(--font-display);
}

.admin-brand span,
.auth-brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(57, 183, 122, 0.66);
  border-radius: 8px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  background: #101611;
}

.admin-brand span img,
.auth-brand span img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
}

.admin-brand strong,
.auth-brand strong {
  font-size: 18px;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.admin-sidebar nav a,
.admin-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.admin-sidebar nav form {
  margin: 0;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active,
.admin-sidebar nav button:hover {
  border-color: rgba(57, 183, 122, 0.34);
  color: var(--ivory);
  background: rgba(57, 183, 122, 0.09);
}

.admin-sidebar svg {
  width: 17px;
  height: 17px;
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.auth-page .admin-app-shell {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-height: 100vh;
  padding: 42px;
  background:
    radial-gradient(circle at 24% 18%, rgba(57, 183, 122, 0.14), transparent 34%),
    linear-gradient(180deg, #101311 0%, #080a09 100%);
}

.user-auth-page .admin-app-shell {
  background:
    repeating-linear-gradient(90deg, rgba(242, 234, 216, 0.035) 0, rgba(242, 234, 216, 0.035) 1px, transparent 1px, transparent 54px),
    #11120f;
}

.auth-page .admin-main {
  width: min(1120px, 100%);
  padding: 0;
}

.admin-card,
.admin-kpi-card,
.admin-filter-card {
  min-width: 0;
  border: 1px solid rgba(240, 234, 220, 0.13);
  border-radius: 8px;
  background: rgba(16, 19, 17, 0.92);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.2);
}

.user-console .admin-card,
.user-console .admin-kpi-card {
  border-color: rgba(242, 234, 216, 0.14);
  background: #171a16;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.admin-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid rgba(240, 234, 220, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(57, 183, 122, 0.16), transparent 42%),
    rgba(16, 19, 17, 0.92);
}

.user-console-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 16px;
  padding: 0;
}

.software-console .admin-hero.compact,
.user-console .user-console-hero {
  display: none;
}

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

.user-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(242, 234, 216, 0.18);
  border-radius: 8px;
  color: #11120f;
  font-family: var(--font-mono);
  font-weight: 900;
  background: #d8b15e;
}

.user-identity-card h1 {
  margin: 0;
  color: #f2ead8;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.user-identity-card p:not(.admin-eyebrow) {
  margin: 8px 0 0;
  color: #aaa38f;
}

.user-summary-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
}

.balance-block {
  padding: 24px;
  border-right: 1px solid rgba(242, 234, 216, 0.11);
  background: #1d211b;
}

.balance-block span,
.user-quick-grid span {
  display: block;
  color: #8f917f;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.balance-block strong {
  display: block;
  margin-top: 12px;
  color: #f2ead8;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.95;
}

.balance-block small {
  display: block;
  margin-top: 14px;
  color: #aaa38f;
  line-height: 1.65;
}

.user-quick-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(242, 234, 216, 0.1);
}

.user-quick-grid div {
  min-width: 0;
  padding: 22px 18px;
  background: #171a16;
}

.user-quick-grid b {
  display: block;
  min-height: 38px;
  margin-top: 10px;
  color: #f2ead8;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.user-kpi-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.user-kpi-grid .admin-kpi-card {
  min-height: 96px;
  padding: 16px;
  box-shadow: none;
}

.user-kpi-grid .admin-kpi-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.user-kpi-grid .admin-kpi-card svg {
  width: 22px;
  height: 22px;
  color: #d8b15e;
}

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

.plan-card {
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(242, 234, 216, 0.12);
  border-radius: 8px;
  background: #151813;
}

.plan-card.selected-plan {
  border-color: rgba(57, 183, 122, 0.72);
  background:
    linear-gradient(135deg, rgba(57, 183, 122, 0.12), transparent 46%),
    #151813;
}

.plan-card span {
  color: #d8b15e;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.checkout-badge {
  display: inline-grid;
  place-items: center;
  width: max-content;
  min-height: 26px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid rgba(57, 183, 122, 0.42);
  border-radius: 6px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: rgba(57, 183, 122, 0.1);
}

.plan-card h3 {
  margin: 8px 0 0;
  color: #f2ead8;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.1;
}

.plan-card p {
  margin: 10px 0 0;
  color: #aaa38f;
  line-height: 1.6;
}

.plan-card > strong {
  color: #f2ead8;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}

.plan-price-stack {
  display: grid;
  gap: 8px;
}

.plan-price-stack strong {
  color: #f2ead8;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
}

.plan-price-stack small {
  color: #aaa38f;
  font-family: var(--font-mono);
  font-size: 12px;
}

.plan-actions,
.online-pay-form {
  display: grid;
  gap: 10px;
}

.online-pay-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.online-pay-form select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(240, 234, 220, 0.16);
  border-radius: 8px;
  color: var(--ivory);
  background: rgba(240, 234, 220, 0.06);
}

.recharge-panel-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.recharge-balance {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(242, 234, 216, 0.12);
  border-radius: 8px;
  background: #151813;
}

.recharge-balance span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.recharge-balance strong {
  display: block;
  margin-top: 12px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1;
}

.recharge-balance p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.recharge-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.recharge-amount-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

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

.recharge-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.recharge-option span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(240, 234, 220, 0.14);
  border-radius: 8px;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  background: rgba(240, 234, 220, 0.05);
}

.recharge-option input:checked + span {
  border-color: rgba(57, 183, 122, 0.64);
  color: var(--mint);
  background: rgba(57, 183, 122, 0.12);
}

.recharge-pay-form {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.login-user-agent {
  max-width: 360px;
  overflow-wrap: anywhere;
}

.plan-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 234, 220, 0.1);
  border-radius: 8px;
}

.admin-hero h1,
.auth-card h1,
.admin-card-head h2 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.admin-hero h1 {
  font-size: 40px;
  line-height: 1.08;
}

.admin-hero p:not(.admin-eyebrow),
.auth-card p,
.admin-muted {
  color: var(--muted);
  line-height: 1.72;
}

.admin-hero p:not(.admin-eyebrow) {
  margin: 12px 0 0;
  max-width: 780px;
}

.admin-eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-kpi-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 118px;
  padding: 20px;
}

.admin-kpi-card span,
.admin-card-head span,
.admin-field span {
  display: block;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.admin-kpi-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.admin-kpi-card svg {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--mint);
}

.admin-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.admin-split > * {
  min-width: 0;
}

.admin-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.admin-stat-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-stat-grid > * {
  min-width: 0;
}

.admin-card {
  margin-bottom: 18px;
  padding: 22px;
}

.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-card-head h2 {
  margin-top: 6px;
  font-size: 24px;
}

.admin-card-head svg {
  width: 22px;
  height: 22px;
  color: var(--mint);
}

.admin-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-link {
  color: var(--mint);
  font-size: 14px;
  font-weight: 800;
}

.admin-chart-card {
  min-height: 300px;
}

.overview-kpi-grid .overview-kpi-card {
  align-items: stretch;
  min-height: 132px;
}

.overview-kpi-card > div:first-child {
  display: grid;
  align-content: space-between;
  min-width: 0;
}

.overview-kpi-card small {
  display: block;
  margin-top: 12px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.overview-kpi-meta {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.overview-kpi-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  max-width: 148px;
  padding: 0 9px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 6px;
  color: var(--mint);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
  text-align: right;
  background: rgba(37, 99, 235, 0.08);
}

.overview-kpi-chip.up {
  border-color: rgba(15, 118, 110, 0.22);
  color: var(--green);
  background: rgba(15, 118, 110, 0.08);
}

.overview-kpi-chip.down,
.overview-kpi-chip.warning {
  border-color: rgba(180, 83, 9, 0.26);
  color: var(--amber);
  background: rgba(180, 83, 9, 0.08);
}

.overview-kpi-chip.flat,
.overview-kpi-chip.neutral {
  border-color: var(--line);
  color: var(--blue);
  background: rgba(100, 116, 139, 0.08);
}

.overview-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.overview-focus-grid > *,
.overview-chart-split > * {
  min-width: 0;
}

.overview-wide-card {
  min-height: 360px;
}

.admin-trend-chart {
  display: grid;
  gap: 16px;
}

.admin-trend-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-trend-summary span,
.admin-trend-summary strong {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #f8fafc;
}

.admin-trend-summary strong {
  color: var(--ivory);
  background: #ffffff;
}

.admin-trend-svg {
  width: 100%;
  height: 190px;
  overflow: visible;
}

.admin-trend-grid {
  stroke: var(--line);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.admin-trend-grid.soft {
  opacity: 0.7;
  stroke-dasharray: 4 7;
}

.admin-trend-area {
  fill: rgba(37, 99, 235, 0.12);
}

.admin-trend-line {
  fill: none;
  stroke: var(--mint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.admin-trend-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.admin-stacked-chart {
  display: grid;
  gap: 16px;
}

.admin-stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.admin-stack-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

.admin-stack-legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--mint);
}

.admin-stack-legend-item.segment-2 i {
  background: var(--green);
}

.admin-stack-legend-item.segment-3 i {
  background: var(--amber);
}

.admin-stack-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(34px, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 230px;
  overflow-x: auto;
  padding: 4px 2px 0;
}

.admin-stack-bar {
  display: grid;
  grid-template-rows: 20px 168px auto;
  gap: 8px;
  min-width: 34px;
  text-align: center;
}

.admin-stack-bar strong {
  overflow: hidden;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-stack-bar > span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-stack-column {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  align-self: end;
  width: 100%;
  height: 168px;
  overflow: hidden;
  border-radius: 7px 7px 4px 4px;
  background:
    linear-gradient(180deg, rgba(100, 116, 139, 0.07), rgba(100, 116, 139, 0.02)),
    #f8fafc;
}

.admin-stack-segment {
  min-height: 3px;
  background: var(--mint);
}

.admin-stack-segment.segment-2 {
  background: var(--green);
}

.admin-stack-segment.segment-3 {
  background: var(--amber);
}

.admin-stack-segment.empty {
  min-height: 0;
}

.admin-distribution-chart {
  display: grid;
  gap: 14px;
}

.admin-distribution-chart.compact {
  gap: 10px;
  margin-top: 16px;
}

.admin-distribution-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 7px 12px;
  align-items: center;
}

.admin-distribution-row header {
  display: flex;
  grid-column: 1 / -1;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.admin-distribution-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--dim);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-distribution-row strong {
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 18px;
}

.admin-distribution-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
}

.admin-distribution-track i {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--green));
}

.admin-distribution-row:nth-child(even) .admin-distribution-track i {
  background: linear-gradient(90deg, var(--green), var(--amber));
}

.admin-distribution-row small {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.overview-compact-rank {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.overview-subtitle {
  margin-bottom: 10px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

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

.overview-health-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.overview-health-item span {
  display: block;
  color: var(--dim);
  font-size: 12px;
  font-weight: 900;
}

.overview-health-item strong {
  display: block;
  margin-top: 10px;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.overview-health-track {
  height: 9px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.12);
}

.overview-health-track i {
  display: block;
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--green));
}

.overview-health-item small {
  display: block;
  margin-top: 9px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.admin-empty-note.compact {
  min-height: 86px;
  margin-top: 14px;
}

.admin-chart-list,
.admin-rate-list {
  display: grid;
  gap: 14px;
}

.admin-chart-row,
.admin-rate-row {
  display: grid;
  gap: 8px;
}

.admin-chart-row header,
.admin-rate-row header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.admin-chart-row span,
.admin-rate-row span,
.admin-metric-item span {
  color: var(--dim);
  font-size: 13px;
  font-weight: 800;
}

.admin-chart-row strong,
.admin-rate-row strong,
.admin-metric-item strong {
  color: var(--ivory);
  font-family: var(--font-display);
  letter-spacing: 0;
}

.admin-chart-row small,
.admin-rate-row small {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
}

.admin-chart-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(240, 234, 220, 0.08);
}

.admin-chart-fill {
  width: var(--pct);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), rgba(245, 198, 96, 0.92));
}

.admin-chart-row:nth-child(even) .admin-chart-fill,
.admin-rate-row:nth-child(even) .admin-chart-fill {
  background: linear-gradient(90deg, rgba(245, 198, 96, 0.94), rgba(57, 183, 122, 0.88));
}

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

.admin-metric-item {
  min-height: 108px;
  padding: 16px;
  border: 1px solid rgba(240, 234, 220, 0.1);
  border-radius: 8px;
  background: rgba(240, 234, 220, 0.035);
}

.admin-metric-item strong {
  display: block;
  margin-top: 12px;
  font-size: 30px;
  line-height: 1;
}

.admin-empty-note {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed rgba(240, 234, 220, 0.14);
  border-radius: 8px;
  color: var(--dim);
  text-align: center;
}

.admin-table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(240, 234, 220, 0.1);
  border-radius: 8px;
}

.admin-table-wrap.compact {
  max-height: 420px;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #ddd8c8;
  font-size: 14px;
}

.admin-table-dense {
  min-width: 1580px;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(240, 234, 220, 0.08);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  background: #111611;
}

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

.admin-table code {
  color: var(--mint);
  font-family: var(--font-mono);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(240, 234, 220, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font-size: 13px;
}

.admin-pagination-summary {
  font-weight: 700;
  color: var(--text);
}

.admin-pagination-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.admin-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(240, 234, 220, 0.14);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.admin-page-link:hover,
.admin-page-link.active {
  border-color: rgba(109, 242, 198, 0.42);
  color: var(--mint);
  background: rgba(109, 242, 198, 0.1);
}

.admin-page-link.disabled {
  color: var(--dim);
  cursor: default;
  opacity: 0.55;
}

.admin-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 32px;
  color: var(--dim);
  font-weight: 700;
}

.admin-page-size {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  margin: 0 0 0 4px;
  padding-left: 8px;
  border-left: 1px solid rgba(240, 234, 220, 0.12);
}

.admin-page-size span {
  margin-right: 4px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
}

.admin-page-size-select {
  min-width: 72px;
  min-height: 30px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(240, 234, 220, 0.14);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.admin-page-size-select:hover,
.admin-page-size-select:focus {
  border-color: rgba(109, 242, 198, 0.48);
  color: var(--mint);
  background: rgba(109, 242, 198, 0.12);
}

.empty-cell {
  height: 74px;
  color: var(--dim);
  text-align: center !important;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(240, 234, 220, 0.14);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-active {
  border-color: rgba(57, 183, 122, 0.42);
  color: var(--mint);
  background: rgba(57, 183, 122, 0.1);
}

.status-published {
  border-color: rgba(57, 183, 122, 0.42);
  color: var(--mint);
  background: rgba(57, 183, 122, 0.1);
}

.status-paid,
.status-completed {
  border-color: rgba(57, 183, 122, 0.42);
  color: var(--mint);
  background: rgba(57, 183, 122, 0.1);
}

.status-draft,
.status-paused {
  border-color: rgba(201, 154, 69, 0.42);
  color: #f0c36a;
  background: rgba(201, 154, 69, 0.1);
}

.status-pending,
.status-approved {
  border-color: rgba(201, 154, 69, 0.42);
  color: #f0c36a;
  background: rgba(201, 154, 69, 0.1);
}

.status-disabled,
.status-expired,
.status-archived,
.status-offline {
  border-color: rgba(216, 90, 90, 0.34);
  color: #ff9494;
  background: rgba(216, 90, 90, 0.1);
}

.status-long {
  border-color: rgba(57, 183, 122, 0.42);
  color: var(--mint);
  background: rgba(57, 183, 122, 0.1);
}

.status-buy {
  border-color: rgba(57, 183, 122, 0.42);
  color: var(--mint);
  background: rgba(57, 183, 122, 0.1);
}

.status-short {
  border-color: rgba(216, 90, 90, 0.34);
  color: #ff9494;
  background: rgba(216, 90, 90, 0.1);
}

.status-sell {
  border-color: rgba(216, 90, 90, 0.34);
  color: #ff9494;
  background: rgba(216, 90, 90, 0.1);
}

.status-flat {
  border-color: rgba(201, 154, 69, 0.42);
  color: #f0c36a;
  background: rgba(201, 154, 69, 0.1);
}

.status-open,
.status-success,
.status-filled,
.status-done,
.status-new {
  border-color: rgba(57, 183, 122, 0.42);
  color: var(--mint);
  background: rgba(57, 183, 122, 0.1);
}

.status-closed,
.status-failed,
.status-canceled,
.status-cancelled,
.status-rejected {
  border-color: rgba(216, 90, 90, 0.34);
  color: #ff9494;
  background: rgba(216, 90, 90, 0.1);
}

.status-partial,
.status-partially_filled,
.status-partially-filled {
  border-color: rgba(201, 154, 69, 0.42);
  color: #f0c36a;
  background: rgba(201, 154, 69, 0.1);
}

.strategy-results-table {
  min-width: 1760px;
}

.position-records-table,
.position-events-table {
  min-width: 1420px;
}

.user-orders-table {
  min-width: 1580px;
}

.strategy-metric-stack {
  display: grid;
  gap: 6px;
  min-width: 128px;
}

.strategy-metric-stack span {
  color: var(--dim);
  font-size: 12px;
}

.strategy-metric-stack b {
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.strategy-metric-stack .status-chip {
  min-height: 22px;
  padding: 0 8px;
}

.strategy-time-stack {
  min-width: 160px;
}

.strategy-time-stack b {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.strategy-output-cell {
  min-width: 340px;
}

.strategy-plan-cell {
  min-width: 260px;
}

.strategy-plan-stack {
  min-width: 240px;
}

.strategy-plan-reason {
  max-width: 560px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.strategy-json-cell {
  min-width: 96px;
}

.strategy-detail summary {
  cursor: pointer;
  color: var(--mint);
  font-weight: 800;
}

.strategy-detail pre {
  max-width: 520px;
  max-height: 360px;
  margin: 10px 0 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgba(240, 234, 220, 0.12);
  border-radius: 8px;
  color: #ddd8c8;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(4, 6, 5, 0.36);
}

.invite-code-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(57, 183, 122, 0.34);
  border-radius: 8px;
  cursor: pointer;
  background: rgba(57, 183, 122, 0.08);
}

.invite-code-box strong {
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 32px;
  letter-spacing: 0;
}

.invite-code-box small {
  color: var(--muted);
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}

.invite-code-box.is-copied {
  border-color: rgba(201, 154, 69, 0.8);
}

.client-summary-list {
  display: grid;
  gap: 12px;
}

.client-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(240, 234, 220, 0.08);
}

.client-summary-list div:last-child {
  border-bottom: 0;
}

.client-summary-list span {
  color: var(--dim);
}

.client-summary-list b {
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
}

.auth-card {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  width: 100%;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
}

.auth-card h1 {
  margin-top: 0;
  font-size: 48px;
  line-height: 1.05;
}

.auth-card p {
  margin: 12px 0 0;
}

.auth-story,
.auth-form-panel {
  min-width: 0;
}

.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 42px;
  padding: 46px;
  border-right: 1px solid rgba(240, 234, 220, 0.1);
  background:
    linear-gradient(135deg, rgba(57, 183, 122, 0.16), transparent 46%),
    rgba(8, 11, 9, 0.72);
}

.user-auth-page .auth-card {
  border-color: rgba(242, 234, 216, 0.14);
  background: #171a16;
}

.user-auth-page .auth-story {
  background: #1d211b;
}

.user-auth-page .auth-form-panel {
  background: #151813;
}

.user-auth-page .auth-metric-grid div {
  background: #171a16;
}

.user-auth-page .auth-metric-grid strong {
  color: #d8b15e;
}

.user-auth-page .admin-btn {
  border-color: #d8b15e;
  background: #d8b15e;
}

.user-auth-page .admin-field input {
  background: #1c201a;
}

.auth-story h2 {
  width: min(420px, 100%);
  margin: 0;
  color: var(--ivory);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

.auth-story p:not(.admin-eyebrow) {
  width: min(420px, 100%);
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.auth-form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px;
}

.auth-form-panel > p:not(.admin-eyebrow) {
  width: min(430px, 100%);
  font-size: 16px;
}

.auth-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-metric-grid div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(240, 234, 220, 0.11);
  border-radius: 8px;
  background: rgba(240, 234, 220, 0.045);
}

.auth-metric-grid span {
  display: block;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.auth-metric-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--mint);
  font-size: 15px;
}

.auth-card .admin-form {
  gap: 18px;
  margin-top: 30px;
}

.auth-card .admin-field input {
  min-height: 52px;
  font-size: 16px;
}

.auth-card .admin-btn {
  min-height: 52px;
  font-size: 15px;
}

.email-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 138px;
  gap: 10px;
  align-items: end;
}

.email-code-send {
  min-height: 52px;
}

.email-code-send:disabled {
  cursor: wait;
  opacity: 0.62;
}

.email-code-status {
  min-height: 20px;
  margin: -6px 0 0;
  color: #d8b15e;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.email-code-status.is-error {
  color: #ffb8b8;
}

.admin-form,
.admin-filter-card {
  display: grid;
  gap: 14px;
}

.admin-form {
  margin-top: 24px;
}

.admin-filter-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
}

.strategy-filter-card {
  grid-template-columns: minmax(220px, 1.3fr) minmax(180px, 1fr) 150px 130px auto;
}

.strategy-runtime-card .admin-card-head h2 {
  display: flex;
  align-items: center;
  min-height: 30px;
}

.strategy-runtime-form {
  margin: 0;
}

.strategy-runtime-toggle {
  min-width: 152px;
}

.strategy-runtime-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.strategy-runtime-item {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(240, 234, 220, 0.1);
  border-radius: 8px;
  background: rgba(240, 234, 220, 0.035);
}

.strategy-runtime-item span {
  display: block;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.strategy-runtime-item b {
  display: block;
  margin-top: 8px;
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.strategy-runtime-note {
  margin-top: 12px;
}

.strategy-runtime-error {
  margin-top: 12px;
  margin-bottom: 0;
}

.software-release-form {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.software-release-form .wide,
.software-release-form .admin-check-field,
.payment-channel-form .wide {
  grid-column: 1 / -1;
}

.payment-global-form {
  grid-template-columns: minmax(260px, 1fr) auto;
}

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

.payment-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.payment-channel-card {
  min-width: 0;
}

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

.payment-channel-table {
  min-width: 980px;
}

.invite-level-table {
  min-width: 1040px;
}

.invite-level-table input,
.invite-level-table select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(240, 234, 220, 0.16);
  border-radius: 8px;
  outline: none;
  color: var(--ivory);
  font-family: var(--font-body);
  background: rgba(240, 234, 220, 0.06);
}

.invite-level-range {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) auto minmax(90px, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 230px;
}

.invite-level-range span {
  color: var(--dim);
  font-size: 12px;
}

.payment-test-form {
  grid-template-columns: minmax(170px, 0.8fr) minmax(220px, 1fr) 150px auto;
  margin-bottom: 0;
}

.withdrawal-filter-card {
  grid-template-columns: minmax(220px, 1.4fr) 150px 150px 150px 120px auto;
}

.withdrawal-user-form .wide {
  grid-column: 1 / -1;
}

.withdrawal-admin-table {
  min-width: 1560px;
}

.withdrawal-history-table {
  min-width: 1080px;
}

.admin-row-actions.withdrawal-actions {
  min-width: 360px;
}

.admin-row-actions .withdrawal-approve-action,
.admin-row-actions .withdrawal-reject-action {
  grid-template-columns: minmax(180px, 1fr) 72px;
}

.admin-row-actions .withdrawal-complete-action {
  grid-template-columns: minmax(170px, 1fr) minmax(150px, 1fr) 72px;
}

.payment-test-result {
  margin-top: 18px;
}

.payment-test-result .wide {
  grid-column: span 4;
}

.admin-field {
  display: grid;
  gap: 8px;
}

.admin-field input,
.admin-field select,
.admin-field textarea,
.admin-row-actions input,
.admin-row-actions select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(240, 234, 220, 0.16);
  border-radius: 8px;
  outline: none;
  color: var(--ivory);
  font-family: var(--font-body);
  background: rgba(240, 234, 220, 0.06);
}

.admin-field textarea {
  padding: 10px 12px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus,
.admin-row-actions input:focus,
.admin-row-actions select:focus {
  border-color: rgba(57, 183, 122, 0.72);
}

.admin-check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  font-weight: 800;
}

.release-actions {
  display: grid;
  gap: 8px;
  min-width: 180px;
}

.release-actions form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.release-actions select {
  min-height: 34px;
  min-width: 92px;
  border: 1px solid rgba(240, 234, 220, 0.16);
  border-radius: 8px;
  color: var(--ivory);
  background: rgba(240, 234, 220, 0.06);
}

.admin-btn,
.admin-row-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--mint);
  border-radius: 8px;
  cursor: pointer;
  color: #07110b;
  font-family: var(--font-body);
  font-weight: 800;
  background: var(--mint);
}

.admin-btn:disabled,
.admin-row-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.admin-btn.ghost {
  border-color: rgba(240, 234, 220, 0.18);
  color: var(--ivory);
  background: rgba(240, 234, 220, 0.055);
}

.admin-btn.danger {
  border-color: rgba(216, 90, 90, 0.38);
  color: #ffb8b8;
  background: rgba(216, 90, 90, 0.12);
}

.admin-btn svg {
  width: 16px;
  height: 16px;
}

.admin-alert {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 90, 90, 0.34);
  border-radius: 8px;
  color: #ffb8b8;
  background: rgba(216, 90, 90, 0.1);
}

.admin-alert.success {
  border-color: rgba(57, 183, 122, 0.34);
  color: var(--mint);
  background: rgba(57, 183, 122, 0.1);
}

.auth-switch,
.auth-hint {
  margin-top: 18px;
  font-size: 14px;
}

.auth-switch a {
  color: var(--mint);
  font-weight: 800;
}

.admin-row-actions {
  display: grid;
  gap: 8px;
  min-width: 640px;
}

.admin-row-actions form {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 78px;
  gap: 8px;
}

.admin-row-actions form:nth-child(3) {
  grid-template-columns: 84px 98px minmax(0, 1fr) 78px;
}

.admin-row-actions .license-action {
  grid-template-columns: 84px minmax(150px, 1fr) 90px 72px;
}

.admin-row-actions .expiry-action {
  grid-template-columns: 84px minmax(0, 1fr) 72px;
}

.admin-row-actions .cancel-license-action {
  grid-template-columns: 84px minmax(0, 1fr);
}

.admin-row-actions .cancel-license-action button {
  border-color: rgba(216, 90, 90, 0.38);
  color: #ffb8b8;
  background: rgba(216, 90, 90, 0.12);
}

.admin-row-actions .balance-action {
  grid-template-columns: 120px minmax(0, 1fr) 78px;
}

.admin-row-actions .vip-action {
  grid-template-columns: minmax(150px, 1fr) 72px;
}

.admin-row-actions button {
  min-height: 36px;
  padding: 0 10px;
  font-size: 12px;
}

.admin-row-links {
  display: grid;
  gap: 8px;
  min-width: 94px;
}

.admin-row-links .compact-action {
  width: 100%;
}

.admin-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 60;
  display: grid;
  place-items: center;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(8, 13, 20, 0.48);
  backdrop-filter: blur(6px);
}

.admin-modal-card {
  width: min(980px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  margin: auto;
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(240, 234, 220, 0.18);
  border-radius: 8px;
  background: #101311;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.user-action-modal-backdrop {
  z-index: 80;
  background: rgba(8, 13, 20, 0.58);
}

.user-management-modal {
  position: relative;
  min-height: 560px;
}

.user-action-modal-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 8px;
  background: rgba(8, 13, 20, 0.28);
}

.user-action-modal {
  width: min(620px, calc(100% - 48px));
  max-height: calc(100% - 48px);
}

.detail-modal-card {
  width: min(1180px, calc(100vw - 56px));
}

.position-detail-modal {
  width: min(1280px, calc(100vw - 56px));
}

.ai-strategy-detail-modal {
  width: min(1120px, calc(100vw - 56px));
}

.strategy-clear-confirm-modal {
  width: min(640px, calc(100vw - 56px));
}

.strategy-clear-confirm-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(240, 234, 220, 0.12);
  border-radius: 8px;
  background: rgba(240, 234, 220, 0.045);
}

.strategy-clear-confirm-summary span {
  color: var(--dim);
  font-size: 13px;
}

.strategy-clear-confirm-summary b {
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: 18px;
}

.strategy-clear-confirm-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.strategy-clear-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ivory);
  font-size: 14px;
  line-height: 1.6;
}

.strategy-clear-confirm-check input {
  margin-top: 4px;
  accent-color: #d85a5a;
}

.strategy-clear-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-modal-section {
  display: block;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(240, 234, 220, 0.12);
}

.strategy-detail-pre {
  max-height: 56vh;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid rgba(240, 234, 220, 0.12);
  border-radius: 8px;
  color: #ddd8c8;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(4, 6, 5, 0.36);
}

.modal-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.user-management-summary {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.user-management-action {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(240, 234, 220, 0.14);
  border-radius: 8px;
  color: var(--ivory);
  text-decoration: none;
  background: rgba(240, 234, 220, 0.045);
}

.user-management-action svg {
  width: 19px;
  height: 19px;
  color: var(--mint);
}

.user-management-action span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.user-management-action strong {
  color: var(--ivory);
  font-size: 15px;
}

.user-management-action small {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.35;
}

.user-management-action.active {
  border-color: rgba(57, 183, 122, 0.55);
  background: rgba(57, 183, 122, 0.12);
}

.user-management-action.danger svg,
.user-management-action.danger strong {
  color: #ffb8b8;
}

.user-action-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}

.user-action-form.balance-management-form,
.user-action-form.license-management-form {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.user-action-form .admin-alert {
  margin-top: 0;
  grid-column: 1 / -1;
}

.user-action-form.cancel-license-management-form {
  grid-template-columns: 1fr;
  justify-items: start;
}

.license-cell,
.license-session-cell,
.user-identity-cell {
  display: grid;
  gap: 6px;
  min-width: 150px;
}

.license-cell strong,
.license-session-cell strong,
.user-identity-cell strong {
  color: var(--ivory);
  font-size: 13px;
}

.license-cell small,
.license-session-cell small,
.user-identity-cell small {
  color: var(--dim);
  font-size: 12px;
  line-height: 1.35;
}

.account-data-cell,
.data-archive-cell {
  min-width: 180px;
}

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

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

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

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

  .recharge-panel-grid {
    grid-template-columns: 1fr;
  }

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

  .payment-channel-grid {
    grid-template-columns: 1fr;
  }

  .user-summary-panel {
    grid-template-columns: 1fr;
  }

  .balance-block {
    border-right: 0;
    border-bottom: 1px solid rgba(242, 234, 216, 0.11);
  }

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

  .overview-focus-grid {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid,
  .admin-stat-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .admin-app-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(240, 234, 220, 0.13);
  }

  .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
  }

  .admin-main {
    padding: 18px;
  }

  .user-console .admin-main {
    padding: 18px;
  }

  .user-console-hero {
    display: grid;
  }

  .auth-page .admin-app-shell {
    padding: 18px;
  }

  .auth-page .admin-main {
    width: 100%;
  }

  .auth-card {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-story {
    gap: 24px;
    padding: 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(240, 234, 220, 0.1);
  }

  .auth-story h2 {
    font-size: 28px;
  }

  .auth-form-panel {
    padding: 28px 24px 30px;
  }

  .admin-hero {
    display: grid;
    padding: 20px;
  }

  .admin-hero h1,
  .auth-card h1 {
    font-size: 32px;
  }

  .admin-trend-summary,
  .overview-health-grid {
    grid-template-columns: 1fr;
  }

  .admin-stack-bars {
    grid-auto-columns: minmax(42px, 1fr);
  }

  .overview-kpi-meta {
    align-items: flex-start;
  }

  .admin-kpi-grid,
  .admin-filter-card,
  .strategy-filter-card,
  .strategy-runtime-grid,
  .software-release-form,
  .payment-global-form,
  .payment-channel-form,
  .payment-test-form,
  .withdrawal-filter-card {
    grid-template-columns: 1fr;
  }

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

  .email-code-row {
    grid-template-columns: 1fr;
  }

  .user-kpi-grid,
  .user-quick-grid {
    grid-template-columns: 1fr;
  }

  .plan-card-grid,
  .online-pay-form,
  .recharge-amount-grid {
    grid-template-columns: 1fr;
  }

  .balance-block strong {
    font-size: 42px;
  }

  .admin-row-actions {
    min-width: 300px;
  }
}

@media (max-width: 560px) {
  .auth-metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Commercial console palette overrides */
.admin-portal-page {
  color-scheme: light;
  --ivory: #17202a;
  --muted: #647084;
  --dim: #8a94a6;
  --line: #e4e8f0;
  --line-strong: #cfd6e3;
  --mint: #2563eb;
  --green: #0f766e;
  --red: #dc2626;
  --amber: #b45309;
  --blue: #475569;
  --ink-shadow: rgba(15, 23, 42, 0.08);
  background: #f4f6fa;
  color: var(--ivory);
}

.admin-app-shell,
.user-console,
.user-console .admin-app-shell,
.auth-page .admin-app-shell,
.user-auth-page .admin-app-shell {
  background: #f4f6fa;
}

.admin-sidebar,
.user-console .admin-sidebar {
  border-right-color: #dfe5ee;
  background: #ffffff;
  box-shadow: 1px 0 0 rgba(15, 23, 42, 0.02);
}

.admin-brand,
.auth-brand,
.user-identity-card h1,
.admin-hero h1,
.auth-story h2,
.auth-card h1,
.admin-card-head h2,
.admin-kpi-card strong,
.client-summary-list b,
.license-cell strong,
.license-session-cell strong,
.user-identity-cell strong,
.strategy-metric-stack b,
.balance-block strong,
.user-quick-grid b,
.plan-card h3,
.plan-card > strong,
.plan-price-stack strong {
  color: #17202a;
}

.admin-brand span,
.auth-brand span {
  border-color: #cbd5e1;
  color: #2563eb;
  background: #eff6ff;
}

.admin-sidebar nav a,
.admin-sidebar nav button {
  color: #647084;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active,
.admin-sidebar nav button:hover {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #eff6ff;
}

.admin-card,
.admin-modal-card,
.admin-kpi-card,
.admin-filter-card,
.user-console .admin-card,
.user-console .admin-kpi-card,
.auth-card,
.user-auth-page .auth-card {
  border-color: #e2e8f0;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.admin-modal-backdrop {
  background: rgba(15, 23, 42, 0.36);
}

.user-action-modal-backdrop {
  background: rgba(15, 23, 42, 0.46);
}

.user-action-modal-layer {
  background: rgba(15, 23, 42, 0.24);
}

.detail-modal-section {
  border-top-color: #e2e8f0;
}

.admin-hero,
.auth-story,
.user-auth-page .auth-story,
.user-auth-page .auth-form-panel,
.balance-block,
.plan-card,
.user-quick-grid div {
  border-color: #e2e8f0;
  background: #ffffff;
}

.admin-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.auth-story,
.user-auth-page .auth-story {
  background: #f8fafc;
}

.user-summary-panel {
  border-color: #e2e8f0;
}

.balance-block {
  background: #f8fafc;
}

.user-quick-grid {
  background: #e2e8f0;
}

.user-avatar {
  border-color: #bfdbfe;
  color: #1d4ed8;
  background: #dbeafe;
}

.user-console .plan-card.selected-plan {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 62%);
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.08),
    0 14px 30px rgba(15, 23, 42, 0.06);
}

.user-console .plan-card.selected-plan span,
.user-console .plan-card.selected-plan .checkout-badge {
  color: #1d4ed8;
}

.user-console .plan-card.selected-plan .checkout-badge {
  border-color: #93c5fd;
  background: #dbeafe;
}

.user-console .recharge-balance {
  border-color: #e2e8f0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.02);
}

.user-console .recharge-balance span,
.user-console .recharge-balance p {
  color: #647084;
}

.user-console .recharge-balance strong {
  color: #17202a;
}

.admin-eyebrow,
.plan-card span,
.email-code-status {
  color: #b45309;
}

.user-kpi-grid .admin-kpi-card svg,
.admin-kpi-card svg,
.admin-card-head svg,
.admin-link,
.auth-switch a,
.strategy-detail summary,
.invite-code-box strong,
.admin-table code {
  color: #2563eb;
}

.admin-hero p:not(.admin-eyebrow),
.auth-card p,
.admin-muted,
.user-identity-card p:not(.admin-eyebrow),
.balance-block small,
.plan-card p,
.plan-price-stack small,
.invite-code-box small,
.client-summary-list span,
.license-cell small,
.license-session-cell small,
.user-identity-cell small,
.strategy-metric-stack span {
  color: #647084;
}

.admin-table-wrap {
  border-color: #e2e8f0;
  background: #ffffff;
}

.admin-table {
  color: #1f2937;
}

.admin-table th,
.admin-table td {
  border-bottom-color: #edf1f7;
}

.admin-table th {
  color: #667085;
  background: #f8fafc;
}

.admin-pagination {
  color: #647084;
  border-color: #e2e8f0;
  background: #f8fafc;
}

.admin-pagination-summary {
  color: #17202a;
}

.admin-page-link {
  border-color: #d7deea;
  color: #17202a;
  background: #ffffff;
}

.admin-page-link.disabled {
  color: #94a3b8;
  background: #f8fafc;
}

.admin-page-size {
  border-left-color: #d7deea;
}

.admin-page-size span {
  color: #647084;
}

.admin-page-size-select {
  border-color: #d7deea;
  color: #17202a;
  background: #ffffff;
}

.admin-page-link:hover,
.admin-page-link.active,
.admin-page-size-select:hover,
.admin-page-size-select:focus {
  border-color: #2563eb;
  color: #2563eb;
  background: #eff6ff;
}

.admin-page-ellipsis {
  color: #94a3b8;
}

.admin-field input,
.admin-field select,
.admin-row-actions input,
.admin-row-actions select,
.invite-level-table input,
.invite-level-table select,
.online-pay-form select,
.user-auth-page .admin-field input {
  border-color: #d7deea;
  color: #17202a;
  background: #ffffff;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-row-actions input:focus,
.admin-row-actions select:focus,
.invite-level-table input:focus,
.invite-level-table select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-btn,
.admin-row-actions button,
.user-auth-page .admin-btn {
  border-color: #2563eb;
  color: #ffffff;
  background: #2563eb;
}

.admin-btn.ghost {
  border-color: #d7deea;
  color: #334155;
  background: #ffffff;
}

.admin-btn.danger {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.admin-alert {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.admin-alert.success {
  border-color: #bbf7d0;
  color: #047857;
  background: #f0fdf4;
}

.status-active,
.status-paid,
.status-completed,
.status-long,
.status-buy,
.status-open,
.status-success,
.status-filled,
.status-done,
.status-new {
  border-color: #bbf7d0;
  color: #047857;
  background: #f0fdf4;
}

.status-short,
.status-sell,
.status-closed,
.status-failed,
.status-canceled,
.status-cancelled,
.status-rejected,
.status-disabled,
.status-expired,
.status-offline {
  border-color: #fecaca;
  color: #b91c1c;
  background: #fff1f2;
}

.status-pending,
.status-approved,
.status-flat,
.status-partial,
.status-partially_filled,
.status-partially-filled {
  border-color: #fde68a;
  color: #92400e;
  background: #fffbeb;
}

.invite-code-box {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.strategy-detail pre,
.strategy-detail-pre {
  border-color: #e2e8f0;
  color: #334155;
  background: #f8fafc;
}

.auth-metric-grid div {
  border-color: #e2e8f0;
  background: #ffffff;
}

.auth-metric-grid strong,
.user-auth-page .auth-metric-grid strong {
  color: #2563eb;
}

.holding-records-table {
  min-width: 1180px;
}

.closed-position-records-table {
  min-width: 1320px;
}

.position-account-table {
  min-width: 1200px;
}

.user-admin-table {
  min-width: 1240px;
}

.ledger-records-table {
  min-width: 920px;
}

.position-filter-card {
  grid-template-columns: minmax(260px, 1fr) 150px auto;
}

.wide-filter-card,
.position-filter-card.wide-filter-card {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.user-filter-card {
  grid-template-columns: repeat(8, minmax(112px, 1fr));
}

.position-filter-card.wide-filter-card {
  grid-template-columns: repeat(6, minmax(125px, 1fr));
}

.invite-filter-card {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.wide-filter-card .admin-btn {
  width: 100%;
  justify-content: center;
}

.user-console .admin-app-shell {
  grid-template-columns: 224px minmax(0, 1fr);
  background: #f4f6fa;
}

.user-console .admin-main {
  padding: 24px 24px 0;
}

.user-console .admin-sidebar {
  padding: 24px 10px 18px;
  border-right: 0;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.12), transparent 28%),
    #071827;
  box-shadow: 10px 0 30px rgba(15, 23, 42, 0.08);
}

.user-console .admin-brand {
  width: 100%;
  gap: 10px;
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
  color: #f8fafc;
}

.user-console .admin-brand span {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.42);
}

.user-console .admin-sidebar nav {
  gap: 12px;
  margin-top: 20px;
}

.user-console .admin-sidebar nav a,
.user-console .admin-sidebar nav button {
  min-height: 48px;
  padding: 0 12px;
  border-color: transparent;
  color: #bdc8d8;
  font-size: 14px;
  font-weight: 800;
}

.user-console .admin-sidebar nav a:hover,
.user-console .admin-sidebar nav a.active,
.user-console .admin-sidebar nav button:hover {
  border-color: rgba(59, 130, 246, 0.44);
  color: #ffffff;
  background: #1d4ed8;
  box-shadow: 0 12px 22px rgba(29, 78, 216, 0.24);
}

.user-console .admin-sidebar svg {
  color: currentColor;
}

.user-console-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dfe5ee;
}

.user-page-title {
  min-width: 0;
}

.user-page-title .admin-eyebrow {
  margin-bottom: 6px;
  color: #647084;
}

.user-page-title h1 {
  margin: 0;
  color: #17202a;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.12;
}

.user-page-title p:not(.admin-eyebrow) {
  margin: 6px 0 0;
  color: #647084;
}

.user-section-header {
  min-height: 96px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.06), transparent 42%),
    #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.user-section-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.user-section-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
}

.user-section-icon svg {
  width: 20px;
  height: 20px;
}

.user-page-metric {
  min-width: 148px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.user-page-metric span,
.user-page-metric b {
  display: block;
}

.user-page-metric span {
  color: #647084;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.user-page-metric b {
  margin-top: 5px;
  color: #17202a;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.user-console .admin-card {
  margin-bottom: 16px;
}

.user-console .admin-split {
  gap: 16px;
  margin-bottom: 16px;
}

.user-console .admin-filter-card {
  margin-bottom: 16px;
  padding: 16px;
  border-color: #e2e8f0;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.user-console .admin-filter-card .admin-field span {
  color: #647084;
}

.user-console .admin-form {
  margin-top: 18px;
}

.user-console .admin-card > .admin-card-head:first-child {
  min-height: 44px;
}

.user-console .detail-summary-grid {
  margin-bottom: 16px;
}

.user-console .admin-table-wrap.compact {
  max-height: 460px;
}

.user-profile-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.user-profile-strip strong,
.user-profile-strip small {
  display: block;
}

.user-profile-strip strong {
  max-width: 220px;
  overflow: hidden;
  color: #17202a;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-strip small {
  margin-top: 3px;
  color: #647084;
  font-family: var(--font-mono);
  font-size: 12px;
}

.user-avatar.small {
  width: 38px;
  height: 38px;
  border-color: #bfdbfe;
  border-radius: 999px;
  color: #ffffff;
  background: #0f766e;
}

.user-notification-pill {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #d7deea;
  border-radius: 999px;
  color: #17202a;
  background: #ffffff;
}

.user-notification-pill svg {
  width: 18px;
  height: 18px;
}

.user-notification-pill b {
  position: absolute;
  top: -7px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid #f4f6fa;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
  background: #dc2626;
}

.user-command-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.user-command-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 244px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.user-command-card > span,
.user-card-foot span,
.user-market-head span,
.user-feed-card .admin-card-head span {
  display: block;
  color: #647084;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.user-command-card > strong {
  color: #17202a;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.user-command-card > small {
  min-height: 40px;
  color: #647084;
  line-height: 1.5;
}

.user-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
}

.user-card-icon svg {
  width: 19px;
  height: 19px;
}

.balance-card .user-card-icon,
.health-card .user-card-icon {
  color: #0f766e;
  background: #dff8ed;
}

.user-card-divider {
  height: 1px;
  margin-top: 4px;
  background: #e2e8f0;
}

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

.user-card-foot b {
  min-width: 0;
  color: #0f766e;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.user-plan-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.user-plan-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #059669);
}

.admin-btn.success {
  border-color: #0f766e;
  background: #0f766e;
}

.exchange-mini-list,
.health-check-list {
  display: grid;
  gap: 8px;
}

.exchange-mini-list div,
.health-check-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.exchange-mini-list div {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
}

.exchange-mini-list span,
.health-check-list span {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #647084;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.status-dot.good {
  color: #0f766e;
}

.status-dot.muted {
  color: #94a3b8;
}

.health-check-list div {
  min-height: 24px;
}

.health-check-list svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: #0f766e;
}

.health-check-list b {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
}

.health-check-list b.good {
  color: #0f766e;
}

.health-check-list b.warn {
  color: #b45309;
}

.health-check-list b.neutral {
  color: #647084;
}

.user-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.user-dashboard-main,
.user-dashboard-side {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.user-position-card {
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
}

.user-position-card .admin-card-head {
  margin: 0;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-card-head.compact {
  align-items: center;
  margin-bottom: 12px;
}

.admin-card-head.compact h2 {
  margin-top: 4px;
  font-size: 18px;
}

.user-position-table-wrap {
  border: 0;
  border-radius: 0;
}

.user-position-table {
  min-width: 1040px;
}

.user-position-table th,
.user-position-table td {
  padding: 14px 13px;
}

.asset-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.asset-token {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 900;
  background: #2563eb;
}

.asset-token.dark {
  background: #0f766e;
}

.asset-cell strong,
.asset-cell small {
  display: block;
}

.asset-cell strong {
  color: #17202a;
  font-size: 13px;
}

.asset-cell small {
  margin-top: 4px;
  color: #647084;
  font-size: 12px;
}

.amount-positive {
  color: #0f766e;
}

.amount-negative {
  color: #dc2626;
}

.amount-neutral {
  color: #647084;
}

.user-position-summary {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px 16px;
  border-top: 1px solid #e2e8f0;
  color: #647084;
  font-weight: 800;
}

.user-position-summary b {
  font-family: var(--font-mono);
}

.user-market-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.24);
  border-radius: 8px;
  color: #dbeafe;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent 42%),
    #071827;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
}

.user-market-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.user-market-head h2 {
  margin: 5px 0 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 20px;
}

.user-market-head span {
  color: #93c5fd;
}

.user-market-unit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 7px;
  color: #dbeafe;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.48);
}

.user-market-unit svg {
  width: 14px;
  height: 14px;
}

.user-market-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 8px;
  background: rgba(226, 232, 240, 0.12);
}

.user-market-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) 140px 140px;
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.64);
}

.user-market-row .asset-cell strong,
.user-market-row strong {
  color: #f8fafc;
}

.user-market-row small,
.user-market-empty {
  color: #94a3b8;
  font-size: 12px;
}

.user-market-row b {
  display: block;
  font-family: var(--font-mono);
}

.user-market-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 104px;
  background: rgba(15, 23, 42, 0.64);
}

.user-market-empty svg {
  width: 18px;
  height: 18px;
}

.user-feed-card,
.user-security-card {
  margin-bottom: 0;
  padding: 16px;
}

.user-feed-list,
.user-rebate-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #e2e8f0;
}

.user-feed-item,
.user-rebate-item {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 66px;
  padding: 12px;
  background: #ffffff;
}

.user-feed-item {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.user-rebate-item {
  grid-template-columns: minmax(0, 1fr) auto;
}

.feed-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
}

.feed-icon svg {
  width: 16px;
  height: 16px;
}

.user-feed-item strong,
.user-rebate-item strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #17202a;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-feed-item small,
.user-rebate-item small {
  display: block;
  margin-top: 4px;
  color: #647084;
  font-size: 12px;
}

.feed-amount {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 92px;
}

.feed-amount b,
.user-rebate-item b {
  font-family: var(--font-mono);
  font-size: 13px;
}

.user-rebate-item b {
  color: #0f766e;
}

.user-feed-empty {
  display: grid;
  place-items: center;
  min-height: 86px;
  color: #647084;
  background: #ffffff;
}

.user-security-card .health-check-list.expanded {
  padding: 2px 0 12px;
  border-bottom: 1px solid #e2e8f0;
}

.user-security-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

.user-security-link svg {
  width: 15px;
  height: 15px;
}

.user-value-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.growth-value-strip,
.withdrawal-value-strip,
.security-value-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.user-metric-tile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
  min-height: 112px;
  padding: 17px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.user-metric-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #2563eb;
  background: #eff6ff;
}

.user-metric-icon svg {
  width: 20px;
  height: 20px;
}

.user-metric-tile span:not(.user-metric-icon),
.user-stage-toolbar span,
.billing-status-item span:not(.status-dot),
.vip-ladder-summary span,
.funds-summary-strip span,
.security-reset-summary span,
.exchange-risk-footer span {
  display: block;
  color: #647084;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.user-metric-tile strong {
  display: block;
  margin-top: 6px;
  color: #17202a;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.user-metric-tile small {
  display: block;
  margin-top: 7px;
  color: #647084;
  font-size: 12px;
  line-height: 1.35;
}

.tone-green .user-metric-icon {
  color: #0f766e;
  background: #dff8ed;
}

.tone-amber .user-metric-icon {
  color: #b45309;
  background: #fffbeb;
}

.tone-orange .user-metric-icon {
  color: #c2410c;
  background: #fff7ed;
}

.tone-red .user-metric-icon {
  color: #b91c1c;
  background: #fff1f2;
}

.billing-workspace,
.growth-workspace,
.withdrawal-workspace,
.security-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.billing-side-rail,
.withdrawal-side-rail,
.security-side-rail {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.billing-plan-stage,
.invite-hero-card,
.withdrawal-composer-card,
.security-password-card {
  margin-bottom: 0;
}

.billing-plan-stage {
  min-height: 100%;
}

.billing-plan-grid {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
}

.billing-recharge-card {
  margin-bottom: 0;
}

.billing-balance-preview {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 72%);
}

.billing-balance-preview span,
.billing-balance-preview small {
  display: block;
  color: #647084;
  line-height: 1.5;
}

.billing-balance-preview strong {
  display: block;
  margin: 9px 0 6px;
  color: #17202a;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.billing-recharge-form .recharge-amount-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.billing-status-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #e2e8f0;
}

.billing-status-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  background: #ffffff;
}

.billing-status-item strong {
  color: #17202a;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.billing-status-item small {
  color: #647084;
  font-size: 12px;
}

.user-record-stage {
  padding: 0;
  overflow: hidden;
}

.user-stage-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 16px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.user-stage-toolbar h2 {
  margin: 4px 0 0;
  color: #17202a;
  font-family: var(--font-display);
  font-size: 19px;
}

.user-tab-strip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 3px;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #f8fafc;
}

.user-tab-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  color: #647084;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.user-tab-strip a.active,
.user-tab-strip a:hover {
  color: #1d4ed8;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.billing-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #e2e8f0;
}

.record-panel {
  min-width: 0;
  padding: 16px;
  background: #ffffff;
}

.record-panel.full {
  grid-column: 1 / -1;
}

.record-panel .admin-card-head {
  margin-bottom: 12px;
}

.user-record-grid.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.invite-share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 16px;
  margin: 14px 0 16px;
  align-items: stretch;
}

.invite-share-fields {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.invite-hero-card .invite-code-box {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  background: #f8fafc;
}

.invite-hero-card .invite-code-box > span {
  display: block;
  margin-bottom: 8px;
  color: #647084;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
}

.invite-qr-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 168px;
  border: 1px dashed #bfdbfe;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eff6ff;
  text-align: center;
}

.invite-qr-panel svg {
  width: 64px;
  height: 64px;
}

.invite-qr-panel span {
  color: #17202a;
  font-weight: 900;
}

.invite-qr-panel small {
  max-width: 132px;
  color: #647084;
  line-height: 1.45;
}

.vip-ladder-card {
  display: grid;
  align-content: start;
  gap: 18px;
  margin-bottom: 0;
}

.vip-ladder-card h2 {
  margin: 5px 0 0;
  color: #17202a;
  font-family: var(--font-display);
  font-size: 24px;
}

.vip-ladder-card p {
  margin: 8px 0 0;
  color: #647084;
  line-height: 1.55;
}

.vip-ladder-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.vip-ladder-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #2563eb);
}

.vip-ladder-nodes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vip-ladder-node {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

.vip-ladder-node b,
.vip-ladder-node span,
.vip-ladder-node small {
  display: block;
}

.vip-ladder-node b {
  color: #17202a;
  font-family: var(--font-display);
}

.vip-ladder-node span {
  margin-top: 7px;
  color: #647084;
  font-size: 12px;
}

.vip-ladder-node small {
  margin-top: 6px;
  color: #0f766e;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.vip-ladder-node.is-current {
  border-color: #93c5fd;
  background: #eff6ff;
}

.vip-ladder-node.is-complete {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.vip-ladder-node.is-locked {
  opacity: 0.72;
}

.vip-ladder-summary {
  min-width: 0;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.security-reset-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #e2e8f0;
}

.security-reset-summary div {
  min-width: 0;
  padding: 13px;
  background: #ffffff;
}

.vip-ladder-summary b,
.security-reset-summary b {
  display: block;
  margin-top: 7px;
  color: #17202a;
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.withdrawal-workspace {
  grid-template-columns: minmax(0, 1fr) 420px;
}

.withdrawal-main-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

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

.withdrawal-user-form .wide {
  grid-column: 1 / -1;
}

.withdrawal-user-form .admin-btn {
  width: max-content;
}

.funds-summary-strip {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #e2e8f0;
}

.funds-summary-strip div {
  padding: 14px;
  background: #f8fafc;
}

.funds-summary-strip b {
  display: block;
  margin-top: 7px;
  color: #17202a;
  font-family: var(--font-mono);
  font-size: 14px;
}

.withdrawal-step-list {
  display: grid;
  gap: 10px;
}

.withdrawal-flow-card {
  margin-bottom: 0;
}

.withdrawal-flow-card .withdrawal-step-list {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 2px;
}

.withdrawal-step {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 94px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.withdrawal-flow-card .withdrawal-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 15px;
  height: 2px;
  background: #bfdbfe;
}

.withdrawal-step b {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

.withdrawal-step span,
.withdrawal-step small {
  display: block;
}

.withdrawal-step span {
  color: #17202a;
  font-weight: 900;
}

.withdrawal-step small {
  margin-top: 3px;
  color: #647084;
}

.exchange-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.exchange-market-hero {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  color: #dbeafe;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.16), transparent 42%),
    #071827;
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.17);
}

.exchange-market-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.12);
}

.exchange-market-head span:not(.status-chip) {
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
}

.exchange-market-head h2 {
  margin: 5px 0 0;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 22px;
}

.exchange-live-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.exchange-live-table {
  min-width: 960px;
  color: #dbeafe;
}

.exchange-live-table th,
.exchange-live-table td {
  border-bottom-color: rgba(226, 232, 240, 0.1);
  background: transparent;
}

.exchange-live-table th {
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.46);
}

.exchange-live-table td {
  color: #e0f2fe;
}

.exchange-live-table .admin-muted {
  color: #94a3b8;
}

.exchange-risk-footer {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 140px;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border-top: 1px solid rgba(226, 232, 240, 0.12);
  background: rgba(15, 23, 42, 0.42);
}

.exchange-risk-footer b {
  display: block;
  margin-top: 7px;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 15px;
}

.exchange-risk-meter i {
  display: block;
  height: 10px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.16);
}

.exchange-risk-meter b {
  display: block;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #f59e0b);
}

.exchange-connection-grid {
  display: grid;
  gap: 12px;
}

.exchange-connection-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.exchange-connection-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exchange-connection-card svg {
  width: 21px;
  height: 21px;
  color: #2563eb;
}

.exchange-connection-card strong,
.exchange-connection-card small {
  display: block;
}

.exchange-connection-card strong {
  color: #17202a;
  font-weight: 900;
}

.exchange-connection-card small {
  color: #647084;
  font-family: var(--font-mono);
  font-size: 12px;
}

.exchange-connection-card.add-card {
  place-items: center;
  min-height: 118px;
  border-style: dashed;
  color: #1d4ed8;
  text-align: center;
  background: #f8fafc;
}

.exchange-record-stage .admin-table-wrap {
  border-radius: 0;
  border-right: 0;
  border-left: 0;
}

.exchange-closed-head {
  margin: 0;
  padding: 16px 18px 12px;
  border-top: 1px solid #e2e8f0;
}

.security-workspace {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.security-reset-card .admin-btn {
  margin-top: 14px;
}

.security-check-list {
  padding: 0;
  border-bottom: 0;
}

.security-check-list div {
  min-height: 34px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.security-check-list div:last-child {
  border-bottom: 0;
}

.security-record-stage .login-user-agent {
  max-width: 520px;
}

@media (max-width: 1180px) {
  .user-console .admin-app-shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }

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

  .user-dashboard-layout {
    grid-template-columns: 1fr;
  }

  .user-value-strip,
  .growth-value-strip,
  .withdrawal-value-strip,
  .security-value-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .billing-workspace,
  .growth-workspace,
  .withdrawal-workspace,
  .exchange-workspace,
  .security-workspace {
    grid-template-columns: 1fr;
  }

  .billing-record-grid,
  .user-record-grid.two-column {
    grid-template-columns: 1fr;
  }

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

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

  .user-market-row {
    grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(110px, 0.5fr));
  }

  .wide-filter-card,
  .user-filter-card,
  .position-filter-card.wide-filter-card,
  .invite-filter-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.detail-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #e2e8f0;
}

.detail-summary-grid div {
  min-width: 0;
  padding: 16px;
  background: #f8fafc;
}

.detail-summary-grid span {
  display: block;
  color: #8a94a6;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.detail-summary-grid b {
  display: block;
  margin-top: 8px;
  color: #17202a;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}

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

.user-management-action {
  border-color: #e2e8f0;
  background: #f8fafc;
}

.user-management-action.active {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.user-management-action.danger svg,
.user-management-action.danger strong {
  color: #b91c1c;
}

.compact-action {
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  white-space: nowrap;
}

.selected-row td {
  background: #eff6ff;
}

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

  .user-console .admin-sidebar {
    padding: 14px;
    border-bottom: 0;
  }

  .user-console .admin-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-console .admin-main {
    padding: 18px;
  }

  .user-console-topbar {
    display: grid;
  }

  .user-section-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .user-page-metric {
    min-width: min(180px, 100%);
  }

  .user-profile-strip {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .user-command-grid {
    grid-template-columns: 1fr;
  }

  .user-value-strip,
  .growth-value-strip,
  .withdrawal-value-strip,
  .security-value-strip,
  .billing-plan-grid,
  .exchange-connection-grid,
  .vip-ladder-nodes,
  .security-reset-summary {
    grid-template-columns: 1fr;
  }

  .user-stage-toolbar,
  .exchange-market-head {
    display: grid;
  }

  .user-tab-strip {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .invite-share-layout,
  .withdrawal-user-form,
  .exchange-risk-footer {
    grid-template-columns: 1fr;
  }

  .withdrawal-user-form .admin-btn {
    width: 100%;
  }

  .billing-recharge-form .recharge-amount-grid {
    grid-template-columns: 1fr;
  }

  .user-market-row,
  .user-feed-item,
  .user-rebate-item {
    grid-template-columns: 1fr;
  }

  .feed-amount {
    justify-items: start;
  }

  .wide-filter-card,
  .user-filter-card,
  .position-filter-card,
  .position-filter-card.wide-filter-card,
  .invite-filter-card {
    grid-template-columns: 1fr;
  }

  .detail-summary-grid,
  .ledger-summary-grid {
    grid-template-columns: 1fr;
  }

  .user-management-action-grid,
  .user-action-form,
  .user-action-form.balance-management-form,
  .user-action-form.license-management-form {
    grid-template-columns: 1fr;
  }

  .user-action-form {
    align-items: stretch;
  }

  .payment-test-result .wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .admin-pagination {
    align-items: stretch;
  }

  .admin-pagination-summary,
  .admin-pagination-actions {
    width: 100%;
  }

  .admin-pagination-actions {
    justify-content: flex-start;
  }

  .admin-page-size {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }
}

@keyframes admin-spin {
  to {
    transform: rotate(360deg);
  }
}
