/* ==========================================================================
   TEKCRAFT — PROJECTS SHOWCASE (V2)
   ========================================================================== */

.tkx {
	--tkx-accent: #22d3ee;
	--tkx-accent-2: #8b5cf6;
	--tkx-rx: 0deg;
	--tkx-ry: 0deg;
	--tkx-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--tkx-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	padding: 120px 0 90px;
	background: #03030c;
	color: #e2e8f0;
	overflow: clip;
	isolation: isolate;
	transition: --tkx-accent 0.8s ease;
}

@property --tkx-accent {
	syntax: '<color>';
	inherits: true;
	initial-value: #22d3ee;
}

.tkx[data-cat="apps"] { --tkx-accent: #a78bfa; }
.tkx[data-cat="ecommerce"] { --tkx-accent: #e879f9; }
.tkx[data-cat="systems"] { --tkx-accent: #34d399; }
.tkx[data-cat="custom"] { --tkx-accent: #f59e0b; }

.tkx-compare-tag {
	position: absolute;
	top: 28px;
	left: 50%;
	z-index: 3;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 16px;
	border-radius: 999px;
	border: 1px dashed rgba(245, 158, 11, 0.6);
	background: rgba(245, 158, 11, 0.08);
	color: #fbbf24;
	font-size: 12.5px;
	font-weight: 700;
	white-space: nowrap;
}

.tkx-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.025) 0 1px, transparent 1px 60px),
		repeating-linear-gradient(0deg, rgba(56, 189, 248, 0.025) 0 1px, transparent 1px 60px);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 85%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 85%);
}

.tkx-bg-glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.55;
}

.tkx-bg-glow--a {
	width: 620px;
	height: 520px;
	top: 22%;
	inset-inline-start: -8%;
	background: color-mix(in srgb, var(--tkx-accent) 45%, transparent);
	animation: tkxDrift 14s ease-in-out infinite alternate;
}

.tkx-bg-glow--b {
	width: 520px;
	height: 460px;
	bottom: 4%;
	inset-inline-end: -6%;
	background: rgba(139, 92, 246, 0.4);
	animation: tkxDrift 17s ease-in-out infinite alternate-reverse;
}

@keyframes tkxDrift {
	from { transform: translate(0, 0) scale(1); }
	to { transform: translate(60px, -40px) scale(1.12); }
}

.tkx-wrap {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.tkx-head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 34px;
}

.tkx-title {
	margin: 0 0 14px;
	font-size: clamp(30px, 3.4vw, 48px);
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
	letter-spacing: -0.5px;
}

.tkx-title span {
	background: linear-gradient(135deg, #38bdf8 0%, #818cf8 45%, #c084fc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.tkx-sub {
	max-width: 640px;
	margin: 0;
	font-size: 16px;
	line-height: 1.8;
	color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */
.tkx-filters {
	position: relative;
	display: flex;
	width: fit-content;
	max-width: 100%;
	margin: 0 auto 44px;
	padding: 6px;
	gap: 4px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.7);
	border: 1px solid rgba(148, 163, 184, 0.14);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	overflow-x: auto;
	scrollbar-width: none;
}

.tkx-filters::-webkit-scrollbar { display: none; }

.tkx-filter-ink {
	position: absolute;
	top: 6px;
	bottom: 6px;
	left: 0;
	width: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--tkx-accent) 60%, #0284c7), #7c3aed);
	box-shadow: 0 6px 22px color-mix(in srgb, var(--tkx-accent) 40%, transparent), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
	transition: transform 0.55s var(--tkx-spring), width 0.55s var(--tkx-spring);
	pointer-events: none;
}

.tkx-filter {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #94a3b8;
	font: 600 14px/1 'Rubik', sans-serif;
	cursor: pointer;
	transition: color 0.3s ease;
	white-space: nowrap;
}

