/* ESET Verify — design system. No framework, no build step. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/static/fonts/Vazirmatn-var.woff2") format("woff2-variations"),
       url("/static/fonts/Vazirmatn-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* light */
  --bg: #f4f7f9;
  --bg-grad-1: #e6f4f3;
  --bg-grad-2: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f6f9fb;
  --surface-glass: rgba(255, 255, 255, .72);
  --border: #dfe7ec;
  --border-strong: #c9d6de;
  --text: #0c1c29;
  --text-2: #3d5566;
  --text-3: #6f8594;
  --brand: #009e92;
  --brand-strong: #007f76;
  --brand-soft: #e0f5f3;
  --brand-ink: #ffffff;
  --gold: #a67c2a;
  --gold-soft: #f7efdc;
  --ok: #0f9d58;
  --ok-soft: #e3f6ec;
  --warn: #b7791f;
  --warn-soft: #fdf3e1;
  --danger: #c93a3a;
  --danger-soft: #fdeaea;
  --muted: #64748b;
  --muted-soft: #eef2f6;
  --shadow-sm: 0 1px 2px rgba(12, 28, 41, .06), 0 1px 1px rgba(12, 28, 41, .04);
  --shadow: 0 10px 30px -12px rgba(12, 28, 41, .18), 0 2px 6px rgba(12, 28, 41, .05);
  --shadow-lg: 0 30px 60px -20px rgba(12, 28, 41, .28);
  --ring: 0 0 0 4px rgba(0, 158, 146, .18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07121c;
    --bg-grad-1: #062528;
    --bg-grad-2: #0b1530;
    --surface: #0d1b28;
    --surface-2: #112333;
    --surface-glass: rgba(13, 27, 40, .72);
    --border: #1c3244;
    --border-strong: #274357;
    --text: #eaf2f6;
    --text-2: #b3c5d1;
    --text-3: #7f97a7;
    --brand: #19d3c2;
    --brand-strong: #4ee6d8;
    --brand-soft: rgba(25, 211, 194, .12);
    --brand-ink: #04211f;
    --gold: #e1bf73;
    --gold-soft: rgba(225, 191, 115, .12);
    --ok: #38d98a;
    --ok-soft: rgba(56, 217, 138, .12);
    --warn: #f0b451;
    --warn-soft: rgba(240, 180, 81, .12);
    --danger: #ff6b6b;
    --danger-soft: rgba(255, 107, 107, .12);
    --muted: #93a6b6;
    --muted-soft: rgba(147, 166, 182, .12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 16px 40px -16px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
    --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .8);
    --ring: 0 0 0 4px rgba(25, 211, 194, .22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #07121c; --bg-grad-1: #062528; --bg-grad-2: #0b1530; --surface: #0d1b28; --surface-2: #112333;
  --surface-glass: rgba(13, 27, 40, .72); --border: #1c3244; --border-strong: #274357; --text: #eaf2f6;
  --text-2: #b3c5d1; --text-3: #7f97a7; --brand: #19d3c2; --brand-strong: #4ee6d8;
  --brand-soft: rgba(25, 211, 194, .12); --brand-ink: #04211f; --gold: #e1bf73; --gold-soft: rgba(225, 191, 115, .12);
  --ok: #38d98a; --ok-soft: rgba(56, 217, 138, .12); --warn: #f0b451; --warn-soft: rgba(240, 180, 81, .12);
  --danger: #ff6b6b; --danger-soft: rgba(255, 107, 107, .12); --muted: #93a6b6; --muted-soft: rgba(147, 166, 182, .12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 16px 40px -16px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, .8); --ring: 0 0 0 4px rgba(25, 211, 194, .22);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, var(--bg-grad-1), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, var(--bg-grad-2), transparent 60%);
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
.ltr { direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum"; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.muted { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 28px; } }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--surface-glass); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .01em; }
.brand-name span { color: var(--brand); }
.brand-sub { font-size: 12px; color: var(--text-3); }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-strong); text-decoration: none; }
.theme-toggle {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: transform .3s var(--ease), border-color .2s;
}
.theme-toggle:hover { border-color: var(--border-strong); transform: rotate(-12deg); }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
@media (max-width: 640px) { .nav a.hide-sm { display: none; } .brand-sub { display: none; } }

main { flex: 1; }

/* ------------------------------------------------------------ hero + search */
.hero { padding: 64px 0 40px; text-align: center; }
@media (min-width: 900px) { .hero { padding: 96px 0 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 var(--brand); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 {
  margin: 20px auto 14px; max-width: 820px; font-size: clamp(30px, 6vw, 54px); line-height: 1.3; font-weight: 850; letter-spacing: -.01em;
}
.hero h1 .accent { background: linear-gradient(90deg, var(--brand), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0 auto; max-width: 640px; color: var(--text-2); font-size: clamp(15px, 2.2vw, 18px); }

.search { margin: 36px auto 0; max-width: 680px; }
.search-box {
  display: flex; align-items: center; gap: 8px; padding: 8px; padding-inline-start: 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search-box:focus-within { border-color: var(--brand); box-shadow: var(--shadow), var(--ring); }
.search-box .icon { color: var(--text-3); }
.search-box input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 17px; padding: 10px 4px;
}
.search-box input::placeholder { color: var(--text-3); }
.examples { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.chip-btn {
  border: 1px dashed var(--border-strong); background: transparent; color: var(--text-2); border-radius: 999px;
  padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; direction: ltr;
}
.chip-btn:hover { border-style: solid; color: var(--brand-strong); border-color: var(--brand); }

/* ------------------------------------------------------------ buttons */
.btn {
  --b: var(--brand); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px;
  background: var(--b); color: var(--brand-ink); cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), box-shadow .2s, background .2s;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--b) 70%, transparent);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); background: color-mix(in srgb, var(--b) 88%, white); }
.btn:active { transform: translateY(0); }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-danger { --b: var(--danger); color: #fff; }
.btn-warn { --b: var(--warn); color: #1d1300; }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------ sections */
.section { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { margin: 0 0 6px; font-size: clamp(22px, 3.5vw, 30px); font-weight: 800; }
.section-head p { margin: 0; color: var(--text-2); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 22px 22px 22px 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); }
.step::before { counter-increment: s; content: counter(s, persian); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 10px; }
.step h3 { margin: 0 0 4px; font-size: 16px; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; }
.callout {
  display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid;
  background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); color: var(--text);
}
.callout .icon { color: var(--warn); width: 24px; height: 24px; margin-top: 3px; }
.callout h3 { margin: 0 0 4px; font-size: 16px; }
.callout p, .callout ul { margin: 0; color: var(--text-2); font-size: 14.5px; }
.callout ul { padding-inline-start: 18px; }
.callout.info { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 25%, transparent); }
.callout.info .icon { color: var(--brand-strong); }

/* ------------------------------------------------------------ verification result */
.result { padding: 40px 0 56px; }
.status-hero {
  --tone: var(--ok); --tone-soft: var(--ok-soft);
  position: relative; overflow: hidden; border-radius: 28px; padding: 36px 24px 30px; text-align: center;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--border));
  box-shadow: var(--shadow-lg);
  animation: rise .6s var(--ease) both;
}
.status-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 220px at 50% -40px, var(--tone-soft), transparent 70%);
}
.status-hero[data-tone="warn"] { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.status-hero[data-tone="danger"] { --tone: var(--danger); --tone-soft: var(--danger-soft); }
.status-hero[data-tone="muted"] { --tone: var(--muted); --tone-soft: var(--muted-soft); }
.status-icon {
  position: relative; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tone-soft); color: var(--tone);
}
.status-icon::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--tone) 30%, transparent); animation: halo 2.8s var(--ease) infinite; }
@keyframes halo { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }
.status-icon svg { width: 52px; height: 52px; stroke-width: 2.4; }
.status-icon .draw { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px;
  background: var(--tone-soft); color: var(--tone); font-weight: 700; font-size: 13px; border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent);
}
.status-hero h1 { position: relative; margin: 12px 0 8px; font-size: clamp(22px, 4.4vw, 32px); font-weight: 850; }
.status-hero p { position: relative; margin: 0 auto; max-width: 620px; color: var(--text-2); }

