@font-face {
	font-family: 'TT Autonomous';
	src: url('./materials/fonts/TT\ Autonomous\ Trial\ Light.ttf');
}

/* ===== DESIGN TOKENS ===== */
:root {
	--brand: #74808b;           /* Primary brand/muted color */
	--brand-10: rgba(116, 128, 139, 0.10);
	--brand-20: rgba(116, 128, 139, 0.20);
	--brand-30: rgba(116, 128, 139, 0.30);
}

/* ===== RESET & BASE ===== */

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

html {
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'TT Autonomous';
	background: #000;
	color: var(--brand);
	overflow-x: hidden;
	width: 100%;
	position: relative;
}

/* ── Global Scrollbar ── */
::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: rgba(116, 128, 139, 0.35);
	border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
	background: rgba(116, 128, 139, 0.55);
}

/* Firefox */
* {
	scrollbar-width: thin;
	scrollbar-color: rgba(116, 128, 139, 0.35) transparent;
}

img {
	pointer-events: none;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	max-width: 100%;
}

/* ===== HERO SECTION ===== */

.hero {
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.hero-top {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 25px;
	flex-shrink: 0;
}

.hero-bottom {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	padding: 25px;
	flex-shrink: 0;
}

.hero-center {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
	min-height: 0;
}

.flex-align {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 38px;
}

.social-icons {
	position: fixed;
	top: 25px;
	left: 76px;
	z-index: 1000;
	display: flex;
	width: max-content;
	align-items: center;
	gap: 23px;

	/* Offsets to cancel out padding so content stays precisely at left: 76, top: 25 */
	padding: 10px 20px;
	margin-top: -10px;
	margin-left: -20px;

	/* Transition for sliding to the center on mobile */
	transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1);
	transform: translateX(0);
}

/* Prevent flex items from shrinking and causing squished icons */
.social-icons>* {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Glassmorphism background expanding from center */
.social-icons::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 50px;
	z-index: -1;

	background: rgba(9, 10, 12, 0.55);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);

	/* Hidden and collapsed horizontally by default */
	transform: scaleX(0);
	opacity: 0;
	transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.4s ease;
}

.social-icons.scrolled::before {
	transform: scaleX(1);
	opacity: 1;
}

.social-icons img,
.social-icons svg {
	cursor: pointer;
	transition: filter 0.3s ease;
}

.social-icons img:hover,
.social-icons svg:hover {
	filter: brightness(1.5);
}

.hero-tags {
	font-size: 18px;
	letter-spacing: 2px;
	white-space: nowrap;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
}

.hero-tags-center {
	display: none;
}

