:root {
	--bg: #0b0b0d;
	--bg2: #141416;
	--card: rgba(255, 255, 255, 0.07);
	--card-hover: rgba(255, 255, 255, 0.12);
	--border: rgba(255, 255, 255, 0.12);
	--orange: #ff9d1e;
	--orange-h: #ffb340;
	--white: #fff;
	--text: #fff;
	--text2: #a8a8ad;
	--muted: #77777e;
	--success: #39c98a;
	--error: #ff5d5d;
}
* {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
html {
	scroll-behavior: smooth;
}
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
}
a {
	color: inherit;
	text-decoration: none;
}
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
::-webkit-scrollbar-track {
	background: transparent;
}
::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.12);
	border-radius: 8px;
}
.no-scrollbar::-webkit-scrollbar {
	display: none;
}
.no-scrollbar {
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.glass {
	background: var(--card);
	border: 1px solid var(--border);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	border-radius: 20px;
}
.glass-hover {
	transition:
		background 0.25s,
		transform 0.25s,
		border-color 0.25s;
}
.glass-hover:hover {
	background: var(--card-hover);
	border-color: rgba(255, 157, 30, 0.4);
}
.btn-primary {
	background: var(--orange);
	color: #160a00;
	font-weight: 700;
	border: none;
	border-radius: 14px;
	transition:
		background 0.2s,
		transform 0.1s;
	cursor: pointer;
}
.btn-primary:hover {
	background: var(--orange-h);
}
.btn-primary:active {
	transform: scale(0.97);
}
.btn-ghost {
	background: var(--card);
	border: 1px solid var(--border);
	color: var(--text);
	border-radius: 14px;
	transition: 0.2s;
	cursor: pointer;
}
.btn-ghost:hover {
	background: var(--card-hover);
}
.chip {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 999px;
	transition: 0.2s;
	cursor: pointer;
}
.chip.active {
	background: var(--orange);
	color: #160a00;
	border-color: var(--orange);
	font-weight: 700;
}
.icon {
	width: 22px;
	height: 22px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}
.icon-sm {
	width: 16px;
	height: 16px;
}
.icon-lg {
	width: 28px;
	height: 28px;
}
.fade-in {
	animation: fadeIn 0.4s ease both;
}
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
.pop {
	animation: pop 0.3s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes pop {
	from {
		opacity: 0;
		transform: scale(0.94);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
.card-img {
	transition: transform 0.5s ease;
}
.prod-card:hover .card-img {
	transform: scale(1.07);
}
/* toast */
#toastWrap {
	position: fixed;
	z-index: 120;
	right: 24px;
	bottom: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.toast {
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--bg2);
	border: 1px solid var(--border);
	border-left: 3px solid var(--orange);
	border-radius: 14px;
	padding: 12px 16px;
	min-width: 220px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
	animation: toastIn 0.35s ease both;
}
@keyframes toastIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
@media (max-width: 640px) {
	#toastWrap {
		left: 16px;
		right: 16px;
		bottom: 88px;
	}
}
/* modal */
.modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 110;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: fadeIn 0.2s ease both;
}
.modal-box {
	background: var(--bg2);
	border: 1px solid var(--border);
	border-radius: 24px;
	max-width: 440px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	animation: pop 0.3s ease both;
}
@media (max-width: 640px) {
	.modal-backdrop {
		align-items: flex-end;
		padding: 0;
	}
	.modal-box {
		max-width: 100%;
		border-radius: 24px 24px 0 0;
	}
}
/* skeleton */
.skel {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 37%, rgba(255, 255, 255, 0.05) 63%);
	background-size: 400% 100%;
	animation: shimmer 1.4s infinite;
	border-radius: 12px;
}
@keyframes shimmer {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}
input,
select,
textarea {
	font-family: inherit;
}
.field {
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 14px;
	color: var(--text);
	padding: 14px 16px;
	width: 100%;
	outline: none;
	transition: border-color 0.2s;
}
.field:focus {
	border-color: var(--orange);
}
.field::placeholder {
	color: var(--muted);
}
:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}
.switch {
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: var(--border);
	position: relative;
	cursor: pointer;
	transition: 0.25s;
	flex: none;
}
.switch.on {
	background: var(--orange);
}
.switch::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: 0.25s;
}
.switch.on::after {
	left: 23px;
}
.sidebar-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-radius: 14px;
	color: var(--text2);
	transition: 0.2s;
	font-weight: 500;
}
.sidebar-link:hover {
	background: var(--card);
	color: var(--white);
}
.sidebar-link.active {
	background: var(--orange);
	color: #160a00;
	font-weight: 700;
}
.mobnav-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	flex: 1;
	padding: 8px 0;
}
.mobnav-link.active {
	color: var(--orange);
}
.progress-line {
	background: var(--border);
	position: relative;
	overflow: hidden;
}
.progress-line > span {
	position: absolute;
	inset: 0;
	background: var(--orange);
	transform-origin: left;
	transition: transform 0.8s ease;
}

main {
	margin-bottom: 100px;
}
