.admin-chart {
  display: block;
  min-width: 620px;
  width: 100%;
  height: auto;
  color: #cbd5e1;
}

.admin-chart text {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.admin-shell-brand {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
}

.admin-nav-section + .admin-nav-section {
  margin-top: 1.1rem;
}

.admin-nav-caption {
  margin: 0 0 0.45rem 0.75rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link {
  min-height: 2.75rem;
}

.nav-icon {
  font-size: 0.68rem !important;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-topbar .btn {
  border-radius: 0.7rem;
}

.admin-topbar {
  gap: 1rem;
}

.admin-topbar-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-topbar-kicker {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-menu-button,
.admin-topbar-link,
.admin-theme-option {
  min-height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #334155;
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.92);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-menu-button:hover,
.admin-topbar-link:hover,
.admin-theme-option:hover {
  border-color: #475569;
  color: #ffffff;
}

.admin-topbar-actions {
  min-width: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid #1e293b;
  border-radius: 0.85rem;
  background: rgba(2, 6, 23, 0.58);
  padding: 0.2rem;
}

.admin-theme-option {
  min-height: 2rem;
  border-color: transparent;
  background: transparent;
  color: #94a3b8;
  padding: 0.35rem 0.65rem;
}

.admin-theme-option.is-active {
  background: #0ea5e9;
  color: #020617;
}

.admin-admin-pill {
  min-height: 2.6rem;
  display: none;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #1e293b;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.66);
  padding: 0.35rem 0.65rem;
}

@media (min-width: 768px) {
  .admin-admin-pill {
    display: flex;
  }
}

.admin-admin-avatar {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  background: rgba(14, 165, 233, 0.18);
  color: #7dd3fc;
  font-weight: 900;
}

.mobile-nav-link span {
  font-size: 0.7rem !important;
  font-weight: 800;
  letter-spacing: 0;
}

.mobile-nav-link small {
  letter-spacing: 0;
}

html.admin-light,
html.admin-light body {
  background: #f3f7fb !important;
  color: #1e293b !important;
}

html.admin-light .bg-slate-950,
html.admin-light .bg-slate-950\/35,
html.admin-light .bg-slate-950\/40,
html.admin-light .bg-slate-950\/50,
html.admin-light .bg-slate-950\/75,
html.admin-light .bg-slate-950\/80,
html.admin-light .bg-slate-950\/90,
html.admin-light .bg-slate-900,
html.admin-light .bg-slate-900\/95 {
  background-color: #f8fbff !important;
}

html.admin-light .panel,
html.admin-light .stat-card,
html.admin-light .mobile-record {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border-color: #dbe5f0 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07) !important;
}

html.admin-light .stat-card {
  border-color: #cbd8e6 !important;
}

html.admin-light .stat-value {
  color: #0f172a !important;
  text-shadow: none !important;
}

html.admin-light header,
html.admin-light aside,
html.admin-light nav {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-color: #dbe5f0 !important;
}

html.admin-light .admin-menu-button,
html.admin-light .admin-topbar-link,
html.admin-light .admin-admin-pill,
html.admin-light .admin-theme-switch {
  background: #ffffff !important;
  border-color: #dbe5f0 !important;
  color: #334155 !important;
}

html.admin-light .admin-theme-option {
  background: transparent !important;
  color: #64748b !important;
}

html.admin-light .admin-theme-option.is-active {
  background: #0284c7 !important;
  color: #ffffff !important;
}

html.admin-light .admin-admin-avatar {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

html.admin-light .admin-shell-brand {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.94)) !important;
}

html.admin-light .admin-nav-caption {
  color: #94a3b8 !important;
}

html.admin-light .text-white,
html.admin-light .text-slate-200,
html.admin-light .text-slate-300 {
  color: #0f172a !important;
}

html.admin-light .text-slate-400,
html.admin-light .text-slate-500 {
  color: #64748b !important;
}

html.admin-light .panel-title,
html.admin-light .font-medium,
html.admin-light strong {
  color: #0f172a !important;
}

html.admin-light .panel-subtitle,
html.admin-light .stat-label,
html.admin-light .stat-meta {
  color: #64748b !important;
}

html.admin-light .stat-label {
  color: #334155 !important;
}

html.admin-light .input,
html.admin-light .filter-grid,
html.admin-light .admin-code {
  background: #f8fbff !important;
  border-color: #cbd8e6 !important;
  color: #0f172a !important;
}

html.admin-light .admin-table th {
  background: #f1f6fb !important;
  border-color: #cbd8e6 !important;
  color: #64748b !important;
}

html.admin-light .admin-table td {
  border-color: #e2eaf3 !important;
  color: #334155 !important;
}

html.admin-light .admin-table tbody tr:hover {
  background: #f1f6fb !important;
}

html.admin-light .btn-secondary {
  background: #eef5fc !important;
  border-color: #cbd8e6 !important;
  color: #0f172a !important;
}

html.admin-light .badge-muted {
  background: #eef5fc !important;
  border-color: #cbd8e6 !important;
  color: #334155 !important;
}

html.admin-light .nav-link {
  color: #475569 !important;
}

html.admin-light .nav-link:hover,
html.admin-light .nav-link-active {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

html.admin-light .nav-icon {
  background: #eaf2fb !important;
  color: #334155 !important;
}

html.admin-light .nav-link-active .nav-icon {
  background: #bae6fd !important;
  color: #0369a1 !important;
}

html.admin-light .mobile-nav-link {
  color: #64748b !important;
}

html.admin-light .mobile-nav-active {
  background: #e0f2fe !important;
  color: #0369a1 !important;
}

html.admin-light .admin-chart {
  color: #334155;
}

html.admin-light .rounded-full.bg-slate-950\/75,
html.admin-light .overflow-hidden.bg-slate-950\/75 {
  background-color: #e2eaf3 !important;
}

@media (max-width: 639px) {
  .admin-topbar {
    height: auto !important;
    min-height: 4.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }

  .admin-topbar .btn {
    min-height: 2.35rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    font-size: 0.78rem;
  }

  .admin-topbar-title {
    flex: 1 1 auto;
  }

  .admin-topbar-actions {
    flex: 1 1 100%;
    width: 100%;
    justify-content: space-between;
  }

  .admin-theme-switch {
    flex-shrink: 0;
  }

  .admin-topbar h1 {
    max-width: 11rem;
  }
}

@media (max-width: 420px) {
  .admin-topbar h1 {
    max-width: 8rem;
  }
}

/* Focused dashboard */
.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  min-height: 11.5rem;
  padding: 1.75rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.2), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #111d33 52%, #0b2334 100%);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.28);
}

.dashboard-hero::after {
  content: "";
  position: absolute;
  top: -4.5rem;
  right: -3.5rem;
  width: 15rem;
  height: 15rem;
  border: 1px solid rgba(125, 211, 252, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 2.4rem rgba(125, 211, 252, 0.025), 0 0 0 5rem rgba(125, 211, 252, 0.02);
  pointer-events: none;
}

.dashboard-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 43rem;
}

.dashboard-eyebrow {
  display: block;
  margin-bottom: 0.35rem;
  color: #38bdf8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dashboard-hero-title {
  max-width: 38rem;
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.dashboard-hero-text {
  max-width: 39rem;
  margin-top: 0.7rem;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
}

.dashboard-quick-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(8.2rem, 1fr));
  gap: 0.55rem;
  flex: 0 0 auto;
}

.dashboard-quick-links a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.28);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 650;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.dashboard-quick-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.1);
  color: #ffffff;
}

