/* ==========================================================================
   SerpentScan — interface styles
   ========================================================================== */

:root {
	--bg: #060d0b;
	--bg-soft: #081411;
	--surface: rgba(16, 31, 26, 0.78);
	--surface-2: rgba(255, 255, 255, 0.025);
	--line: rgba(148, 190, 172, 0.13);
	--line-strong: rgba(148, 190, 172, 0.24);
	--text: #e9f2ed;
	--muted: #93a89f;
	--muted-2: #6d837a;
	--accent: #3ddc97;
	--accent-2: #8df0c4;
	--accent-deep: #1fa971;
	--gold: #d9b26a;
	--danger: #ff7a66;
	--danger-2: #ffb3a6;
	--radius: 26px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

::selection {
	background: rgba(61, 220, 151, 0.28);
	color: #fff;
}

img {
	max-width: 100%;
}

button,
input {
	font: inherit;
}

a {
	color: inherit;
}

/* --------------------------------------------------------------------------
   Ambient background
   -------------------------------------------------------------------------- */

.ambient {
	position: fixed;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
	background:
		radial-gradient(1100px 620px at 12% -8%, rgba(61, 220, 151, 0.1), transparent 62%),
		radial-gradient(900px 540px at 88% 2%, rgba(217, 178, 106, 0.06), transparent 58%),
		radial-gradient(900px 700px at 50% 110%, rgba(31, 169, 113, 0.08), transparent 60%),
		var(--bg);
}

.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(110px);
	opacity: 0.55;
}

.orb-a {
	width: 420px;
	height: 420px;
	top: -180px;
	left: -100px;
	background: rgba(43, 189, 126, 0.22);
}

.orb-b {
	width: 360px;
	height: 360px;
	top: 8%;
	right: -140px;
	background: rgba(217, 178, 106, 0.13);
}

.orb-c {
	width: 520px;
	height: 520px;
	bottom: -280px;
	left: 32%;
	background: rgba(31, 169, 113, 0.14);
}

.grid-overlay {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(148, 190, 172, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 190, 172, 0.05) 1px, transparent 1px);
	background-size: 68px 68px;
	mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 10%, transparent 72%);
	-webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 10%, transparent 72%);
	opacity: 0.65;
}

.noise {
	position: absolute;
	inset: 0;
	opacity: 0.035;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Page progress
   -------------------------------------------------------------------------- */

.page-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 200;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.6s ease;
}

.page-progress.done {
	opacity: 0;
}

.page-progress span {
	display: block;
	height: 100%;
	width: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	background: linear-gradient(90deg, var(--accent-deep), var(--accent-2) 55%, var(--gold));
	box-shadow: 0 0 14px rgba(61, 220, 151, 0.6);
	transition: transform 0.3s ease;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */

.nav {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(6, 13, 11, 0.66);
	border-bottom: 1px solid rgba(255, 255, 255, 0.045);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
}

.nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 14px 24px;
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	min-width: 0;
}

.brand-mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex-shrink: 0;
	color: var(--accent);
}

.brand-mark svg {
	width: 40px;
	height: 40px;
}

.brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
	min-width: 0;
}

.brand-text strong {
	font-family: var(--display);
	font-size: 15.5px;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.brand-text small {
	margin-top: 3px;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ghost-link {
	font-size: 12px;
	font-weight: 500;
	color: var(--muted);
	text-decoration: none;
	transition: color 0.2s;
}

.ghost-link:hover {
	color: var(--text);
}

.model-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.03);
	font-size: 11px;
	font-weight: 500;
	color: var(--muted);
	white-space: nowrap;
}

.status-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--gold);
	flex-shrink: 0;
}

.model-status[data-state="loading"] .status-dot {
	animation: pulse 1.6s ease-in-out infinite;
}

.model-status[data-state="ready"] {
	color: var(--accent-2);
	border-color: rgba(61, 220, 151, 0.24);
	background: rgba(61, 220, 151, 0.06);
}

.model-status[data-state="ready"] .status-dot {
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.12);
}

.model-status[data-state="error"] {
	color: var(--danger-2);
	border-color: rgba(255, 122, 102, 0.28);
	background: rgba(255, 122, 102, 0.07);
}