.chevron-container {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.chevron-circle {
	width: 60px;
	height: 60px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(9, 10, 12, 0.55);
	backdrop-filter: blur(5px);
	animation: bounce 2s infinite;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes bounce {

	0%,
	20%,
	50%,
	80%,
	100% {
		transform: translateY(0);
	}

	40% {
		transform: translateY(-10px);
	}

	60% {
		transform: translateY(-5px);
	}
}

.mruser {
	background-image: url('./materials/images/mr.user.png');
	width: 100%;
	max-width: 100vw;
	height: 24.08vw;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
}

.flare-s {
	position: absolute;
	width: 30vw;
	top: 35%;
	left: 70%;
	pointer-events: none;
	transform: translate(-50%, -50%);
	animation: pulseFlare2 5s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes pulseFlare2 {
	0% {
		transform: translate(-50%, -50%) scale(1);
	}

	100% {
		transform: translate(-50%, -50%) scale(1.05);
	}
}

.corner {
	width: 31px;
	height: 31px;
	position: relative;
	flex-shrink: 0;
}

.corner-tr {
	transform: scaleX(-1);
}

.corner-bl {
	transform: scaleY(-1);
}

.corner-br {
	transform: scale(-1, -1);
}

/* ===== SECTION 2: About Me ===== */

.section-2 {
	width: 100%;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 80px;
	position: relative;
	overflow: visible;
}

.section-2 .left-col {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.section-2 .right-col {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 10;
}

.eternal-container {
	position: relative;
	width: 100%;
	max-width: 650px;
	aspect-ratio: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.eternal-wrapper {
	width: 100%;
	height: 100%;
	object-fit: contain;
	animation: rotateCircle 40s linear infinite;
	position: relative;
	z-index: 1;
	will-change: transform;
}

@keyframes rotateCircle {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.eternal-flare {
	position: absolute;
	width: min(600px, 90%);
	height: auto;
	top: 35%;
	left: 65%;
	transform: translate(-50%, -50%) rotate(15deg);
	pointer-events: none;
	animation: pulseFlare 5s ease-in-out infinite alternate;
	z-index: 10;
	will-change: transform;
}

@keyframes pulseFlare {
	0% {
		transform: translate(-50%, -50%) rotate(15deg) scale(1);
	}

	100% {
		transform: translate(-50%, -50%) rotate(15deg) scale(1.05);
	}
}

@keyframes pulseFlareContact {
	0% {
		transform: rotate(90deg) scale(1);
	}

	100% {
		transform: rotate(90deg) scale(1.05);
	}
}

.eternal-flare-2 {
	position: absolute;
	width: min(350px, 55%);
	height: auto;
	top: -5%;
	left: 70%;
	transform: translate(-50%, 0);
	pointer-events: none;
	z-index: 10;
}

/* About Text */
.about-content {
	max-width: 550px;
	position: relative;
	top: -50px;
}

.about-text-container {
	position: relative;
	z-index: 1;
}

.about-elem {
	position: absolute;
	pointer-events: none;
	z-index: 0;
	filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.elem-1 {
	top: 100px;
	right: -100px;
	width: 300px;
	transform: rotate(-15deg);
}

.elem-2 {
	top: 60%;
	left: -130px;
	width: 250px;
	transform: translateY(-50%) rotate(-10deg);
}

.about-title {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: bold;
	letter-spacing: 4px;
	margin-bottom: 40px;
	text-align: center;
	color: #c7c7c7;
}

.about-text p {
	font-size: clamp(15px, 1.5vw, 18px);
	line-height: 1.6;
	margin-bottom: 20px;
	color: #c7c7c7;
}

.flare-right {
	position: absolute;
	right: 0;
	top: 40%;
	width: min(700px, 50vw);
	pointer-events: none;
	z-index: 20;
	animation: pulseFlare3 5s ease-in-out infinite alternate;
}

@keyframes pulseFlare3 {
	0% {
		transform: translate(30%, -50%) rotate(-25deg) scale(1);
	}

	100% {
		transform: translate(30%, -50%) rotate(-25deg) scale(1.05);
	}
}

/* ===== SECTION 3: Portfolio ===== */

.section-3 {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	overflow: hidden;
	background: #000;
}

.portfolio-wrapper {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.portfolio-img {
	width: 95%;
	max-width: 1800px;
	object-fit: contain;
}

.flare-port-left {
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%) rotate(-25deg);
	width: min(1800px, 120vw);
	pointer-events: none;
	z-index: 10;
	animation: pulseFlare4 3s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes pulseFlare4 {
	0% {
		transform: translate(-50%, -50%) rotate(-25deg) scale(1);
	}

	100% {
		transform: translate(-50%, -50%) rotate(-25deg) scale(1.05);
	}
}

.flare-port-right {
	position: absolute;
	left: 15%;
	top: 75%;
	transform: translate(50%, -50%) rotate(15deg);
	width: min(1500px, 100vw);
	pointer-events: none;
	z-index: 10;
	animation: pulseFlare5 3s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes pulseFlare5 {
	0% {
		transform: translate(50%, -50%) rotate(15deg) scale(1);
	}

	100% {
		transform: translate(50%, -50%) rotate(15deg) scale(1.05);
	}
}

.take-a-look-container {
	position: relative;
	margin-top: 120px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.take-a-look-btn {
	color: #ffffff;
	font-family: 'TT Autonomous';
	font-size: clamp(28px, 4vw, 54px);
	letter-spacing: 2px;
	padding: 15px 50px;
	border-radius: 50px;
	background: #74808b2a;
	border: 1px solid rgba(255, 255, 255, 0.192);
	backdrop-filter: blur(10px);
	position: relative;
	z-index: 2;
	cursor: pointer;
	transition: all 0.1s ease;
	display: inline-block;
	text-decoration: none;
}

.take-a-look-btn:hover {
	background: #74808b5b;
}

.flare-take-a-look {
	position: absolute;
	left: 47%;
	top: 65%;
	width: min(500px, 80vw);
	pointer-events: none;
	z-index: 10;
	animation: pulseFlare6 5s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes pulseFlare6 {
	0% {
		transform: translate(-50%, -50%) rotate(-90deg) scale(1);
	}

	100% {
		transform: translate(-50%, -50%) rotate(-90deg) scale(1.05);
	}
}

.flare-take-a-look-2 {
	position: absolute;
	left: 37%;
	top: 50%;
	width: min(450px, 70vw);
	filter: blur(1.5px);
	opacity: 0.5;
	pointer-events: none;
	z-index: 10;
	animation: pulseFlare7 5s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes pulseFlare7 {
	0% {
		transform: translate(-50%, -50%) rotate(-30deg) scale(1);
	}

	100% {
		transform: translate(-50%, -50%) rotate(-27deg) scale(1.05);
	}
}

/* ===== SECTION 4: Contact ===== */

.section-4 {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	position: relative;
	overflow: hidden;
	background: #000;
	padding: 50px 30px;
}

.message-me-container {
	position: relative;
	width: 100%;
	display: flex;
	justify-content: center;
	z-index: 10;
}

.message-me-img {
	width: 94%;
	max-width: 1800px;
	object-fit: contain;
}

.contact-icons {
	position: relative;
	display: flex;
	gap: 60px;
	margin-top: 40px;
	margin-left: 10vw;
	align-self: flex-start;
	z-index: 10;
}

.contact-icons img {
	width: 110px;
	height: auto;
	cursor: pointer;
	transition: filter 0.3s ease;
}

.contact-icons img:hover {
	filter: brightness(1.5);
}

.flare-contact-1 {
	position: absolute;
	right: 0;
	bottom: -40%;
	width: min(800px, 60vw);
	pointer-events: none;
	z-index: 15;
	mix-blend-mode: screen;
	animation: pulseFlareContact 6s ease-in-out infinite alternate;
}

/* Order Form */
.order-form,
.form-send-container {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 730px;
	margin-top: 80px;
	background: #74808b2a;
	border: 1px solid rgba(255, 255, 255, 0.192);
	border-radius: 18px;
	padding: 8px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	position: relative;
	z-index: 20;
}

.form-send-container {
	margin-top: 10px;
}

.form-row {
	display: flex;
	gap: 8px;
}

.form-input {
	background: #74808b3d;
	border: 1px solid rgba(255, 255, 255, 0.192);
	border-radius: 10px;
	color: #74808b;
	font-family: 'TT Autonomous', sans-serif;
	font-size: 18px;
	padding: 16px 20px;
	outline: none;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input::placeholder {
	color: #74808b;
	font-style: italic;
}

.form-input:focus {
	border-color: rgba(116, 128, 139, 0.55);
	background: rgba(68, 78, 89, 0.6);
}

.form-textarea {
	height: 150px;
	resize: none;
	overflow-y: auto;
}

/* Custom scrollbar for textarea */
.form-textarea::-webkit-scrollbar {
	width: 6px;
}

.form-textarea::-webkit-scrollbar-track {
	background: transparent;
}

.form-textarea::-webkit-scrollbar-thumb {
	background: rgba(116, 128, 139, 0.4);
	border-radius: 10px;
}

.form-textarea::-webkit-scrollbar-thumb:hover {
	background: rgba(116, 128, 139, 0.6);
}

.form-send-btn {
	background: rgba(68, 78, 89, 0.55);
	border: 1px solid rgba(116, 128, 139, 0.2);
	border-radius: 10px;
	color: #fff;
	font-family: 'TT Autonomous', sans-serif;
	font-size: 22px;
	letter-spacing: 2px;
	padding: 16px;
	cursor: pointer;
	transition: background 0.2s ease;
	width: 100%;
}

.form-send-btn:hover {
	background: rgba(90, 100, 112, 0.75);
}

.form-send-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Toast Notification */
.toast {
	position: fixed;
	bottom: 40px;
	left: 50%;
	transform: translateX(-50%) translateY(30px);
	padding: 16px 32px;
	border-radius: 14px;
	font-family: 'TT Autonomous', sans-serif;
	font-size: 16px;
	letter-spacing: 0.5px;
	color: #fff;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	z-index: 9999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.toast-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.toast-success {
	background: rgba(34, 197, 94, 0.25);
	border: 1px solid rgba(34, 197, 94, 0.4);
}

.toast-error {
	background: rgba(239, 68, 68, 0.25);
	border: 1px solid rgba(239, 68, 68, 0.4);
}

/* ===== TABLET BREAKPOINT ===== */
@media (max-width: 1350px) {
	.mobile-hide {
		display: none !important;
	}

	/* --- Hero Section --- */
	.hero {
		height: 100svh;
	}

	.hero-top {
		padding: 25px 30px;
		align-items: center;
	}

	.hero-bottom {
		padding: 25px 30px;
		align-items: center;
	}

	.flex-align {
		height: 32px;
	}

	.social-icons {
		gap: 25px;
		left: 83px;
		margin-left: -25px;
		padding: 10px 25px;
	}

	.social-icons.scrolled {
		left: 50%;
		margin-left: 0;
		transform: translateX(-50%);
	}

	.social-icons img,
	.social-icons svg,
	.social-icons>a {
		width: 32px !important;
		height: 32px !important;
	}

	.corner {
		width: 28px;
		height: 28px;
	}

	.hero-center {
		margin-top: -30px;
		gap: 5px;
	}

	.mruser {
		width: 85vw;
		height: calc(85vw * 0.2408);
	}

	.hero-tags-center {
		display: block;
		font-size: 20px;
		letter-spacing: 1.5px;
		color: #74808b;
		text-align: center;
		white-space: nowrap;
		margin-top: 10px;
	}

	.chevron-container {
		display: flex;
		justify-content: center;
		margin-top: 80px;
	}

	.chevron-circle {
		width: 70px;
		height: 70px;
		animation: bounce 2s infinite;
	}

	@keyframes bounce {

		0%,
		20%,
		50%,
		80%,
		100% {
			transform: translateY(0);
		}

		40% {
			transform: translateY(-10px);
		}

		60% {
			transform: translateY(-5px);
		}
	}

	.section-2 {
		padding: 60px 40px;
	}

	.eternal-container {
		max-width: 400px;
	}

	.about-content {
		max-width: 450px;
		top: 0;
	}

	.elem-1 {
		right: -60px;
		width: 200px;
	}

	.elem-2 {
		left: -80px;
		width: 180px;
	}

	.flare-right {
		width: min(500px, 40vw);
	}

	.take-a-look-container {
		margin-top: 80px;
	}

	.section-3 {
		overflow: visible;
		z-index: 5;
	}

	.section-4 {
		z-index: 1;
	}
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

	/* --- Hero Section --- */
	.social-icons,
	.social-icons.scrolled {
		left: 50% !important;
		transform: translateX(-50%) !important;
		margin-left: 0 !important;
	}

	.hero-tags-center {
		display: block;
		font-size: 11px;
		letter-spacing: 1.5px;
		color: #74808b;
		text-align: center;
		white-space: nowrap;
		margin-top: 10px;
	}

	.hero-center {
		margin-top: -30px;
		gap: 5px;
	}

	.mruser {
		width: 85vw;
		height: calc(85vw * 0.2408);
	}

	.chevron-container {
		display: flex;
		justify-content: center;
		margin-top: 80px;
	}

	/* --- Section 2: About Me --- */
	.section-2 {
		flex-direction: column;
		padding: 80px 30px;
		min-height: auto;
		gap: 0;
		overflow: hidden;
	}

	.section-2 .left-col {
		position: absolute;
		width: 100%;
		height: 100%;
		top: 0;
		left: 0;
		z-index: 1;
		flex: none;
		opacity: 0.1;
		pointer-events: none;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.section-2 .right-col {
		flex: none;
		width: 100%;
		z-index: 10;
	}

	.eternal-container {
		width: 100%;
		max-width: none;
	}

	.about-content {
		max-width: 100%;
		top: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.about-elem {
		display: block;
		opacity: 0.3;
	}

	.elem-1 {
		width: 200px;
		top: 20px;
		right: -30px;
	}

	.elem-2 {
		width: 200px;
		left: -40px;
		top: 60%;
	}

	.about-title {
		font-size: 38px;
		letter-spacing: 2px;
		margin-bottom: 35px;
		text-align: center;
	}

	.about-text p {
		font-size: 15px;
		line-height: 1.8;
		margin-bottom: 25px;
		text-align: justify;
		text-justify: inter-word;
		color: rgba(255, 255, 255, 0.85);
	}

	.flare-right {
		width: min(600px, 80vw);
		right: -5%;
		top: 30%;
	}

	/* --- Section 3: Portfolio --- */
	.section-3 {
		min-height: auto;
		padding: 80px 0;
	}

	.portfolio-img {
		width: 90%;
	}

	.flare-port-left {
		width: min(400px, 100vw);
	}

	.flare-port-right {
		width: min(350px, 90vw);
	}

	.take-a-look-container {
		margin-top: 60px;
	}

	.take-a-look-btn {
		font-size: 28px;
		padding: 15px 40px;
	}

	.flare-take-a-look {
		width: min(300px, 70vw);
	}

	.flare-take-a-look-2 {
		width: min(250px, 60vw);
	}

	/* --- Section 4: Contact --- */
	.section-4 {
		min-height: auto;
		padding: 100px 30px 60px;
		overflow: hidden;
	}

	.message-me-container {
		margin-bottom: 40px;
	}

	.message-me-img {
		width: 100%;
		display: block;
		margin: 0 auto;
	}

	.order-form {
		width: 100%;
		max-width: 100%;
		margin-top: 0;
		padding: 0;
		background: none;
		border: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.form-row {
		flex-direction: column;
		gap: 12px;
	}

	.form-input {
		font-size: 15px;
		padding: 18px 20px;
		background: rgba(255, 255, 255, 0.05);
		border: 1px solid rgba(255, 255, 255, 0.15);
		border-radius: 12px;
	}

	.form-textarea {
		height: 200px;
		margin-top: 12px;
	}

	.form-send-container {
		margin-top: 25px;
		width: 100%;
		padding: 0;
		background: none;
		border: none;
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	.form-send-btn {
		font-size: 20px;
		padding: 18px;
		border-radius: 40px;
		background: rgba(255, 255, 255, 0.08);
		border: 1px solid rgba(255, 255, 255, 0.2);
	}

	.flare-contact-1 {
		width: min(500px, 80vw);
		right: -20%;
		bottom: -20%;
	}
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 420px) {

	.hero-top,
	.hero-bottom {
		padding: 20px;
	}

	.social-icons {
		gap: 18px;
		top: 20px;
		left: 50% !important;
		transform: translateX(-50%) !important;
		margin-left: 0 !important;
		padding: 10px 18px;
	}

	.social-icons img,
	.social-icons svg,
	.social-icons>a {
		width: 28px !important;
		height: 28px !important;
	}

	.corner {
		width: 24px;
		height: 24px;
	}

	.section-2 {
		padding: 60px 20px;
	}

	.section-3 {
		padding: 60px 0;
	}

	.section-4 {
		padding: 80px 20px 40px;
	}

	.portfolio-img {
		width: 92%;
	}

	.hero-tags-center {
		font-size: 9px;
	}

	.about-title {
		font-size: 32px;
	}

	.about-text p {
		font-size: 14px;
	}

	.take-a-look-btn {
		font-size: 24px;
		padding: 12px 30px;
	}

	.chevron-container {
		margin-top: 50px;
	}

	.chevron-circle {
		width: 55px;
		height: 55px;
	}
}

/* ===== PORTFOLIO PAGE ===== */
.portfolio-page-wrapper {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow-x: hidden;
	background: #000;
}

.portfolio-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 150px 5vw 100px;
	position: relative;
	z-index: 10;
}

.portfolio-page-title {
	font-size: clamp(32px, 5vw, 64px);
	font-weight: bold;
	text-shadow: 0px 0px 80px rgb(0, 0, 0);
	letter-spacing: 4px;
	color: #74808b;
	margin-bottom: 80px;
	display: flex;
	align-items: center;
	gap: 20px;
	justify-content: center;
	text-align: center;
	text-transform: uppercase;
}

.portfolio-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 40px;
	width: 100%;
	max-width: 1400px;
}

.portfolio-item {
	background: rgba(9, 10, 12, 0.55);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	border-radius: 24px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 25px;
	transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}

.portfolio-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.portfolio-item:hover {
	transform: translateY(-10px);
	background: rgba(116, 128, 139, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-item:hover::before {
	opacity: 1;
}

.portfolio-preview {
	width: 100%;
	aspect-ratio: 16 / 10;
	background: rgba(31, 34, 41, 0.55);
	border-radius: 16px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 24px;
	letter-spacing: 2px;
	color: rgba(116, 128, 139, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.03);
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
	overflow: hidden;
	position: relative;
}

.portfolio-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
}

.portfolio-preview>span:not([class]) {
	position: relative;
	z-index: 1;
}

.portfolio-preview:has(img)>span:not([class]) {
	display: none;
}

.portfolio-item-title {
	font-size: 26px;
	color: #74808b;
	margin: 0;
	letter-spacing: 1px;
}

.portfolio-item-desc {
	font-size: 16px;
	color: #74808b;
	margin: 0;
	line-height: 1.6;
}

.flare-port-bg {
	position: fixed;
	top: -35%;
	right: -12%;
	left: auto;
	width: min(750px, 80vw);
	pointer-events: none;
	z-index: 0;
	opacity: 0.55;
	transform: rotate(35deg);
	animation: pulseFlarePortBg 8s ease-in-out infinite alternate;
}

@keyframes pulseFlarePortBg {
	0% {
		transform: rotate(35deg) scale(1);
	}

	100% {
		transform: rotate(35deg) scale(1.06);
	}
}

.flare-port-bg-2 {
	position: fixed;
	bottom: -35%;
	left: -12%;
	right: auto;
	width: min(750px, 80vw);
	pointer-events: none;
	z-index: 0;
	opacity: 0.55;
	transform: scale(-1) rotate(35deg);
	animation: pulseFlarePortBg2 8s ease-in-out infinite alternate;
}

@keyframes pulseFlarePortBg2 {
	0% {
		transform: scale(-1) rotate(35deg) scale(1);
	}

	100% {
		transform: scale(-1) rotate(35deg) scale(1.06);
	}
}

.back-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.3s ease, transform 0.3s ease;
	margin-right: 5px;
}

.back-btn:hover {
	color: #fff;
	transform: translateX(-3px);
}

/* ===== PORTFOLIO ITEM LINK BUTTON ===== */
.portfolio-item-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.portfolio-item-link {
	display: inline-block;
	margin-top: 6px;
	padding: 9px 22px;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(116, 128, 139, 0.1);
	color: #74808b;
	font-family: 'TT Autonomous';
	font-size: 14px;
	letter-spacing: 1.5px;
	text-decoration: none;
	align-self: flex-start;
	transition: all 0.25s ease;
}

.portfolio-item-link:hover {
	background: rgba(116, 128, 139, 0.22);
	border-color: rgba(255, 255, 255, 0.3);
	color: #74808b;
	transform: translateX(3px);
}

/* (Admin styles defined below in the unified admin section) */

/* ===== PORTFOLIO CARD — TEXT TRUNCATION ===== */

.portfolio-item-content {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.portfolio-item-desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Подсказка "View Project" на карточке — правый низ превью */
.portfolio-item-link--hint {
	position: absolute;
	bottom: 10px;
	right: 10px;
	z-index: 5;
	font-size: 11px;
	color: #74808b;
	letter-spacing: 1.2px;
	font-family: 'TT Autonomous';
	padding: 6px 14px;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(9, 10, 12, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	transition: all 0.3s ease;
	opacity: 0;
	transform: translateY(4px);
	pointer-events: none;
}

/* Контейнер для нескольких подсказок (например, дата + ссылка) */
.portfolio-hints-container {
	position: absolute;
	bottom: 10px;
	left: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 5;
	opacity: 0;
	transform: translateY(4px);
	transition: all 0.3s ease;
	pointer-events: none;
}

.portfolio-hints-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.portfolio-hints-container .portfolio-item-link--hint,
.portfolio-hints-container .admin-case-tag {
	position: static;
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.portfolio-hints-container .admin-case-tag {
	background: rgba(9, 10, 12, 0.6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-color: rgba(255, 255, 255, 0.15);
	padding: 6px 14px;
	border-radius: 50px;
	font-size: 11px;
	height: auto;
}

/* Colored tag badge inside the hints overlay — override absolute positioning */
.portfolio-hints-container .portfolio-tag-badge {
	position: static;
	opacity: 1;
	transform: none;
	pointer-events: none;
	font-size: 10px;
	padding: 5px 12px;
}

.portfolio-item:hover .portfolio-item-link--hint,
.portfolio-item:hover .portfolio-hints-container {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.portfolio-item-link--hint:hover {
	background: rgba(116, 128, 139, 0.3);
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

/* Кнопка-ссылка (в модалке) */
.portfolio-item-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 24px;
	border-radius: 50px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(116, 128, 139, 0.1);
	color: #74808b;
	font-family: 'TT Autonomous';
	font-size: 14px;
	letter-spacing: 1.5px;
	text-decoration: none;
	align-self: flex-start;
	transition: all 0.25s ease;
	cursor: pointer;
}

.portfolio-item-link:hover {
	background: rgba(116, 128, 139, 0.22);
	border-color: rgba(255, 255, 255, 0.3);
	color: #74808b;
	transform: translateX(3px);
}


/* ===== CASE MODAL ===== */

.case-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.78);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	z-index: 500;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.case-modal-overlay.open {
	opacity: 1;
	pointer-events: all;
}

.case-modal {
	background: rgba(9, 10, 12, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	/* паддинг: сверху больше — под кнопки (View Project и Закрыть) */
	padding: 70px 36px 36px;
	transform: translateY(20px) scale(0.98);
	transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
	scrollbar-width: none;
}

.case-modal::-webkit-scrollbar {
	display: none;
}

.case-modal-overlay.open .case-modal {
	transform: translateY(0) scale(1);
}

/* ── Кнопка (крестик / назад) — правый верхний угол ── */
.case-modal-btn {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(116, 128, 139, 0.12);
	color: #74808b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 100;
}

.case-modal-btn:hover {
	background: rgba(116, 128, 139, 0.28);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

/* ── Обычный вид: вертикальный ── */
.case-modal-default {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cm-hidden {
	display: none !important;
}

.cm-visible {
	display: flex !important;
}

/* Превью */
.case-modal-preview-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(31, 34, 41, 0.6);
	border: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
}

.case-modal-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	cursor: zoom-in;
	pointer-events: auto;
	transition: transform 0.4s ease, filter 0.4s ease;
}

.case-modal-thumb:hover {
	transform: scale(1.04);
	filter: brightness(1.1);
}

/* Инфо-блок */
.case-modal-info {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.case-modal-title {
	font-size: clamp(18px, 3vw, 26px);
	font-weight: bold;
	letter-spacing: 2px;
	color: #74808b;
	margin: 0;
	word-break: break-word;
}

.case-modal-desc {
	font-size: 15px;
	color: #74808b;
	line-height: 1.8;
	margin: 0;
	word-break: break-word;
	overflow-wrap: break-word;
	white-space: pre-wrap;
}

.case-modal-link {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 90;
	margin: 0;
	white-space: nowrap;
	height: 38px;
	display: inline-flex;
	align-items: center;
	padding: 0 20px;
}

/* ── Полное изображение ── */
.case-modal-fullimg {
	position: relative;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	width: 100%;
	height: 100%;
}

/* Изменения модалки при полноэкранной картинке */
.case-modal.is-full-img {
	width: 100vw;
	max-width: 100vw;
	max-height: 100vh;
	overflow: hidden;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	display: flex;
	flex-direction: column;
}

.case-modal.is-full-img .case-modal-fullimg {
	flex: 1;
	overflow: hidden;
	align-items: center;
	justify-content: center;
}


/* ── Мобильная версия ── */
@media (max-width: 600px) {
	.case-modal-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.case-modal {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 24px 24px 0 0;
		padding: 70px 22px 32px;
		transform: translateY(100%);
	}

	.case-modal-overlay.open .case-modal {
		transform: translateY(0) scale(1);
	}

	.case-modal-preview-wrap {
		aspect-ratio: 16 / 9;
	}

	.case-modal-title {
		font-size: 20px;
	}

	.case-modal-desc {
		font-size: 14px;
	}

	/* Full image на мобильном */
	.case-modal.is-full-img {
		width: 100%;
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
		padding: 0;
	}

	.case-modal.is-full-img .case-modal-fullimg {
		max-height: 100vh;
	}

	/* View Project на мобильном — скрыть текст, сделать компактнее */
	.case-modal-link {
		top: 10px;
		left: 10px;
		font-size: 12px;
		padding: 0 14px;
		height: 34px;
	}

	.case-modal-btn {
		top: 10px;
		right: 10px;
		width: 34px;
		height: 34px;
	}
}


/* ===== ADMIN PAGE ===== */

.admin-page {
	--surface: rgba(9, 10, 12, 0.8);
	--border: rgba(255, 255, 255, 0.08);
	--accent: rgba(116, 128, 139, 0.3);
	--accent-hover: rgba(116, 128, 139, 0.5);
	--danger: rgba(224, 82, 82, 0.6);
	--danger-hover: rgba(224, 82, 82, 0.8);
	--success: rgba(76, 175, 114, 0.6);
	--text: #74808b;
	--muted: #74808b;
	--radius: 18px;
	font-size: 14px;
	line-height: 1.6;
	height: 100vh;
	overflow: hidden;
}

header {
	background: rgba(9, 10, 12, 0.55);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	padding: 0 40px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 100;
}

header h1 {
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #74808b;
	cursor: default;
}

header h1 span {
	color: #fff;
}

#api-status {
	padding: 4px 12px;
	border-radius: 50px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 11px;
	letter-spacing: 1px;
	font-weight: bold;
	text-transform: uppercase;
	transition: all 0.3s ease;
}

#api-status.admin-ok {
	color: #4caf72;
	border-color: rgba(76, 175, 114, 0.3);
	background: rgba(76, 175, 114, 0.05);
}

#api-status.admin-error {
	color: #e05252;
	border-color: rgba(224, 82, 82, 0.3);
	background: rgba(224, 82, 82, 0.05);
}

.admin-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 50px 24px;
	position: relative;
	z-index: 1;
}

.admin-flare-admin-bg {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	opacity: 0.4;
	pointer-events: none;
	z-index: 0;
	filter: blur(40px);
}

.admin-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	font-family: 'TT Autonomous', sans-serif;
	letter-spacing: 1px;
	transition: all 0.2s ease;
}

.admin-btn img {
	display: block;
	flex-shrink: 0;
}

.admin-btn:active {
	transform: scale(0.97);
}

.admin-btn-primary {
	background: var(--accent);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.192);
}

.admin-btn-primary:hover {
	background: var(--accent-hover);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.admin-btn-danger {
	background: var(--danger);
	color: #fff;
	border-color: transparent;
}

.admin-btn-danger:hover {
	background: var(--danger-hover);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.admin-btn-ghost {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

.admin-btn-ghost:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.2);
}

.admin-btn-sm {
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 8px;
}

.admin-form-card {
	background: var(--surface);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 24px;
	padding: 35px;
	margin-bottom: 40px;
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.admin-form-card h2 {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 25px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #74808b;
}

.admin-form-group {
	margin-bottom: 22px;
}

.admin-container label {
	display: block;
	font-size: 13px;
	color: var(--muted);
	letter-spacing: 1px;
	margin-bottom: 10px;
}

.admin-label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.admin-char-count {
	font-size: 12px;
	color: var(--muted);
}

.admin-char-count.admin-over {
	color: var(--danger);
}

.admin-container input[type="text"],
.admin-container input[type="url"],
.admin-container input[type="password"],
.admin-container textarea {
	width: 100%;
	background: #74808b3d;
	border: 1px solid rgba(255, 255, 255, 0.192);
	border-radius: 12px;
	color: #74808b;
	font-size: 16px;
	font-family: 'TT Autonomous', sans-serif;
	padding: 14px 18px;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-container input:focus,
.admin-container textarea:focus {
	border-color: rgba(116, 128, 139, 0.55);
	background: rgba(68, 78, 89, 0.6);
}

.admin-container input::placeholder,
.admin-container textarea::placeholder {
	color: #74808b;
	font-style: italic;
}

.admin-container textarea {
	resize: vertical;
	min-height: 120px;
}

.admin-container textarea::-webkit-scrollbar {
	width: 6px;
}

.admin-container textarea::-webkit-scrollbar-track {
	background: transparent;
}

.admin-container textarea::-webkit-scrollbar-thumb {
	background: rgba(116, 128, 139, 0.4);
	border-radius: 10px;
}

.admin-upload-zone {
	border: 2px dashed rgba(255, 255, 255, 0.192);
	border-radius: 16px;
	padding: 30px;
	text-align: center;
	cursor: pointer;
	background: rgba(116, 128, 139, 0.05);
	transition: all 0.2s ease;
	position: relative;
}

.admin-upload-zone:hover,
.admin-upload-zone.admin-drag {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(116, 128, 139, 0.15);
}

.admin-upload-zone input[type="file"] {
	display: none;
}

.admin-upload-zone .admin-hint {
	color: var(--text);
	font-size: 14px;
	margin-top: 8px;
	letter-spacing: 1px;
}

.admin-img-preview {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 15px;
	padding: 15px;
	background: rgba(116, 128, 139, 0.1);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-img-preview img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 8px;
}

.admin-img-preview .admin-img-name {
	font-size: 14px;
	flex: 1;
	word-break: break-all;
	color: var(--text);
}

.admin-img-preview .admin-remove-img {
	cursor: pointer;
	color: var(--danger);
	font-size: 18px;
	transition: transform 0.2s;
}

.admin-img-preview .admin-remove-img:hover {
	transform: scale(1.2);
}

.admin-current-img-preview {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px;
	background: rgba(116, 128, 139, 0.1);
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 12px;
}

.admin-current-img-preview img {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 8px;
}

.admin-current-img-preview .admin-img-label {
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 5px;
}

.admin-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.admin-form-actions {
	display: flex;
	gap: 12px;
	margin-top: 30px;
}

#toast {
	position: fixed;
	bottom: 30px;
	right: 30px;
	background: rgba(9, 10, 12, 0.85);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	padding: 15px 24px;
	font-size: 14px;
	letter-spacing: 1px;
	max-width: 350px;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: none;
	z-index: 999;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#toast.admin-show {
	opacity: 1;
	transform: translateY(0);
}

#toast.admin-success {
	border-color: var(--success);
	color: #fff;
}

#toast.admin-error {
	border-color: var(--danger);
	color: #fff;
}

.admin-section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 25px;
}

.admin-section-header h2 {
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #74808b;
}

.admin-cases-count {
	background: rgba(116, 128, 139, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	padding: 4px 14px;
	font-size: 13px;
	font-weight: bold;
	color: #fff;
}

.admin-cases-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.admin-case-card {
	background: var(--surface);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: var(--radius);
	padding: 24px;
	display: grid;
	grid-template-columns: 80px 1fr auto;
	gap: 24px;
	align-items: center;
	transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.admin-case-card:hover {
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(116, 128, 139, 0.12);
	transform: translateY(-4px);
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.admin-case-thumb {
	width: 80px;
	height: 80px;
	border-radius: 12px;
	object-fit: cover;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.05);
	flex-shrink: 0;
}

.admin-case-placeholder {
	width: 80px;
	height: 80px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.05);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	color: var(--muted);
	flex-shrink: 0;
}

.admin-case-info {
	min-width: 0;
}

.admin-case-title {
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #fff;
	letter-spacing: 1px;
}

.admin-case-desc {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}

.admin-case-meta {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.admin-case-tag {
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: #74808b;
	background: rgba(0, 0, 0, 0.2);
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 5px;
}

.admin-case-tag.admin-has-link {
	border-color: rgba(255, 255, 255, 0.08);
	color: #74808b;
}

.admin-case-actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex-shrink: 0;
}

.admin-empty-state {
	text-align: center;
	padding: 60px 24px;
	color: var(--muted);
	border: 1px dashed rgba(255, 255, 255, 0.15);
	border-radius: var(--radius);
	background: rgba(116, 128, 139, 0.03);
	font-size: 16px;
	letter-spacing: 1px;
}

.admin-empty-state .admin-icon {
	font-size: 40px;
	margin-bottom: 15px;
	opacity: 0.5;
}

.admin-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(8px);
	z-index: 200;
	align-items: center;
	justify-content: center;
}

.admin-modal-overlay.admin-open {
	display: flex;
}

.admin-modal {
	background: rgba(15, 16, 20, 0.95);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 24px;
	padding: 35px;
	width: 400px;
	max-width: 90vw;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	text-align: center;
}

.admin-modal h3 {
	font-size: 18px;
	margin-bottom: 12px;
	color: #fff;
	font-weight: bold;
	letter-spacing: 1px;
}

.admin-modal p {
	color: var(--muted);
	font-size: 14px;
	margin-bottom: 25px;
	line-height: 1.5;
}

.admin-modal-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}

@media (max-width: 600px) {
	.admin-form-row {
		grid-template-columns: 1fr;
	}

	.admin-case-card {
		grid-template-columns: 60px 1fr;
	}

	.admin-case-actions {
		flex-direction: row;
		grid-column: 1/-1;
		margin-top: 10px;
	}

	.admin-container {
		padding: 30px 15px;
	}
}

/* Sidebar Layout */
.admin-layout {
	display: flex;
	min-height: calc(100vh - 70px);
	position: relative;
}

.admin-sidebar {
	width: 250px;
	background: rgba(9, 10, 12, 0.6);
	border-right: 1px solid rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	padding: 30px 20px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
	z-index: 90;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.admin-sidebar-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding-top: 16px;
	margin-top: 20px;
}

.admin-content-wrapper {
	flex: 1;
	min-width: 0;
	overflow-y: auto;
	height: calc(100vh - 70px);
}

.admin-sidebar-menu {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.admin-sidebar-item {
	background: transparent;
	border: none;
	padding: 12px 20px;
	color: var(--muted);
	font-size: 16px;
	font-family: 'TT Autonomous', sans-serif;
	letter-spacing: 1px;
	text-align: left;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 12px;
}

.admin-sidebar-item:hover {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
}

.admin-sidebar-item.active {
	background: var(--accent);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-only {
	display: none;
}

.admin-sidebar-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	position: absolute;
	top: 15px;
	right: 15px;
	cursor: pointer;
}

.admin-hamburger {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	padding: 0;
	margin-right: 15px;
}

@media (max-width: 768px) {
	.mobile-only {
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.admin-sidebar {
		position: fixed;
		top: 70px;
		bottom: 0;
		left: 0;
		transform: translateX(-100%);
		padding-top: 30px;
	}

	.admin-sidebar.open {
		transform: translateX(0);
	}
}

/* ===== LOGIN SCREEN ===== */

.admin-login-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(9, 10, 12, 0.97);
	transition: opacity 0.5s ease, visibility 0.5s ease;
}

.admin-login-overlay.hidden {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.admin-login-card {
	background: rgba(9, 10, 12, 0.82);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 28px;
	padding: 50px 44px;
	width: 420px;
	max-width: 90vw;
	backdrop-filter: blur(24px);
	-webkit-backdrop-filter: blur(24px);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	animation: loginAppear 0.6s cubic-bezier(0.2, 1, 0.3, 1);
	position: relative;
	z-index: 1;
}

@keyframes loginAppear {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.97);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.admin-login-header {
	text-align: center;
	margin-bottom: 40px;
}

.admin-login-header h1 {
	font-size: 26px;
	font-weight: bold;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: #74808b;
	margin-bottom: 10px;
}

.admin-login-header h1 span {
	color: #fff;
}

.admin-login-header p {
	color: #74808b;
	font-size: 12px;
	letter-spacing: 3px;
	text-transform: uppercase;
}

.admin-login-field {
	margin-bottom: 24px;
}

.admin-login-field label {
	display: block;
	font-size: 12px;
	color: #74808b;
	letter-spacing: 1.5px;
	margin-bottom: 10px;
	text-transform: uppercase;
}

.admin-login-field input[type="password"] {
	width: 100%;
	background: rgba(116, 128, 139, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 14px;
	color: #fff;
	font-size: 16px;
	font-family: 'TT Autonomous', sans-serif;
	padding: 16px 20px;
	outline: none;
	transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
	letter-spacing: 2px;
}

.admin-login-field input[type="password"]:focus {
	border-color: rgba(116, 128, 139, 0.5);
	background: rgba(116, 128, 139, 0.18);
	box-shadow: 0 0 0 3px rgba(116, 128, 139, 0.08);
}

.admin-login-field input[type="password"]::placeholder {
	color: #74808b;
	font-style: italic;
	letter-spacing: 1px;
}

.admin-login-btn {
	width: 100%;
	justify-content: center;
	padding: 15px;
	font-size: 15px;
	border-radius: 14px;
	letter-spacing: 2px;
	transition: all 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.admin-login-btn:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
	transform: translateY(-1px);
}

.admin-login-btn:disabled {
	opacity: 0.5;
	cursor: wait;
	transform: none;
}

.admin-login-error {
	color: rgba(224, 82, 82, 0.85);
	font-size: 13px;
	text-align: center;
	margin-top: 18px;
	min-height: 20px;
	letter-spacing: 0.5px;
}

@media (max-width: 480px) {
	.admin-login-card {
		padding: 40px 28px;
		border-radius: 22px;
	}

	.admin-login-header h1 {
		font-size: 22px;
	}

	.admin-login-field input[type="password"] {
		padding: 14px 16px;
		font-size: 15px;
	}
}


/* ===== PORTFOLIO TABS ===== */

.portfolio-tabs {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 60px;
	position: relative;
	padding: 5px;
	background: rgba(9, 10, 12, 0.55);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50px;
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	width: fit-content;
}

.portfolio-tab {
	position: relative;
	z-index: 2;
	background: none;
	border: none;
	padding: 12px 28px;
	font-family: 'TT Autonomous', sans-serif;
	font-size: 14px;
	font-weight: bold;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: rgba(116, 128, 139, 0.5);
	cursor: pointer;
	transition: color 0.35s ease;
	white-space: nowrap;
}

.portfolio-tab:hover {
	color: rgba(116, 128, 139, 0.85);
}

.portfolio-tab.active {
	color: #fff;
}

/* Sliding indicator */
.portfolio-tab-indicator {
	position: absolute;
	bottom: 5px;
	left: 0;
	height: calc(100% - 10px);
	background: rgba(116, 128, 139, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 50px;
	z-index: 1;
	transition: left 0.4s cubic-bezier(0.2, 1, 0.3, 1),
		width 0.4s cubic-bezier(0.2, 1, 0.3, 1);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* ===== PORTFOLIO TAG BADGES ===== */

.portfolio-tag-badge {
	position: absolute;
	bottom: 10px;
	left: 10px;
	z-index: 5;
	font-size: 10px;
	font-family: 'TT Autonomous', sans-serif;
	font-weight: bold;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 50px;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: inline-flex;
	align-items: center;
	transition: all 0.3s ease;
	pointer-events: none;
}

/* Color variants */
.portfolio-tag-badge.tag-dev {
	background: rgba(56, 139, 253, 0.18);
	border: 1px solid rgba(56, 139, 253, 0.35);
	color: #58a6ff;
}

.portfolio-tag-badge.tag-dsgn {
	background: rgba(163, 113, 247, 0.18);
	border: 1px solid rgba(163, 113, 247, 0.35);
	color: #b48eff;
}

.portfolio-tag-badge.tag-other {
	background: rgba(210, 170, 90, 0.18);
	border: 1px solid rgba(210, 170, 90, 0.35);
	color: #d2aa5a;
}

/* ===== PORTFOLIO GRID FILTERING ===== */

.portfolio-grid {
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.portfolio-grid--fading {
	opacity: 0;
	transform: translateY(8px);
}

.portfolio-item {
	transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.portfolio-item--hidden {
	display: none !important;
}

/* ===== PORTFOLIO TABS — RESPONSIVE ===== */

@media (max-width: 1350px) {

	.flare-port-bg,
	.flare-port-bg-2 {
		width: min(650px, 85vw);
	}
}

@media (max-width: 768px) {
	.portfolio-tabs {
		gap: 2px;
		padding: 4px;
		margin-bottom: 40px;
		flex-wrap: nowrap;
		overflow-x: auto;
		max-width: 100%;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.portfolio-tabs::-webkit-scrollbar {
		display: none;
	}

	.portfolio-tab {
		padding: 10px 18px;
		font-size: 11px;
		letter-spacing: 1px;
		flex-shrink: 0;
	}

	/* Page title icon responsive */
	.portfolio-page-title {
		font-size: clamp(22px, 6vw, 40px);
		margin-bottom: 40px;
		gap: 12px;
	}

	.portfolio-page-title img {
		width: 42px !important;
		height: 42px !important;
	}

	.flare-port-bg {
		top: -20%;
		right: -20%;
		left: auto;
		transform: rotate(35deg);
	}

	.flare-port-bg-2 {
		bottom: -15%;
		left: -15%;
		right: auto;
		transform: scale(-1) rotate(35deg);
	}

	.flare-port-bg,
	.flare-port-bg-2 {
		width: min(550px, 85vw);
		opacity: 0.5;
	}
}

@media (max-width: 420px) {
	.portfolio-tab {
		padding: 8px 14px;
		font-size: 10px;
		flex-shrink: 0;
	}

	.portfolio-page-title {
		font-size: clamp(18px, 5vw, 28px);
		gap: 10px;
	}

	.portfolio-page-title img {
		width: 32px !important;
		height: 32px !important;
	}

	.flare-port-bg {
		top: -10%;
		right: -10%;
	}

	.flare-port-bg-2 {
		bottom: -10%;
		left: -10%;
	}

	.flare-port-bg,
	.flare-port-bg-2 {
		width: min(350px, 75vw);
	}
}


/* ===== ADMIN TAG SELECTOR ===== */

.admin-tag-selector {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.admin-tag-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: transparent;
	color: var(--muted);
	font-family: 'TT Autonomous', sans-serif;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 1px;
	cursor: pointer;
	transition: all 0.25s ease;
}

.admin-tag-option:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.15);
}

.admin-tag-option.active {
	background: rgba(116, 128, 139, 0.2);
	border-color: rgba(255, 255, 255, 0.2);
	color: #fff;
}

/* Colored dots */
.admin-tag-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
	flex-shrink: 0;
}

.admin-tag-dot.tag-dev,
.tag-dev .admin-tag-dot {
	background: #58a6ff;
	box-shadow: 0 0 8px rgba(56, 139, 253, 0.5);
}

.admin-tag-dot.tag-dsgn,
.tag-dsgn .admin-tag-dot {
	background: #b48eff;
	box-shadow: 0 0 8px rgba(163, 113, 247, 0.5);
}

.admin-tag-dot.tag-other,
.tag-other .admin-tag-dot {
	background: #d2aa5a;
	box-shadow: 0 0 8px rgba(210, 170, 90, 0.5);
}

/* Tag in admin case card */
.admin-case-tag--category {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.admin-case-tag--category.tag-dev {
	color: #58a6ff;
	border-color: rgba(56, 139, 253, 0.25);
}

.admin-case-tag--category.tag-dsgn {
	color: #b48eff;
	border-color: rgba(163, 113, 247, 0.25);
}

.admin-case-tag--category.tag-other {
	color: #d2aa5a;
	border-color: rgba(210, 170, 90, 0.25);
}

/* Gallery Thumbs inside Modal */
.case-modal-gallery-thumbs {
	display: none;
	justify-content: center;
	gap: 12px;
	margin-top: 20px;
	flex-wrap: wrap;
	width: 100%;
}

.gallery-thumb {
	width: 60px;
	height: 60px;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
	opacity: 0.6;
	transition: all 0.2s ease;
}

.gallery-thumb:hover {
	opacity: 0.8;
}

.gallery-thumb.active {
	border-color: #58a6ff;
	opacity: 1;
}

.gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Collage Grid in Modal */
.case-modal-collage {
	width: 100%;
	height: 100%;
	display: grid;
	gap: 4px;
	border-radius: 12px;
	overflow: hidden;
	cursor: zoom-in;
}

.case-modal-collage-1 {
	display: flex;
}

.case-modal-collage-1 .case-modal-collage-item {
	width: 100%;
	height: 100%;
}

.case-modal-collage-2 {
	grid-template-columns: 1fr 1fr;
}

.case-modal-collage-3 {
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.case-modal-collage-3>.case-modal-collage-item:first-child {
	grid-row: span 2;
}

.case-modal-collage-item {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.case-modal-collage-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.case-modal-collage {
	transition: transform 0.3s ease;
}

.case-modal-collage:hover {
	transform: scale(1.03);
}

.case-modal-collage-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 24px;
	font-weight: bold;
	pointer-events: none;
}

/* Modal Gallery Grid View */
.case-modal-gallery-grid-view {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.cm-gallery-header {
	margin-bottom: 20px;
	font-size: 22px;
	font-weight: bold;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 15px;
}

.cm-gallery-back-btn {
	background: transparent;
	border: none;
	color: #74808b;
	cursor: pointer;
	display: flex;
	align-items: center;
	padding: 5px;
	border-radius: 5px;
	transition: all 0.2s ease;
}

.cm-gallery-back-btn:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.cm-gallery-grid-wrap {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	overflow-y: auto;
	scrollbar-gutter: stable;
	padding: 5px;
	padding-right: 4px;
	flex: 1;
}

.cm-gallery-grid-wrap::-webkit-scrollbar {
	width: 8px;
}

.cm-gallery-grid-wrap::-webkit-scrollbar-track {
	background: transparent;
}

.cm-gallery-grid-wrap::-webkit-scrollbar-thumb {
	background: rgba(116, 128, 139, 0.4);
	border-radius: 10px;
}

.cm-gallery-grid-item {
	aspect-ratio: 1;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.2s;
}

.cm-gallery-grid-item:hover {
	transform: scale(1.03);
}

.cm-gallery-grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Fullimg Lightbox Improvements */
.case-modal.is-full-img {
	background: transparent;
	border: none;
	box-shadow: none;
}

.case-modal.is-full-img .case-modal-fullimg {
	padding: 0;
	background: transparent;
}

.cm-fullimg-backdrop {
	position: absolute;
	inset: 0;
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	background: rgba(9, 10, 12, 0.8);
	z-index: 0;
}

.cm-fullimg-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #fff;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s ease;
	font-size: 24px;
}

.cm-fullimg-nav:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: translateY(-50%) scale(1.1);
}

.cm-fullimg-nav:disabled {
	opacity: 0.3;
	cursor: default;
	transform: translateY(-50%) scale(1);
}

.cm-fullimg-nav.prev {
	left: 40px;
}

.cm-fullimg-nav.next {
	right: 40px;
}

.cm-fullimg-info {
	position: absolute;
	bottom: 30px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	letter-spacing: 2px;
	background: rgba(0, 0, 0, 0.6);
	padding: 8px 20px;
	border-radius: 20px;
	backdrop-filter: blur(10px);
	z-index: 10;
}

.cm-fullimg-viewport {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	overflow: hidden;
	user-select: none;
	-webkit-user-select: none;
}

.case-modal-fullimg img {
	z-index: 5;
	position: relative;
	max-width: 90vw;
	max-height: 85vh;
	border-radius: 16px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
	object-fit: contain;
	transform-origin: center center;
	transition: none;
	will-change: transform;
	pointer-events: none;
}

/* ===== ADMIN GALLERY DRAG-REORDER ===== */

.admin-gallery-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 10px;
}

.admin-gallery-item {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 12px;
	padding: 8px 10px;
	transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
	cursor: grab;
	user-select: none;
}

.admin-gallery-item:active {
	cursor: grabbing;
}

.admin-gallery-item.drag-over {
	border-color: rgba(116,128,139,0.5);
	background: rgba(116,128,139,0.1);
	box-shadow: 0 0 0 2px rgba(116,128,139,0.25);
}

.admin-gallery-item.dragging {
	opacity: 0.4;
}

/* First item = preview — special border */
.admin-gallery-item:first-child {
	border-color: rgba(116,128,139,0.45);
	background: rgba(116,128,139,0.08);
	box-shadow: inset 0 0 0 1px rgba(116,128,139,0.3);
}

.admin-gallery-drag-handle {
	color: rgba(116,128,139,0.5);
	cursor: grab;
	padding: 2px 4px;
	flex-shrink: 0;
	font-size: 16px;
	line-height: 1;
	transition: color 0.2s;
}

.admin-gallery-drag-handle:hover {
	color: rgba(116,128,139,0.9);
}

.admin-gallery-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	border: 1px solid rgba(255,255,255,0.06);
}

.admin-gallery-label {
	flex: 1;
	min-width: 0;
	font-size: 12px;
	color: var(--muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.admin-gallery-preview-badge {
	background: rgba(116,128,139,0.2);
	border: 1px solid rgba(116,128,139,0.35);
	border-radius: 6px;
	padding: 2px 8px;
	font-size: 10px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	flex-shrink: 0;
	font-weight: bold;
}

.admin-gallery-item-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
	align-items: center;
}

.admin-gallery-crop-btn {
	background: transparent;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 7px;
	color: var(--muted);
	cursor: pointer;
	padding: 5px 8px;
	font-family: 'TT Autonomous', sans-serif;
	font-size: 11px;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: all 0.2s;
}

.admin-gallery-crop-btn:hover {
	background: rgba(116,128,139,0.2);
	border-color: rgba(255,255,255,0.25);
	color: #fff;
}

.admin-gallery-del-btn {
	background: transparent;
	border: none;
	color: var(--danger);
	cursor: pointer;
	padding: 4px;
	font-size: 16px;
	line-height: 1;
	border-radius: 6px;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
}

.admin-gallery-del-btn:hover {
	background: rgba(224,82,82,0.12);
}