:root {
  color-scheme: dark;
  --bg: #050712;
  --surface: #0b1020;
  --surface-strong: #10172a;
  --border: rgba(148, 163, 184, .2);
  --border-focus: #7c6cff;
  --text: #f8fafc;
  --muted: #9da9c2;
  --cyan: #36c8f4;
  --violet: #8b5cf6;
  --success: #39d98a;
  --danger: #fb7185;
  --warning: #fbbf24;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--text); background: linear-gradient(135deg, #08091a 0%, #050712 52%, #06131b 100%); font-family: Inter, system-ui, sans-serif; display: grid; grid-template-rows: auto 1fr auto; }
a { color: inherit; text-decoration: none; }
.verify-header, .verify-footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.verify-header { min-height: 80px; border-bottom: 1px solid var(--border); }
.verify-brand { display: inline-flex; align-items: center; gap: 11px; font: 700 18px/1 "Space Grotesk", sans-serif; letter-spacing: .08em; }
.verify-brand img { border-radius: 50%; box-shadow: 0 0 22px rgba(124, 108, 255, .3); }
.official-label { color: var(--muted); font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }
.verify-main { width: min(640px, calc(100% - 40px)); margin: auto; padding: 70px 0 56px; text-align: center; }
.verify-intro .eyebrow { margin: 0 0 14px; color: #aaa0ff; font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.verify-intro h1 { margin: 0; font: 600 clamp(36px, 7vw, 56px)/1.08 "Space Grotesk", sans-serif; letter-spacing: 0; }
.verify-intro > p:last-child { margin: 18px auto 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.verification-card { margin-top: 38px; padding: 30px; text-align: left; border: 1px solid var(--border); border-radius: 8px; background: rgba(11, 16, 32, .92); box-shadow: 0 26px 70px rgba(0, 0, 0, .38), 0 0 36px rgba(54, 200, 244, .05); }
.field-group label { display: block; margin-bottom: 10px; color: #dce4f5; font: 600 13px/1 "Space Grotesk", sans-serif; }
.field-group input { width: 100%; height: 54px; padding: 0 16px; color: var(--text); border: 1px solid #2b3652; border-radius: 6px; outline: 0; background: #070b17; font: 500 15px/1 "IBM Plex Mono", monospace; text-transform: uppercase; transition: border-color .18s, box-shadow .18s; }
.field-group input:focus-visible { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(124, 108, 255, .18); }
.field-group input[aria-invalid="true"] { border-color: var(--danger); }
.helper, .field-error { margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
.helper { color: #78859f; }
.field-error { color: #fda4af; }
#verify-button { width: 100%; min-height: 50px; margin-top: 22px; border: 1px solid #7565ed; border-radius: 6px; color: white; background: #6957df; font: 600 15px/1 "Space Grotesk", sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .18s, transform .18s, box-shadow .18s; }
#verify-button:hover:not(:disabled) { background: #7867ec; box-shadow: 0 10px 28px rgba(105, 87, 223, .22); transform: translateY(-1px); }
#verify-button:focus-visible { outline: 3px solid rgba(54, 200, 244, .45); outline-offset: 3px; }
#verify-button:disabled { cursor: wait; opacity: .72; }
.button-loader { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .34); border-top-color: white; border-radius: 50%; animation: verify-spin .7s linear infinite; }
.is-loading .button-loader { display: block; }
.status-panel { margin-top: 26px; border-top: 1px solid var(--border); padding-top: 26px; animation: status-in .24s ease-out; }
.status-heading { display: flex; align-items: center; gap: 12px; }
.status-icon { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.status-heading h2 { margin: 0; font: 600 22px/1.2 "Space Grotesk", sans-serif; }
.status-panel.success .status-heading { color: var(--success); }
.status-panel.revoked .status-heading, .status-panel.error .status-heading { color: var(--danger); }
.status-panel.expired .status-heading { color: var(--warning); }
.status-copy { margin: 12px 0 22px 50px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.certificate-details { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.certificate-details > div { min-width: 0; padding: 15px 16px; border-bottom: 1px solid var(--border); }
.certificate-details > div:nth-child(odd) { border-right: 1px solid var(--border); }
.certificate-details > div:nth-last-child(-n+2) { border-bottom: 0; }
.certificate-details dt { color: #7f8ba4; font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.certificate-details dd { margin: 7px 0 0; color: #edf2ff; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.document-actions { display: flex; gap: 10px; margin-top: 20px; }
.document-actions a { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #394560; border-radius: 6px; color: #e6ecfa; font-size: 13px; font-weight: 600; transition: border-color .18s, background .18s; }
.document-actions a:hover { border-color: var(--cyan); background: rgba(54, 200, 244, .08); }
.trust-note { margin: 22px 0 0; color: #748099; font-size: 11px; line-height: 1.6; }
.trust-note span { margin-right: 7px; color: var(--cyan); }
.verify-footer { min-height: 72px; border-top: 1px solid var(--border); color: #75819a; font-size: 12px; }
.verify-footer nav { display: flex; gap: 22px; }
.verify-footer a:hover { color: var(--text); }
@keyframes verify-spin { to { transform: rotate(360deg); } }
@keyframes status-in { from { opacity: 0; transform: translateY(6px); } }
@media (max-width: 600px) {
  .verify-header, .verify-footer, .verify-main { width: min(100% - 28px, 640px); }
  .verify-header { min-height: 68px; }
  .official-label { display: none; }
  .verify-main { padding: 48px 0 40px; }
  .verification-card { margin-top: 30px; padding: 20px 16px; }
  .certificate-details { grid-template-columns: 1fr; }
  .certificate-details > div, .certificate-details > div:nth-child(odd), .certificate-details > div:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--border); }
  .certificate-details > div:last-child { border-bottom: 0; }
  .status-copy { margin-left: 0; }
  .document-actions { flex-direction: column; }
  .verify-footer { padding: 18px 0; align-items: flex-start; gap: 14px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
