/* FortisGen verification UI — wzorzec laboratoryjny (fortisgen-verify.html), prefiks .fgv- */

.fgv-verify-app {
	--fgv-blue-deep: #042c53;
	--fgv-blue-mid: #0d6eaa;
	--fgv-blue-light: #e6f1fb;
	--fgv-green: #1d9e75;
	--fgv-green-light: #e1f5ee;
	--fgv-red: #e24b4a;
	--fgv-red-light: #fcebeb;
	--fgv-gray-100: #f6f6f4;
	--fgv-gray-200: #eaeae6;
	--fgv-gray-400: #b4b2a9;
	--fgv-gray-600: #5f5e5a;
	--fgv-gray-900: #1a1a18;
	font-family: "DM Sans", system-ui, -apple-system, sans-serif;
	color: var(--fgv-gray-900);
	line-height: 1.5;
	max-width: 100%;
}

.fgv-verify-app *,
.fgv-verify-app *::before,
.fgv-verify-app *::after {
	box-sizing: border-box;
}

.fgv-hero {
	background: var(--fgv-blue-deep);
	padding: 40px 24px 60px;
	text-align: center;
}

.fgv-hero-eyebrow {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.14em;
	color: rgba(255, 255, 255, 0.45);
	text-transform: uppercase;
	margin-bottom: 12px;
}

.fgv-hero-title {
	font-size: clamp(1.25rem, 4vw, 1.75rem);
	font-weight: 300;
	color: #fff;
	line-height: 1.25;
	margin-bottom: 8px;
	letter-spacing: -0.01em;
}

.fgv-hero-title strong {
	font-weight: 600;
}

.fgv-hero-sub {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.5);
	max-width: 400px;
	margin: 0 auto;
	line-height: 1.6;
}

.fgv-card-wrap {
	max-width: 560px;
	margin: -32px auto 0;
	padding: 0 16px 60px;
}

.fgv-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 2px 24px rgba(4, 44, 83, 0.1);
}

.fgv-input-section {
	padding: 28px 28px 24px;
}

.fgv-input-label {
	font-size: 12px;
	font-weight: 500;
	color: var(--fgv-gray-600);
	letter-spacing: 0.05em;
	margin-bottom: 10px;
	display: block;
}

.fgv-code-input-wrap {
	display: flex;
	gap: 10px;
	align-items: stretch;
	flex-wrap: wrap;
}

.fgv-code-input {
	flex: 1;
	min-width: 0;
	font-family: "DM Mono", ui-monospace, monospace;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 12px 16px;
	border: 1.5px solid var(--fgv-gray-200);
	border-radius: 10px;
	outline: none;
	color: var(--fgv-gray-900);
	transition: border-color 0.2s, background 0.2s;
	background: var(--fgv-gray-100);
}

.fgv-code-input:focus {
	border-color: var(--fgv-blue-mid);
	background: #fff;
}

.fgv-code-input:disabled {
	opacity: 0.7;
}

.fgv-verify-btn {
	background: var(--fgv-blue-mid);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 12px 22px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	white-space: nowrap;
}

.fgv-verify-btn:hover:not(:disabled) {
	background: #0a5c8f;
}

.fgv-verify-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.fgv-divider {
	height: 1px;
	background: var(--fgv-gray-200);
}

.fgv-loading-section[hidden],
.fgv-result-section[hidden] {
	display: none !important;
}

.fgv-loading-inner {
	padding: 32px 28px;
	text-align: center;
}

.fgv-spinner {
	width: 32px;
	height: 32px;
	border: 2px solid var(--fgv-gray-200);
	border-top-color: var(--fgv-blue-mid);
	border-radius: 50%;
	animation: fgv-spin 0.7s linear infinite;
	margin: 0 auto 12px;
}

@keyframes fgv-spin {
	to {
		transform: rotate(360deg);
	}
}

.fgv-loading-text {
	font-size: 14px;
	color: var(--fgv-gray-600);
}