.dashboard-shortcut-key {
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.2);
  border-radius: 0.55rem;
  background: rgba(14, 165, 233, 0.13);
  color: #7dd3fc;
  font-size: 0.7rem;
  font-weight: 900;
}

.dashboard-notice {
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 0.9rem;
  background: rgba(245, 158, 11, 0.06);
}

.dashboard-notice summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  color: #fde68a;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.dashboard-notice ul {
  margin: 0;
  padding: 0 1rem 1rem 2rem;
  color: #fef3c7;
  font-size: 0.78rem;
  line-height: 1.7;
  list-style: disc;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-kpi {
  --kpi-color: #38bdf8;
  --kpi-soft: rgba(14, 165, 233, 0.12);
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.98), rgba(10, 18, 33, 0.92));
  box-shadow: 0 8px 28px rgba(2, 6, 23, 0.14);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--kpi-color);
  opacity: 0.8;
}

.dashboard-kpi:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--kpi-color) 45%, #334155);
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.22);
}

.dashboard-kpi[data-tone="emerald"] {
  --kpi-color: #34d399;
  --kpi-soft: rgba(16, 185, 129, 0.12);
}

.dashboard-kpi[data-tone="amber"] {
  --kpi-color: #fbbf24;
  --kpi-soft: rgba(245, 158, 11, 0.12);
}

.dashboard-kpi[data-tone="violet"] {
  --kpi-color: #a78bfa;
  --kpi-soft: rgba(139, 92, 246, 0.12);
}

.dashboard-kpi[data-tone="slate"] {
  --kpi-color: #94a3b8;
  --kpi-soft: rgba(148, 163, 184, 0.1);
}

.dashboard-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.dashboard-kpi-label {
  overflow: hidden;
  color: #94a3b8;
  font-size: 0.77rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-kpi-symbol {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--kpi-color) 24%, transparent);
  border-radius: 0.6rem;
  background: var(--kpi-soft);
  color: var(--kpi-color);
  font-size: 0.72rem;
  font-weight: 900;
}

.dashboard-kpi-value {
  display: block;
  overflow: hidden;
  margin-top: 0.85rem;
  color: #f8fafc;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-kpi-meta {
  display: block;
  overflow: hidden;
  margin-top: 0.5rem;
  color: #64748b;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-kpi-meta strong {
  color: var(--kpi-color);
  font-weight: 700;
}

.dashboard-today {
  margin-top: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.66);
}

.dashboard-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-section-heading h2 {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
}

.dashboard-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #64748b;
  font-size: 0.68rem;
}

.dashboard-live > span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0.25rem rgba(52, 211, 153, 0.1);
}

.dashboard-today-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.9rem;
}

.dashboard-today-grid > div {
  min-width: 0;
  padding: 0.2rem 1rem;
  border-left: 1px solid #1e293b;
}

.dashboard-today-grid > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.dashboard-today-grid dt {
  color: #64748b;
  font-size: 0.69rem;
  font-weight: 600;
}

