.verify-page { background: #fff; }
.verify-page [hidden] { display: none !important; }
.verify-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #ebe9ee; box-shadow: 0 2px 12px rgba(30, 14, 73, .04); }
.verify-header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.verify-header .brand-name { font-size: 34px; }
.verify-header .brand-subtitle { font-size: 6px; }
.verify-header nav { display: flex; align-items: center; gap: 28px; }
.verify-nav-link { color: #3e3b45; font-size: 14px; font-weight: 700; }
.verify-nav-link:hover, .verify-nav-link.is-current { color: var(--purple); }
.verify-nav-link.is-current { border-bottom: 2px solid var(--purple); padding-bottom: 4px; }

.verify-intro { overflow: hidden; padding: 73px 0 91px; background: #f8f8f8; }
.verify-intro-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .8fr); align-items: center; gap: 70px; }
.verify-kicker { margin: 0 0 12px; color: var(--purple); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.verify-intro h1 { margin: 0 0 17px; color: #111; font-size: clamp(43px, 5vw, 65px); font-weight: 400; letter-spacing: -.055em; line-height: 1.1; }
.verify-lead { max-width: 680px; margin: 0; color: #32313a; font-size: 19px; line-height: 1.58; }
.verify-symbol { position: relative; display: grid; place-items: center; width: 262px; height: 226px; justify-self: center; }
.verify-symbol::before { content: ""; position: absolute; inset: 16px 26px 5px 26px; background: #e7e1fa; border-radius: 20px; transform: rotate(-10deg); }
.verify-symbol::after { content: ""; position: absolute; inset: 3px 9px 28px 40px; background: #d0eee9; border-radius: 18px; transform: rotate(10deg); }
.verify-symbol-ring { position: relative; z-index: 2; display: grid; place-items: center; width: 126px; height: 126px; border: 10px solid #fff; border-radius: 50%; background: var(--purple); box-shadow: 0 15px 35px #2b115650; color: #fff; }
.verify-symbol-ring svg { width: 61px; height: 61px; stroke-width: 5; }
.verify-symbol-card { position: absolute; z-index: 1; width: 71px; height: 22px; background: #fff; border-radius: 30px; box-shadow: 0 6px 17px #2b115627; }
.verify-symbol-card.one { right: 2px; top: 42px; }
.verify-symbol-card.two { left: 1px; bottom: 40px; }

.lookup-wrap { position: relative; z-index: 2; margin-top: -43px; }
.lookup-card { max-width: 870px; margin: 0 auto; padding: 27px 31px 25px; border: 1px solid #eceaf0; border-radius: 10px; background: #fff; box-shadow: 0 13px 38px #2a20501a; }
.lookup-labels { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.lookup-labels label { font-size: 15px; font-weight: 700; }
.lookup-labels span { color: #73717c; font-size: 12px; }
.lookup-row { display: flex; gap: 12px; }
.lookup-row input { flex: 1; min-width: 0; min-height: 48px; padding: 10px 15px; border: 1px solid #d5d2db; border-radius: 5px; outline: 0; color: #16141a; font-size: 16px; }
.lookup-row input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px #512eab25; }
.lookup-row .button { min-width: 130px; }
.lookup-hint { margin: 11px 0 0; color: #7a7882; font-size: 12px; }

.lookup-state { display: flex; gap: 16px; align-items: start; max-width: 870px; margin-top: 32px; margin-bottom: 32px; padding: 20px 25px; border: 1px solid #dcd5ee; border-radius: 8px; background: #f6f3fc; }
.lookup-state.is-error { border-color: #e2c1c1; background: #fff7f7; }
.state-icon { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 2px solid var(--purple); border-radius: 50%; color: var(--purple); font-weight: 800; }
.lookup-state.is-error .state-icon { border-color: #b22d3e; color: #b22d3e; }
.lookup-state h2 { margin: 0 0 3px; font-size: 17px; font-weight: 700; letter-spacing: 0; }
.lookup-state p { margin: 0; font-size: 14px; }

.result-wrap { padding: 49px 0 92px; }
.recipient-banner { display: flex; align-items: center; gap: 22px; min-height: 120px; padding: 23px 29px; background: #f6f7f8; border-radius: 10px; }
.recipient-avatar { display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 66px; border: 1px solid #dbdfe0; border-radius: 50%; color: #757a7d; }
.recipient-avatar svg { width: 40px; height: 40px; }
.recipient-copy { display: grid; gap: 3px; min-width: 0; }
.recipient-copy span { color: #565862; font-size: 14px; }
.recipient-copy strong { overflow-wrap: anywhere; color: #101013; font-size: 20px; line-height: 1.25; }
.recipient-copy small { color: #565862; font-size: 13px; }
.record-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 9px 13px; border-radius: 30px; background: #e4f3eb; color: #126342; font-size: 13px; font-weight: 800; white-space: nowrap; }
.record-status svg { width: 17px; height: 17px; stroke-width: 2.5; }
.record-status.is-expired { background: #fff0df; color: #8f5318; }
.record-status.is-revoked, .record-status.is-unknown { background: #f6e9ea; color: #9b2b3a; }
.record-status:not(.is-active) svg path { display: none; }

.certificate-grid { display: grid; grid-template-columns: minmax(260px, 365px) minmax(0, 1fr); gap: 60px; align-items: start; padding-top: 58px; }
.certificate-left { display: grid; gap: 22px; }
.badge-art { display: grid; grid-template-rows: 96px 1fr 65px; min-height: 365px; overflow: hidden; border: 7px solid #f0eff2; border-radius: 13px; box-shadow: 0 10px 26px #27185020; color: #fff; background: #20114b; }
.badge-art-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; }
.badge-art-header .brand-name { font-size: 28px; }
.badge-art .brand-name { color: #fff; }
.badge-ribbon-icon { width: 34px; height: 34px; color: #d8d0fb; }
.badge-ribbon-icon svg { stroke-width: 2.5; }
.badge-art-body { display: grid; align-content: center; gap: 12px; padding: 25px 26px 31px; background: linear-gradient(135deg, #33206c, #1e1640 70%); }
.badge-art-body span { color: #e0d9fa; font-size: 18px; font-weight: 700; line-height: 1.2; text-transform: uppercase; letter-spacing: .025em; }
.badge-art-body strong { overflow-wrap: anywhere; font-size: 27px; line-height: 1.22; }
.badge-art-footer { display: flex; align-items: center; padding: 14px 26px; background: var(--purple); font-size: 13px; font-weight: 700; }
.pdf-link { width: 100%; }
.certificate-details { min-width: 0; }
.record-eyebrow { margin: 0 0 12px; color: var(--purple); font-size: 13px; font-weight: 800; letter-spacing: .065em; text-transform: uppercase; }
.certificate-details h2 { max-width: 690px; margin: 0 0 11px; font-size: clamp(32px, 3.3vw, 46px); line-height: 1.13; font-weight: 500; }
.issued-by { margin: 0 0 29px; font-size: 16px; }
.issued-by strong { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.record-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 27px; }
.record-tags span { padding: 7px 12px; border-radius: 4px; background: #f0eef5; color: #343039; font-size: 12px; font-weight: 700; }
.verification-button { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 0; border: 0; background: transparent; color: var(--purple); font: inherit; font-size: 14px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.verification-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.record-description { max-width: 735px; margin: 0; font-size: 16px; line-height: 1.7; }
.detail-divider { height: 1px; margin: 32px 0 29px; background: #e1dfe5; }
.certificate-details h3 { margin: 0 0 16px; font-size: 21px; font-weight: 700; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 24px; margin: 0; }
.detail-list div { min-width: 0; }
.detail-list dt { margin-bottom: 3px; color: #77727e; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
.qr-panel { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 19px; align-items: center; margin-top: 40px; padding: 21px; border: 1px solid #dcd6ec; border-radius: 9px; background: #faf9fd; }
.qr-frame { display: grid; place-items: center; width: 135px; height: 135px; padding: 6px; background: #fff; border: 1px solid #e5e3ea; }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-panel h3 { margin: 0 0 6px; font-size: 18px; }
.qr-panel p { margin: 0 0 10px; font-size: 13px; line-height: 1.55; }
.copy-link { padding: 0; border: 0; background: none; color: var(--purple); font-size: 13px; font-weight: 700; text-decoration: underline; }
.copy-feedback { display: inline-block; margin-left: 10px; color: #2a7354; font-size: 12px; }

.verification-scope { padding: 36px 0; border-top: 1px solid #ebe9ee; background: #f8f8f8; }
.scope-inner { display: flex; align-items: start; gap: 18px; max-width: 940px; }
.scope-icon { flex: 0 0 34px; width: 34px; height: 34px; color: var(--purple); }
.scope-inner h2 { margin: 0 0 5px; font-size: 18px; font-weight: 700; letter-spacing: 0; }
.scope-inner p { margin: 0; font-size: 14px; line-height: 1.65; }
.verify-footer { background: #fff; }
.verify-footer-inner { display: flex; align-items: center; gap: 33px; min-height: 106px; }
.verify-footer .brand-name { font-size: 28px; }
.verify-footer .brand-subtitle { font-size: 5px; }
.verify-footer p { margin: 0; color: #68646e; font-size: 13px; }
.verify-footer span:last-child { margin-left: auto; color: #78737e; font-size: 12px; white-space: nowrap; }
.verification-dialog { width: min(520px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; padding: 0; border: 0; border-radius: 9px; box-shadow: 0 20px 70px rgba(18, 10, 42, .35); color: #23202a; }
.verification-dialog::backdrop { background: rgba(24, 13, 45, .62); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 28px 18px; border-bottom: 1px solid #e7e3ef; }
.dialog-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.dialog-head button { width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #544e5d; font-size: 30px; line-height: 1; cursor: pointer; }
.dialog-description { margin: 0; padding: 22px 28px 0; font-size: 14px; line-height: 1.6; }
.dialog-list { margin: 0; padding: 14px 28px 24px; }
.dialog-list div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #ece9f2; font-size: 14px; }
.dialog-list dt { color: #77717e; font-weight: 600; }
.dialog-list dd { margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.dialog-note { margin: 0; padding: 15px 28px 20px; background: #f7f4fc; color: #5e5669; font-size: 12px; line-height: 1.6; }

@media (max-width: 800px) {
  .verify-header-inner { min-height: 78px; }
  .verify-header nav { gap: 14px; }
  .verify-nav-link { font-size: 12px; }
  .verify-intro { padding: 62px 0 82px; }
  .verify-intro-grid { grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; }
  .verify-symbol { width: 180px; height: 180px; }
  .verify-symbol-ring { width: 102px; height: 102px; }
  .certificate-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 27px; }
  .badge-art { min-height: 330px; }
  .badge-art-body strong { font-size: 23px; }
  .detail-list { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .verify-header .brand-name { font-size: 29px; }
  .verify-header nav .verify-nav-link:first-child { display: none; }
  .verify-intro-grid { display: block; }
  .verify-intro h1 { font-size: 41px; }
  .verify-lead { font-size: 16px; }
  .verify-symbol { display: none; }
  .lookup-card { padding: 23px 20px; }
  .lookup-labels { display: block; }
  .lookup-labels span { display: block; margin-top: 3px; }
  .lookup-row { display: grid; }
  .lookup-row .button { width: 100%; }
  .result-wrap { padding: 30px 0 65px; }
  .recipient-banner { flex-wrap: wrap; gap: 15px; padding: 18px; }
  .recipient-avatar { flex-basis: 52px; width: 52px; height: 52px; }
  .recipient-avatar svg { width: 35px; height: 35px; }
  .recipient-copy strong { font-size: 17px; }
  .record-status { margin-left: 0; }
  .certificate-grid { display: flex; flex-direction: column; gap: 35px; padding-top: 30px; }
  .certificate-left, .certificate-details { width: 100%; }
  .badge-art { max-width: 370px; margin-inline: auto; }
  .pdf-link { max-width: 370px; margin-inline: auto; }
  .certificate-details h2 { font-size: 35px; }
  .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-panel { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .qr-frame { width: 112px; height: 112px; }
  .verify-footer-inner { flex-wrap: wrap; gap: 10px; padding: 25px 0; }
  .verify-footer p { width: 100%; order: 3; }
  .dialog-list div { grid-template-columns: 1fr; gap: 3px; }
}

@media (max-width: 390px) {
  .detail-list { grid-template-columns: 1fr; }
  .qr-panel { grid-template-columns: 1fr; }
  .qr-frame { margin-inline: auto; }
}