.profile { margin-top: 20px; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .profile { grid-template-columns: minmax(0, 1fr) 320px; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  animation: rise .6s .1s var(--ease) both;
}
.card-pad { padding: 24px; }
@media (min-width: 640px) { .card-pad { padding: 28px; } }
.subject { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 68px; height: 68px; border-radius: 20px; flex: none; display: grid; place-items: center;
  font-size: 28px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 40%, #0b3a66));
  box-shadow: 0 10px 24px -10px var(--brand);
}
.avatar.person { background: linear-gradient(135deg, var(--gold), color-mix(in srgb, var(--gold) 45%, #5a3a00)); box-shadow: 0 10px 24px -10px var(--gold); }
.subject h2 { margin: 0; font-size: clamp(20px, 3.6vw, 26px); line-height: 1.4; font-weight: 800; word-break: break-word; }
.subject .handle { font-size: 16px; font-weight: 600; color: var(--brand-strong); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge {
  --c: var(--brand); display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: color-mix(in srgb, var(--c) 12%, transparent); color: color-mix(in srgb, var(--c) 80%, var(--text));
  border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
}
.badge.gold { --c: var(--gold); } .badge.blue { --c: #3b82f6; } .badge.violet { --c: #8b5cf6; } .badge.teal { --c: #14b8a6; }
.badge.slate { --c: var(--muted); } .badge.ok { --c: var(--ok); } .badge.warn { --c: var(--warn); } .badge.danger { --c: var(--danger); } .badge.muted { --c: var(--muted); }
.badge .live { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.facts { margin: 22px 0 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.fact dt { font-size: 13px; color: var(--text-3); }
.fact dd { margin: 0; font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
.fact dd .val { overflow-wrap: anywhere; }
.copy {
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text-3); border-radius: 8px; width: 30px; height: 30px;
  display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: color .2s, border-color .2s;
}
.copy:hover { color: var(--brand-strong); border-color: var(--brand); }
.copy .icon { width: 15px; height: 15px; }
.copy.done { color: var(--ok); border-color: var(--ok); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qr-card { text-align: center; }
.qr-frame { background: #fff; border-radius: 20px; padding: 14px; margin: 0 auto 14px; max-width: 240px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.qr-frame img { width: 100%; height: auto; image-rendering: pixelated; }
.qr-card h3 { margin: 0 0 4px; font-size: 16px; }
.qr-card p { margin: 0; font-size: 13.5px; color: var(--text-3); }
.side { display: flex; flex-direction: column; gap: 20px; }
.note { margin-top: 20px; }
.checked { margin-top: 18px; text-align: center; font-size: 13px; color: var(--text-3); }

/* ------------------------------------------------------------ not found */
.empty { text-align: center; padding: 56px 0; }
.empty .status-icon { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.empty h1 { margin: 8px 0 8px; font-size: clamp(22px, 4.4vw, 30px); font-weight: 850; }
.empty .q { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; }
.empty .text { max-width: 620px; margin: 10px auto 0; color: var(--text-2); }

/* ------------------------------------------------------------ security page */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--text-2); }
.keybox { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 13px; direction: ltr; text-align: left; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }

/* ------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--text-3); font-size: 13.5px; margin-top: 40px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.site-footer .official { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .official .icon { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .status-icon .draw { stroke-dashoffset: 0; }
}
.empty .callout { text-align: start; margin: 28px auto 0; max-width: 680px; }
.empty .search { margin-top: 28px; }
.result .search { margin-top: 20px; }

/* ================================================================== v1.1 premium layer */
.hero { position: relative; overflow: hidden; text-align: start; }
.hero::before {
  content: ""; position: absolute; inset: -40px 0 auto 0; height: 520px; pointer-events: none;
  background: url("/static/img/pattern.svg") repeat-x center top / 480px 240px;
  opacity: .16; mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
:root[data-theme="light"] .hero::before { opacity: .22; filter: saturate(.6); }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.hero h1 { margin-inline: 0; }
.hero p.lead { margin-inline: 0; }
.hero .search { margin-inline: 0; }
.hero .examples { justify-content: flex-start; }
@media (max-width: 999px) { .hero { text-align: center; } .hero h1, .hero p.lead, .hero .search { margin-inline: auto; } .hero .examples, .trust { justify-content: center; } }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust span {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text-2); background: var(--surface-glass); border: 1px solid var(--border); backdrop-filter: blur(8px);
}
.trust .icon { width: 16px; height: 16px; color: var(--brand); }

/* sample certificate (pure CSS, clearly labelled as a sample) */
.cert-demo { position: relative; perspective: 1400px; justify-self: center; width: 100%; max-width: 440px; }
.cert-demo .card-3d {
  position: relative; border-radius: 26px; padding: 26px 26px 22px; color: #eaf2f6; overflow: hidden;
  background:
    radial-gradient(420px 220px at 110% -10%, rgba(25, 211, 194, .28), transparent 60%),
    linear-gradient(160deg, #0a2233 0%, #07131f 70%);
  border: 1px solid rgba(25, 211, 194, .35);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: rotateY(-9deg) rotateX(5deg); animation: float 7s ease-in-out infinite;
}
.cert-demo .card-3d::before {
  content: ""; position: absolute; inset: 0; background: url("/static/img/pattern.svg") repeat center / 360px 180px; opacity: .12;
}
.cert-demo .card-3d::after {
  content: ""; position: absolute; inset: 10px; border-radius: 18px; border: 1px solid rgba(225, 191, 115, .28); pointer-events: none;
}
@keyframes float { 0%, 100% { transform: rotateY(-9deg) rotateX(5deg) translateY(0); } 50% { transform: rotateY(-6deg) rotateX(3deg) translateY(-10px); } }
.cd-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cd-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.cd-brand img { width: 30px; height: 35px; }
.cd-brand small { display: block; font-weight: 500; font-size: 11px; color: #93a9b8; }
.cd-title { color: #e1bf73; font-weight: 850; font-size: 20px; }
.cd-body { position: relative; display: grid; grid-template-columns: 1fr 104px; gap: 18px; margin-top: 22px; align-items: center; }
.cd-name { font-size: 24px; font-weight: 850; line-height: 1.4; }
.cd-handle { color: #19d3c2; font-weight: 700; direction: ltr; text-align: right; }
.cd-chip { display: inline-block; margin-top: 10px; padding: 3px 12px; border-radius: 999px; background: #e1bf73; color: #1a1204; font-weight: 800; font-size: 12.5px; }
.cd-qr { width: 104px; height: 104px; border-radius: 14px; background: #fff; padding: 8px; }
.cd-qr i { display: block; width: 100%; height: 100%; background:
  conic-gradient(from 90deg at 30% 30%, #08182a 25%, transparent 0) 0 0 / 14px 14px,
  repeating-linear-gradient(90deg, #08182a 0 3px, transparent 3px 7px),
  repeating-linear-gradient(0deg, #08182a 0 3px, transparent 3px 9px); opacity: .85; border-radius: 4px; }
.cd-foot { position: relative; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgba(25, 211, 194, .22); display: flex; justify-content: space-between; font-size: 12px; color: #93a9b8; }
.cd-foot b { color: #eaf2f6; font-weight: 700; letter-spacing: .03em; }
.cd-sample { position: absolute; top: -12px; inset-inline-start: 22px; z-index: 2; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface); color: var(--text-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
@media (max-width: 999px) { .cert-demo .card-3d { transform: none; animation: none; } }
@media (max-width: 420px) { .cd-body { grid-template-columns: 1fr 84px; } .cd-qr { width: 84px; height: 84px; } .cd-name { font-size: 20px; } }

/* status hero: security-print texture + seal */
.status-hero { padding-top: 40px; }
.status-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background: url("/static/img/pattern.svg") repeat-x center top / 480px 240px;
  mask-image: linear-gradient(180deg, #000, transparent 75%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.status-hero > * { position: relative; }
.status-meta { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; font-size: 13.5px; color: var(--text-3); }
.status-meta b { color: var(--text); font-weight: 700; }
.callout.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.callout.danger .icon { color: var(--danger); }
.callout.muted { background: var(--muted-soft); border-color: var(--border); }
.callout.muted .icon { color: var(--muted); }
.fp-note { margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.dimmed .subject, .dimmed .badges, .dimmed .facts { filter: saturate(.35); opacity: .88; }
.brand-mark { object-fit: contain; }
.cd-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.fp-note { display: block; }
.hero-grid > * { min-width: 0; }
.cert-demo { max-width: min(440px, 100%); }
html, body { overflow-x: clip; }
.profile > * { min-width: 0; } .actions .btn { white-space: normal; }
/* /security: collapsible technical section (native <details>, no JS) */
.tech-details { margin-top: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); interpolate-size: allow-keywords; }
.tech-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font-size: 18px; font-weight: 800; color: var(--text); border-radius: var(--radius); }
.tech-details summary::-webkit-details-marker { display: none; }
.tech-details summary::after { content: ""; width: 10px; height: 10px; flex: none; border-inline-end: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform .25s var(--ease); }
.tech-details[open] summary::after { transform: rotate(-135deg); }
.tech-details summary:hover { background: var(--surface-2); }
.tech-details::details-content { block-size: 0; overflow: hidden; transition: block-size .28s var(--ease), content-visibility .28s allow-discrete; }
.tech-details[open]::details-content { block-size: auto; }
.tech-body { padding: 0 20px 20px; min-width: 0; }
.tech-body > h2:first-child { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .tech-details::details-content { transition: none; } }
