:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #10131a;
  --panel-border: rgba(114, 137, 218, 0.2);
  --panel-header: rgba(114, 137, 218, 0.35);
  --text-primary: #f5f7fb;
  --text-secondary: #8a94a7;
  --accent: #7289da;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(114, 137, 218, 0.12), transparent 55%),
              var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.shell {
  width: min(960px, 100%);
  display: grid;
  gap: 1.75rem;
}

.header {
  display: grid;
  gap: 0.5rem;
}

.title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.title .dot {
  color: var(--accent);
}

.subtitle {
  margin: 0;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
}

.panel {
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

.panel__header {
  padding: 1.1rem 1.6rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: linear-gradient(135deg, rgba(114, 137, 218, 0.25), transparent);
  border-bottom: 1px solid rgba(114, 137, 218, 0.18);
}

.panel__body {
  padding: 1.6rem;
  display: grid;
  gap: 1rem;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.metric__label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric__value {
  font-family: var(--mono);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--text-primary);
  word-break: break-word;
}

.metric__value--link {
  color: var(--accent);
  text-decoration: none;
}

.metric__value--link:hover,
.metric__value--link:focus {
  text-decoration: underline;
}

.metric__value--link {
  color: var(--accent);
  text-decoration: none;
}

.metric__value--link:hover,
.metric__value--link:focus {
  text-decoration: underline;
}

.muted {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(114, 137, 218, 0.15);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.chip--yes {
  border-color: rgba(15, 157, 88, 0.5);
  background: rgba(15, 157, 88, 0.18);
  color: #9ff2c3;
}

.chip--no {
  border-color: rgba(176, 0, 32, 0.45);
  background: rgba(176, 0, 32, 0.18);
  color: #ffb0b9;
}

.lookup {
  gap: 1.25rem;
}

.lookup__gate,
.lookup__challenge {
  display: grid;
  gap: 0.85rem;
}

.lookup__challenge {
  padding: 1rem;
  border: 1px dashed rgba(114, 137, 218, 0.4);
  border-radius: 14px;
  background: rgba(10, 13, 20, 0.6);
}

.lookup__code {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  display: inline-flex;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  background: rgba(114, 137, 218, 0.18);
  color: var(--text-primary);
}

.lookup__label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.lookup__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.lookup__steps {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.lookup__steps li {
  line-height: 1.4;
}

#virustotal-panel .metric {
  gap: 0.25rem;
}

.lookup__input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(114, 137, 218, 0.45);
  background: rgba(8, 10, 14, 0.9);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lookup__input--code {
  flex: 0 0 auto;
  width: min(220px, 100%);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.lookup__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.3);
}

.lookup__button {
  flex: 0 0 auto;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #0a0d14;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.lookup__button--primary {
  width: fit-content;
}

.lookup__button:hover:not(:disabled),
.lookup__button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(114, 137, 218, 0.35);
}

.lookup__button:disabled {
  cursor: progress;
  opacity: 0.6;
}

.lookup__status {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.lookup__status--success {
  color: #56d59b;
}

.lookup__status--error {
  color: #f16b6b;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  body {
    padding: 2rem 1.25rem;
  }
}