.dashboard-today-grid dd {
  overflow: hidden;
  margin-top: 0.25rem;
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-main-grid,
.dashboard-recent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  gap: 1rem;
  margin-top: 1rem;
}

.dashboard-recent-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.65fr);
}

.dashboard-priorities .panel-header,
.dashboard-health .panel-header {
  margin-bottom: 1rem;
}

.dashboard-action-list {
  display: grid;
  gap: 0.55rem;
}

.dashboard-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  background: rgba(2, 6, 23, 0.28);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.dashboard-action:hover {
  border-color: #334155;
  background: rgba(30, 41, 59, 0.55);
}

.dashboard-action-marker {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 0.3rem rgba(148, 163, 184, 0.09);
}

.dashboard-action-marker[data-tone="success"] {
  background: #34d399;
  box-shadow: 0 0 0 0.3rem rgba(52, 211, 153, 0.09);
}

.dashboard-action-marker[data-tone="warning"] {
  background: #fbbf24;
  box-shadow: 0 0 0 0.3rem rgba(251, 191, 36, 0.09);
}

.dashboard-action-marker[data-tone="danger"] {
  background: #f87171;
  box-shadow: 0 0 0 0.3rem rgba(248, 113, 113, 0.09);
}

.dashboard-action-marker[data-tone="info"] {
  background: #38bdf8;
  box-shadow: 0 0 0 0.3rem rgba(56, 189, 248, 0.09);
}

.dashboard-action-copy {
  min-width: 0;
}

.dashboard-action-copy strong,
.dashboard-action-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-action-copy strong {
  color: #e2e8f0;
  font-size: 0.8rem;
  font-weight: 650;
}

.dashboard-action-copy small {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.67rem;
}

.dashboard-action-arrow {
  color: #475569;
  font-size: 1rem;
  transition: transform 0.15s ease, color 0.15s ease;
}

.dashboard-action:hover .dashboard-action-arrow {
  transform: translateX(2px);
  color: #38bdf8;
}

.dashboard-health-list {
  display: grid;
  gap: 1.15rem;
}

.dashboard-health-item > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-health-item span {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
}

.dashboard-health-item strong {
  color: #f8fafc;
  font-size: 0.82rem;
}

.dashboard-health-item small {
  display: block;
  margin-top: 0.4rem;
  color: #64748b;
  font-size: 0.67rem;
}

.dashboard-progress {
  height: 0.35rem;
  overflow: hidden;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: #1e293b;
}

.dashboard-progress span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.dashboard-progress-violet span {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.dashboard-health-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.dashboard-health-summary > div {
  min-width: 0;
  padding: 0.8rem;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.28);
}

.dashboard-health-summary span,
.dashboard-health-summary strong {
  display: block;
}

.dashboard-health-summary span {
  color: #64748b;
  font-size: 0.65rem;
}

.dashboard-health-summary strong {
  overflow: hidden;
  margin-top: 0.25rem;
  color: #e2e8f0;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-payment-list,
.dashboard-user-list {
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 0.8rem;
}

.dashboard-payment-row {
  display: grid;
  grid-template-columns: 4.3rem minmax(8rem, 1fr) auto minmax(5.5rem, auto) 5.5rem;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.75rem;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #1e293b;
  transition: background-color 0.15s ease;
}

.dashboard-payment-row:last-child,
.dashboard-user-row:last-child {
  border-bottom: 0;
}

.dashboard-payment-row:hover,
.dashboard-user-row:hover {
  background: rgba(30, 41, 59, 0.42);
}

.dashboard-payment-id {
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-payment-user {
  min-width: 0;
}

.dashboard-payment-user strong,
.dashboard-payment-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-payment-user strong {
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 650;
}

.dashboard-payment-user small {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.65rem;
}

.dashboard-payment-amount {
  color: #f8fafc;
  font-size: 0.76rem;
  text-align: right;
}

.dashboard-payment-row time,
.dashboard-user-meta time {
  color: #64748b;
  font-size: 0.65rem;
  text-align: right;
}

.dashboard-user-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.75rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #1e293b;
  transition: background-color 0.15s ease;
}

.dashboard-user-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.65rem;
  background: rgba(14, 165, 233, 0.12);
  color: #7dd3fc;
  font-size: 0.72rem;
  font-weight: 800;
}

.dashboard-user-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.dashboard-user-copy strong,
.dashboard-user-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-user-copy strong {
  color: #e2e8f0;
  font-size: 0.76rem;
  font-weight: 650;
}

.dashboard-user-copy small {
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.65rem;
}

.dashboard-user-meta {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
  flex: 0 0 auto;
}

html.admin-light .dashboard-hero {
  border-color: #c7e8f9;
  background:
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.13), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f5fbff 55%, #edf9ff 100%);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

html.admin-light .dashboard-hero-title,
html.admin-light .dashboard-section-heading h2,
html.admin-light .dashboard-kpi-value,
html.admin-light .dashboard-today-grid dd {
  color: #0f172a !important;
}

html.admin-light .dashboard-hero-text {
  color: #64748b;
}

html.admin-light .dashboard-quick-links a {
  border-color: #dbe5f0;
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
}

html.admin-light .dashboard-quick-links a:hover {
  border-color: #7dd3fc;
  background: #f0f9ff;
  color: #0f172a;
}

