@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --muted: #6b7280;
  --brand: #111111;
  --brand-contrast: #f9fafb;
  --surface: #ffffff;
  --bg: #f6f6f7;
  --stroke: #d4d4d4;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 10px 24px rgba(0, 0, 0, 0.16);
  --shadow-strong-hover: 0 14px 32px rgba(0, 0, 0, 0.18);
  --sidebar-hover: #f3f4f6;
  --sidebar-active: #e5e7eb;
  --ring: rgba(15, 23, 42, 0.12);
  --ring-border: #cbd5e1;
  --card-highlight: rgba(255, 255, 255, 0.6);
  --backdrop: rgba(15, 23, 42, 0.4);
  --toast-success-bg: #ecfdf3;
  --toast-success-text: #065f46;
  --toast-success-border: #a7f3d0;
  --toast-error-bg: #7f1d1d;
  --toast-error-text: #fee2e2;
  --toast-error-border: #fecaca;
  --chart-bar: rgba(15, 23, 42, 0.9);
  --chart-line: #0ea5e9;
  --donut-1: #0ea5e9;
  --donut-2: #22c55e;
  --donut-3: #f59e0b;
  --donut-4: #e5e7eb;
  --radius: 12px;
  --toast-duration: 10000;
  --toast-hide-delay: 300;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #fafafa;
  --muted: #9ca3af;
  --brand: #fafafa;
  --brand-contrast: #000000;
  --surface: #0a0a0a;
  --bg: #000000;
  --stroke: #262626;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  --shadow-strong: 0 18px 32px rgba(0, 0, 0, 0.65);
  --shadow-strong-hover: 0 24px 42px rgba(0, 0, 0, 0.7);
  --sidebar-hover: #111111;
  --sidebar-active: #1a1a1a;
  --ring: rgba(250, 250, 250, 0.12);
  --ring-border: #3f3f46;
  --card-highlight: rgba(255, 255, 255, 0.05);
  --backdrop: rgba(0, 0, 0, 0.6);
  --toast-success-bg: #064e3b;
  --toast-success-text: #d1fae5;
  --toast-success-border: #065f46;
  --toast-error-bg: #7f1d1d;
  --toast-error-text: #fee2e2;
  --toast-error-border: #991b1b;
  --chart-bar: rgba(226, 232, 240, 0.92);
  --chart-line: #38bdf8;
  --donut-1: #38bdf8;
  --donut-2: #4ade80;
  --donut-3: #fbbf24;
  --donut-4: #1f2937;
}

* { box-sizing: border-box; }

body {
  font-family: "Geist", sans-serif;
  background: var(--bg);
  margin: 0;
  padding: 56px 16px;
  color: var(--ink);
  min-height: 100vh;
}

.card {
  max-width: 1200px;
  width: min(96vw, 1200px);
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--stroke);
  position: relative;
  animation: rise 600ms ease-out;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 var(--card-highlight);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--sidebar-hover);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2.section-title {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  font-size: 13px;
  margin: 14px 0 6px;
  color: var(--muted);
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface);
  transition: border-color 180ms ease, box-shadow 180ms ease;
  appearance: none;
}

input:focus {
  outline: none;
  border-color: var(--ring-border);
  box-shadow: 0 0 0 3px var(--ring);
}

select:focus {
  outline: none;
  border-color: var(--ring-border);
  box-shadow: 0 0 0 3px var(--ring);
}

.input-prefix {
  position: relative;
}

.input-prefix .prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  pointer-events: none;
}

.input-prefix input.with-prefix {
  padding-left: 28px;
}

.help {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

button {
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  border: 0;
  background: var(--brand);
  color: var(--brand-contrast);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-strong);
  transition: transform 160ms ease, box-shadow 160ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-strong-hover);
}

.btn-text { display: inline-flex; }

.btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  opacity: 0.7;
  display: none;
  animation: spin 0.8s linear infinite;
}

button.is-loading {
  cursor: wait;
  transform: none;
  box-shadow: var(--shadow-strong);
  opacity: 0.9;
}

button.is-loading .btn-spinner { display: inline-block; }