.model-status[data-state="error"] .status-dot {
	background: var(--danger);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

main {
	display: block;
}

.hero {
	max-width: 840px;
	margin: 0 auto;
	padding: 74px 24px 46px;
	text-align: center;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	border: 1px solid rgba(61, 220, 151, 0.18);
	border-radius: 999px;
	background: rgba(61, 220, 151, 0.055);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.17em;
	text-transform: uppercase;
	color: var(--accent-2);
}

.eyebrow-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 8px rgba(61, 220, 151, 0.8);
}

.hero h1 {
	margin: 22px 0 18px;
	font-family: var(--display);
	font-size: clamp(2.7rem, 6.2vw, 4.55rem);
	font-weight: 600;
	line-height: 0.98;
	letter-spacing: -0.045em;
}

.hero h1 .grad {
	background: linear-gradient(102deg, var(--accent-2) 4%, var(--accent) 48%, var(--gold) 96%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero-copy {
	max-width: 620px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.72;
	color: var(--muted);
}

.hero-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 26px;
}

.hero-meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 11px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.02);
	font-size: 10.5px;
	font-weight: 500;
	color: var(--muted);
}

.hero-meta svg {
	width: 13px;
	height: 13px;
	color: var(--accent);
}

/* --------------------------------------------------------------------------
   Workspace / panels
   -------------------------------------------------------------------------- */

.workspace {
	display: grid;
	grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
	gap: 18px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
	align-items: stretch;
}

.panel {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 574px;
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background:
		radial-gradient(560px 220px at 50% -18%, rgba(61, 220, 151, 0.055), transparent 72%),
		linear-gradient(180deg, rgba(17, 32, 27, 0.86), rgba(9, 19, 16, 0.94));
	box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.045);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	overflow: hidden;
}

.panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.panel-title {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.panel-title h2 {
	margin: 0;
	font-family: var(--display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.step {
	padding: 3px 7px;
	border: 1px solid rgba(61, 220, 151, 0.24);
	border-radius: 6px;
	background: rgba(61, 220, 151, 0.08);
	font-family: var(--display);
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--accent-2);
}

.panel-hint {
	font-size: 9.5px;
	font-weight: 500;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted-2);
	white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Dropzone
   -------------------------------------------------------------------------- */

.dropzone {
	position: relative;
	display: grid;
	place-items: center;
	flex: 1;
	min-height: 0;
	padding: 24px;
	border: 1.5px dashed rgba(148, 190, 172, 0.22);
	border-radius: 20px;
	background:
		radial-gradient(420px 240px at 50% 42%, rgba(61, 220, 151, 0.055), transparent 72%),
		rgba(255, 255, 255, 0.012);
	text-align: center;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.dropzone:hover {
	border-color: rgba(61, 220, 151, 0.42);
	background-color: rgba(61, 220, 151, 0.025);
}

.dropzone:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}

.dropzone.dragover {
	border-color: var(--accent);
	background-color: rgba(61, 220, 151, 0.06);
	box-shadow: inset 0 0 90px rgba(61, 220, 151, 0.08), 0 0 0 4px rgba(61, 220, 151, 0.06);
}

.dropzone.has-image {
	padding: 0;
	border-style: solid;
	border-color: rgba(148, 190, 172, 0.16);
	cursor: default;
}

.dropzone-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	pointer-events: none;
}

.upload-icon {
	display: grid;
	place-items: center;
	width: 66px;
	height: 66px;
	margin-bottom: 18px;
	border: 1px solid rgba(61, 220, 151, 0.2);
	border-radius: 19px;
	background: linear-gradient(180deg, rgba(61, 220, 151, 0.13), rgba(61, 220, 151, 0.035));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	color: var(--accent-2);
}

.upload-icon svg {
	width: 27px;
	height: 27px;
}

.drop-title {
	margin: 0 0 6px;
	font-family: var(--display);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--text);
}

.drop-sub {
	margin: 0;
	font-size: 12.5px;
	color: var(--muted);
}

.browse {
	color: var(--accent);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
}

.drop-foot {
	margin: 15px 0 0;
	font-size: 10.5px;
	color: var(--muted-2);
}

/* Preview ------------------------------------------------------------------ */

.preview {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #050a08;
}

.preview img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.preview-shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 10, 8, 0.68), transparent 24%, transparent 68%, rgba(4, 10, 8, 0.82));
	pointer-events: none;
}

