<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>eBay OAuth callback</title>
<style>
  body{font-family:system-ui,-apple-system,sans-serif;max-width:44rem;margin:2.5rem auto;padding:0 1.25rem;line-height:1.55;color:#1a1a1a}
  h1{font-size:1.35rem;margin-bottom:.25rem}
  pre{background:#f6f6f6;border:1px solid #d0d0d0;border-radius:6px;padding:.9rem 1rem;overflow:auto;word-break:break-all}
  .code{background:#fff6d9;border:2px solid #e0a800;border-radius:6px;padding:.5rem .75rem;font-size:1.05rem;word-break:break-all}
  .muted{color:#555;font-size:.9rem}
  button{font-size:.95rem;padding:.45rem 1rem;border:1px solid #888;border-radius:6px;background:#fff;cursor:pointer}
  button:hover{background:#f0f0f0}
</style>
</head>
<body>
<h1>eBay OAuth callback</h1>
<p>The redirect from eBay arrived. Copy the <strong>full URL from your browser address bar</strong> (it contains your authorization code) and paste it back to Julio.</p>
<p class="muted">Query string (as received by this server):</p>
<pre id="qs"></pre>
<p>Authorization code:</p>
<div class="code" id="codeval">(loading...)</div>
<p><button id="copy" type="button">Copy full URL</button> <span class="muted" id="copystatus"></span></p>
<script src="/callback.js"></script>
</body>
</html>