.ak-paint-box {
	max-width: 430px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 34px;
	padding: 14px;
	box-shadow: 0 16px 36px rgba(50, 35, 90, 0.12);
	border: 8px solid #eadfff;
	text-align: center;
}

.ak-paint-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 12px;
}

.ak-paint-title h2 {
	margin: 0;
	color: #20205f;
	font-size: 34px;
	font-weight: 950;
	line-height: 1;
}

.ak-paint-title h2 span {
	color: #ff4f8b;
}

.ak-paint-dog {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff1dc;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

.ak-color-card {
	background: #ffffff;
	border: 2px solid #eadfff;
	border-radius: 18px;
	padding: 8px 10px 10px;
	margin-bottom: 8px;
	box-shadow: 0 5px 12px rgba(50, 35, 90, 0.05);
}

.ak-color-card strong,
.ak-tools-title {
	display: block;
	color: #22205f;
	font-size: 14px;
	font-weight: 950;
	margin-bottom: 6px;
}

.ak-color-palette {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	align-items: center;
}

.ak-color-dot {
	width: 34px !important;
	height: 34px !important;
	border-radius: 999px !important;
	padding: 0 !important;
	border: 3px solid #ffffff !important;
	box-shadow: 0 3px 10px rgba(0,0,0,0.20);
	cursor: pointer;
}

.ak-selected-color {
	outline: 3px solid #8057e8;
	transform: scale(1.12);
}

.ak-rainbow-dot {
	background: conic-gradient(#ff0000,#ffcc00,#20c768,#00c2ff,#8057e8,#ff4f8b,#ff0000) !important;
	position: relative;
}

.ak-rainbow-dot::after {
	content: "+";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-weight: 950;
	font-size: 20px;
	text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.ak-more-colors {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	width: 100%;
	margin-top: 8px;
}

.ak-more-colors.ak-show {
	display: flex;
}

.ak-paint-tools {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}

.ak-tool-card {
	border: 2px solid #eadfff;
	background: #ffffff;
	border-radius: 16px;
	padding: 0;
	cursor: pointer;
	box-shadow: 0 5px 12px rgba(50, 35, 90, 0.06);
	overflow: hidden;
}

.ak-tool-card img {
	width: 100%;
	height: auto;
	display: block;
}

.ak-tool-card.ak-active-tool {
	border-color: #8b5cff;
	transform: scale(1.03);
	box-shadow: 0 8px 18px rgba(124, 92, 255, 0.22);
}

.ak-new-card {
	background: #fff2f7;
}

.ak-canvas-wrap {
	position: relative !important;
	width: 100%;
	max-width: 620px;
	margin: 0 auto;
	overflow: hidden !important;
	background: #fff8ef;
	border-radius: 20px;
	padding: 0;
	border: 4px solid #eadfff;
}

#akPaintCanvas {
	display: block !important;
	max-width: 100%;
	height: auto;
	background: #ffffff;
	border-radius: 14px;
	cursor: crosshair;
	touch-action: none;
}

.ak-download-final {
	width: 75%;
	margin: 24px auto 0;
	display: block;
	border: none;
	border-radius: 999px;
	padding: 18px 22px;
	background: linear-gradient(135deg, #26d66f, #13bf5d);
	color: #ffffff;
	font-weight: 950;
	font-size: 24px;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(255, 92, 138, 0.28);
}

.ak-paint-box {
	max-width: 760px;
	margin: 0 auto 28px;
	background: #ffffff;
	border-radius: 28px;
	padding: 26px;
	text-align: center;
	box-shadow: 0 16px 36px rgba(50, 35, 90, 0.12);
	border: none;
}

.ak-paint-workspace {
	display: flex;
		max-width: 760px;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
}

.ak-paint-workspace .ak-canvas-wrap {
	width: calc(100% - 50px);
	max-width: 620px;
	margin: 0;
	flex: 1 1 auto;
}

.ak-side-colors {
	width: 44px;
	flex: 0 0 44px;
	margin: 0;
	padding: 5px 3px;
	border-radius: 14px;
	position: relative;
	overflow: visible;
}

.ak-side-colors strong {
	font-size: 9px;
	margin-bottom: 5px;
}

.ak-side-colors .ak-color-palette {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 5px;
}

.ak-side-colors .ak-color-dot {
	width: 28px !important;
	height: 28px !important;
	margin: 0 auto;
}

.ak-undo-image-btn {
	position: absolute !important;
	right: 8px !important;
	bottom: 8px !important;
	width: 30px !important;
	height: 30px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 2px solid #eadfff !important;
	border-radius: 10px !important;
	background: #ffffff !important;
	color: #7c5cff !important;
	font-size: 22px !important;
	font-weight: 950 !important;
	line-height: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	box-shadow: 0 4px 10px rgba(50, 35, 90, 0.18) !important;
	z-index: 50 !important;
}

.ak-side-colors .ak-more-colors {
	display: none;
	position: absolute;
	top: 0;
	right: 42px;
	width: 110px;
	padding: 8px;
	background: #ffffff;
	border: 2px solid #eadfff;
	border-radius: 14px;
	box-shadow: 0 8px 18px rgba(50, 35, 90, 0.18);
	z-index: 20;
	grid-template-columns: repeat(3, 1fr);
	gap: 7px;
}

.ak-side-colors .ak-more-colors.ak-show {
	display: grid;
}

.ak-side-colors .ak-more-colors .ak-color-dot {
	width: 24px !important;
	height: 24px !important;
}

@media (max-width: 760px) {
	.ak-paint-box {
		max-width: 430px;
		padding: 14px;
		border-radius: 24px;
	}

	.ak-paint-title h2 {
		font-size: 30px;
	}

	.ak-tool-card {
		font-size: 10px;
		padding: 0;
	}

	.ak-tool-card img {
		width: 100%;
		height: auto;
	}

	.ak-paint-workspace {
		gap: 6px;
	}

	.ak-paint-workspace .ak-canvas-wrap {
		width: calc(100% - 50px);
	}

	.ak-canvas-wrap {
		border-width: 3px;
	}

	.ak-side-colors {
		width: 44px;
		flex: 0 0 44px;
		padding: 5px 3px;
	}

	.ak-side-colors strong {
		font-size: 9px;
		margin-bottom: 5px;
	}

	.ak-side-colors .ak-color-dot {
		width: 28px !important;
		height: 28px !important;
	}

	.ak-download-final {
		width: 100%;
		margin-top: 14px;
		font-size: 16px;
		padding: 15px 18px;
		background: linear-gradient(135deg, #ff5c8a, #ff8a3d);
	}
}

@media (min-width: 761px) {
	.ak-paint-box {
		max-width: 760px;
		padding: 26px;
	}

	.ak-paint-tools {
		gap: 16px;
		margin-bottom: 18px;
	}

	.ak-canvas-wrap {
		padding: 0;
		border-radius: 24px;
	}

	.ak-download-final {
		width: 75%;
		margin: 24px auto 0;
		display: block;
		font-size: 24px;
		padding: 18px 22px;
		background: linear-gradient(135deg, #26d66f, #13bf5d);
	}
}

@media (min-width: 600px) and (max-width: 1024px) {
	.ak-paint-box {
		max-width: 720px;
		padding: 28px;
	}

	.ak-paint-title h2 {
		font-size: 42px;
	}

	.ak-paint-dog {
		width: 58px;
		height: 58px;
		font-size: 34px;
	}

	.ak-paint-tools {
		gap: 14px;
		margin-bottom: 18px;
	}

	.ak-tool-card {
		border-radius: 18px;
	}

	.ak-paint-workspace {
		max-width: 680px;
		gap: 8px;
	}

	.ak-side-colors {
		width: 48px;
		flex: 0 0 48px;
		padding: 6px 3px;
	}

	.ak-side-colors .ak-color-dot {
		width: 30px !important;
		height: 30px !important;
	}

	.ak-undo-image-btn {
		width: 40px !important;
		height: 40px !important;
		font-size: 26px !important;
	}

	.ak-download-final {
		font-size: 20px;
		padding: 18px 22px;
	}
}