.preview-top {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.file-chip {
	max-width: calc(100% - 48px);
	padding: 7px 11px;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 999px;
	background: rgba(4, 10, 8, 0.62);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-size: 10.5px;
	font-weight: 500;
	color: #dce9e3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.icon-btn {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.13);
	border-radius: 50%;
	background: rgba(4, 10, 8, 0.62);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #dce9e3;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.icon-btn svg {
	width: 15px;
	height: 15px;
}

.icon-btn:hover {
	border-color: rgba(255, 122, 102, 0.5);
	background: rgba(255, 122, 102, 0.18);
	color: #fff;
}

.preview-bottom {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.scan-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(180deg, rgba(4, 10, 8, 0.4), rgba(4, 10, 8, 0.16));
	overflow: hidden;
	pointer-events: none;
}

.scan-line {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--accent-2) 50%, var(--accent) 82%, transparent);
	box-shadow: 0 0 18px 4px rgba(61, 220, 151, 0.42);
	animation: scan 2.2s ease-in-out infinite;
}

.upload-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 16px;
	margin-top: 14px;
	font-size: 10.5px;
	color: var(--muted-2);
}

#fileMeta {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.privacy {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	color: rgba(141, 240, 196, 0.72);
}

.privacy svg {
	width: 12px;
	height: 12px;
}

/* --------------------------------------------------------------------------
   Result states
   -------------------------------------------------------------------------- */

.result-empty {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 30px 22px;
	text-align: center;
}

.empty-mark {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 20px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 30%, rgba(61, 220, 151, 0.12), rgba(255, 255, 255, 0.02));
	color: var(--accent);
}

.empty-mark svg {
	width: 30px;
	height: 30px;
}

.result-empty h3 {
	margin: 0 0 8px;
	font-family: var(--display);
	font-size: 18.5px;
	font-weight: 600;
	letter-spacing: -0.015em;
}

.result-empty p {
	max-width: 340px;
	margin: 0;
	font-size: 12.5px;
	line-height: 1.7;
	color: var(--muted);
}

.tips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.tips li {
	padding: 5px 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.02);
	font-size: 10px;
	color: var(--muted);
}

.result-loading {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
}

.loader-ring {
	width: 52px;
	height: 52px;
	border: 3px solid rgba(61, 220, 151, 0.14);
	border-top-color: var(--accent);
	border-radius: 50%;
	animation: spin 0.9s linear infinite;
}

.result-loading p {
	margin: 0;
	font-family: var(--display);
	font-size: 14px;
	font-weight: 500;
}

.result-loading span {
	font-size: 10.5px;
	color: var(--muted-2);
}

.result {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 14px;
	animation: fadeUp 0.45s var(--ease) both;
}

/* Verdict ------------------------------------------------------------------ */

.verdict {
	--v: var(--accent);
	--v-soft: rgba(61, 220, 151, 0.1);
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 16px;
	border: 1px solid rgba(61, 220, 151, 0.26);
	border-radius: 18px;
	background: linear-gradient(135deg, var(--v-soft), rgba(255, 255, 255, 0.015));
	transition: border-color 0.3s, background 0.3s;
}

.verdict[data-verdict="venomous"] {
	--v: var(--danger);
	--v-soft: rgba(255, 122, 102, 0.12);
	border-color: rgba(255, 122, 102, 0.3);
}

.verdict-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border: 1px solid var(--v-soft);
	border-radius: 13px;
	background: rgba(0, 0, 0, 0.18);
	color: var(--v);
}

.verdict-icon svg {
	width: 22px;
	height: 22px;
}

.verdict-kicker {
	display: block;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(233, 242, 237, 0.52);
}

.verdict-text h3 {
	margin: 3px 0 2px;
	font-family: var(--display);
	font-size: 23px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--v);
}

.verdict-text p {
	margin: 0;
	font-size: 11.5px;
	color: var(--muted);
}

.gauge {
	position: relative;
	width: 92px;
	height: 92px;
	flex-shrink: 0;
}

.gauge svg {
	width: 100%;
	height: 100%;
	transform: rotate(-90deg);
}

.gauge circle {
	fill: none;
	stroke-width: 7;
	stroke-linecap: round;
}

.gauge-track {
	stroke: rgba(255, 255, 255, 0.08);
}

.gauge-fill {
	stroke: var(--v);
	stroke-dasharray: 289.03;
	stroke-dashoffset: 289.03;
	transition: stroke-dashoffset 1s var(--ease);
	filter: drop-shadow(0 0 5px var(--v-soft));
}

.gauge-value {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.gauge-value strong {
	font-family: var(--display);
	font-size: 19px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text);
}