.tkx-filter i { font-size: 13px; }
.tkx-filter:hover { color: #e2e8f0; }
.tkx-filter.is-active { color: #fff; }
.tkx-filter:focus-visible { outline: 2px solid var(--tkx-accent); outline-offset: 2px; }

.tkx-filter b {
	min-width: 22px;
	padding: 3px 6px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	background: rgba(148, 163, 184, 0.14);
	color: inherit;
	transition: background 0.3s ease;
}

.tkx-filter.is-active b { background: rgba(255, 255, 255, 0.22); }

/* --------------------------------------------------------------------------
   Spotlight
   -------------------------------------------------------------------------- */
.tkx-spot {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 56px;
	align-items: center;
	margin-bottom: 40px;
}

.tkx-visual {
	position: relative;
	perspective: 1600px;
}

.tkx-visual-glow {
	position: absolute;
	inset: 8% 6% -4%;
	border-radius: 40px;
	background: radial-gradient(closest-side, color-mix(in srgb, var(--tkx-accent) 45%, transparent), transparent 75%);
	filter: blur(50px);
	opacity: 0.8;
	z-index: -1;
}

.tkx-window {
	position: relative;
	border-radius: 18px;
	background: #0b1222;
	border: 1px solid rgba(148, 163, 184, 0.2);
	box-shadow:
		0 40px 80px -20px rgba(0, 0, 0, 0.8),
		0 0 0 1px rgba(0, 0, 0, 0.5),
		0 0 50px color-mix(in srgb, var(--tkx-accent) 20%, transparent);
	transform: rotateX(var(--tkx-rx)) rotateY(var(--tkx-ry));
	transform-style: preserve-3d;
	overflow: hidden;
	will-change: transform;
}

.tkx-window::after {
	/* glass sheen following the pointer */
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	background: radial-gradient(circle at var(--tkx-gx, 30%) var(--tkx-gy, 0%), rgba(255, 255, 255, 0.1), transparent 45%);
}

.tkx-window-bar {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 42px;
	padding: 0 14px;
	background: linear-gradient(180deg, #141c2e, #0f1626);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	direction: ltr;
}

.tkx-dots { display: flex; gap: 6px; }
.tkx-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ef4444; }
.tkx-dots i:nth-child(2) { background: #f59e0b; }
.tkx-dots i:nth-child(3) { background: #10b981; }

.tkx-url {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 26px;
	max-width: 360px;
	margin: 0 auto;
	padding: 0 14px;
	border-radius: 8px;
	background: rgba(2, 6, 23, 0.7);
	border: 1px solid rgba(148, 163, 184, 0.12);
	color: #94a3b8;
	font: 500 12px/1 'Fira Code', monospace;
	overflow: hidden;
}

.tkx-url i { color: #34d399; font-size: 10px; }
.tkx-url-host { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tkx-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #10b981;
	box-shadow: 0 0 10px #10b981;
	animation: tkxBlink 1.8s ease-in-out infinite;
}

@keyframes tkxBlink { 50% { opacity: 0.3; } }

.tkx-screen {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #050913;
	cursor: pointer;
}

.tkx-layer {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.tkx-layer.is-entering {
	z-index: 2;
	animation: tkxReveal 0.9s var(--tkx-ease) both;
}

.tkx-layer.is-leaving {
	z-index: 1;
	animation: tkxLeave 0.9s var(--tkx-ease) both;
}

@keyframes tkxReveal {
	from { clip-path: inset(0 0 100% 0 round 0); transform: scale(1.06); filter: brightness(1.6); }
	to { clip-path: inset(0 0 0 0 round 0); transform: none; filter: none; }
}

@keyframes tkxLeave {
	to { transform: scale(0.94); opacity: 0.2; filter: blur(4px); }
}

.tkx-layer img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.tkx-layer.is-tall img {
	height: auto;
	min-height: 100%;
	animation: tkxScroll var(--tkx-scroll-dur, 14s) cubic-bezier(0.45, 0, 0.55, 1) 1.2s infinite alternate;
}

.tkx-spot:hover .tkx-layer.is-tall img,
.tkx.is-frozen .tkx-layer.is-tall img { animation-play-state: paused; }

@keyframes tkxScroll {
	0%, 8% { transform: translateY(0); }
	92%, 100% { transform: translateY(var(--tkx-scroll, 0px)); }
}

.tkx-cover {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background:
		radial-gradient(circle at 25% 25%, color-mix(in srgb, var(--tkx-accent) 40%, transparent), transparent 55%),
		radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.45), transparent 55%),
		linear-gradient(135deg, #0b1430, #120a2a);
	overflow: hidden;
}

.tkx-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 40px),
		repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 40px);
	-webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
	mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}

.tkx-cover-mark {
	position: relative;
	width: 96px;
	height: 96px;
	border-radius: 26px;
	display: grid;
	place-items: center;
	font-size: 40px;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--tkx-accent), #7c3aed);
	box-shadow: 0 20px 50px color-mix(in srgb, var(--tkx-accent) 45%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	animation: tkxFloat 5s ease-in-out infinite;
}

.tkx-cover-name {
	position: relative;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	text-align: center;
	padding: 0 20px;
}

.tkx-cover-host {
	position: relative;
	font: 500 13px/1 'Fira Code', monospace;
	color: color-mix(in srgb, var(--tkx-accent) 80%, white);
	direction: ltr;
}

@keyframes tkxFloat { 50% { transform: translateY(-8px); } }

/* Tech chips floating around the window */
.tkx-float-chips {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.tkx-fchip {
	position: absolute;
	padding: 8px 14px;
	border-radius: 12px;
	background: rgba(15, 23, 42, 0.88);
	border: 1px solid color-mix(in srgb, var(--tkx-accent) 40%, rgba(148, 163, 184, 0.2));
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5), 0 0 18px color-mix(in srgb, var(--tkx-accent) 18%, transparent);
	color: #e2e8f0;
	font: 600 12px/1 'Fira Code', monospace;
	white-space: nowrap;
	direction: ltr;
	translate: calc(var(--tkx-tx, 0) * var(--d, 1) * -14px) calc(var(--tkx-ty, 0) * var(--d, 1) * -10px);
	animation: tkxChipIn 0.7s var(--tkx-spring) both, tkxFloat 5s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * 120ms + 400ms), calc(var(--i, 0) * -1.3s);
}

.tkx-fchip::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 8px;
	border-radius: 50%;
	background: var(--tkx-accent);
	box-shadow: 0 0 8px var(--tkx-accent);
	vertical-align: 1px;
}

