/* Public credential pages: the badge of a person and the verification page */
:root {
    --cr-ink: #0f172a; --cr-text: #334155; --cr-muted: #64748b; --cr-line: #e2e8f0; --cr-soft: #f8fafc; --cr-bg: #eef2f7;
    --cr-navy: #1d3461; --cr-navy-2: #16294d; --cr-orange: #ef6b22;
    --cr-ok: #15803d; --cr-warn: #b45309; --cr-bad: #b91c1c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cr-body {
    margin: 0; min-height: 100vh; background: var(--cr-bg); color: var(--cr-text);
    font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.55;
}
.cr-top { background: #fff; border-bottom: 1px solid var(--cr-line); }
.cr-top-in { max-width: 980px; margin: 0 auto; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cr-logo { display: block; max-height: 52px; max-width: 200px; width: auto; height: auto; }
.cr-brand { font-weight: 700; color: var(--cr-navy); font-size: 18px; text-decoration: none; }
.cr-top a.cr-toplink { color: var(--cr-navy); font-weight: 600; font-size: 14px; text-decoration: none; }
.cr-top a.cr-toplink:hover { text-decoration: underline; }
.cr-wrap { max-width: 980px; margin: 0 auto; padding: 28px 20px 56px; }

/* verification search */
.cr-search { background: var(--cr-navy); color: #fff; border-radius: 16px; padding: 34px 36px; margin-bottom: 22px; position: relative; overflow: hidden; }
.cr-search::after { content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 260px; border: 38px solid rgba(239, 107, 34, 0.9); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); opacity: 0.35; }
.cr-search h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; color: #fff; position: relative; }
.cr-search p { margin: 0 0 20px; color: #cbd5e1; max-width: 620px; position: relative; }
.cr-search form { display: flex; gap: 10px; max-width: 640px; position: relative; }
.cr-search input { flex: 1; min-width: 0; height: 50px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cr-ink); }
.cr-search input::placeholder { letter-spacing: normal; text-transform: none; color: #94a3b8; }
.cr-search input:focus { outline: 3px solid rgba(239, 107, 34, 0.55); }
.cr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--cr-line); background: #fff; color: var(--cr-ink); font: inherit; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.cr-btn:hover { background: var(--cr-soft); border-color: #cbd5e1; }
.cr-btn-primary { background: var(--cr-orange); border-color: var(--cr-orange); color: #fff; }
.cr-btn-primary:hover { background: #d95c16; border-color: #d95c16; }
.cr-search .cr-btn-primary { height: 50px; padding: 0 26px; font-size: 15px; }
.cr-msg { background: #fff; border-radius: 14px; padding: 26px 30px; border: 1px solid var(--cr-line); }
.cr-msg h2 { margin: 0 0 6px; font-size: 19px; color: var(--cr-ink); }
.cr-msg p { margin: 0; }

/* credential card */
.cr-card { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 14px 36px rgba(15, 23, 42, 0.07); overflow: hidden; }
.cr-hero { display: flex; gap: 34px; align-items: center; padding: 34px 36px 26px; flex-wrap: wrap; }
.cr-badge { width: 210px; height: 210px; object-fit: contain; flex: none; }
.cr-badge-ph { width: 210px; height: 210px; flex: none; border-radius: 50%; background: var(--cr-soft); }
.cr-head { flex: 1; min-width: 240px; }
.cr-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.cr-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.cr-status.is-valid { color: var(--cr-ok); }
.cr-status.is-expired { color: var(--cr-warn); }
.cr-status.is-revoked { color: var(--cr-bad); }
.cr-head h1 { margin: 0 0 14px; font-size: 30px; line-height: 1.15; color: var(--cr-ink); letter-spacing: -0.01em; }
.cr-to { margin: 0; color: var(--cr-muted); font-size: 14px; }
.cr-person { margin: 2px 0 0; font-size: 22px; font-weight: 600; color: var(--cr-navy); }
.cr-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--cr-line); border-bottom: 1px solid var(--cr-line); }
.cr-fact { padding: 16px 20px 16px 36px; border-right: 1px solid var(--cr-line); }
.cr-fact:nth-child(3n) { border-right: 0; }
.cr-fact:nth-child(n+4) { border-top: 1px solid var(--cr-line); }
.cr-fact span { display: block; font-size: 12px; color: var(--cr-muted); margin-bottom: 2px; }
.cr-fact b { font-weight: 600; color: var(--cr-ink); }
.cr-id { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.cr-sec { padding: 22px 36px 0; }
.cr-sec h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--cr-muted); }
.cr-sec p { margin: 0; }
.cr-skill { display: inline-block; margin: 0 6px 8px 0; padding: 5px 12px; border-radius: 8px; background: var(--cr-soft); border: 1px solid var(--cr-line); color: var(--cr-text); font-size: 14px; }
.cr-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cr-share { display: flex; flex-wrap: wrap; gap: 8px; }
.cr-share .cr-btn { height: 40px; padding: 0 14px; }
.cr-share .cr-btn i { font-size: 16px; }
.cr-share .is-linkedin i { color: #0a66c2; }
.cr-share .is-facebook i { color: #1877f2; }
.cr-share .is-whatsapp i { color: #25d366; }
.cr-li-add { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.cr-li-add:hover { background: #084f96; border-color: #084f96; }
.cr-qr { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin: 26px 36px 0; padding: 22px 0 30px; border-top: 1px solid var(--cr-line); }
.cr-qr #cr-qr-box canvas, .cr-qr #cr-qr-box img { width: 124px !important; height: 124px !important; }
.cr-qr p { margin: 0 0 8px; color: var(--cr-muted); font-size: 13px; word-break: break-all; }
.cr-foot { text-align: center; color: var(--cr-muted); font-size: 13px; margin-top: 22px; }
.cr-foot a { color: var(--cr-navy); }
.cr-pad-b { padding-bottom: 30px; }

/* shimmer: a light sweep clipped to the shape of the badge picture */
.cr-badge-wrap { position: relative; width: 210px; height: 210px; flex: none; }
.cr-badge-wrap .cr-badge { width: 100%; height: 100%; display: block; }
.cr-shine { display: none; }
.cr-badge-wrap.is-shining .cr-shine {
    display: block; position: absolute; inset: 0; pointer-events: none;
    -webkit-mask-image: var(--cr-mask); mask-image: var(--cr-mask);
    -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.55) 47%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.55) 53%, rgba(255, 255, 255, 0) 62%);
    background-size: 300% 100%; background-repeat: no-repeat; background-position: 130% 0;
    animation: cr-shimmer 3.6s ease-in-out 0.6s infinite;
}
.cr-badge-wrap.is-shining:hover .cr-shine { animation-duration: 1.4s; }
@keyframes cr-shimmer { 0% { background-position: 130% 0; } 45%, 100% { background-position: -30% 0; } }
@media (prefers-reduced-motion: reduce) { .cr-badge-wrap.is-shining .cr-shine { animation: none; display: none; } }

@media (max-width: 720px) {
    .cr-wrap { padding: 18px 14px 40px; }
    .cr-search { padding: 26px 20px; }
    .cr-search h1 { font-size: 22px; }
    .cr-search form { flex-direction: column; }
    .cr-hero { padding: 24px 20px 20px; gap: 18px; flex-direction: column; align-items: flex-start; }
    .cr-badge, .cr-badge-ph, .cr-badge-wrap { width: 150px; height: 150px; }
    .cr-head h1 { font-size: 24px; }
    .cr-facts { grid-template-columns: 1fr 1fr; }
    .cr-fact { padding: 14px 16px 14px 20px; border-right: 1px solid var(--cr-line) !important; }
    .cr-fact:nth-child(2n) { border-right: 0 !important; }
    .cr-fact:nth-child(n+3) { border-top: 1px solid var(--cr-line); }
    .cr-sec { padding: 20px 20px 0; }
    .cr-qr { margin: 22px 20px 0; }
}
