/* ---------------------------------------------------------------------
   Tokens. Grounded in Omnarch's existing "mined materials" stock brand
   (Diamond, Netherite, Redstone, Emerald...) rather than a generic dark
   theme — warm ember/amber accent, mineral green for "linked" states,
   cinnabar red for denial. Ledger-style mono face echoes the stock app.
--------------------------------------------------------------------- */
:root {
  --bg: #14181c;
  --panel: #1d2328;
  --panel-line: #2a3138;
  --text: #ede7de;
  --text-muted: #8b9198;

  --amber: #c97c2e;
  --amber-bright: #e2a855;
  --malachite: #4e9f6e;
  --malachite-dim: #2f4d3c;
  --cinnabar: #c4453b;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
}

a { color: var(--amber-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* --- top bar --- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  color: var(--text);
}
.topbar nav a { color: var(--text-muted); font-size: 0.9rem; margin-left: 20px; }
.topbar nav a:hover { color: var(--text); }

/* --- hero (welcome page) --- */
.hero {
  text-align: center;
  padding: 64px 0 40px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  letter-spacing: 0.01em;
  margin: 0 0 14px;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--amber);
  color: #14181c;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--amber-bright); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--panel-line);
}
.btn--ghost:hover { background: var(--panel); border-color: var(--amber); }
.btn--danger { background: var(--cinnabar); color: var(--text); }
.btn--danger:hover { background: #d75a50; }
.btn--success { background: var(--malachite); color: #0f1a14; }
.btn--success:hover { background: #5cb37e; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* --- signature element: the three-seal identity chain --- */
.seals {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 40px 0;
}
.seal-link {
  width: 34px;
  height: 2px;
  background: var(--panel-line);
}
.seal-link.is-linked { background: var(--malachite); }

.seal {
  width: 92px;
  height: 104px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted);
}
.seal .mark { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; opacity: 0.85; }
.seal.is-linked .mark { opacity: 1; color: var(--malachite); }
.seal span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.seal.is-linked {
  background: var(--malachite-dim);
  border-color: var(--malachite);
  color: var(--text);
}
.seal.is-linked svg { opacity: 1; color: var(--malachite); }
.seal.is-pending {
  border-style: dashed;
}

/* --- panels / cards --- */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 4px;
}
.panel .sub { color: var(--text-muted); font-size: 0.88rem; margin: 0 0 18px; }

.identity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--panel-line);
}
.identity-row:first-of-type { border-top: none; padding-top: 0; }
.identity-row .who { display: flex; align-items: center; gap: 12px; }
.identity-row .platform { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.identity-row .detail { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-muted); }
.identity-row .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--panel-line);
}

.ledger {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--panel-line);
}
.ledger:first-child { border-top: none; }
.ledger .val { color: var(--text); }

.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--panel-line);
  color: var(--text-muted);
}
.badge.verified { color: var(--malachite); border-color: var(--malachite); }
.badge.quarantined { color: var(--amber-bright); border-color: var(--amber); }
.badge.denied { color: var(--cinnabar); border-color: var(--cinnabar); }

/* --- admin queue --- */
.queue-item { border-top: 1px solid var(--panel-line); padding: 18px 0; }
.queue-item:first-child { border-top: none; padding-top: 0; }
.queue-item .who { display: flex; justify-content: space-between; align-items: baseline; }
.queue-item .name { font-family: var(--font-display); font-weight: 600; }
.queue-item .meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }
.queue-item ul { margin: 10px 0; padding-left: 18px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.queue-item .actions { display: flex; gap: 10px; margin-top: 10px; }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  padding: 40px 0;
  font-size: 0.92rem;
}

.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 40px;
}