.gauge-value span {
	margin-top: 1px;
	font-size: 7.5px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted-2);
}

/* Probabilities ------------------------------------------------------------ */

.prob-block {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.02);
}

.prob-title {
	margin-bottom: 12px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.prob-row + .prob-row {
	margin-top: 12px;
}

.prob-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 11.5px;
	color: var(--muted);
}

.prob-head strong {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--text);
	font-variant-numeric: tabular-nums;
}

.bar {
	height: 7px;
	margin-top: 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	overflow: hidden;
}

.bar-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	transition: width 1s var(--ease);
}

.bar-fill.venom {
	background: linear-gradient(90deg, #ff5d47, #ff9a7a);
}

.bar-fill.nonvenom {
	background: linear-gradient(90deg, var(--accent-deep), #5ee8ab);
}

/* Meta / low confidence ---------------------------------------------------- */

.result-meta {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	padding: 12px 14px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.12);
}

.result-meta div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.result-meta span {
	font-size: 8.5px;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--muted-2);
}

.result-meta strong {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.low-conf {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 11px 13px;
	border: 1px solid rgba(217, 178, 106, 0.22);
	border-radius: 12px;
	background: rgba(217, 178, 106, 0.06);
	font-size: 11px;
	line-height: 1.55;
	color: #d9c9a5;
}

.low-conf svg {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--gold);
}

.low-conf strong {
	color: #f0dfb8;
}

.result-actions {
	display: flex;
	gap: 8px;
	margin-top: auto;
	padding-top: 4px;
}

.result-actions .btn {
	flex: 1;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 11px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	color: var(--text);
	cursor: pointer;
	transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.btn svg {
	width: 14px;
	height: 14px;
}

.btn-primary {
	background: linear-gradient(135deg, #49e6a2, #25b87a);
	color: #04130d;
	box-shadow: 0 8px 22px rgba(61, 220, 151, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(61, 220, 151, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-ghost {
	border-color: rgba(255, 255, 255, 0.09);
	background: rgba(255, 255, 255, 0.035);
	color: #cfe0d8;
}

.btn-ghost:hover {
	border-color: rgba(255, 255, 255, 0.16);
	background: rgba(255, 255, 255, 0.07);
}

.btn-small {
	height: 32px;
	padding: 0 13px;
	border-radius: 9px;
	font-size: 11px;
}

.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.ghost-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Info cards
   -------------------------------------------------------------------------- */

.info-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	max-width: 1180px;
	margin: 22px auto 0;
	padding: 0 24px;
}

.info-card {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 20px;
	background: linear-gradient(180deg, rgba(16, 30, 25, 0.62), rgba(9, 18, 15, 0.56));
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.info-card:hover {
	transform: translateY(-2px);
	border-color: var(--line-strong);
}

.info-icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-bottom: 14px;
	border: 1px solid rgba(61, 220, 151, 0.16);
	border-radius: 10px;
	background: rgba(61, 220, 151, 0.07);
	color: var(--accent);
}

.info-icon svg {
	width: 17px;
	height: 17px;
}

.info-card h3 {
	margin: 0 0 8px;
	font-family: var(--display);
	font-size: 14.5px;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.info-card p {
	margin: 0;
	font-size: 12px;
	line-height: 1.68;
	color: var(--muted);
}

.steps {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.steps li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 11.5px;
	line-height: 1.55;
	color: var(--muted);
}

.steps li span {
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 1px solid rgba(61, 220, 151, 0.2);
	border-radius: 50%;
	background: rgba(61, 220, 151, 0.09);
	font-size: 8.5px;
	font-weight: 700;
	color: var(--accent-2);
}

.spec-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 11px;
}

.spec-row span {
	color: var(--muted-2);
}

.spec-row strong {
	font-weight: 600;
	color: var(--text);
}

.privacy-badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	padding: 6px 10px;
	border: 1px solid rgba(61, 220, 151, 0.2);
	border-radius: 999px;
	background: rgba(61, 220, 151, 0.06);
	font-size: 10px;
	font-weight: 500;
	color: var(--accent-2);
}

.pulse-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--accent);
	animation: pulse 2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Safety / footer / toast
   -------------------------------------------------------------------------- */

.safety {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-width: 1180px;
	margin: 14px auto 0;
	padding: 16px 18px;
	border: 1px solid rgba(217, 178, 106, 0.18);
	border-radius: 16px;
	background: rgba(217, 178, 106, 0.055);
	font-size: 11.5px;
	line-height: 1.68;
	color: #d8c7a3;
}

.safety svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 1px;
	color: var(--gold);
}

.safety strong {
	color: #f0dfb8;
}

.footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 1180px;
	margin: 30px auto 0;
	padding: 22px 24px 36px;
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	font-size: 10px;
	color: var(--muted-2);
}

