:root {
  --navy: #0b2f54;
  --ink: #173652;
  --blue: #176ed4;
  --blue-2: #2397e8;
  --green: #16a36f;
  --green-soft: #e9fbf4;
  --green-line: #bdebd9;
  --amber: #b76a0b;
  --amber-soft: #fff7e8;
  --amber-line: #f2d29f;
  --muted: #61788e;
  --line: #dce9f5;
  --soft: #f4f9ff;
  --white: #ffffff;
  --shadow: 0 30px 90px rgba(22, 72, 115, .16);
  --shadow-soft: 0 14px 42px rgba(25, 74, 116, .10);
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 6%, rgba(20, 181, 208, .18), transparent 28rem),
    radial-gradient(circle at 7% 88%, rgba(23, 110, 212, .12), transparent 30rem),
    linear-gradient(135deg, #fff 0%, #f7fbff 48%, #edf7ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .55;
  background-image:
    linear-gradient(rgba(25, 109, 184, .052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 109, 184, .052) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.76) 58%, transparent 100%);
}

a { color: inherit; }

.page-shell {
  width: min(1160px, calc(100% - 34px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand img {
  width: 205px;
  max-width: 56vw;
  height: auto;
}

.portal-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(208, 226, 241, .95);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #547089;
  font-size: 12px;
  font-weight: 760;
  box-shadow: 0 8px 24px rgba(28, 78, 118, .06);
  backdrop-filter: blur(12px);
}

.portal-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22,163,111,.12);
}

.verification-card {
  overflow: hidden;
  border: 1px solid rgba(193, 218, 238, .95);
  border-radius: 30px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.verification-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 32px 34px;
  border-bottom: 1px solid #e4eef6;
  background:
    radial-gradient(circle at 85% 12%, rgba(84, 222, 169, .24), transparent 18rem),
    linear-gradient(135deg, #f3fff9 0%, #f8fcff 58%, #eef8ff 100%);
}

.verification-hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -110px;
  top: -160px;
  border: 1px solid rgba(22, 163, 111, .18);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(22, 163, 111, .04), 0 0 0 74px rgba(23, 110, 212, .03);
}

.status-icon {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border: 1px solid var(--green-line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, var(--green-soft));
  color: var(--green);
  box-shadow: 0 16px 36px rgba(22,163,111,.15);
}

.status-icon svg { width: 47px; height: 47px; }

.status-copy { position: relative; z-index: 1; }

.status-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.status-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.status-copy h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(29px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -.045em;
}

.status-copy p {
  max-width: 650px;
  margin: 10px 0 0;
  color: #587188;
  font-size: 14px;
  line-height: 1.7;
}

.verified-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: rgba(255,255,255,.84);
  color: #0d875d;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.verified-pill span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22,163,111,.11);
}

.card-content {
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  gap: 26px;
  padding: 28px;
}

.details-panel,
.document-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(28, 78, 118, .05);
}

.details-panel { padding: 25px; }

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
  letter-spacing: -.02em;
}

.panel-heading small {
  color: #7990a4;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 125px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid #e8f0f6;
}

.detail-row:first-child { border-top: 0; padding-top: 2px; }
.detail-row:last-child { padding-bottom: 2px; }

.detail-row dt {
  color: #7a8fa1;
  font-size: 11px;
  font-weight: 760;
}

.detail-row dd {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 760;
  overflow-wrap: anywhere;
}

.fingerprint {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid #dce8f2;
  border-radius: 8px;
  background: #f7fbff;
  color: #4f6e87;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
}

.notice-box {
  margin-top: 22px;
  padding: 15px 16px;
  border: 1px solid #d7e8f4;
  border-radius: 15px;
  background: #f5faff;
  color: #587188;
  font-size: 11px;
  line-height: 1.65;
}

.notice-box strong { color: var(--navy); }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 820;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  box-shadow: 0 12px 26px rgba(23,110,212,.20);
}

