:root {
  --bg: #12100e;
  --bg-2: #1b1814;
  --ink: #efe6d6;
  --muted: #a89b88;
  --line: rgba(239, 230, 214, 0.12);
  --copper: #d06a2b;
  --copper-2: #f0a36a;
  --sage: #8fad8a;
  --danger: #d36b5f;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Outfit, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, #2a2118 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 10%, #1f2a22 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
  letter-spacing: 0.01em;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

.top, main, footer { position: relative; z-index: 1; width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; padding: 36px 0 18px; }
.brand { display: flex; gap: 14px; align-items: center; }
.mark {
  width: 14px; height: 42px; border-radius: 99px;
  background: linear-gradient(180deg, var(--copper-2), var(--copper));
}
.brand strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 650;
}
.brand em { color: var(--muted); font-style: normal; font-size: 13px; }
.note { max-width: 280px; color: var(--muted); font-size: 13px; text-align: right; }

.panel, .card {
  background: color-mix(in srgb, var(--bg-2) 86%, black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  margin: 14px 0;
}
.scan label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; margin-bottom: 10px; }
.row { display: flex; gap: 10px; }
input {
  flex: 1;
  background: #0e0c0a;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  font: 500 18px/1.2 Outfit, sans-serif;
  outline: none;
}
input:focus { border-color: var(--copper); }
button, .btn {
  border: 0;
  background: var(--copper);
  color: #1a0f08;
  font: 600 14px/1 Outfit, sans-serif;
  padding: 0 20px;
  min-height: 48px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button { min-height: 48px; }
button:disabled { opacity: 0.5; cursor: wait; }
.table-wrap { overflow-x: auto; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); height: 40px; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

.progress { margin-top: 22px; }
.progress-head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.bar { height: 8px; background: #2a241d; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--copper), var(--copper-2)); transition: width 0.25s ease; }
.mono { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; }

.hidden { display: none !important; }
.actions { display: flex; gap: 8px; justify-content: flex-end; margin: 8px 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 18px; }
.stat {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #16130f;
}
.stat b { display: block; font-family: Fraunces, serif; font-size: 32px; }
.stat span { color: var(--muted); font-size: 13px; }

h2 { font-family: Fraunces, serif; font-size: 26px; font-weight: 650; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 16px; }
.asn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.asn-grid div { color: var(--muted); font-size: 13px; }
.asn-grid strong { display: block; color: var(--ink); font-size: 16px; font-weight: 500; margin-top: 2px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ip { font-variant-numeric: tabular-nums; white-space: nowrap; }
.score { color: var(--copper-2); font-weight: 600; }
.ok { color: var(--sage); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--muted);
}

footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding: 18px 0 40px; }
.empty { color: var(--muted); padding: 8px 0; }

@media (max-width: 800px) {
  .top { flex-direction: column; align-items: flex-start; }
  .note { text-align: left; }
  .row { flex-direction: column; }
  button { height: 46px; }
  .stats, .asn-grid { grid-template-columns: 1fr 1fr; }
}