.toast-wrap {
	position: fixed;
	top: 18px;
	right: 18px;
	z-index: 120;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: min(360px, calc(100vw - 36px));
	pointer-events: none;
}

.toast {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: #0e1e18;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
	font-size: 11.5px;
	line-height: 1.5;
	color: #dcebe4;
	animation: toastIn 0.25s var(--ease) both;
	pointer-events: auto;
}

.toast.error {
	border-color: rgba(255, 122, 102, 0.36);
	background: #1d1210;
	color: #ffd9d2;
}

.toast.success {
	border-color: rgba(61, 220, 151, 0.32);
}

.toast.leaving {
	animation: toastOut 0.2s ease both;
}

.noscript {
	position: fixed;
	left: 50%;
	bottom: 20px;
	transform: translateX(-50%);
	z-index: 130;
	padding: 12px 16px;
	border: 1px solid rgba(255, 122, 102, 0.35);
	border-radius: 12px;
	background: #1d1210;
	color: #ffd9d2;
	font-size: 12px;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */

@keyframes pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

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

@keyframes scan {
	0% {
		top: 0;
		opacity: 0;
	}
	8% {
		opacity: 1;
	}
	92% {
		opacity: 1;
	}
	100% {
		top: 100%;
		opacity: 0;
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(9px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes toastIn {
	from {
		opacity: 0;
		transform: translateY(-8px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes toastOut {
	to {
		opacity: 0;
		transform: translateY(-6px) scale(0.98);
	}
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1020px) {
	.workspace {
		grid-template-columns: minmax(0, 1fr);
	}

	.panel {
		min-height: 0;
	}

	.upload-panel {
		min-height: 500px;
	}

	.result-panel {
		min-height: 480px;
	}

	.info-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.info-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero {
		padding-top: 54px;
	}
}

@media (max-width: 760px) {
	.nav-inner {
		padding: 12px 16px;
	}

	.ghost-link {
		display: none;
	}

	.brand-text small {
		display: none;
	}

	.hero {
		padding: 46px 18px 34px;
	}

	.hero h1 {
		font-size: clamp(2.35rem, 10vw, 3.4rem);
	}

	.hero-copy {
		font-size: 13.5px;
	}

	.workspace {
		padding: 0 14px;
		gap: 14px;
	}

	.panel {
		padding: 16px;
		border-radius: 22px;
	}

	.upload-panel {
		min-height: 420px;
	}

	.result-panel {
		min-height: 430px;
	}

	.info-grid {
		padding: 0 14px;
	}

	.safety {
		margin: 14px 14px 0;
	}

	.footer {
		padding: 20px 16px 30px;
	}

	.result-meta strong {
		font-size: 10.5px;
	}
}

@media (max-width: 560px) {
	.model-status {
		padding: 6px 9px;
		font-size: 10px;
	}

	.model-status #modelStatusText {
		max-width: 96px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.eyebrow {
		font-size: 8.5px;
		letter-spacing: 0.12em;
	}

	.hero-meta span {
		font-size: 9.5px;
		padding: 6px 9px;
	}

	.dropzone {
		padding: 18px;
	}

	.drop-title {
		font-size: 16.5px;
	}

	.verdict {
		grid-template-columns: 42px minmax(0, 1fr) 68px;
		gap: 11px;
		padding: 14px;
	}

	.verdict-icon {
		width: 42px;
		height: 42px;
	}

	.verdict-icon svg {
		width: 19px;
		height: 19px;
	}

	.verdict-text h3 {
		font-size: 19px;
	}

	.verdict-text p {
		font-size: 10.5px;
	}

	.gauge {
		width: 68px;
		height: 68px;
	}

	.gauge circle {
		stroke-width: 8;
	}

	.gauge-value strong {
		font-size: 15px;
	}

	.gauge-value span {
		font-size: 6.5px;
	}

	.result-meta {
		padding: 10px 11px;
	}

	.result-meta span {
		font-size: 7.5px;
	}

	.result-meta strong {
		font-size: 9.5px;
	}

	.upload-foot {
		font-size: 9.5px;
	}

	.privacy {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}