.btn-secondary {
  border-color: #d8e7f3;
  background: #fff;
  color: var(--navy);
}

.document-panel { overflow: hidden; }

.document-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.document-toolbar strong {
  display: block;
  color: var(--navy);
  font-size: 12px;
}

.document-toolbar small {
  display: block;
  margin-top: 2px;
  color: #7a90a3;
  font-size: 9px;
}

.document-frame {
  width: 100%;
  height: 670px;
  display: block;
  border: 0;
  background: #eef4f8;
}

.document-fallback {
  display: none;
  padding: 24px;
  color: #60798e;
  font-size: 13px;
}

.footer-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 4px 0;
  color: #71879a;
  font-size: 10px;
}

.footer-note a {
  color: var(--blue);
  font-weight: 780;
  text-decoration: none;
}

.lookup-card {
  width: min(650px, 100%);
  margin: 80px auto 0;
  padding: 34px;
  border: 1px solid rgba(193,218,238,.95);
  border-radius: 28px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow);
  text-align: center;
}

.lookup-icon {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 22px;
  background: linear-gradient(145deg, #eaf4ff, #f7fcff);
  color: var(--blue);
}

.lookup-icon svg { width: 40px; height: 40px; }

.lookup-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(29px, 5vw, 44px);
  letter-spacing: -.04em;
}

.lookup-card > p {
  max-width: 510px;
  margin: 13px auto 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.lookup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 9px;
  border: 1px solid #d9e7f3;
  border-radius: 15px;
  background: #f8fbfe;
}

.lookup-form input {
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: .08em;
}

.lookup-form input::placeholder { color: #9aabba; letter-spacing: 0; font-weight: 500; }
.lookup-form .btn { cursor: pointer; }

.unavailable-card .verification-hero {
  grid-template-columns: auto 1fr;
  background: linear-gradient(135deg, var(--amber-soft), #fff 65%);
}

.unavailable-card .status-icon {
  border-color: var(--amber-line);
  background: linear-gradient(145deg, #fff, var(--amber-soft));
  color: var(--amber);
  box-shadow: 0 16px 36px rgba(183,106,11,.12);
}

.unavailable-card .status-kicker { color: var(--amber); }
.unavailable-card .status-kicker::before { background: var(--amber); }
.unavailable-body { padding: 32px 34px; }
.unavailable-body p { margin: 0 0 18px; color: #61788e; line-height: 1.75; }

@media (max-width: 920px) {
  .verification-hero { grid-template-columns: auto 1fr; }
  .verified-pill { grid-column: 1 / -1; width: max-content; margin-left: 104px; }
  .card-content { grid-template-columns: 1fr; }
  .document-frame { height: 700px; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 22px, 1160px); padding-top: 18px; }
  .site-bar { align-items: flex-start; margin-bottom: 18px; }
  .portal-label { font-size: 9px; padding: 7px 9px; }
  .verification-card { border-radius: 22px; }
  .verification-hero { grid-template-columns: 1fr; padding: 24px 20px; }
  .status-icon { width: 68px; height: 68px; border-radius: 20px; }
  .status-icon svg { width: 39px; height: 39px; }
  .verified-pill { grid-column: auto; margin-left: 0; }
  .card-content { padding: 16px; gap: 16px; }
  .details-panel { padding: 19px; }
  .detail-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }
  .document-toolbar { align-items: flex-start; flex-direction: column; }
  .document-frame { height: 560px; }
  .footer-note { align-items: flex-start; flex-direction: column; gap: 6px; }
  .lookup-card { margin-top: 36px; padding: 26px 18px; }
  .lookup-form { grid-template-columns: 1fr; }
  .lookup-form .btn { width: 100%; }
}

@media print {
  body { background: #fff; }
  body::before, .site-bar, .action-row, .footer-note, .document-panel { display: none !important; }
  .page-shell { width: 100%; padding: 0; }
  .verification-card { border: 0; box-shadow: none; }
  .card-content { grid-template-columns: 1fr; padding: 0; }
}