html.admin-light .dashboard-kpi,
html.admin-light .dashboard-today {
  border-color: #dbe5f0;
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

html.admin-light .dashboard-kpi:hover {
  box-shadow: 0 13px 35px rgba(15, 23, 42, 0.09);
}

html.admin-light .dashboard-action,
html.admin-light .dashboard-health-summary > div {
  background: #f8fbff;
  border-color: #e2eaf3;
}

html.admin-light .dashboard-action:hover,
html.admin-light .dashboard-payment-row:hover,
html.admin-light .dashboard-user-row:hover {
  background: #f1f6fb;
}

html.admin-light .dashboard-action-copy strong,
html.admin-light .dashboard-health-item span,
html.admin-light .dashboard-health-item strong,
html.admin-light .dashboard-health-summary strong,
html.admin-light .dashboard-payment-user strong,
html.admin-light .dashboard-payment-amount,
html.admin-light .dashboard-user-copy strong {
  color: #0f172a !important;
}

html.admin-light .dashboard-progress {
  background: #dbe5f0;
}

html.admin-light .dashboard-payment-list,
html.admin-light .dashboard-user-list,
html.admin-light .dashboard-payment-row,
html.admin-light .dashboard-user-row,
html.admin-light .dashboard-today-grid > div {
  border-color: #e2eaf3;
}

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

  .dashboard-main-grid,
  .dashboard-recent-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 1.25rem;
  }

  .dashboard-quick-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .dashboard-quick-links a {
    justify-content: center;
  }

  .dashboard-quick-links a > span:last-child {
    display: none;
  }

  .dashboard-payment-row {
    grid-template-columns: 4rem minmax(7rem, 1fr) auto minmax(5rem, auto);
  }

  .dashboard-payment-row time {
    display: none;
  }
}

@media (max-width: 639px) {
  .dashboard-hero {
    min-height: auto;
    padding: 1.25rem;
  }

  .dashboard-hero-text {
    font-size: 0.82rem;
  }

  .dashboard-kpi-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
  }

  .dashboard-kpi {
    padding: 1rem;
  }

  .dashboard-today {
    padding: 1rem;
  }

  .dashboard-today-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0;
  }

  .dashboard-today-grid > div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .dashboard-main-grid,
  .dashboard-recent-grid {
    gap: 0.75rem;
  }

  .dashboard-action {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .dashboard-action-arrow {
    display: none;
  }

  .dashboard-payment-row {
    grid-template-columns: 3.7rem minmax(0, 1fr) auto;
    gap: 0.6rem;
  }

  .dashboard-payment-row .badge {
    display: none;
  }

  .dashboard-payment-amount {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Complete trader profile */
.user-profile-back {
  margin-bottom: 0.8rem;
}

.user-profile-back a {
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 650;
}

.user-profile-back a:hover {
  color: #7dd3fc;
}

.user-profile-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 9.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 1.2rem;
  background:
    radial-gradient(circle at 86% 20%, rgba(14, 165, 233, 0.16), transparent 34%),
    linear-gradient(135deg, #0f172a, #101c31 55%, #0b2131);
  box-shadow: 0 16px 45px rgba(2, 6, 23, 0.2);
}

.user-profile-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.user-profile-avatar {
  display: grid;
  width: 4.25rem;
  height: 4.25rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(14, 165, 233, 0.26), rgba(14, 165, 233, 0.08));
  color: #bae6fd;
  font-size: 1.45rem;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.user-profile-copy {
  min-width: 0;
}

.user-profile-copy h2 {
  overflow: hidden;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 750;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-copy > p {
  overflow: hidden;
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

.user-profile-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
  gap: 0.55rem;
  flex: 0 0 auto;
}

.user-profile-meta > div {
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.22);
}

.user-profile-meta dt {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 650;
}

.user-profile-meta dd {
  overflow: hidden;
  margin-top: 0.2rem;
  color: #e2e8f0;
  font-size: 0.74rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-trading-notice {
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 0.8rem;
  background: rgba(245, 158, 11, 0.07);
  color: #fde68a;
  font-size: 0.76rem;
  line-height: 1.6;
}

.user-trading-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.user-trading-kpis article {
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1rem;
  border: 1px solid #1e293b;
  border-radius: 0.95rem;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.98), rgba(9, 17, 31, 0.92));
}

.user-trading-kpis article::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -1.8rem;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.055);
}

.user-trading-kpis article > span,
.user-trading-kpis article > strong,
.user-trading-kpis article > small {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-trading-kpis article > span {
  color: #94a3b8;
  font-size: 0.7rem;
  font-weight: 650;
}

.user-trading-kpis article > strong {
  margin-top: 0.55rem;
  color: #f8fafc;
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  font-weight: 750;
  letter-spacing: -0.025em;
}

.user-trading-kpis article > small {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.62rem;
}

.trade-positive {
  color: #34d399 !important;
}

.trade-negative {
  color: #fb7185 !important;
}

.trade-neutral {
  color: #cbd5e1 !important;
}

.user-trading-snapshot {
  margin-top: 0.8rem;
  padding: 1rem 1.15rem;
  border: 1px solid #1e293b;
  border-radius: 0.95rem;
  background: rgba(15, 23, 42, 0.66);
}

.user-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.user-section-title h2 {
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 700;
}

.user-data-source {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #64748b;
  font-size: 0.65rem;
}

.user-data-source > span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0.22rem rgba(52, 211, 153, 0.1);
}

