/* Cognifyz Certificate Verify — "verification desk" layout. Matches cognifyz.com (Glox theme):
   indigo → magenta brand gradient, Jost headings, Roboto text, 5px buttons. Scoped to .czv */
.czv {
	--czv-indigo: #4c40f7;
	--czv-magenta: #ff00a1;
	--czv-brand: linear-gradient(99.89deg, #4c40f7 0%, #ff00a1 106.22%);
	--czv-ink: #14132b;
	--czv-ink-2: #1f1d45;
	--czv-text: #666666;
	--czv-line: #e6e5f5;
	--czv-soft: #f8f9ff;
	--czv-ok: #19b37b;
	--czv-err: #e5484d;
	font-family: 'Roboto', sans-serif;
	color: var(--czv-text);
	-webkit-font-smoothing: antialiased;
	text-align: left;
	padding: 70px 0 90px;
	overflow-x: clip;
}
.czv *, .czv *::before, .czv *::after { box-sizing: border-box; }
.czv svg { display: block; }
.czv p { color: inherit; }
.czv-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* -------------------------------------------------- Desk: two panels */
.czv-desk {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	gap: 0;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(20, 19, 43, .12), 0 0 0 1px var(--czv-line);
	overflow: hidden;
}
.czv-panel { position: relative; padding: 52px 48px; }

/* Left panel */
.czv-ask::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--czv-brand); }
.czv-tag {
	display: inline-flex; align-items: center; gap: 8px;
	font: 600 12px/1 'Roboto', sans-serif; letter-spacing: .14em; text-transform: uppercase;
	color: var(--czv-indigo);
	background: rgba(76, 64, 247, .08);
	padding: 8px 12px; border-radius: 5px;
}
.czv-tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--czv-magenta); }
.czv .czv-h {
	margin: 18px 0 12px; padding: 0;
	font: 600 clamp(30px, 3.4vw, 42px)/1.15 'Jost', sans-serif;
	color: var(--czv-ink); letter-spacing: -.01em;
}
.czv-h em { font-style: normal; background: var(--czv-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.czv .czv-sub { margin: 0 0 30px; font-size: 16.5px; line-height: 1.65; max-width: 470px; }

.czv-form { margin: 0; }
.czv .czv-label { display: block; margin: 0 0 8px; font: 600 14px 'Roboto', sans-serif; color: var(--czv-ink); }
.czv-input { position: relative; }
.czv-input svg { position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--czv-indigo); pointer-events: none; }
.czv .czv-input input {
	width: 100%; height: 56px; margin: 0;
	padding: 0 16px 0 50px;
	border: 1.5px solid #dcdbee; border-radius: 5px;
	background: var(--czv-soft); box-shadow: none; outline: 0;
	font: 500 16.5px/1 'Roboto', sans-serif; color: var(--czv-ink); letter-spacing: .02em;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.czv .czv-input input::placeholder { color: #9b9ab3; font-weight: 400; letter-spacing: 0; }
.czv .czv-input input:focus { border-color: var(--czv-indigo); background: #fff; box-shadow: 0 0 0 4px rgba(76, 64, 247, .12); }
.czv-form.is-shake .czv-input { animation: czv-shake .42s; }
@keyframes czv-shake { 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }

.czv .czv-go {
	position: relative; display: flex; align-items: center; justify-content: center;
	width: 100%; height: 56px; margin: 14px 0 0; padding: 0 24px;
	border: 0; border-radius: 5px; cursor: pointer;
	background: var(--czv-brand); background-size: 140% 100%; background-position: 0 0;
	color: #fff; font: 500 17px/1 'Roboto', sans-serif;
	box-shadow: 0 12px 26px rgba(76, 64, 247, .28);
	transition: background-position .35s, box-shadow .2s, transform .1s;
}
.czv .czv-go:hover { background-position: 100% 0; box-shadow: 0 14px 30px rgba(255, 0, 161, .28); color: #fff; }
.czv .czv-go:active { transform: translateY(1px); }
.czv .czv-go:focus-visible { outline: 3px solid rgba(76, 64, 247, .45); outline-offset: 3px; }
.czv-go-spin { display: none; position: absolute; width: 22px; height: 22px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: czv-spin .7s linear infinite; }
.czv.is-busy .czv-go-spin { display: block; }
.czv.is-busy .czv-go-text { visibility: hidden; }
@keyframes czv-spin { to { transform: rotate(360deg); } }
.czv .czv-hint { margin: 10px 0 0; font-size: 13.5px; color: #8d8ca3; }

.czv .czv-flow { list-style: none; display: flex; gap: 8px; margin: 34px 0 0; padding: 22px 0 0; border-top: 1px dashed var(--czv-line); }
.czv .czv-flow li { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: 13.5px; color: var(--czv-ink); list-style: none; }
.czv-flow li::before { display: none; }
.czv-flow b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(76, 64, 247, .1); color: var(--czv-indigo); font: 700 12.5px 'Roboto', sans-serif; }

/* Right panel: the result screen */
.czv-screen {
	background: radial-gradient(120% 90% at 100% 0%, #2a2470 0%, var(--czv-ink) 55%);
	color: rgba(255,255,255,.78);
	min-height: 520px;
	scroll-margin-top: 130px;
	display: flex; flex-direction: column; justify-content: center;
	overflow: hidden; isolation: isolate;
}
.czv-glow { position: absolute; border-radius: 50%; filter: blur(70px); z-index: -1; pointer-events: none; }
.czv-glow-a { width: 300px; height: 300px; right: -90px; bottom: -110px; background: var(--czv-magenta); opacity: .35; }
.czv-glow-b { width: 260px; height: 260px; left: -100px; top: -100px; background: var(--czv-indigo); opacity: .45; }

.czv-idle { text-align: center; }
.czv-screen.has-result .czv-idle { display: none; }
.czv-scan { position: relative; width: 190px; height: 190px; margin: 0 auto 26px; display: grid; place-items: center; }
.czv-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); animation: czv-breathe 3.2s ease-in-out infinite; }
.czv-ring.r2 { inset: 24px; border-color: rgba(255,79,195,.28); animation-delay: .4s; }
.czv-ring.r3 { inset: 48px; border-color: rgba(124,114,255,.4); animation-delay: .8s; }
@keyframes czv-breathe { 50% { transform: scale(1.05); opacity: .6; } }
.czv-doc { width: 58px; height: 72px; position: relative; z-index: 1; }
.czv-beam { position: absolute; left: 50%; top: 50%; width: 84px; height: 3px; margin: -36px 0 0 -42px; border-radius: 3px; background: linear-gradient(90deg, transparent, #ff4fc3, transparent); box-shadow: 0 0 14px #ff4fc3; z-index: 2; animation: czv-beam 2.2s ease-in-out infinite; }
@keyframes czv-beam { 0%,100% { transform: translateY(0); } 50% { transform: translateY(72px); } }
.czv .czv-idle-title { margin: 0 0 6px; font: 600 22px 'Jost', sans-serif; color: #fff; }
.czv .czv-idle-text { margin: 0; font-size: 15px; color: rgba(255,255,255,.6); }

/* -------------------------------------------------- Result: verified */
.czv-out:empty { display: none; }
.czv-ok { animation: czv-in .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes czv-in { from { opacity: 0; transform: translateY(16px); } }
.czv-ok-top { display: flex; align-items: center; gap: 16px; }
.czv-badge { position: relative; flex: none; width: 64px; height: 64px; }
.czv-badge svg { width: 64px; height: 64px; }
.czv-badge .ring { stroke-dasharray: 176; stroke-dashoffset: 176; animation: czv-draw .8s ease-out .1s forwards; }
.czv-badge .tick { stroke-dasharray: 30; stroke-dashoffset: 30; animation: czv-draw .4s ease-out .75s forwards; }
@keyframes czv-draw { to { stroke-dashoffset: 0; } }
.czv-ok-state { font: 600 12.5px 'Roboto', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #5ee0aa; }
.czv .czv-ok-name { margin: 4px 0 0; font: 600 clamp(26px, 3vw, 34px)/1.15 'Jost', sans-serif; color: #fff; }
.czv .czv-ok-note { margin: 18px 0 0; font-size: 15.5px; line-height: 1.6; color: rgba(255,255,255,.72); }
.czv-chip { display: inline-block; margin-top: 14px; padding: 7px 14px; border-radius: 5px; background: var(--czv-brand); color: #fff; font: 500 14px 'Roboto', sans-serif; }

/* Timeline: start ── end */
.czv-time { margin: 26px 0 0; padding: 20px 20px 18px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.czv-time-bar { position: relative; height: 6px; margin: 4px 7px 14px; border-radius: 6px; background: rgba(255,255,255,.12); }
.czv-time-bar span { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: var(--czv-brand); animation: czv-fill 1.1s cubic-bezier(.2,.8,.2,1) .5s forwards; }
.czv-time-bar::before, .czv-time-bar::after { content: ''; position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--czv-ink); border: 3px solid #7c72ff; z-index: 1; }
.czv-time-bar::before { left: -7px; }
.czv-time-bar::after { right: -7px; border-color: #ff4fc3; }
@keyframes czv-fill { to { width: 100%; } }
.czv-time-dates { display: flex; justify-content: space-between; gap: 12px; }
.czv-time-dates div:last-child { text-align: right; }
.czv-time-dates small { display: block; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.czv-time-dates strong { display: block; margin-top: 3px; font: 600 16px 'Roboto', sans-serif; color: #fff; }

.czv .czv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 22px 0 0; padding: 0; }
.czv-facts div { min-width: 0; }
.czv-facts div.wide { grid-column: 1 / -1; }
.czv .czv-facts dt { margin: 0 0 3px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.czv .czv-facts dd { margin: 0; font: 500 16px/1.4 'Roboto', sans-serif; color: #fff; word-break: break-word; }

.czv-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.czv .czv-act {
	display: inline-flex; align-items: center; gap: 8px;
	height: 44px; padding: 0 18px; margin: 0;
	border-radius: 5px; cursor: pointer;
	font: 500 14.5px/1 'Roboto', sans-serif;
	border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff;
	transition: background .2s, border-color .2s;
}
.czv .czv-act:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.5); color: #fff; }
.czv .czv-act.fill { background: #fff; color: var(--czv-ink); border-color: #fff; }
.czv .czv-act.fill:hover { background: #ece9ff; color: var(--czv-ink); }
.czv-act svg { width: 16px; height: 16px; }
.czv .czv-stamp { margin: 18px 0 0; font-size: 12.5px; color: rgba(255,255,255,.45); }

/* -------------------------------------------------- Result: not found / error */
.czv-bad { text-align: center; animation: czv-in .45s cubic-bezier(.2,.8,.2,1) both; }
.czv-bad-icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(229,72,77,.14); border: 1px solid rgba(229,72,77,.45); color: #ff8a8e; }
.czv-bad-icon svg { width: 34px; height: 34px; }
.czv .czv-bad h3 { margin: 0 0 8px; font: 600 24px 'Jost', sans-serif; color: #fff; }
.czv .czv-bad p { margin: 0 auto; max-width: 380px; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.72); }
.czv-bad code { padding: 2px 7px; border-radius: 4px; background: rgba(255,255,255,.12); color: #fff; font: 500 14px 'Roboto Mono', monospace; }
.czv-bad a { color: #ff8fd6; }
.czv-bad .czv-act { margin-top: 22px; }

/* -------------------------------------------------- FAQ */
.czv-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; margin: 90px 0 0; align-items: start; }
.czv-tag-dark { color: var(--czv-magenta); background: rgba(255, 0, 161, .07); }
.czv .czv-faq-head p { margin: 0; font-size: 15.5px; line-height: 1.7; }
.czv-faq-head a { color: var(--czv-indigo); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(76,64,247,.35); }
.czv-faq-head a:hover { color: var(--czv-magenta); border-color: var(--czv-magenta); }
.czv-faq-list { display: grid; gap: 12px; }
.czv-faq-list details { border: 1px solid var(--czv-line); border-radius: 10px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.czv-faq-list details[open] { border-color: rgba(76,64,247,.35); box-shadow: 0 12px 30px rgba(76,64,247,.08); }
.czv .czv-faq-list summary {
	list-style: none; cursor: pointer; position: relative;
	padding: 18px 54px 18px 22px;
	font: 500 17px/1.4 'Jost', sans-serif; color: var(--czv-ink);
}
.czv-faq-list summary::-webkit-details-marker { display: none; }
.czv-faq-list summary::after {
	content: '+'; position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px;
	display: grid; place-items: center; border-radius: 5px;
	background: rgba(76,64,247,.08); color: var(--czv-indigo); font: 500 18px/1 'Roboto', sans-serif;
	transition: transform .25s, background .2s, color .2s;
}
.czv-faq-list details[open] summary::after { content: '–'; background: var(--czv-brand); color: #fff; }
.czv .czv-faq-list details p { margin: 0; padding: 0 22px 20px; font-size: 15.5px; line-height: 1.7; }
.czv-faq-list a { color: var(--czv-indigo); }

/* Confetti + toast */
.czv-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 99999; }
.czv-toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 16px); padding: 12px 20px; border-radius: 5px; background: var(--czv-ink, #14132b); color: #fff; font: 500 14.5px 'Roboto', sans-serif; opacity: 0; transition: opacity .25s, transform .25s; z-index: 100000; pointer-events: none; }
.czv-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* -------------------------------------------------- Responsive */
@media (max-width: 991px) {
	.czv-desk { grid-template-columns: 1fr; }
	.czv-screen { min-height: 420px; }
	.czv-faq { grid-template-columns: 1fr; gap: 28px; margin-top: 64px; }
}
@media (max-width: 575px) {
	.czv { padding: 40px 0 60px; }
	.czv-panel { padding: 36px 22px; }
	.czv-desk { border-radius: 14px; }
	.czv .czv-flow { flex-direction: column; gap: 10px; }
	.czv .czv-facts { grid-template-columns: 1fr; }
	.czv-acts .czv-act { flex: 1 1 100%; justify-content: center; }
	.czv-scan { width: 150px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
	.czv *, .czv *::before, .czv *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
	.czv-time-bar span { width: 100%; }
}
