:root {
  --navy: #11182b;
  --navy-soft: #202941;
  --purple: #7450d9;
  --blue: #4675de;
  --text: #172033;
  --muted: #68738a;
  --line: #dfe4ee;
  --green: #16805c;
  --red: #bd3f50;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; color: var(--text); font-family: "Trebuchet MS", "Segoe UI", sans-serif; background: radial-gradient(circle at 10% 0%, rgba(112,79,213,.3), transparent 33%), radial-gradient(circle at 100% 10%, rgba(56,124,222,.25), transparent 30%), linear-gradient(145deg, #0c1121, #1b2540 58%, #f4f5f9 58%); }
.lookup-page { min-height: 100vh; padding: 48px 16px 72px; }
.back-link { display: inline-block; width: min(760px, 100%); margin: 0 auto 28px; color: rgba(255,255,255,.85); font-weight: 700; text-decoration: none; }
.back-link:hover { color: #fff; text-decoration: underline; }
.lookup-shell { width: min(760px, 100%); margin: 0 auto; }
.lookup-card { padding: clamp(24px, 5vw, 52px); border: 1px solid rgba(255,255,255,.7); border-radius: 24px; background: rgba(255,255,255,.97); box-shadow: 0 28px 70px rgba(8,13,31,.27); }
.intro { max-width: 680px; }
.brand-mark { color: var(--navy); font-family: "Space Grotesk", sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .08em; }
.brand-mark b { color: #e18a20; }
.eyebrow { margin: 0 0 14px; color: var(--purple); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: "Space Grotesk", sans-serif; }
h1 { margin: 0; color: var(--navy); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.05em; }
.intro-text { max-width: 620px; margin: 18px 0 30px; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }
.lookup-form { padding-top: 24px; border-top: 1px solid var(--line); }
.lookup-form label { display: block; margin-bottom: 9px; color: var(--navy); font-size: .9rem; font-weight: 900; }
.input-row { display: flex; gap: 10px; }
input { min-width: 0; flex: 1; border: 1px solid #cbd3e1; border-radius: 10px; padding: .95rem 1rem; color: var(--text); font: inherit; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; outline: none; }
input:focus { border-color: var(--blue); outline: 3px solid rgba(70,117,222,.18); }
button { border: 0; border-radius: 10px; padding: .95rem 1.25rem; background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; cursor: pointer; font: inherit; font-weight: 900; white-space: nowrap; }
button:hover { filter: brightness(1.08); }
.hint { margin: 9px 0 0; color: var(--muted); font-size: .82rem; }
.feedback { margin-top: 28px; padding: 20px; border: 1px solid rgba(189,63,80,.3); border-radius: 16px; color: var(--red); background: #fff7f8; }
.result-card { margin-top: 28px; border: 1px solid rgba(70,117,222,.35); border-radius: 16px; overflow: hidden; background: #fff; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: #f4f6fd; }
.result-photo { flex: 0 0 88px; margin: 0; text-align: center; }
.result-photo img { display: block; width: 88px; height: 112px; border: 1px solid var(--line); border-radius: 10px; background: #fff; object-fit: cover; object-position: center 25%; }
.result-identity { min-width: 0; flex: 1; }
.result-label { margin: 0 0 7px; color: var(--muted); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h2 { margin: 0; color: var(--navy); font-size: 1.2rem; }
.status-badge { border-radius: 999px; padding: .42rem .7rem; background: #e8ecf5; color: var(--navy); font-size: .78rem; font-weight: 900; white-space: nowrap; }
.is-test { color: var(--navy); background: #e8ecf5; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.result-field { padding: 15px 20px; background: #fff; }
.result-field-wide { grid-column: 1 / -1; }
.result-field span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.result-field strong { color: var(--navy); font-size: .98rem; }
.verification-note { display: flex; gap: 10px; align-items: center; padding: 14px 20px; color: var(--navy); background: #f4f6fd; font-size: .9rem; font-weight: 600; line-height: 1.45; }
.check-icon { display: grid; flex: 0 0 22px; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--green); font-size: .8rem; }
[hidden] { display: none; }
@media (max-width: 560px) {
  .lookup-page { padding-top: 28px; }
  .input-row, .result-header { align-items: stretch; flex-direction: column; }
  button { width: 100%; }
  .status-badge { display: inline-block; margin-top: 14px; }
  .result-grid { grid-template-columns: 1fr; gap: 0; }
  .result-field + .result-field { border-top: 1px solid var(--line); }
  .result-field-wide { grid-column: auto; }
}