.user-trading-snapshot > dl {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.user-trading-snapshot > dl > div {
  min-width: 0;
  padding: 0.15rem 0.85rem;
  border-left: 1px solid #1e293b;
}

.user-trading-snapshot > dl > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.user-trading-snapshot dt {
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 600;
}

.user-trading-snapshot dd {
  overflow: hidden;
  margin-top: 0.22rem;
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-trading-panel {
  margin-top: 0.8rem;
}

.user-trading-table-wrap {
  overflow-x: auto;
  border: 1px solid #1e293b;
  border-radius: 0.8rem;
}

.user-trading-table {
  width: 100%;
  min-width: 940px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.72rem;
}

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

.user-trading-table th {
  padding: 0.65rem 0.7rem;
  border-bottom: 1px solid #334155;
  background: rgba(2, 6, 23, 0.42);
  color: #64748b;
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.045em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.user-trading-table td {
  padding: 0.72rem 0.7rem;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
  vertical-align: middle;
  white-space: nowrap;
}

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

.user-trading-table tbody tr {
  transition: background-color 0.15s ease;
}

.user-trading-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.36);
}

.user-trading-table td strong,
.user-trading-table td small {
  display: block;
}

.user-trading-table td strong {
  color: #f8fafc;
  font-size: 0.74rem;
}

.user-trading-table td small {
  max-width: 11rem;
  overflow: hidden;
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.58rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-side,
.trade-execution {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  padding: 0.24rem 0.48rem;
  border: 1px solid #334155;
  border-radius: 999px;
  background: rgba(51, 65, 85, 0.22);
  color: #cbd5e1;
  font-size: 0.58rem;
  font-weight: 750;
  text-transform: capitalize;
}

.trade-side-buy {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

.trade-side-sell {
  border-color: rgba(244, 63, 94, 0.3);
  background: rgba(244, 63, 94, 0.1);
  color: #fda4af;
}

.user-trade-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
  color: #64748b;
  font-size: 0.68rem;
}

.user-trade-pagination > *:last-child {
  justify-self: end;
}

.user-trade-pagination a {
  min-width: 6.3rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #334155;
  border-radius: 0.65rem;
  color: #cbd5e1;
  text-align: center;
}

.user-trade-pagination a:hover {
  border-color: #0ea5e9;
  color: #7dd3fc;
}

.user-profile-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.user-asset-list {
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 0.8rem;
}

.user-asset-row {
  display: grid;
  grid-template-columns: minmax(7rem, 1.1fr) repeat(4, minmax(5rem, 0.8fr));
  align-items: center;
  gap: 0.8rem;
  min-height: 3.7rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #1e293b;
}

.user-asset-row:last-child {
  border-bottom: 0;
}

.user-asset-row > span {
  min-width: 0;
}

.user-asset-row strong,
.user-asset-row small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-asset-row strong {
  color: #e2e8f0;
  font-size: 0.72rem;
}

.user-asset-row small {
  color: #64748b;
  font-size: 0.58rem;
}

.user-asset-symbol strong {
  color: #7dd3fc;
  font-size: 0.78rem;
}

.user-account-ledger {
  display: grid;
  gap: 0;
  margin-top: 0.85rem;
}

.user-account-ledger > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.45rem;
  border-bottom: 1px solid #1e293b;
}

.user-account-ledger > div:last-child {
  border-bottom: 0;
}

.user-account-ledger dt {
  color: #94a3b8;
  font-size: 0.7rem;
}

.user-account-ledger dd {
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: right;
}

.user-profile-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.user-profile-disclosure {
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 0.95rem;
  background: #0f172a;
}

.user-profile-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.user-profile-disclosure > summary > span:first-child {
  min-width: 0;
}

.user-profile-disclosure > summary strong,
.user-profile-disclosure > summary small {
  display: block;
}

.user-profile-disclosure > summary strong {
  color: #f8fafc;
  font-size: 0.78rem;
}

.user-profile-disclosure > summary small {
  margin-top: 0.16rem;
  color: #64748b;
  font-size: 0.62rem;
}

.user-profile-disclosure-body {
  padding: 0 1rem 1rem;
}

.user-membership-list {
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
}

.user-membership-list > div,
.user-membership-list > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #1e293b;
}

.user-membership-list > :last-child {
  border-bottom: 0;
}

.user-membership-list > a:hover {
  background: rgba(30, 41, 59, 0.35);
}

.user-membership-list strong,
.user-membership-list small {
  display: block;
}

.user-membership-list strong {
  color: #e2e8f0;
  font-size: 0.72rem;
}

.user-membership-list small {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.6rem;
}

.user-membership-list > * > span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.user-admin-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.user-admin-danger {
  border-color: rgba(239, 68, 68, 0.2);
}