.tkx-fchip:nth-child(1) { top: -16px; inset-inline-end: 8%; --d: 1.4; }
.tkx-fchip:nth-child(2) { bottom: 14%; inset-inline-start: -26px; --d: 1; }
.tkx-fchip:nth-child(3) { bottom: -16px; inset-inline-end: 18%; --d: 1.7; }

@keyframes tkxChipIn {
	from { opacity: 0; transform: translateY(14px) scale(0.85); }
	to { opacity: 1; transform: none; }
}

/* Info column */
.tkx-info { min-width: 0; }

.tkx-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 18px;
}

.tkx-index {
	font: 500 14px/1 'Fira Code', monospace;
	color: #64748b;
	direction: ltr;
}

.tkx-index b {
	font-size: 26px;
	font-weight: 700;
	color: #fff;
	background: linear-gradient(135deg, #fff, var(--tkx-accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.tkx-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
	color: color-mix(in srgb, var(--tkx-accent) 75%, white);
	background: color-mix(in srgb, var(--tkx-accent) 12%, transparent);
	border: 1px solid color-mix(in srgb, var(--tkx-accent) 35%, transparent);
}

.tkx-year {
	padding: 6px 11px;
	border-radius: 999px;
	font: 600 12px/1 'Fira Code', monospace;
	color: #94a3b8;
	border: 1px solid rgba(148, 163, 184, 0.18);
}

.tkx-year:empty { display: none; }

.tkx-name {
	margin: 0 0 14px;
	font-size: clamp(28px, 2.8vw, 40px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.3px;
	overflow-wrap: anywhere;
}

.tkx-name a { color: #fff; text-decoration: none; transition: color 0.3s ease; }
.tkx-name a:hover { color: color-mix(in srgb, var(--tkx-accent) 70%, white); }

.tkx-desc {
	margin: 0 0 22px;
	font-size: 15.5px;
	line-height: 1.85;
	color: #94a3b8;
	min-height: 3.7em;
}

.tkx-stack { margin-bottom: 26px; }

.tkx-stack-label {
	display: block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.5px;
	color: #64748b;
}

.tkx-tech {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

html[dir="rtl"] .tkx-tech { justify-content: flex-end; }

.tkx-tech li {
	padding: 7px 12px;
	border-radius: 9px;
	font: 500 12.5px/1 'Fira Code', monospace;
	color: #cbd5e1;
	background: rgba(15, 23, 42, 0.75);
	border: 1px solid rgba(148, 163, 184, 0.14);
}

.tkx-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
}

.tkx-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 13px 24px;
	border-radius: 999px;
	font: 700 15px/1 'Rubik', sans-serif;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform 0.3s var(--tkx-ease), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.tkx-btn[hidden] { display: none; }

.tkx-btn--primary {
	padding: 7px 7px 7px 24px;
	color: #fff !important;
	background: linear-gradient(135deg, #0284c7 0%, #38bdf8 45%, #9333ea 100%);
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35), 0 0 22px rgba(147, 51, 234, 0.3);
}

html[dir="rtl"] .tkx-btn--primary { padding: 7px 24px 7px 7px; }

.tkx-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(56, 189, 248, 0.5), 0 0 32px rgba(147, 51, 234, 0.45); }

.tkx-btn-ic {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.2);
	font-size: 13px;
	transition: transform 0.3s var(--tkx-ease);
}

.tkx-btn--primary:hover .tkx-btn-ic { transform: translateX(4px); }
html[dir="rtl"] .tkx-btn--primary:hover .tkx-btn-ic { transform: translateX(-4px); }

.tkx-btn--ghost {
	color: #e2e8f0 !important;
	background: rgba(15, 23, 42, 0.7);
	border: 1px solid rgba(148, 163, 184, 0.2);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.tkx-btn--ghost:hover {
	color: #fff !important;
	border-color: var(--tkx-accent);
	background: color-mix(in srgb, var(--tkx-accent) 12%, rgba(15, 23, 42, 0.7));
	transform: translateY(-2px);
}

.tkx-btn--ghost i { color: var(--tkx-accent); font-size: 13px; }

.tkx-btn:focus-visible,
.tkx-arrow:focus-visible,
.tkx-thumb-link:focus-visible { outline: 2px solid var(--tkx-accent); outline-offset: 3px; }

.tkx-nav {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tkx-arrow {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	border: 1px solid rgba(148, 163, 184, 0.22);
	background: rgba(15, 23, 42, 0.7);
	color: #e2e8f0;
	cursor: pointer;
	transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s var(--tkx-spring), box-shadow 0.3s ease;
}

.tkx-arrow:hover {
	border-color: var(--tkx-accent);
	color: #fff;
	transform: scale(1.08);
	box-shadow: 0 0 20px color-mix(in srgb, var(--tkx-accent) 35%, transparent);
}

.tkx-progress {
	flex: 1;
	height: 3px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.14);
	overflow: hidden;
}

.tkx-progress i {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--tkx-accent), #8b5cf6);
	box-shadow: 0 0 10px var(--tkx-accent);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

html[dir="rtl"] .tkx-progress i { transform-origin: 100% 50%; }

.tkx-progress i.is-running { animation: tkxProgress var(--tkx-dur, 7000ms) linear forwards; }
.tkx.is-paused .tkx-progress i,
.tkx.is-paused .tkx-thumb.is-active .tkx-thumb-bar { animation-play-state: paused; }

@keyframes tkxProgress { to { transform: scaleX(1); } }

.tkx-hint {
	margin: 14px 0 0;
	font-size: 12px;
	color: #475569;
	display: none;
	align-items: center;
	gap: 7px;
}

@media (hover: hover) and (pointer: fine) {
	.tkx-hint { display: flex; }
}

/* Swap animation for info content */
.tkx-info.is-swapping > * {
	animation: tkxInfoIn 0.75s var(--tkx-ease) both;
}

.tkx-info.is-swapping > :nth-child(2) { animation-delay: 0.06s; }
.tkx-info.is-swapping > :nth-child(3) { animation-delay: 0.12s; }
.tkx-info.is-swapping > :nth-child(4) { animation-delay: 0.18s; }
.tkx-info.is-swapping > :nth-child(5) { animation-delay: 0.24s; }

@keyframes tkxInfoIn {
	from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
	to { opacity: 1; transform: none; filter: none; }
}

/* --------------------------------------------------------------------------
   Rail
   -------------------------------------------------------------------------- */
.tkx-rail-wrap {
	position: relative;
	margin: 0 -24px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.tkx-rail {
	list-style: none;
	margin: 0;
	padding: 12px 24px 18px;
	display: flex;
	gap: 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.tkx-rail::-webkit-scrollbar { display: none; }

.tkx-thumb {
	flex: 0 0 236px;
	scroll-snap-align: start;
	animation: tkxThumbIn 0.6s var(--tkx-ease) both;
}

.tkx-thumb.is-hidden { display: none; }

@keyframes tkxThumbIn {
	from { opacity: 0; transform: translateY(16px) scale(0.96); }
	to { opacity: 1; transform: none; }
}

.tkx-thumb-link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 8px;
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.62);
	border: 1px solid rgba(148, 163, 184, 0.12);
	text-decoration: none !important;
	color: inherit;
	overflow: hidden;
	transition: transform 0.4s var(--tkx-ease), border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.tkx-thumb-link:hover {
	transform: translateY(-4px);
	border-color: rgba(148, 163, 184, 0.3);
	background: rgba(20, 30, 54, 0.8);
}

.tkx-thumb.is-active .tkx-thumb-link {
	border-color: color-mix(in srgb, var(--tkx-accent) 70%, transparent);
	background: linear-gradient(180deg, color-mix(in srgb, var(--tkx-accent) 12%, rgba(15, 23, 42, 0.85)), rgba(15, 23, 42, 0.85));
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 26px color-mix(in srgb, var(--tkx-accent) 25%, transparent);
}

.tkx-thumb-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 10px;
	overflow: hidden;
	background: #050913;
}

.tkx-thumb-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
	filter: saturate(0.75) brightness(0.8);
	transition: filter 0.4s ease, transform 0.6s var(--tkx-ease);
}

.tkx-thumb-link:hover img,
.tkx-thumb.is-active img { filter: none; transform: scale(1.05); }

.tkx-thumb-ph {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 26px;
	font-weight: 800;
	color: #fff;
	background:
		radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.45), transparent 60%),
		linear-gradient(135deg, #0b1430, #2a0f4a);
}