.fgv-status-banner {
	padding: 20px 28px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.fgv-status-banner--ok {
	background: var(--fgv-green-light);
}

.fgv-status-banner--bad {
	background: var(--fgv-red-light);
}

.fgv-status-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fgv-status-icon--ok {
	background: var(--fgv-green);
}

.fgv-status-icon--bad {
	background: var(--fgv-red);
}

.fgv-status-icon svg {
	width: 24px;
	height: 24px;
}

.fgv-status-text-wrap {
	flex: 1;
	min-width: 0;
}

.fgv-status-title {
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	margin-bottom: 3px;
}

.fgv-status-title--ok {
	color: #085041;
}

.fgv-status-title--bad {
	color: #791f1f;
}

.fgv-status-sub {
	font-size: 13px;
	line-height: 1.5;
}

.fgv-status-sub--ok {
	color: #0f6e56;
}

.fgv-status-sub--bad {
	color: #a32d2d;
}

.fgv-product-info {
	padding: 22px 28px;
	border-bottom: 1px solid var(--fgv-gray-200);
}

.fgv-product-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}

.fgv-product-thumb {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	background: var(--fgv-blue-deep);
	object-fit: cover;
	flex-shrink: 0;
}

.fgv-product-thumb--ph {
	display: flex;
	align-items: center;
	justify-content: center;
}

.fgv-product-name {
	font-size: 18px;
	font-weight: 600;
	color: var(--fgv-gray-900);
	margin-bottom: 3px;
}

.fgv-product-sub {
	font-size: 13px;
	color: var(--fgv-gray-600);
	margin-bottom: 8px;
}

.fgv-product-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	font-weight: 500;
	padding: 3px 9px;
	border-radius: 99px;
	background: var(--fgv-blue-light);
	color: var(--fgv-blue-deep);
	letter-spacing: 0.03em;
}

.fgv-info-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.fgv-info-cell {
	background: var(--fgv-gray-100);
	border-radius: 10px;
	padding: 12px 14px;
}

.fgv-info-cell-label {
	font-size: 11px;
	font-weight: 500;
	color: var(--fgv-gray-400);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 4px;
}

.fgv-info-cell-value {
	font-size: 14px;
	font-weight: 500;
	color: var(--fgv-gray-900);
	font-family: "DM Mono", ui-monospace, monospace;
	letter-spacing: 0.02em;
}

.fgv-info-cell-value--green {
	color: var(--fgv-green);
}

.fgv-hplc-section,
.fgv-timeline-section {
	padding: 22px 28px;
	border-bottom: 1px solid var(--fgv-gray-200);
}

.fgv-section-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--fgv-gray-900);
	letter-spacing: 0.02em;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fgv-hplc-badge {
	font-size: 10px;
	font-weight: 500;
	padding: 2px 7px;
	border-radius: 99px;
	background: var(--fgv-green-light);
	color: var(--fgv-green);
	letter-spacing: 0.04em;
}

.fgv-section-sub {
	font-size: 12px;
	color: var(--fgv-gray-400);
	margin-bottom: 16px;
	line-height: 1.5;
}

.fgv-hplc-bar-wrap {
	margin-bottom: 14px;
}

.fgv-hplc-bar-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.fgv-hplc-param {
	font-size: 13px;
	font-weight: 500;
	color: var(--fgv-gray-900);
}

.fgv-hplc-val {
	font-size: 13px;
	font-weight: 600;
	color: var(--fgv-green);
	font-family: "DM Mono", ui-monospace, monospace;
}

.fgv-hplc-req {
	font-size: 11px;
	color: var(--fgv-gray-400);
}

.fgv-hplc-track {
	height: 8px;
	background: var(--fgv-gray-200);
	border-radius: 99px;
	overflow: hidden;
	position: relative;
}

.fgv-hplc-fill {
	height: 100%;
	border-radius: 99px;
	background: var(--fgv-green);
}

.fgv-hplc-threshold {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 1px;
	background: rgba(15, 110, 86, 0.5);
}

.fgv-hplc-data-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 16px;
}

.fgv-hplc-data-cell {
	background: var(--fgv-gray-100);
	border-radius: 8px;
	padding: 10px 12px;
	text-align: center;
}

.fgv-hplc-data-num {
	font-size: 16px;
	font-weight: 600;
	font-family: "DM Mono", ui-monospace, monospace;
	color: var(--fgv-gray-900);
	margin-bottom: 2px;
}

.fgv-hplc-data-label {
	font-size: 10px;
	color: var(--fgv-gray-400);
	font-weight: 500;
	letter-spacing: 0.04em;
}