html.admin-light .user-profile-hero {
  border-color: #c7e8f9;
  background:
    radial-gradient(circle at 86% 20%, rgba(14, 165, 233, 0.12), transparent 34%),
    linear-gradient(135deg, #ffffff, #f6fbff 55%, #edf9ff);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

html.admin-light .user-profile-copy h2,
html.admin-light .user-profile-meta dd,
html.admin-light .user-trading-kpis article > strong,
html.admin-light .user-section-title h2,
html.admin-light .user-trading-snapshot dd,
html.admin-light .user-trading-table td strong,
html.admin-light .user-asset-row strong,
html.admin-light .user-account-ledger dd,
html.admin-light .user-profile-disclosure > summary strong,
html.admin-light .user-membership-list strong {
  color: #0f172a !important;
}

html.admin-light .user-profile-meta > div,
html.admin-light .user-trading-kpis article,
html.admin-light .user-trading-snapshot,
html.admin-light .user-profile-disclosure {
  border-color: #dbe5f0;
  background: linear-gradient(155deg, #ffffff, #f8fbff);
}

html.admin-light .user-trading-table-wrap,
html.admin-light .user-asset-list,
html.admin-light .user-membership-list {
  border-color: #dbe5f0;
}

html.admin-light .user-trading-table th {
  border-color: #cbd8e6;
  background: #f1f6fb;
}

html.admin-light .user-trading-table td,
html.admin-light .user-asset-row,
html.admin-light .user-account-ledger > div,
html.admin-light .user-membership-list > div,
html.admin-light .user-membership-list > a {
  border-color: #e2eaf3;
  color: #334155;
}

html.admin-light .user-trading-table tbody tr:hover,
html.admin-light .user-membership-list > a:hover {
  background: #f1f6fb;
}

@media (max-width: 1280px) {
  .user-trading-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .user-trading-snapshot > dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem 0;
  }

  .user-trading-snapshot > dl > div:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 1050px) {
  .user-profile-hero {
    align-items: stretch;
    flex-direction: column;
    gap: 1.1rem;
  }

  .user-profile-meta {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .user-profile-columns,
  .user-profile-bottom-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

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

  .user-trading-kpis article:first-child {
    grid-column: 1 / -1;
  }

  .user-trading-snapshot > dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-trading-snapshot > dl > div:nth-child(3),
  .user-trading-snapshot > dl > div:nth-child(5) {
    padding-left: 0;
    border-left: 0;
  }

  .user-trading-snapshot > dl > div:nth-child(4) {
    padding-left: 0.85rem;
    border-left: 1px solid #1e293b;
  }

  .user-trading-table-wrap {
    overflow: visible;
    border: 0;
  }

  .user-trading-table,
  .user-trade-history-table,
  .user-trading-table tbody {
    display: block;
    min-width: 0;
  }

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

  .user-trading-table tr {
    display: grid;
    gap: 0;
    margin-bottom: 0.65rem;
    overflow: hidden;
    border: 1px solid #1e293b;
    border-radius: 0.8rem;
    background: rgba(2, 6, 23, 0.25);
  }

  .user-trading-table tr:last-child {
    margin-bottom: 0;
  }

  .user-trading-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.6rem;
    padding: 0.55rem 0.7rem;
    white-space: normal;
    text-align: right;
  }

  .user-trading-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 650;
    text-align: left;
  }

  .user-trading-table td strong,
  .user-trading-table td small {
    text-align: right;
  }

  html.admin-light .user-trading-table tr {
    border-color: #dbe5f0;
    background: #f8fbff;
  }

  .user-asset-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.8rem;
  }

  .user-asset-symbol {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .user-profile-hero {
    padding: 1.1rem;
  }

  .user-profile-identity {
    align-items: flex-start;
  }

  .user-profile-avatar {
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 1rem;
    font-size: 1.15rem;
  }

  .user-profile-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-trading-kpis {
    grid-template-columns: minmax(0, 1fr);
  }

  .user-trading-kpis article:first-child {
    grid-column: auto;
  }

  .user-section-title,
  .user-profile-disclosure > summary,
  .user-membership-list > div,
  .user-membership-list > a {
    align-items: flex-start;
  }

  .user-data-source {
    display: none;
  }

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

  .user-trade-pagination > span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}

/* Focused management centers: transactions and users */
.management-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  overflow: hidden;
  margin-bottom: 1rem;
  padding: 1.45rem;
  border: 1px solid #1e293b;
  border-radius: 1.15rem;
  background:
    radial-gradient(circle at 88% 10%, rgba(56, 189, 248, 0.13), transparent 29%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.92));
}

.management-hero-users {
  background:
    radial-gradient(circle at 88% 10%, rgba(139, 92, 246, 0.14), transparent 29%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.92));
}

.management-hero > div {
  max-width: 43rem;
}

.management-hero h2 {
  margin-top: 0.28rem;
  color: #f8fafc;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  font-weight: 780;
  letter-spacing: -0.035em;
}

.management-hero p {
  margin-top: 0.35rem;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.65;
}

.management-quick-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(6.5rem, 1fr));
  flex: 0 1 34rem;
  gap: 0.45rem;
}

.management-quick-links a {
  display: flex;
  min-height: 4rem;
  flex-direction: column;
  justify-content: center;
  padding: 0.65rem 0.78rem;
  border: 1px solid #273449;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.72);
  color: #94a3b8;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.management-quick-links a:hover,
.management-quick-links a.is-active {
  border-color: rgba(56, 189, 248, 0.52);
  background: rgba(14, 116, 144, 0.14);
  transform: translateY(-1px);
}

.management-hero-users .management-quick-links a:hover,
.management-hero-users .management-quick-links a.is-active {
  border-color: rgba(167, 139, 250, 0.55);
  background: rgba(109, 40, 217, 0.13);
}

.management-quick-links span {
  font-size: 0.66rem;
  font-weight: 680;
}

.management-quick-links strong {
  margin-top: 0.12rem;
  color: #f8fafc;
  font-size: 1.02rem;
}

.management-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.management-kpi-grid article {
  --management-accent: #64748b;
  position: relative;
  overflow: hidden;
  min-height: 8.2rem;
  padding: 1rem 1.05rem;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.72));
}

