:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  --bg: #101317;
  --panel: #1a1d22;
  --line: #363c44;
  --muted: #bac3cb;
  --gold: #f0b90b;
  --green: #68d99b;
  --white: #f5f6f7;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--white); background: var(--bg); }
button { font: inherit; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mast { background: #191c20; border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 74px; max-width: 940px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 22px; line-height: 1; white-space: nowrap; }
.brand b { color: var(--gold); }
.language-picker { display: flex; padding: 3px; border: 1px solid #3d444d; border-radius: 8px; background: #121519; }
.language-picker button { color: var(--muted); border: none; background: transparent; font-size: 14px; min-height: 33px; padding: 0 12px; border-radius: 5px; }
.language-picker [aria-pressed="true"] { color: var(--white); background: #343a41; }
main { width: min(100% - 40px, 660px); margin: 46px auto 38px; flex: 1 0 auto; }
.record { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 15px 46px #0003; }
.top-rule { height: 3px; background: var(--gold); }
.status-panel { padding: 26px 33px 25px; }
.record[data-state="loading"] .status-panel { text-align: center; display: grid; justify-items: center; align-content: center; min-height: 340px; }
.status-media { width: 46px; height: 46px; margin-bottom: 12px; color: var(--gold); }
.record[data-state="verified"] .status-media { color: var(--green); }
.result-mark { width: 100%; height: 100%; display: block; }
.record[data-state="loading"] .status-media { width: 118px; height: 118px; margin-bottom: 6px; }
.loader { display: block; width: 100%; height: 100%; }
.loader img { width: 100%; height: 100%; display: block; object-fit: contain; filter: drop-shadow(0 7px 20px #f0b90b2b); animation: check-rotate 2.4s cubic-bezier(.42,0,.25,1) 1; }
@keyframes check-rotate { from { transform: rotate(0deg); } to { transform: rotate(720deg); } }
h1 { margin: 0; font-size: clamp(23px, 4.5vw, 33px); line-height: 1.19; font-weight: 650; overflow-wrap: anywhere; }
.lead, .compare, .preview-note { line-height: 1.55; font-size: 15px; }
.lead { margin: 9px 0 0; color: var(--muted); }
.details { margin: 0 33px; padding: 24px 0 26px; border-top: 1px solid var(--line); }
.document-heading { margin-bottom: 17px; }
.document-heading h2 { font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--muted); margin: 0 0 3px; }
.document-heading p { margin: 0; font-size: clamp(21px, 4.3vw, 28px); font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.amount { padding: 16px 17px; background: #23241e; border: 1px solid #5b502e; border-radius: 9px; display: flex; gap: 10px 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.amount span, .amount small { display: block; }
.amount span { font-size: 16px; font-weight: 600; }
.amount small { color: var(--muted); font-size: 13px; margin-top: 3px; }
.amount strong { color: var(--green); font-size: clamp(25px, 5vw, 34px); line-height: 1.15; font-weight: 700; font-variant-numeric: tabular-nums; }
.metadata { margin: 13px 0 0; }
.metadata > div { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 15px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid #30363d; }
.metadata dt { color: var(--muted); font-size: 14px; }
.metadata dd { text-align: right; margin: 0; font-size: 15px; font-weight: 550; overflow-wrap: anywhere; }
.expired { color: #f3c269; display: inline-block; padding: 1px 7px; border: 1px solid #675631; border-radius: 4px; font-size: 12px; margin: 2px 0 0 5px; }
.compare { margin: 18px 0 0; color: #c8cfd6; }
.preview-note { margin: 14px 5px 0; color: #a3aeb8; font-size: 13px; }
.actions { padding: 0 33px 28px; }
.actions button { background: var(--gold); color: #171819; font-size: 15px; font-weight: 650; border: none; border-radius: 7px; padding: 11px 17px; }
footer { border-top: 1px solid #2b3036; padding: 18px max(20px, calc((100% - 892px) / 2)); display: flex; justify-content: space-between; gap: 12px; color: #a3aeb8; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width:520px) {
  .mast-inner { min-height: 62px; padding: 0 16px; }
  .brand { font-size: 19px; gap: 6px; }
  .brand img { width: 29px; height: 29px; }
  main { width: calc(100% - 24px); margin: 20px auto; }
  .record { border-radius: 12px; }
  .status-panel { padding: 21px 18px; }
  .details { margin: 0 18px; padding: 18px 0 21px; }
  .metadata > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1.25fr); gap: 9px; }
  .amount { padding: 12px; }
  .lead, .compare { font-size: 14px; }
  .actions { padding: 0 18px 22px; }
}
@media (prefers-reduced-motion:reduce) { .loader img { animation: none; } }