a.fgv-view-report-btn,
button.fgv-view-report-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 16px;
	padding: 12px;
	border: 1.5px solid var(--fgv-blue-mid);
	border-radius: 10px;
	background: transparent;
	color: var(--fgv-blue-mid);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
}

a.fgv-view-report-btn:hover,
button.fgv-view-report-btn:hover {
	background: var(--fgv-blue-light);
}

.fgv-timeline {
	margin-top: 14px;
}

.fgv-timeline-item {
	display: flex;
	gap: 12px;
	padding-bottom: 16px;
}

.fgv-timeline-item:last-child {
	padding-bottom: 0;
}

.fgv-tl-left {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 20px;
	flex-shrink: 0;
}

.fgv-tl-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fgv-blue-mid);
	flex-shrink: 0;
	margin-top: 4px;
}

.fgv-tl-dot--done {
	background: var(--fgv-green);
}

.fgv-tl-line {
	width: 1px;
	flex: 1;
	background: var(--fgv-gray-200);
	margin: 4px 0;
	min-height: 12px;
}

.fgv-tl-date {
	font-size: 11px;
	color: var(--fgv-gray-400);
	font-family: "DM Mono", ui-monospace, monospace;
	margin-bottom: 2px;
}

.fgv-tl-event {
	font-size: 13px;
	font-weight: 500;
	color: var(--fgv-gray-900);
}

.fgv-tl-detail {
	font-size: 12px;
	color: var(--fgv-gray-600);
	margin-top: 2px;
	line-height: 1.4;
}

.fgv-scan-section {
	padding: 16px 28px 22px;
}

.fgv-scan-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--fgv-gray-100);
	border-radius: 10px;
	padding: 12px 16px;
	flex-wrap: wrap;
}

.fgv-scan-left {
	display: flex;
	align-items: center;
	gap: 10px;
}

.fgv-scan-icon {
	width: 32px;
	height: 32px;
	background: var(--fgv-blue-light);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fgv-scan-label {
	font-size: 12px;
	font-weight: 500;
	color: var(--fgv-gray-900);
}

.fgv-scan-sub {
	font-size: 11px;
	color: var(--fgv-gray-400);
}

.fgv-scan-count {
	font-size: 20px;
	font-weight: 600;
	font-family: "DM Mono", ui-monospace, monospace;
	color: var(--fgv-blue-mid);
}

.fgv-fake-info {
	padding: 20px 28px 24px;
	text-align: center;
}

.fgv-fake-lead {
	font-size: 14px;
	color: #791f1f;
	line-height: 1.6;
	margin-bottom: 8px;
	text-align: left;
}

.fgv-fake-steps {
	margin-top: 16px;
	text-align: left;
}

.fgv-fake-step {
	display: flex;
	gap: 10px;
	padding: 10px 0;
	border-bottom: 1px solid var(--fgv-gray-200);
	font-size: 13px;
	color: var(--fgv-gray-600);
	line-height: 1.5;
}

.fgv-fake-step:last-child {
	border-bottom: none;
}

.fgv-fake-step-num {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--fgv-red-light);
	color: var(--fgv-red);
	font-size: 11px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 1px;
}

.fgv-card-footer {
	padding: 16px 28px;
	background: var(--fgv-gray-100);
	border-top: 1px solid var(--fgv-gray-200);
	display: flex;
	align-items: center;
	gap: 8px;
}

.fgv-footer-logo-sm {
	width: 20px;
	height: 20px;
	opacity: 0.4;
	flex-shrink: 0;
}

.fgv-footer-text,
.fgv-footer-text a {
	font-size: 11px;
	color: var(--fgv-gray-400);
	line-height: 1.4;
}

.fgv-footer-text a {
	color: var(--fgv-blue-mid);
	text-decoration: none;
}

@media (max-width: 480px) {
	.fgv-hero {
		padding: 32px 16px 52px;
	}

	.fgv-card-wrap {
		padding: 0 12px 48px;
	}

	.fgv-input-section,
	.fgv-product-info,
	.fgv-hplc-section,
	.fgv-timeline-section,
	.fgv-scan-section,
	.fgv-card-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.fgv-status-banner {
		padding: 16px 20px;
	}

	.fgv-hplc-data-grid {
		grid-template-columns: 1fr 1fr 1fr;
	}
}