.msg { margin-top: 12px; font-size: 14px; }
.error { color: #b42318; }
.success { color: #0f7a4a; }

.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.toast {
  min-width: 240px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--toast-success-text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-strong);
  background: var(--toast-success-bg);
  border: 1px solid var(--toast-success-border);
  animation: toastIn 240ms ease-out;
}

.toast.success { background: var(--toast-success-bg); color: var(--toast-success-text); border-color: var(--toast-success-border); }
.toast.error { background: var(--toast-error-bg); color: var(--toast-error-text); border-color: var(--toast-error-border); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-active { background: #dcfce7; color: #166534; }
.status-banned { background: #7f1d1d; color: #fee2e2; }
.status-expired { background: #fef9c3; color: #854d0e; }
.status-nolicense { background: #dbeafe; color: #1e40af; }
.status-unknown { background: #e5e7eb; color: #374151; }

.status-waiting { background: #e0f2fe; color: #0369a1; }
.status-reject { background: #fee2e2; color: #991b1b; }
.status-done { background: #dcfce7; color: #166534; }

.toast.is-hiding {
  animation: toastOut 220ms ease-in forwards;
}

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

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

.info-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.info-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  width: 100%;
  height: 100%;
}

.info-item.wide {
  grid-column: span 2;
}

.info-item .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.info-item .value {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.admin-shell {
  width: min(96vw, 1400px);
  margin: 0 auto;
  padding-left: 320px;
  transition: padding-left 180ms ease;
}

.sidebar {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  position: fixed;
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: 290px;
  overflow-y: auto;
}

.sidebar-header {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sidebar-toggle {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--ink);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: none;
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 16px;
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--sidebar-hover);
  flex-shrink: 0;
}

.sidebar-avatar svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.sidebar-profile-text {
  min-width: 0;
}

.sidebar-profile-email {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-profile-balance {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.sidebar.is-collapsed {
  width: 86px;
}

.admin-shell.is-collapsed {
  padding-left: 120px;
}

.sidebar.is-collapsed .sidebar-header {
  display: none;
}

.sidebar.is-collapsed .sidebar-header-row {
  justify-content: center;
}

.sidebar.is-collapsed .sidebar-toggle {
  width: 32px;
  height: 32px;
}

.sidebar.is-collapsed .sidebar-profile-text {
  display: none;
}

.sidebar.is-collapsed .sidebar-profile {
  justify-content: center;
  padding: 10px;
}

.sidebar.is-collapsed .sidebar-link {
  justify-content: center;
  gap: 0;
  font-size: 0;
}

.sidebar.is-collapsed .sidebar-link span:not(.sidebar-icon) {
  display: none;
}

.sidebar.is-collapsed .sidebar-link .sidebar-icon {
  font-size: 13px;
}

.sidebar.is-collapsed .sidebar-footer {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: background 160ms ease, color 160ms ease;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--brand);
}

.sidebar-link.is-active {
  background: var(--sidebar-active);
  color: var(--brand);
}

.sidebar-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.sidebar-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.admin-content {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
  width: 100%;
}

.admin-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.admin-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.admin-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--stroke);
}

.admin-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
  width: 100%;
  height: 100%;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.stat-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface);
  width: 100%;
  height: 100%;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.dashboard-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
}

.chart-card {
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.chart-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 10px;
}

.donut {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 8px auto 0;
  background: conic-gradient(
    var(--donut-1) 0deg var(--p1),
    var(--donut-2) var(--p1) var(--p2),
    var(--donut-3) var(--p2) var(--p3),
    var(--donut-4) var(--p3) 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-center {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--ink);
  font-size: 14px;
  text-align: center;
}

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.chart-canvas {
  width: 100%;
  height: 220px;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  z-index: 1200;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.theme-toggle:hover {
  background: var(--sidebar-hover);
  border-color: var(--stroke);
  transform: translateY(-1px);
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.theme-icon.sun { display: none; }
[data-theme="dark"] .theme-icon.sun { display: inline-flex; }
[data-theme="dark"] .theme-icon.moon { display: none; }

@media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-stack {
    width: 100%;
  }
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: stretch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  max-width: 100%;
}

.admin-table--recent,
.admin-table--resellers {
  table-layout: fixed;
}

.admin-table--recent th:nth-child(1),
.admin-table--recent td:nth-child(1) {
  width: 170px;
}

.admin-table--recent th:nth-child(2),
.admin-table--recent td:nth-child(2),
.admin-table--recent th:nth-child(3),
.admin-table--recent td:nth-child(3) {
  width: 220px;
}

.admin-table--recent th:nth-child(4),
.admin-table--recent td:nth-child(4) {
  width: 120px;
}

.admin-table--recent th:nth-child(5),
.admin-table--recent td:nth-child(5) {
  width: 90px;
}

.admin-table--recent th:nth-child(6),
.admin-table--recent td:nth-child(6) {
  width: 110px;
}

.admin-table--recent td:nth-child(2),
.admin-table--recent td:nth-child(3),
.admin-table--resellers td:nth-child(1) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table--resellers th:nth-child(1),
.admin-table--resellers td:nth-child(1) {
  width: 260px;
}

.admin-table--resellers th:nth-child(2),
.admin-table--resellers td:nth-child(2) {
  width: 120px;
}

.admin-table--resellers th:nth-child(3),
.admin-table--resellers td:nth-child(3) {
  width: 100px;
}

@media (max-width: 900px) {
  .admin-table--recent {
    min-width: 780px;
  }
  .admin-table--resellers {
    min-width: 520px;
  }
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--stroke);
}

.admin-table th {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink) !important;
  margin-top: 0;
  padding: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.icon-btn:hover {
  background: var(--sidebar-hover);
  border-color: var(--stroke);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: var(--ink) !important;
  stroke: var(--ink) !important;
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.modal.is-open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--backdrop);
}

.modal-card {
  position: relative;
  width: min(94vw, 560px);
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  padding: 18px;
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.modal-close {
  border: 1px solid var(--stroke);
  background: var(--surface);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink) !important;
  padding: 0;
  overflow: visible;
}

.modal-close svg {
  width: 18px;
  height: 18px;
  fill: var(--ink) !important;
  stroke: var(--ink) !important;
  display: block;
}

.modal-section {
  margin-top: 16px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.modal-actions form {
  margin: 0;
}

.btn-secondary {
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger {
  border: 1px solid #fecaca;
  background: #fee2e2;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.btn-inline {
  width: auto;
  margin-top: 0;
  padding: 6px 10px;
  font-size: 12px;
  box-shadow: none;
}

.btn-inline .btn-spinner {
  width: 12px;
  height: 12px;
  border-width: 2px;
}


@media (max-width: 900px) {
  .admin-shell {
    padding-left: 0;
  }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: 16px;
  }
  .sidebar-nav {
    flex-direction: column;
    gap: 6px;
  }
  .sidebar-link {
    flex: 1 1 auto;
    justify-content: flex-start;
    text-align: left;
  }
  .sidebar.is-collapsed .sidebar-nav,
  .sidebar.is-collapsed .sidebar-footer,
  .sidebar.is-collapsed .subtitle,
  .sidebar.is-collapsed .sidebar-profile {
    display: none;
  }
  .sidebar.is-collapsed {
    width: auto;
  }
}

@media (max-width: 720px) {
  .admin-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }
  .admin-shell {
    width: 100%;
  }
  .card {
    width: 100%;
  }
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .dashboard-grid,
  .dashboard-stack {
    gap: 12px;
  }
  .chart-card {
    padding: 14px;
  }

  .admin-table--stack {
    display: block;
    overflow: visible;
    white-space: normal;
    width: 100%;
    min-width: 100%;
    table-layout: auto;
  }
  .admin-table--recent,
  .admin-table--resellers {
    min-width: 100%;
  }
  .admin-table--stack thead {
    display: none;
  }
  .admin-table--stack tbody,
  .admin-table--stack tr,
  .admin-table--stack td {
    display: block;
    width: 100%;
  }
  .admin-table--stack tr {
    border: 1px solid var(--stroke);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: var(--surface);
  }
  .admin-table--stack td {
    border: none;
    padding: 6px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
  }
  .admin-table--stack td .cell-value {
    min-width: 0;
    flex: 1;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .admin-table--stack td[data-label="Time"] .cell-value {
    font-variant-numeric: tabular-nums;
  }
  .admin-table--stack td::before {
    content: attr(data-label);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .admin-table--stack td .status-badge {
    margin-left: auto;
  }
  .table-scroll {
    overflow: hidden;
  }
}

.link-row {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.link-row a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.link-row a:hover {
  text-decoration: underline;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 560px) {
  body { padding: 40px 12px; }
  .card { padding: 22px; }
  .sidebar-nav {
    flex-direction: column;
  }
  .sidebar-link {
    flex: 1 1 auto;
    justify-content: flex-start;
    text-align: left;
  }
  .chart-canvas {
    height: 180px;
  }
  .donut {
    width: 170px;
    height: 170px;
  }
  .donut-center {
    width: 100px;
    height: 100px;
    font-size: 12px;
  }
}
