/* apps/admin/public/admin.css — static portal stylesheet (zero-build by
   design: the Tailwind pipeline belongs to the main Astro site; this
   standalone Pages artifact ships plain CSS). */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #e4e4e7;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0a1f 0%, #131336 35%, #1a0a2e 70%, #0d1b1e 100%);
}
main { max-width: 54rem; margin: 0 auto; padding: 3rem 1rem; }
h1 { font-size: 1.875rem; font-weight: 700; margin: 0 0 0.25rem; }
h2 { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.75rem; }
.sub { color: #a1a1aa; margin: 0 0 1.5rem; }
.muted { color: #a1a1aa; font-size: 0.875rem; line-height: 1.6; }
.tiny { font-size: 0.75rem; }
.label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.12em; color: #71717a; margin-bottom: 0.25rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem; color: #19e3ff; word-break: break-all; }
.card {
  background: rgba(37, 37, 71, 0.6);
  border: 1px solid #27272a;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hidden { display: none; }
.btn-primary {
  display: block; width: 100%;
  padding: 0.8rem 1.25rem;
  border: none; border-radius: 0.75rem;
  background: linear-gradient(to right, #6366f1, #d946ef);
  color: #fff; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: filter 0.15s;
}
.btn-primary:hover { filter: brightness(1.15); }
.btn-disabled {
  display: block; width: 100%; margin-top: 0.75rem;
  padding: 0.8rem 1.25rem;
  border: none; border-radius: 0.75rem;
  background: rgba(39, 39, 42, 0.6);
  color: #71717a; font-size: 0.875rem; font-weight: 600;
  cursor: not-allowed; opacity: 0.5;
}
.btn-ghost {
  margin-top: 0.75rem; padding: 0.4rem 0.9rem;
  background: #27272a; border: none; border-radius: 0.5rem;
  color: #fff; font-size: 0.75rem; font-weight: 500; cursor: pointer;
  transition: background 0.15s;
}
.btn-ghost:hover { background: #3f3f46; }
.hint { font-size: 0.75rem; color: #71717a; margin: 0.75rem 0 0; }
.status { margin-top: 1rem; }
.idrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; }
.minw0 { min-width: 0; }
.badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: #4ade80; background: rgba(22, 101, 52, 0.5);
  padding: 0.25rem 0.5rem; border-radius: 0.25rem; flex-shrink: 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-bottom: 1.5rem; }
.stat { margin-bottom: 0; padding: 1rem; }
.statval { font-size: 1.5rem; font-weight: 700; margin-top: 0.25rem; }
.cardhead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.cardhead .btn-ghost { margin-top: 0; }
.rev-grid { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin-bottom: 1rem; }
.rev { background: rgba(9, 9, 11, 0.6); border: 1px solid #27272a; border-radius: 0.75rem; padding: 1rem; }
.revval { font-size: 1.5rem; font-weight: 700; margin-top: 0.25rem; }
.green { color: #00ff88; }
.amber { color: #ffd23f; }
.cyan { color: #19e3ff; }
.spinner {
  display: inline-block; width: 1rem; height: 1rem;
  border: 2px solid rgba(25, 227, 255, 0.3); border-top-color: #19e3ff;
  border-radius: 50%; vertical-align: middle; margin-right: 0.5rem;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th {
  text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: #71717a; padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid #27272a; white-space: nowrap;
}
td { padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid rgba(39, 39, 42, 0.6); white-space: nowrap; }
td.addr { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; word-break: break-all; white-space: normal; }
td.dim { color: #71717a; }
@media (min-width: 640px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .rev-grid { grid-template-columns: repeat(3, 1fr); }
}