.management-kpi-grid article::after {
  position: absolute;
  top: -2rem;
  right: -1.7rem;
  width: 5.7rem;
  height: 5.7rem;
  border-radius: 999px;
  background: var(--management-accent);
  content: "";
  filter: blur(36px);
  opacity: 0.2;
}

.management-kpi-grid article[data-tone="emerald"] { --management-accent: #34d399; }
.management-kpi-grid article[data-tone="sky"] { --management-accent: #38bdf8; }
.management-kpi-grid article[data-tone="amber"] { --management-accent: #fbbf24; }
.management-kpi-grid article[data-tone="violet"] { --management-accent: #a78bfa; }

.management-kpi-grid span,
.management-kpi-grid small {
  display: block;
  color: #64748b;
  font-size: 0.69rem;
}

.management-kpi-grid span {
  font-weight: 720;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.management-kpi-grid strong {
  display: block;
  margin: 0.55rem 0 0.45rem;
  color: #f8fafc;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 760;
  letter-spacing: -0.025em;
}

.management-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(19rem, 0.8fr);
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.management-trend-panel,
.management-queue,
.management-audience {
  min-height: 18rem;
}

.management-trend-summary {
  text-align: right;
}

.management-trend-summary strong,
.management-trend-summary small {
  display: block;
}

.management-trend-summary strong {
  color: #f8fafc;
  font-size: 1.05rem;
}

.management-trend-summary small {
  color: #64748b;
  font-size: 0.65rem;
}

.management-bars {
  display: flex;
  height: 9.5rem;
  align-items: flex-end;
  gap: clamp(0.12rem, 0.55vw, 0.42rem);
  margin-top: 2rem;
  padding-top: 0.8rem;
  border-bottom: 1px solid #273449;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 2.65rem, rgba(51, 65, 85, 0.24) 2.7rem);
}

.management-bars > span {
  position: relative;
  min-width: 2px;
  flex: 1;
  border-radius: 0.25rem 0.25rem 0 0;
}

.management-bars > span > i {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #38bdf8, #0e7490);
  box-shadow: 0 0 1rem rgba(56, 189, 248, 0.12);
}

.management-bars-users > span > i {
  background: linear-gradient(180deg, #a78bfa, #6d28d9);
  box-shadow: 0 0 1rem rgba(167, 139, 250, 0.12);
}

.management-bars small {
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  color: #64748b;
  font-size: 0.56rem;
  transform: translateX(-50%);
  white-space: nowrap;
}

.management-queue > a,
.management-audience > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #1e293b;
}

.management-queue > a:first-of-type,
.management-audience > a:first-of-type {
  margin-top: 0.8rem;
}

.management-queue > a > span,
.management-audience > a > span {
  min-width: 0;
}

.management-queue > a > span:first-child {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.55rem;
}

.management-queue > a i {
  grid-row: 1 / 3;
  width: 0.52rem;
  height: 0.52rem;
  margin-top: 0.25rem;
  border-radius: 999px;
  background: #64748b;
}

.management-queue > a i[data-tone="warning"] { background: #fbbf24; }
.management-queue > a i[data-tone="danger"] { background: #f87171; }
.management-queue > a i[data-tone="success"] { background: #34d399; }

.management-queue > a strong,
.management-audience > a strong,
.management-queue > a small,
.management-audience > a small {
  display: block;
}

.management-queue > a strong,
.management-audience > a strong {
  color: #e2e8f0;
  font-size: 0.78rem;
}

.management-queue > a small,
.management-audience > a small {
  overflow: hidden;
  margin-top: 0.12rem;
  color: #64748b;
  font-size: 0.63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-queue > a > span:last-child,
.management-audience > a > span:last-child {
  flex: 0 0 auto;
  text-align: right;
}

.management-breakdown {
  margin-bottom: 0.75rem;
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.74);
}

.management-breakdown > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  list-style: none;
}

.management-breakdown > summary::-webkit-details-marker {
  display: none;
}

.management-breakdown > summary strong,
.management-breakdown > summary small {
  display: block;
}

.management-breakdown > summary strong {
  color: #e2e8f0;
  font-size: 0.88rem;
}

.management-breakdown > summary small {
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.66rem;
}

.management-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0 1rem 1rem;
  border-top: 1px solid #1e293b;
}

.management-breakdown-grid > div {
  padding: 0.9rem;
  border: 1px solid #1e293b;
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.25);
}

.management-breakdown-grid h3 {
  margin-bottom: 0.5rem;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 760;
  text-transform: uppercase;
}

.management-breakdown-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  min-height: 2.35rem;
  border-top: 1px solid rgba(30, 41, 59, 0.8);
  color: #94a3b8;
  font-size: 0.72rem;
}

.management-breakdown-grid a strong {
  color: #e2e8f0;
}

.management-list-panel {
  padding: 0;
  overflow: hidden;
}

.management-list-panel > .panel-header {
  padding: 1.1rem 1.2rem 0;
}

.management-filters {
  display: grid;
  grid-template-columns: minmax(15rem, 2fr) repeat(4, minmax(8rem, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  background: rgba(2, 6, 23, 0.24);
}

.management-user-filters {
  grid-template-columns: minmax(15rem, 2fr) repeat(5, minmax(8rem, 1fr));
}

.management-filters .field > span {
  display: block;
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 720;
}

.management-filter-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
  gap: 0.5rem;
}

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

.management-table {
  width: 100%;
  min-width: 70rem;
  border-collapse: collapse;
}

.management-table th {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid #1e293b;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 760;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.management-table td {
  padding: 0.82rem 0.8rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.78);
  color: #cbd5e1;
  font-size: 0.75rem;
  vertical-align: middle;
}

.management-table tbody tr {
  transition: background-color 0.15s ease;
}

.management-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.3);
}

.management-table td > strong,
.management-table td > small,
.management-table td a > strong,
.management-table td a > small {
  display: block;
}

.management-table td > small,
.management-table td a > small {
  max-width: 13rem;
  overflow: hidden;
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-primary-link,
.management-user-link,
.management-user-cell {
  color: #e2e8f0;
}

.management-primary-link {
  color: #7dd3fc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 760;
}

.management-primary-link:hover,
.management-user-link:hover strong,
.management-user-cell:hover strong {
  color: #38bdf8;
}

.management-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.management-user-cell {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.management-user-cell > span:first-child {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 0.72rem;
  background: rgba(14, 116, 144, 0.13);
  color: #7dd3fc;
  font-weight: 760;
}

.management-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

html.admin-light .management-hero {
  border-color: #dbe5f0;
  background:
    radial-gradient(circle at 88% 10%, rgba(14, 165, 233, 0.12), transparent 29%),
    linear-gradient(135deg, #ffffff, #f5f9fd);
}

html.admin-light .management-hero-users {
  background:
    radial-gradient(circle at 88% 10%, rgba(139, 92, 246, 0.12), transparent 29%),
    linear-gradient(135deg, #ffffff, #f5f9fd);
}

html.admin-light .management-hero h2,
html.admin-light .management-quick-links strong,
html.admin-light .management-kpi-grid strong,
html.admin-light .management-trend-summary strong,
html.admin-light .management-breakdown > summary strong,
html.admin-light .management-breakdown-grid a strong,
html.admin-light .management-queue > a strong,
html.admin-light .management-audience > a strong,
html.admin-light .management-primary-link,
html.admin-light .management-user-link,
html.admin-light .management-user-cell {
  color: #0f172a;
}

html.admin-light .management-quick-links a,
html.admin-light .management-kpi-grid article,
html.admin-light .management-breakdown,
html.admin-light .management-breakdown-grid > div {
  border-color: #dbe5f0;
  background: rgba(255, 255, 255, 0.84);
}

html.admin-light .management-filters {
  border-color: #dbe5f0;
  background: #f8fbff;
}

html.admin-light .management-table th,
html.admin-light .management-table td,
html.admin-light .management-queue > a,
html.admin-light .management-audience > a,
html.admin-light .management-breakdown-grid,
html.admin-light .management-breakdown-grid a {
  border-color: #dbe5f0;
}

html.admin-light .management-table td {
  color: #334155;
}

html.admin-light .management-table tbody tr:hover {
  background: #f8fbff;
}

@media (max-width: 1180px) {
  .management-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .management-quick-links {
    width: 100%;
    flex-basis: auto;
  }

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

  .management-user-filters,
  .management-filters {
    grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(8rem, 1fr));
  }
}

@media (max-width: 760px) {
  .management-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .management-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .management-breakdown-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .management-search {
    grid-column: 1 / -1;
  }

  .management-table-wrap {
    overflow: visible;
    padding: 0.8rem;
  }

  .management-table,
  .management-table tbody {
    display: block;
    min-width: 0;
  }

  .management-table thead {
    display: none;
  }

  .management-table tr {
    display: grid;
    margin-bottom: 0.7rem;
    overflow: hidden;
    border: 1px solid #1e293b;
    border-radius: 0.85rem;
    background: rgba(2, 6, 23, 0.2);
  }

  .management-table tr:last-child {
    margin-bottom: 0;
  }

  .management-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.9rem;
    padding: 0.62rem 0.75rem;
    text-align: right;
  }

  .management-table td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: #64748b;
    font-size: 0.6rem;
    font-weight: 720;
    text-align: left;
  }

  .management-table td > *,
  .management-table td > a {
    margin-left: auto;
  }

  .management-table td small {
    text-align: right;
  }

  html.admin-light .management-table tr {
    border-color: #dbe5f0;
    background: #ffffff;
  }
}

@media (max-width: 520px) {
  .management-hero {
    padding: 1.05rem;
  }

  .management-kpi-grid,
  .management-user-filters,
  .management-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .management-search {
    grid-column: auto;
  }

  .management-filter-actions {
    justify-content: stretch;
  }

  .management-filter-actions .btn {
    flex: 1;
    justify-content: center;
  }

  .management-bars {
    gap: 0.1rem;
  }
}