.tkx-thumb-txt {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 10px 4px 6px;
	min-width: 0;
}

.tkx-thumb-txt b {
	font-size: 14px;
	font-weight: 700;
	color: #f1f5f9;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tkx-thumb-txt small {
	font-size: 11.5px;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 6px;
}

.tkx-thumb.is-active .tkx-thumb-txt small { color: color-mix(in srgb, var(--tkx-accent) 75%, white); }

.tkx-thumb-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--tkx-accent), #8b5cf6);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

html[dir="rtl"] .tkx-thumb-bar { transform-origin: 100% 50%; }

.tkx-thumb.is-active .tkx-thumb-bar.is-running { animation: tkxProgress var(--tkx-dur, 7000ms) linear forwards; }

.tkx-foot {
	display: flex;
	justify-content: center;
	margin-top: 30px;
}

/* --------------------------------------------------------------------------
   Light theme
   -------------------------------------------------------------------------- */
html.light-theme .tkx,
body.light-theme .tkx {
	background: #f8fafc;
	color: #0f172a;
}

html.light-theme .tkx-title,
html.light-theme .tkx-name a,
body.light-theme .tkx-title,
body.light-theme .tkx-name a { color: #0f172a; }

html.light-theme .tkx-sub,
html.light-theme .tkx-desc,
body.light-theme .tkx-sub,
body.light-theme .tkx-desc { color: #475569; }

html.light-theme .tkx-filters,
html.light-theme .tkx-thumb-link,
html.light-theme .tkx-tech li,
html.light-theme .tkx-btn--ghost,
html.light-theme .tkx-arrow,
body.light-theme .tkx-filters,
body.light-theme .tkx-thumb-link,
body.light-theme .tkx-tech li,
body.light-theme .tkx-btn--ghost,
body.light-theme .tkx-arrow {
	background: #fff;
	border-color: rgba(15, 23, 42, 0.1);
	color: #0f172a !important;
}

html.light-theme .tkx-thumb-txt b,
body.light-theme .tkx-thumb-txt b { color: #0f172a; }

html.light-theme .tkx-thumb.is-active .tkx-thumb-link,
body.light-theme .tkx-thumb.is-active .tkx-thumb-link { background: #fff; }

html.light-theme .tkx-index b,
body.light-theme .tkx-index b {
	background: linear-gradient(135deg, #0f172a, #0284c7);
	-webkit-background-clip: text;
	background-clip: text;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.tkx-spot { gap: 40px; grid-template-columns: 1.1fr 1fr; }
}

@media (max-width: 991px) {
	.tkx { padding: 100px 0 70px; }
	.tkx-spot { grid-template-columns: 1fr; gap: 34px; }
	.tkx-visual { max-width: 680px; width: 100%; margin: 0 auto; }
	.tkx-info { text-align: center; }
	.tkx-meta, .tkx-actions { justify-content: center; }
	html[dir="rtl"] .tkx-tech, .tkx-tech { justify-content: center; }
	.tkx-hint { justify-content: center; }
}

@media (max-width: 640px) {
	.tkx-compare-tag { font-size: 11px; padding: 5px 12px; }
	.tkx-filters { margin-bottom: 30px; }
	.tkx-filter { padding: 9px 14px; font-size: 13px; }
	.tkx-fchip { display: none; }
	.tkx-name { font-size: 26px; }
	.tkx-desc { font-size: 14.5px; }
	.tkx-btn { padding: 12px 20px; font-size: 14px; }
	.tkx-actions { flex-direction: column; align-items: stretch; }
	.tkx-actions .tkx-btn { justify-content: center; }
	.tkx-thumb { flex-basis: 70%; }
}

@media (prefers-reduced-motion: reduce) {
	.tkx *,
	.tkx *::before,
	.tkx *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.tkx-progress i.is-running,
	.tkx-thumb.is-active .tkx-thumb-bar.is-running { animation-duration: var(--tkx-dur, 7000ms) !important; }
	.tkx-layer.is-tall img { animation: none !important; }
}
