/* =========================================================
   Tjorak Tools — Stylesheet (tema soft / Gen Z, terang + gelap otomatis)
   Satu aksen (violet lembut), permukaan bersih, sudut membulat, bayangan tipis.
   ========================================================= */

[hidden] {
	display: none !important;
}

:root {
	color-scheme: light dark;

	/* kanvas krem hangat */
	--bg: #fff6ec;
	--bg-rgb: 255 246 236;
	--bg-soft: #fffbf6;
	--surface: #ffffff;
	--surface-2: #fbeee1;
	--line: #f0e3d5;
	--line-2: #e3d2c0;

	/* tinta & garis tegas (gaya sticker) */
	--ink: #1f1712;
	--on-ink: #fff6ec;
	--edge: #1f1712;
	--hero-ink: #1f1712;

	/* aksen: oranye Tjorak */
	--accent: #ee4d2d;
	--accent-rgb: 238 77 45;
	--accent-hover: #f85f3b;
	--accent-strong: #c23a1e;
	--accent-soft: rgb(238 77 45 / 0.12);
	--accent-ring: rgb(238 77 45 / 0.28);
	--on-accent: #ffffff;

	/* teks */
	--text: #1f1712;
	--text-soft: #5e5047;
	--text-dim: #8a7b70;
	--text-mute: #bbaa9c;

	/* status */
	--success: #1f9d68;
	--success-rgb: 31 157 104;
	--danger: #d6333b;
	--danger-rgb: 214 51 59;
	--wa: #25d366;
	--wa-dark: #128c7e;

	/* pastel untuk ikon kartu */
	--p1: #ffd9c7;
	--p2: #cff0df;
	--p3: #ffefb8;
	--p4: #e3dbff;
	--p5: #d3e9ff;
	--p6: #ffd6e4;

	/* overlay & bayangan */
	--ink-rgb: 31 23 18;
	--scrim-rgb: 31 23 18;
	--shadow-sm: 0 1px 2px rgb(60 35 20 / 0.06), 0 2px 8px rgb(60 35 20 / 0.05);
	--shadow-md: 0 2px 4px rgb(60 35 20 / 0.06), 0 8px 24px rgb(60 35 20 / 0.09);
	--shadow-lg: 0 8px 20px rgb(60 35 20 / 0.12), 0 24px 60px rgb(60 35 20 / 0.16);

	--radius-lg: 28px;
	--radius: 20px;
	--radius-sm: 14px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #15100d;
		--bg-rgb: 21 16 13;
		--bg-soft: #1b1511;
		--surface: #221b16;
		--surface-2: #2d241e;
		--line: #32281f;
		--line-2: #46392f;

		--ink: #f6ede4;
		--on-ink: #15100d;
		--edge: #5f4e42;

		--accent-soft: rgb(238 77 45 / 0.18);
		--accent-ring: rgb(238 77 45 / 0.38);

		--text: #f6ede4;
		--text-soft: #c2b4a9;
		--text-dim: #8f8076;
		--text-mute: #5c4f46;

		--success: #4cc38a;
		--success-rgb: 76 195 138;
		--danger: #f0636a;
		--danger-rgb: 240 99 106;

		--p1: rgb(255 140 100 / 0.22);
		--p2: rgb(90 210 150 / 0.2);
		--p3: rgb(255 210 80 / 0.2);
		--p4: rgb(150 130 255 / 0.24);
		--p5: rgb(90 170 255 / 0.22);
		--p6: rgb(255 110 160 / 0.22);

		--ink-rgb: 255 255 255;
		--scrim-rgb: 0 0 0;
		--shadow-sm: 0 1px 2px rgb(0 0 0 / 0.35);
		--shadow-md: 0 2px 6px rgb(0 0 0 / 0.35), 0 8px 24px rgb(0 0 0 / 0.3);
		--shadow-lg: 0 8px 20px rgb(0 0 0 / 0.45), 0 24px 60px rgb(0 0 0 / 0.5);
	}
}

* {
	box-sizing: border-box;
}
*::selection {
	background: var(--accent);
	color: var(--on-accent);
}
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family:
		"Plus Jakarta Sans",
		system-ui,
		-apple-system,
		sans-serif;
	background: var(--bg);
	color: var(--text);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

/* =========================================================
   BACKGROUND
   ========================================================= */
.bg-glow {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(
		900px 420px at 50% -140px,
		rgb(var(--accent-rgb) / 0.1),
		transparent 70%
	);
}

.container {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
	position: relative;
	z-index: 1;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
	background: rgb(var(--bg-rgb) / 0.75);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 14px;
}
a.brand {
	text-decoration: none;
	color: inherit;
}
.brand-mark {
	width: 48px;
	height: 48px;
	min-width: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: var(--accent);
	background: var(--surface);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-md);
}
.brand-mark.sm {
	width: 32px;
	height: 32px;
	min-width: 32px;
	font-size: 13px;
	border-radius: 10px;
}
.brand-name {
	margin: 0;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--text);
	line-height: 1.15;
}
.text-gold {
	color: var(--accent);
}
.brand-tag {
	margin: 3px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-dim);
	letter-spacing: 0.01em;
	display: flex;
	align-items: center;
	gap: 6px;
}
.brand-tag i {
	color: var(--accent);
	font-size: 10px;
}

/* =========================================================
   NAV
   ========================================================= */
.site-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 5px;
	border-radius: 12px;
	background: rgb(var(--ink-rgb) / 0.03);
	border: 1px solid var(--line);
}
.nav-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border-radius: 9px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-soft);
	text-decoration: none;
	transition: all 0.2s ease;
	letter-spacing: 0.02em;
	white-space: nowrap;
	font-family: "Plus Jakarta Sans", sans-serif;
}
.nav-link i {
	font-size: 12px;
	color: var(--text-dim);
	transition: color 0.2s ease;
}
.nav-link:hover {
	color: var(--text);
	background: rgb(var(--ink-rgb) / 0.04);
}
.nav-link.active {
	background: var(--accent-soft);
	color: var(--accent);
	box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.25);
}
.nav-link.active i {
	color: var(--accent);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 600;
	font-size: 14px;
	border-radius: 12px;
	border: none;
	padding: 12px 20px;
	cursor: pointer;
	transition:
		transform 0.15s ease,
		box-shadow 0.2s ease,
		background 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
	text-decoration: none;
	line-height: 1;
	white-space: nowrap;
	user-select: none;
}
.btn:active {
	transform: translateY(1px);
}
.btn:disabled {
	cursor: not-allowed;
	opacity: 0.55;
	transform: none;
}
.btn i {
	font-size: 0.95em;
}
.btn-gold {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: var(--shadow-md);
}
.btn-gold:hover:not(:disabled) {
	background: var(--accent);
	color: var(--on-accent);
	box-shadow: var(--shadow-md);
}
.btn-gold:disabled {
	background: var(--surface-2);
	color: var(--text-mute);
	box-shadow: none;
}
.btn-maroon {
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid rgb(var(--ink-rgb) / 0.06);
	box-shadow: var(--shadow-md);
}
.btn-maroon:hover:not(:disabled) {
	background: var(--surface-2);
	color: var(--text);
}
.btn-ghost {
	background: rgb(var(--ink-rgb) / 0.03);
	color: var(--text-soft);
	border: 1px solid var(--line-2);
}
.btn-ghost:hover:not(:disabled) {
	background: rgb(var(--ink-rgb) / 0.06);
	color: var(--text);
	border-color: rgb(var(--accent-rgb) / 0.35);
}
.btn-lg {
	padding: 14px 26px;
	font-size: 15px;
	border-radius: 14px;
}
.btn-sm {
	padding: 9px 14px;
	font-size: 12.5px;
	border-radius: 10px;
}
.btn-icon {
	width: 34px;
	height: 34px;
	padding: 0;
	border-radius: 10px;
	background: rgb(var(--bg-rgb) / 0.85);
	color: var(--text-soft);
	border: 1px solid var(--line-2);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}
.btn-icon:hover {
	color: var(--danger);
	border-color: var(--danger);
	background: rgb(var(--danger-rgb) / 0.1);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
	position: relative;
	z-index: 1;
	border-top: 1px solid var(--line);
	background: var(--bg-soft);
	padding: 32px 0;
	margin-top: 60px;
}
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.footer-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}
.footer-title {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15px;
	color: var(--text);
	letter-spacing: -0.01em;
}
.footer-tag {
	margin: 0;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-dim);
	display: flex;
	align-items: center;
	gap: 8px;
}
.footer-tag i {
	color: var(--accent);
	font-size: 11px;
}
.footer-tag .dot {
	color: var(--text-mute);
}

/* =========================================================
   TOAST
   ========================================================= */
.toast-stack {
	position: fixed;
	bottom: 24px;
	right: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 2000;
	pointer-events: none;
	max-width: 360px;
}
.toast {
	pointer-events: auto;
	min-width: 260px;
	padding: 14px 18px;
	border-radius: 12px;
	background: var(--surface-2);
	border: 1px solid var(--accent);
	color: var(--text);
	font-size: 13.5px;
	font-weight: 500;
	box-shadow: var(--shadow-lg);
	display: flex;
	align-items: center;
	gap: 10px;
	animation: toastIn 0.3s ease;
}
.toast i {
	color: var(--accent);
	flex-shrink: 0;
}
.toast.error {
	border-color: var(--danger);
	box-shadow: var(--shadow-lg);
}
.toast.error i {
	color: var(--danger);
}
.toast.success {
	border-color: var(--success);
	box-shadow: var(--shadow-lg);
}
.toast.success i {
	color: var(--success);
}
@keyframes toastIn {
	from {
		opacity: 0;
		transform: translateX(40px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* =========================================================
   TAB WRAPPER
   ========================================================= */
.app-tab {
	animation: tabFadeIn 0.25s ease;
}
@keyframes tabFadeIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.app-tab .app-main {
	padding-top: 48px;
	padding-bottom: 80px;
	position: relative;
	z-index: 1;
}
.app-tab .st-wrap {
	padding-top: 36px;
	padding-bottom: 60px;
}

/* =========================================================
   CONVERTER
   ========================================================= */
.hero {
	text-align: center;
	margin-bottom: 40px;
}
.hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--accent);
	padding: 7px 14px;
	border-radius: 99px;
	background: rgb(var(--accent-rgb) / 0.06);
	border: 1px solid rgb(var(--accent-rgb) / 0.2);
	margin-bottom: 20px;
}
.hero-title {
	margin: 0 0 12px;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: clamp(32px, 5vw, 52px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--text);
}
.hero-title .text-gold {
	background: var(--accent);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.hero-sub {
	margin: 0 auto;
	max-width: 560px;
	font-size: 15px;
	color: var(--text-soft);
	line-height: 1.6;
}

.upload-area {
	position: relative;
	border-radius: var(--radius-lg);
	padding: 56px 24px;
	text-align: center;
	background: var(--surface);
	border: 1px dashed var(--line-2);
	transition:
		border-color 0.25s ease,
		background 0.25s ease,
		transform 0.25s ease;
	cursor: pointer;
	overflow: hidden;
	outline: none;
}
.upload-area:focus-visible {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-ring);
}
.upload-area::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--accent-soft);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}
.upload-area:hover {
	border-color: rgb(var(--accent-rgb) / 0.4);
}
.upload-area:hover::before {
	opacity: 1;
}
.upload-area.dragover {
	border-color: var(--accent);
	background: rgb(var(--accent-rgb) / 0.05);
	transform: scale(1.005);
	box-shadow: var(--shadow-lg);
}
.upload-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.upload-icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 20px;
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	color: var(--accent);
	background: var(--accent-soft);
	border: 1px solid rgb(var(--accent-rgb) / 0.25);
	box-shadow: none;
	transition: transform 0.3s ease;
}
.upload-area:hover .upload-icon {
	transform: translateY(-3px);
}
.upload-title {
	margin: 0;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
}
.upload-or {
	margin: 18px 0;
	color: var(--text-dim);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
}
.upload-or::before,
.upload-or::after {
	content: "";
	width: 40px;
	height: 1px;
	background: var(--line-2);
}
.upload-formats {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 26px auto 0;
	max-width: 460px;
	width: 100%;
}
.formats-line {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-soft);
	letter-spacing: 0.02em;
}
.formats-line i {
	color: var(--accent);
	font-size: 12px;
}
.formats-hint {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px;
	border-radius: 99px;
	font-size: 11.5px;
	font-weight: 500;
	color: var(--text-dim);
	background: rgb(var(--accent-rgb) / 0.05);
	border: 1px solid rgb(var(--accent-rgb) / 0.18);
	flex-wrap: wrap;
	justify-content: center;
}
.formats-hint i {
	color: var(--accent);
	font-size: 10.5px;
}
.upload-formats kbd {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Space Grotesk", monospace;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	padding: 3px 6px;
	min-width: 22px;
	border-radius: 5px;
	background: var(--surface-2);
	border: 1px solid var(--line-2);
	border-bottom-width: 2px;
	color: var(--accent);
	margin: 0 1px;
}
.privacy-note {
	text-align: center;
	font-size: 13px;
	color: var(--text-dim);
	font-weight: 500;
	margin: 18px 0 0;
}
.privacy-note i {
	color: var(--accent);
	margin-right: 6px;
}
.privacy-note strong {
	color: var(--text-soft);
	font-weight: 600;
}

.status-message {
	margin-top: 20px;
	padding: 14px 18px;
	border-radius: var(--radius);
	font-size: 13.5px;
	font-weight: 500;
	background: rgb(var(--danger-rgb) / 0.08);
	color: var(--danger);
	border: 1px solid rgb(var(--danger-rgb) / 0.3);
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.status-message::before {
	content: "\f071";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	flex-shrink: 0;
	margin-top: 1px;
}
.status-message.info {
	background: rgb(var(--accent-rgb) / 0.08);
	color: var(--accent);
	border-color: rgb(var(--accent-rgb) / 0.3);
}
.status-message.info::before {
	content: "\f05a";
}
.status-message.success {
	background: rgb(var(--success-rgb) / 0.08);
	color: var(--success);
	border-color: rgb(var(--success-rgb) / 0.3);
}
.status-message.success::before {
	content: "\f058";
}

.format-bar {
	margin-top: 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px 18px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.format-label {
	font-size: 12px;
	font-weight: 700;
	color: var(--text-dim);
	letter-spacing: 0.01em;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
.format-label i {
	color: var(--accent);
	font-size: 13px;
}
.format-options {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.format-btn {
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.02em;
	padding: 9px 16px;
	border-radius: 10px;
	border: 1px solid var(--line-2);
	background: transparent;
	color: var(--text-soft);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.18s ease;
}
.format-btn i {
	font-size: 12px;
}
.format-btn:hover {
	color: var(--text);
	border-color: rgb(var(--accent-rgb) / 0.4);
	background: rgb(var(--accent-rgb) / 0.04);
}
.format-btn.active {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent);
	box-shadow: var(--shadow-md);
}
.format-extras {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
	flex-wrap: wrap;
}
.quality-control,
.resize-control {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-dim);
}
.quality-control label,
.resize-control label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	letter-spacing: 0.01em;
	font-size: 11px;
	white-space: nowrap;
}
.quality-control label i,
.resize-control label i {
	color: var(--accent);
}
.quality-control input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 130px;
	height: 4px;
	border-radius: 99px;
	background: var(--line-2);
	outline: none;
	cursor: pointer;
}
.quality-control input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--accent);
	border: 2px solid var(--surface);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
}
.quality-control input[type="range"]::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--accent);
	border: 2px solid var(--surface);
	box-shadow: var(--shadow-sm);
	cursor: pointer;
}
#qualityValue {
	min-width: 40px;
	color: var(--accent);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.resize-control select {
	appearance: none;
	-webkit-appearance: none;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 12px;
	font-weight: 600;
	padding: 8px 30px 8px 12px;
	border-radius: 8px;
	background-color: var(--surface-2);
	border: 1px solid var(--line-2);
	color: var(--text);
	cursor: pointer;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a7b70' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
}
.resize-control select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-ring);
}

.action-bar {
	margin-top: 28px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}
.action-bar-left {
	font-size: 13px;
	color: var(--text-soft);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
	background: var(--surface);
	border: 1px solid var(--line);
	padding: 10px 16px;
	border-radius: 12px;
}
.action-bar-left i {
	color: var(--accent);
	font-size: 13px;
}
.action-bar-right {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.progress-wrap {
	margin-top: 20px;
}
.progress-track {
	height: 8px;
	border-radius: 99px;
	background: var(--surface);
	border: 1px solid var(--line);
	overflow: hidden;
}
.progress-fill {
	height: 100%;
	width: 0%;
	border-radius: inherit;
	background: var(--accent);
	box-shadow: var(--shadow-sm);
	transition: width 0.3s ease;
}
.progress-label {
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--text-dim);
	display: flex;
	align-items: center;
	gap: 8px;
}
.progress-label i {
	color: var(--accent);
}
.download-all-wrap {
	margin-top: 24px;
	display: flex;
	justify-content: flex-end;
}

.image-grid {
	margin-top: 28px;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 18px;
}
.img-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition:
		border-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}
.img-card:hover {
	border-color: rgb(var(--accent-rgb) / 0.3);
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}
.img-card-thumb {
	position: relative;
	aspect-ratio: 4/3;
	background:
		linear-gradient(45deg, rgb(var(--ink-rgb) / 0.03) 25%, transparent 25%),
		linear-gradient(-45deg, rgb(var(--ink-rgb) / 0.03) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, rgb(var(--ink-rgb) / 0.03) 75%),
		linear-gradient(-45deg, transparent 75%, rgb(var(--ink-rgb) / 0.03) 75%);
	background-size: 20px 20px;
	background-position:
		0 0,
		0 10px,
		10px -10px,
		-10px 0;
	background-color: var(--bg-soft);
	cursor: zoom-in;
	overflow: hidden;
}
.img-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.3s ease;
}
.img-card:hover .img-card-thumb img {
	transform: scale(1.03);
}
.img-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 10.5px;
	font-weight: 700;
	padding: 4px 9px;
	border-radius: 6px;
	background: rgb(var(--bg-rgb) / 0.8);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--accent);
	letter-spacing: 0.01em;
	border: 1px solid rgb(var(--accent-rgb) / 0.3);
}
.img-card-remove {
	position: absolute;
	top: 10px;
	right: 10px;
}
.img-card-body {
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.img-card-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	word-break: break-all;
	line-height: 1.4;
}
.img-card-meta {
	font-size: 11.5px;
	color: var(--text-dim);
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
}
.img-card-meta::before {
	content: "\f03e";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	color: var(--accent);
	font-size: 10px;
}
.img-card-status {
	font-size: 11.5px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgb(var(--ink-rgb) / 0.02);
	border: 1px solid var(--line);
}
.img-card-status.pending {
	color: var(--text-dim);
}
.img-card-status.pending i {
	color: var(--text-dim);
}
.img-card-status.working {
	color: var(--accent);
	border-color: rgb(var(--accent-rgb) / 0.3);
	background: rgb(var(--accent-rgb) / 0.05);
}
.img-card-status.working i {
	color: var(--accent);
}
.img-card-status.done {
	color: var(--success);
	border-color: rgb(var(--success-rgb) / 0.3);
	background: rgb(var(--success-rgb) / 0.05);
}
.img-card-status.done i {
	color: var(--success);
}
.img-card-status.error {
	color: var(--danger);
	border-color: rgb(var(--danger-rgb) / 0.3);
	background: rgb(var(--danger-rgb) / 0.05);
}
.img-card-status.error i {
	color: var(--danger);
}
.save-badge {
	font-size: 11px;
	font-weight: 700;
	color: var(--success);
	background: rgb(var(--success-rgb) / 0.1);
	border: 1px solid rgb(var(--success-rgb) / 0.3);
	padding: 5px 10px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	align-self: flex-start;
}
.img-card-actions {
	margin-top: auto;
	display: flex;
	gap: 8px;
	padding-top: 4px;
	flex-wrap: wrap;
}
.img-card-actions .btn {
	flex: 1;
	justify-content: center;
	min-width: 100px;
}

.modal {
	position: fixed;
	inset: 0;
	z-index: 1050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}
.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgb(var(--scrim-rgb) / 0.55);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}
.modal-body {
	position: relative;
	max-width: min(90vw, 900px);
	max-height: 88vh;
	animation: zoomIn 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes zoomIn {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
.modal-body img {
	max-width: 100%;
	max-height: 88vh;
	border-radius: 12px;
	display: block;
	box-shadow: var(--shadow-lg);
}
.modal-close {
	position: absolute;
	top: -16px;
	right: -16px;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: var(--surface-2);
	border: 1px solid rgb(var(--ink-rgb) / 0.08);
	color: var(--text);
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-md);
	transition:
		transform 0.25s ease,
		box-shadow 0.2s ease;
}
.modal-close:hover {
	transform: rotate(90deg) scale(1.05);
}

/* =========================================================

   STUDIO
   ========================================================= */
.st-hero {
	text-align: center;
	margin-bottom: 32px;
}
.st-hero-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--accent);
	padding: 7px 14px;
	border-radius: 99px;
	background: rgb(var(--accent-rgb) / 0.06);
	border: 1px solid rgb(var(--accent-rgb) / 0.2);
	margin-bottom: 18px;
}
.st-hero h1 {
	margin: 0 0 10px;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: clamp(28px, 4.5vw, 42px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
}
.st-hero h1 .text-gold {
	background: var(--accent);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.st-hero p {
	max-width: 580px;
	margin: 0 auto;
	font-size: 14.5px;
	color: var(--text-soft);
}

.st-templates {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	justify-content: center;
}
.st-tpl-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 600;
	font-size: 12.5px;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--text-soft);
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
}
.st-tpl-btn i {
	font-size: 12px;
	color: var(--text-dim);
	transition: color 0.2s ease;
}
.st-tpl-btn:hover {
	color: var(--text);
	border-color: rgb(var(--accent-rgb) / 0.4);
	transform: translateY(-1px);
}
.st-tpl-btn.active {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--on-accent);
	box-shadow: var(--shadow-md);
}
.st-tpl-btn.active i {
	color: var(--on-accent);
}

.st-grid {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	gap: 20px;
	align-items: start;
}
@media (max-width: 900px) {
	.st-grid {
		grid-template-columns: 1fr;
	}
}

.st-panel {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow-md);
}
.st-panel-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: -22px -22px 20px;
	padding: 14px 22px;
	border-radius: var(--radius) var(--radius) 0 0;
	background: var(--surface-2);
	border-bottom: 1px solid var(--line);
}
.st-panel-head .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / 0.15);
	flex-shrink: 0;
}
.st-panel-head h2 {
	margin: 0;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: 0.01em;
	color: var(--text);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.st-panel-head h2 i {
	color: var(--accent);
	font-size: 13px;
}
.st-panel-head .hint {
	margin-left: auto;
	font-size: 11px;
	color: var(--text-dim);
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.st-section {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 0.01em;
	color: var(--accent);
	margin: 22px 0 14px;
	padding-top: 18px;
	border-top: 1px dashed var(--line);
}
.st-section::before {
	content: "";
	width: 4px;
	height: 14px;
	border-radius: 2px;
	background: var(--accent-strong);
	flex-shrink: 0;
}
.st-section:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}
.st-section i {
	font-size: 11px;
}
.st-field {
	margin-bottom: 14px;
}
.st-field:last-child {
	margin-bottom: 0;
}
.st-field label {
	display: block;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--text-dim);
	margin-bottom: 7px;
}
.st-field textarea,
.st-field select,
.st-field input[type="text"] {
	width: 100%;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 500;
	font-size: 13.5px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 10px;
	padding: 11px 13px;
	resize: vertical;
	transition: all 0.2s ease;
}
.st-field textarea::placeholder,
.st-field input::placeholder {
	color: var(--text-mute);
	font-weight: 400;
}
.st-field textarea:focus,
.st-field select:focus,
.st-field input:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / 0.15);
	background: var(--surface);
}
.st-field textarea {
	min-height: 58px;
	line-height: 1.5;
}
.st-field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a7b70' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 34px;
	cursor: pointer;
}
.st-row2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
@media (max-width: 540px) {
	.st-row2 {
		grid-template-columns: 1fr;
	}
}
.st-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.st-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 600;
	font-size: 12px;
	padding: 8px 13px;
	border-radius: 10px;
	border: 1px solid var(--line-2);
	background: var(--bg-soft);
	color: var(--text-soft);
	cursor: pointer;
	transition: all 0.15s ease;
	user-select: none;
}
.st-chip:hover {
	color: var(--text);
	border-color: rgb(var(--accent-rgb) / 0.4);
}
.st-chip.active {
	background: var(--accent-soft);
	border-color: var(--accent);
	color: var(--accent);
	box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.2);
}
.st-chip .swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	border: 1px solid rgb(var(--ink-rgb) / 0.2);
	flex-shrink: 0;
}
.st-output-panel {
	position: sticky;
	top: 96px;
}
@media (max-width: 900px) {
	.st-output-panel {
		position: static;
	}
}

.st-lang-toggle {
	display: flex;
	gap: 8px;
	margin-bottom: 14px;
}
.st-lang-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 600;
	font-size: 12.5px;
	padding: 9px 14px;
	border-radius: 10px;
	border: 1px solid var(--line-2);
	background: var(--bg-soft);
	color: var(--text-soft);
	cursor: pointer;
	transition: all 0.18s ease;
}
.st-lang-btn i {
	font-size: 12px;
}
.st-lang-btn:hover {
	color: var(--text);
}
.st-lang-btn.active {
	background: var(--surface-2);
	border-color: var(--surface-2);
	color: var(--on-accent);
	box-shadow: 0 0 0 1px rgb(var(--accent-rgb) / 0.4);
}
#stOutput {
	font-family: "JetBrains Mono", monospace;
	font-size: 12.5px;
	line-height: 1.75;
	white-space: pre-wrap;
	word-break: break-word;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 16px;
	min-height: 200px;
	color: var(--text);
	box-shadow: none;
}
.st-output-note {
	font-size: 11.5px;
	color: var(--text-dim);
	margin-top: 10px;
	line-height: 1.55;
	display: flex;
	align-items: flex-start;
	gap: 7px;
}
.st-output-note i {
	color: var(--accent);
	margin-top: 2px;
	flex-shrink: 0;
}
.st-actions {
	display: flex;
	gap: 9px;
	margin-top: 16px;
	flex-wrap: wrap;
}
#stCopyBtn.copied {
	background: var(--success);
	color: var(--on-accent);
	box-shadow: var(--shadow-md);
}
.st-history {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px dashed var(--line);
}
.st-history h3 {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-weight: 700;
	font-size: 11.5px;
	letter-spacing: 0.01em;
	color: var(--text-dim);
	margin: 0 0 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.st-history h3 i {
	color: var(--accent);
	font-size: 11px;
}
.st-history ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.st-history li {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 12px;
	transition: all 0.2s ease;
}
.st-history li:hover {
	border-color: rgb(var(--accent-rgb) / 0.3);
}
.st-history .snippet {
	color: var(--text-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
	cursor: pointer;
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	display: flex;
	align-items: center;
	gap: 7px;
	transition: color 0.2s ease;
}
.st-history .snippet i {
	color: var(--accent);
	flex-shrink: 0;
}
.st-history .snippet:hover {
	color: var(--accent);
}
.st-history li button {
	background: none;
	border: none;
	color: var(--danger);
	cursor: pointer;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-weight: 600;
	font-size: 11.5px;
	padding: 4px 8px;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	transition: background 0.2s ease;
}
.st-history li button:hover {
	background: rgb(var(--danger-rgb) / 0.12);
}
.st-history .empty {
	font-size: 12px;
	color: var(--text-mute);
	font-style: italic;
}

/* =========================================================

/* RESPONSIVE */
@media (max-width: 720px) {
	.container {
		padding: 0 18px;
	}
	.site-header {
		padding: 16px 0;
	}
	.brand-mark {
		width: 42px;
		height: 42px;
		min-width: 42px;
		font-size: 17px;
		border-radius: 12px;
	}
	.brand-name {
		font-size: 18px;
	}
	.site-nav {
		padding: 4px;
		gap: 3px;
	}
	.nav-link {
		padding: 8px 10px;
		font-size: 11px;
	}
	.nav-link i {
		font-size: 11px;
	}
	.footer-inner {
		flex-direction: column;
		text-align: center;
	}
	.toast-stack {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
	}
	.toast {
		min-width: 0;
		width: 100%;
	}
	.app-tab .app-main {
		padding-top: 32px;
		padding-bottom: 60px;
	}
	.hero {
		margin-bottom: 28px;
	}
	.hero-title {
		font-size: 30px;
	}
	.upload-area {
		padding: 40px 18px;
	}
	.upload-icon {
		width: 60px;
		height: 60px;
		font-size: 24px;
	}
	.upload-title {
		font-size: 17px;
	}
	.formats-hint {
		flex-wrap: wrap;
		justify-content: center;
		text-align: center;
	}
	.format-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 16px;
	}
	.format-options {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
	.format-btn {
		justify-content: center;
		padding: 10px 8px;
	}
	.format-extras {
		margin-left: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding-top: 14px;
		border-top: 1px solid var(--line);
	}
	.quality-control,
	.resize-control {
		justify-content: space-between;
	}
	.quality-control input[type="range"] {
		flex: 1;
		width: auto;
	}
	.resize-control select {
		flex: 1;
	}
	.action-bar {
		flex-direction: column;
		align-items: stretch;
	}
	.action-bar-left {
		justify-content: center;
	}
	.action-bar-right {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.action-bar-right .btn-lg {
		grid-column: span 2;
	}
	.download-all-wrap {
		justify-content: stretch;
	}
	.download-all-wrap .btn {
		width: 100%;
	}
	.image-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}
	.img-card-body {
		padding: 12px;
	}
	.modal {
		padding: 16px;
	}
	.modal-close {
		top: 8px;
		right: 8px;
		background: rgb(var(--bg-rgb) / 0.9);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}
}

@media (max-width: 520px) {
	.nav-link span {
		display: none;
	}
	.nav-link {
		padding: 9px 11px;
	}
	.nav-link i {
		font-size: 13px;
	}
}

@media (max-width: 420px) {
	.image-grid {
		grid-template-columns: 1fr;
	}
	.action-bar-right {
		grid-template-columns: 1fr;
	}
	.action-bar-right .btn-lg {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}


/* =========================================================
   BERANDA
   ========================================================= */
.home-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	max-width: 960px;
	margin: 0 auto;
}
.home-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 26px;
	border-radius: var(--radius-lg);
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
a.home-card:hover,
a.home-card:focus-visible {
	border-color: rgb(var(--accent-rgb) / 0.45);
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	outline: none;
}
.home-card-icon {
	width: 46px;
	height: 46px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	font-size: 18px;
	color: var(--accent);
	background: rgb(var(--accent-rgb) / 0.08);
	border: 1px solid rgb(var(--accent-rgb) / 0.22);
}
.home-card h3 {
	margin: 6px 0 0;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 20px;
	letter-spacing: -0.01em;
}
.home-card p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--text-soft);
}
.home-card-go {
	margin-top: auto;
	padding-top: 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--accent);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.home-card-go i {
	transition: transform 0.2s ease;
}
a.home-card:hover .home-card-go i {
	transform: translateX(4px);
}
.home-card.soon {
	border-style: dashed;
	background: transparent;
	opacity: 0.55;
}
.home-trust {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px 28px;
	font-size: 12.5px;
	color: var(--text-dim);
}
.home-trust i {
	color: var(--accent);
	margin-right: 6px;
}

/* =========================================================
   TOOLS TAMBAHAN (HPP · QR · Kompres)
   ========================================================= */
.tl-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px solid var(--line);
	font-size: 13.5px;
	color: var(--text-soft);
}
.tl-row strong {
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 16px;
	color: var(--text);
}
.tl-row.big strong {
	font-size: 26px;
	color: var(--accent-hover);
}
.tl-row strong.neg {
	color: var(--danger);
}
.tl-row strong.pos {
	color: var(--success);
}
.st-field input[type="color"] {
	width: 100%;
	height: 42px;
	padding: 3px;
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 10px;
	cursor: pointer;
}
.qr-stage {
	display: grid;
	place-items: center;
	min-height: 280px;
	padding: 16px;
	border-radius: var(--radius);
	background: var(--bg-soft);
	border: 1px dashed var(--line-2);
}
.qr-stage canvas {
	max-width: 100%;
	height: auto;
	width: 280px;
	border-radius: 8px;
	image-rendering: pixelated;
}
.qr-stage p {
	margin: 0;
	color: var(--text-dim);
	font-size: 13px;
}
.tl-actions {
	display: flex;
	gap: 10px;
	margin-top: 14px;
}
.tl-actions .btn {
	flex: 1;
	justify-content: center;
}
#tab-compress .upload-area,
#tab-compress .format-bar,
#tab-compress .action-bar {
	margin-bottom: 18px;
}

/* =========================================================
   MENU TOOLS · BERANDA GRUP · TOOL TAMBAHAN
   ========================================================= */
.nav-menu {
	position: relative;
}
.nav-menu > .nav-link {
	border: 0;
	background: transparent;
	cursor: pointer;
}
.nav-menu > .nav-link .fa-chevron-down {
	font-size: 10px;
}
.nav-dd {
	position: absolute;
	right: 0;
	top: calc(100% + 12px);
	z-index: 1500;
	width: 250px;
	max-height: 70vh;
	overflow: auto;
	padding: 8px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	border-radius: 14px;
	background: var(--surface-2);
	border: 1px solid var(--line-2);
	box-shadow: var(--shadow-lg);
}
.nav-dd[hidden] {
	display: none;
}
.nav-dd-title {
	margin: 8px 10px 4px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--text-dim);
}
.nav-dd-title:first-child {
	margin-top: 4px;
}
.nav-dd .nav-link {
	width: 100%;
	justify-content: flex-start;
}
.nav-dd .nav-link span {
	display: inline !important;
}
.home-group-title {
	max-width: 960px;
	margin: 34px auto 14px;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 13px;
	letter-spacing: 0.01em;
	color: var(--text-dim);
}
.home-group-title:first-of-type {
	margin-top: 0;
}
input[type="range"] {
	accent-color: var(--accent);
	width: 100%;
}
.st-field input[type="date"],
.st-field input[type="file"] {
	width: 100%;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 13px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 10px;
	padding: 10px 12px;
	color-scheme: dark;
}
.st-field input[readonly] {
	color: var(--accent-hover);
}
.st-field .cnt {
	float: right;
	color: var(--text-dim);
	font-weight: 500;
}
.foto-panel {
	margin-bottom: 18px;
}
.mk-stage {
	display: grid;
	place-items: center;
	padding: 12px;
	border-radius: var(--radius);
	background: var(--bg-soft);
	border: 1px dashed var(--line-2);
}
.mk-stage canvas {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
.sz-wrap {
	overflow-x: auto;
}
.sz-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
}
.sz-table th {
	text-align: left;
	padding: 6px 4px;
	color: var(--text-dim);
	font-weight: 600;
}
.sz-table td {
	padding: 3px 3px;
}
.sz-in {
	width: 100%;
	min-width: 44px;
	padding: 8px;
	font: inherit;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 8px;
}
.sz-in:focus {
	outline: none;
	border-color: var(--accent);
}
.rk-table-wrap {
	margin-top: 20px;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius);
}
.rk-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.rk-table th {
	text-align: left;
	padding: 12px;
	color: var(--text-dim);
	background: var(--surface);
	font-weight: 600;
}
.rk-table td {
	padding: 10px 12px;
	border-top: 1px solid var(--line);
	color: var(--text-soft);
}
.rk-table td.pos {
	color: var(--success);
}
.rk-table td.neg {
	color: var(--danger);
}
.rk-empty {
	text-align: center;
	color: var(--text-dim);
	font-size: 13px;
}
.tl-actions {
	flex-wrap: wrap;
}

@media (max-width: 720px) {
	.nav-dd {
		position: fixed;
		left: 14px;
		right: 14px;
		top: 76px;
		width: auto;
	}
}

/* ---------- Tool tambahan 3 ---------- */
.nav-search {
	width: 100%;
	margin: 2px 0 6px;
	padding: 9px 12px;
	font: inherit;
	font-size: 13px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 9px;
}
.nav-search:focus {
	outline: none;
	border-color: var(--accent);
}
.nav-dd [hidden] {
	display: none !important;
}
.st-field input[type="month"] {
	width: 100%;
	font-family: "Plus Jakarta Sans", sans-serif;
	font-size: 13px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 10px;
	padding: 10px 12px;
	color-scheme: dark;
}
.gr-tiers {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}
.gr-row {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 34px;
	gap: 8px;
	align-items: center;
	font-size: 12.5px;
	color: var(--text-dim);
}
.gr-row input {
	width: 100%;
	min-width: 0;
	padding: 9px 10px;
	font: inherit;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 8px;
}
.gr-row input:focus {
	outline: none;
	border-color: var(--accent);
}
.rk-table code {
	font-family: "JetBrains Mono", monospace;
	font-size: 12px;
	color: var(--accent-hover);
}
.bl-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 14px;
	margin-bottom: 18px;
}
.bl-top .st-field {
	flex: 1;
	min-width: 220px;
	margin: 0;
}
.bl-top-act {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.bl-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 16px;
}
.bl-card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
}
.bl-card input,
.bl-card textarea {
	width: 100%;
	font: inherit;
	font-size: 13px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 9px;
	padding: 9px 11px;
	resize: vertical;
}
.bl-card .bl-t {
	font-weight: 700;
}
.bl-card input:focus,
.bl-card textarea:focus {
	outline: none;
	border-color: var(--accent);
}
.bl-act {
	display: flex;
	gap: 8px;
}

.sz-h {
	display: flex;
	align-items: center;
	gap: 2px;
}
.sz-x {
	flex: none;
	width: 26px;
	height: 26px;
	display: grid;
	place-items: center;
	font-size: 11px;
	color: var(--text-dim);
	background: transparent;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
}
.sz-x:hover {
	color: var(--danger);
	background: rgb(var(--ink-rgb) / 0.05);
}
.sz-table .sz-in {
	min-width: 72px;
}

.brand-mark img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	display: block;
}

/* ---------- Viewer zoom ---------- */
body.zv-open {
	overflow: hidden;
}
.zv {
	position: fixed;
	inset: 0;
	z-index: 3000;
	display: flex;
	flex-direction: column;
	background: #0b0807;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
.zv-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	background: var(--bg-soft);
}
.zv-title {
	flex: 1 1 140px;
	min-width: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.zv-tabs {
	display: flex;
	gap: 4px;
	padding: 3px;
	border-radius: 10px;
	background: var(--surface);
}
.zv-tabs:empty {
	display: none;
}
.zv-tabs button {
	padding: 6px 14px;
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-soft);
	background: transparent;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}
.zv-tabs button.on {
	color: var(--on-accent);
	background: var(--accent);
}
.zv-tools {
	display: flex;
	align-items: center;
	gap: 6px;
}
.zv-tools button {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: 10px;
	cursor: pointer;
}
.zv-tools button:hover {
	border-color: var(--accent);
}
.zv-pct {
	min-width: 50px;
	text-align: center;
	font-size: 12.5px;
	color: var(--text-soft);
	font-variant-numeric: tabular-nums;
}
.zv-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	overflow: hidden;
	touch-action: none;
	cursor: grab;
	user-select: none;
}
.zv-stage:active {
	cursor: grabbing;
}
.zv-stage img {
	position: absolute;
	left: 0;
	top: 0;
	max-width: none;
	transform-origin: 0 0;
	image-rendering: auto;
	will-change: transform;
}
.zv-info {
	padding: 8px 14px;
	font-size: 12px;
	color: var(--text-dim);
	text-align: center;
	border-top: 1px solid var(--line);
	background: var(--bg-soft);
}
.zoom-hint {
	position: absolute;
	right: 8px;
	bottom: 8px;
	width: 30px;
	height: 30px;
	display: grid;
	place-items: center;
	font-size: 12px;
	color: var(--text);
	background: rgb(var(--bg-rgb) / 0.75);
	border: 1px solid var(--line-2);
	border-radius: 8px;
	pointer-events: none;
}
@media (max-width: 560px) {
	.zv-tools button.zv-txt {
		padding: 0 8px;
	}
}

/* ---------- Perbaikan responsif: kolom grid tidak boleh melebar melewati layar ---------- */
.st-grid,
.home-grid,
.bl-list {
	min-width: 0;
}
@media (max-width: 900px) {
	.st-grid {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}
@media (max-width: 480px) {
	.st-row2 {
		grid-template-columns: minmax(0, 1fr);
	}
	.gr-row {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto 34px;
		gap: 6px;
	}
	.tl-actions .btn {
		flex: 1 1 100%;
	}
}
.upd-bar {
	position: fixed;
	left: 50%;
	bottom: calc(18px + env(safe-area-inset-bottom, 0px));
	transform: translateX(-50%);
	z-index: 3500;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: calc(100vw - 24px);
	padding: 10px 12px 10px 16px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	background: var(--surface-2);
	border: 1px solid rgb(var(--accent-rgb) / 0.45);
	border-radius: 14px;
	box-shadow: var(--shadow-lg);
}

.bl-card[hidden] {
	display: none;
}
input[type="search"] {
	font-family: inherit;
}
.st-field input[type="search"] {
	width: 100%;
	padding: 12px 14px;
	font-size: 14px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 10px;
}
.st-field input[type="search"]:focus {
	outline: none;
	border-color: var(--accent);
}

/* ---------- Banding platform, DTF, Kalender, Tautan, Listing ---------- */
.bn-fees {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.bn-fee {
	display: grid;
	grid-template-columns: minmax(80px, 1fr) 70px auto 90px auto;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--text-soft);
}
.bn-fee em {
	font-style: normal;
	font-size: 12px;
	color: var(--text-dim);
}
.bn-fee input {
	width: 100%;
	min-width: 0;
	padding: 9px 10px;
	font: inherit;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 8px;
}
.bn-fee input:focus {
	outline: none;
	border-color: var(--accent);
}
.dt-stage {
	display: grid;
	place-items: center;
	margin-top: 14px;
	padding: 12px;
	border-radius: var(--radius);
	background: var(--bg-soft);
	border: 1px dashed var(--line-2);
}
.dt-stage canvas {
	max-width: 100%;
	height: auto;
}
.kd-top {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
	margin-bottom: 12px;
}
.kd-top .st-field {
	flex: 1 1 200px;
	margin: 0;
	min-width: 0;
}
.kd-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 12px;
	margin-top: 14px;
}
.kd-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 14px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
}
.kd-card.kd-twin {
	border-color: rgb(var(--accent-rgb) / 0.4);
}
.kd-card.kd-mine {
	border-style: dashed;
}
.kd-date {
	flex: none;
	width: 52px;
	padding: 6px 0;
	text-align: center;
	border-radius: 10px;
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
}
.kd-date b {
	display: block;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	font-size: 20px;
	line-height: 1.1;
	color: var(--accent-hover);
}
.kd-date span {
	font-size: 11px;
	color: var(--text-dim);
}
.kd-body {
	flex: 1;
	min-width: 0;
}
.kd-body h3 {
	margin: 0 0 2px;
	font-size: 14.5px;
}
.kd-body p {
	margin: 0;
	font-size: 12px;
	color: var(--text-dim);
}
.kd-body .kd-tip {
	margin-top: 4px;
	color: var(--text-soft);
}
.home-links {
	max-width: 960px;
	margin: 0 auto 8px;
}
.home-links .home-group-title {
	margin-top: 0;
}
.hl-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.hl-chip {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--line-2);
}
.hl-chip a {
	padding: 8px 6px 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--text);
	text-decoration: none;
}
.hl-chip a:hover {
	color: var(--accent-hover);
}
.hl-chip button {
	width: 28px;
	height: 28px;
	margin-right: 4px;
	font-size: 11px;
	color: var(--text-dim);
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}
.hl-chip button:hover {
	color: var(--danger);
}
.hl-empty {
	margin: 0;
	font-size: 13px;
	color: var(--text-dim);
}
.hl-edit {
	margin-top: 10px;
	font-size: 13px;
	color: var(--text-soft);
}
.hl-edit summary {
	cursor: pointer;
	width: fit-content;
	padding: 4px 0;
}
.hl-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}
.hl-form input {
	flex: 1 1 180px;
	min-width: 0;
	padding: 10px 12px;
	font: inherit;
	font-size: 13px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 10px;
}
.hl-form input:focus {
	outline: none;
	border-color: var(--accent);
}
.footer-copy {
	color: var(--text-dim);
	font-size: 12px;
}
.ls-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 12px;
	font-size: 13px;
	color: var(--text-soft);
	cursor: pointer;
}
.ls-check input {
	width: 18px;
	height: 18px;
	accent-color: var(--accent);
}
.ls-check small {
	color: var(--text-dim);
}
@media (max-width: 480px) {
	.bn-fee {
		grid-template-columns: minmax(70px, 1fr) 56px auto 76px auto;
	}
	.kd-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

.ls-chipbox {
	margin: -4px 0 12px;
}
.ls-grp {
	margin-bottom: 10px;
}
.ls-g {
	display: block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--text-dim);
}
.ls-grp .st-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

/* ---------- Katalog, Bundling, target KB ---------- */
.cp-target input {
	width: 150px;
	padding: 9px 12px;
	font: inherit;
	font-size: 13px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 10px;
}
.cp-target input:focus {
	outline: none;
	border-color: var(--accent);
}
.kt-rows,
.bd-rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}
.kt-row {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1fr) 34px;
	gap: 6px;
	align-items: center;
}
.bd-row {
	display: grid;
	grid-template-columns: 64px auto minmax(0, 1fr) 34px;
	gap: 8px;
	align-items: center;
	font-size: 12.5px;
	color: var(--text-dim);
}
.kt-row input,
.bd-row input {
	width: 100%;
	min-width: 0;
	padding: 9px 10px;
	font: inherit;
	font-size: 13px;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 8px;
}
.kt-row input:focus,
.bd-row input:focus {
	outline: none;
	border-color: var(--accent);
}
#ktOut {
	font-family: "JetBrains Mono", monospace;
	font-size: 12.5px;
	line-height: 1.55;
}
@media (max-width: 600px) {
	.kt-row {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 34px;
	}
	.kt-row input[data-k="n"] {
		grid-column: 1 / 3;
	}
	.kt-row button {
		grid-row: 1;
		grid-column: 3;
	}
}

/* ---------- Kompatibilitas Safari / iOS ---------- */
html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}
.format-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}
/* iOS memperbesar halaman otomatis saat mengetuk kolom berfont < 16px. Naikkan ke 16px di layar sentuh. */
@media (max-width: 900px) and (pointer: coarse) {
	input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
	select,
	textarea {
		font-size: 16px !important;
	}
}

/* ---------- Excel <-> CSV ---------- */
.xl-panel {
	margin-bottom: 18px;
}
.xl-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 16px;
	min-width: 0;
}
.xl-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px;
	border-radius: var(--radius);
	background: var(--surface);
	border: 1px solid var(--line);
}
.xl-head {
	display: flex;
	align-items: center;
	gap: 12px;
}
.xl-head > i {
	font-size: 22px;
	color: var(--accent);
}
.xl-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.xl-info b,
.xl-out b {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 14px;
}
.xl-info span,
.xl-out span {
	font-size: 12px;
	color: var(--text-dim);
}
.xl-out {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
}
.xl-out > div {
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.xl-det summary {
	cursor: pointer;
	font-size: 12.5px;
	color: var(--text-soft);
	padding: 2px 0;
}
.xl-prev {
	margin-top: 8px;
	max-height: 260px;
	overflow: auto;
	border: 1px solid var(--line);
	border-radius: 8px;
}
.xl-prev table {
	border-collapse: collapse;
	font-size: 12px;
	white-space: nowrap;
}
.xl-prev td {
	padding: 5px 9px;
	border: 1px solid var(--line);
	color: var(--text-soft);
}
.xl-prev tr:first-child td {
	color: var(--text);
	font-weight: 700;
	background: var(--bg-soft);
}
@media (max-width: 480px) {
	.xl-list {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Kebutuhan Kain: tabel isian per ukuran */
.kn-wrap {
	margin-top: 4px;
	margin-bottom: 14px;
}
.kn-table td strong {
	color: var(--text);
}
.kn-table input {
	width: 100%;
	min-width: 70px;
	padding: 8px 10px;
	font: inherit;
	color: var(--text);
	background: var(--bg-soft);
	border: 1px solid var(--line-2);
	border-radius: 8px;
}
.kn-table input:focus {
	outline: none;
	border-color: var(--accent);
}
.kn-table input::placeholder {
	color: var(--text-mute);
}

/* =========================================================
   COMPACT — jarak dan ukuran dirapatkan di semua halaman
   ========================================================= */
.container { padding: 0 16px; }
.site-header { padding: 10px 0; }
.brand-mark { width: 36px; height: 36px; min-width: 36px; border-radius: 10px; font-size: 15px; }
.brand-name { font-size: 18px; }
.brand-tag { margin-top: 1px; font-size: 11px; }
.nav-link { padding: 7px 12px; }
.app-tab .app-main { padding-top: 20px; padding-bottom: 36px; }
.app-tab .st-wrap { padding-top: 18px; padding-bottom: 32px; }

.hero { margin-bottom: 16px; }
.hero-eyebrow, .st-hero-eyebrow { padding: 4px 11px; font-size: 10.5px; margin-bottom: 8px; }
.hero-title { font-size: clamp(26px, 4vw, 36px); margin-bottom: 4px; }
.hero-sub { font-size: 13px; line-height: 1.5; }
.st-hero { margin-bottom: 14px; }
.st-hero h1 { font-size: clamp(22px, 3.4vw, 30px); margin-bottom: 4px; }
.st-hero p { font-size: 13px; line-height: 1.5; }

/* Beranda: kartu lebih kecil, 4 kolom di desktop */
.home-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; max-width: none; }
.home-group-title { max-width: none; margin: 18px 0 8px; font-size: 11.5px; }
.home-links { max-width: none; margin-bottom: 0; }
.home-card {
	display: grid;
	grid-template-columns: 34px 1fr;
	column-gap: 11px;
	row-gap: 2px;
	align-items: start;
	align-content: start;
	padding: 12px 14px;
	border-radius: 12px;
}
.home-card-icon { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 9px; font-size: 14px; }
.home-card h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.home-card p { font-size: 12px; line-height: 1.45; }
.home-card-go { display: none; }

/* Halaman tool */
.st-grid { gap: 14px; }
.st-panel { padding: 16px; border-radius: 12px; }
.st-panel-head { margin: -16px -16px 14px; padding: 10px 16px; }
.st-field { margin-bottom: 10px; }
.st-field label { margin-bottom: 5px; font-size: 10.5px; }
.st-field select, .st-field input[type="text"] { padding: 8px 11px; font-size: 13px; border-radius: 9px; }
.st-row2 { gap: 10px; }
.st-section { margin: 14px 0 10px; padding-top: 12px; }
.tl-row { padding: 7px 0; font-size: 13px; }
.tl-row.big strong { font-size: 21px; }
.tl-actions { margin-top: 10px; }
.st-actions { margin-top: 12px; }
.btn { padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.st-tpl-btn { padding: 7px 12px; }
.upload-area { padding: 28px 20px; }
.upload-icon { width: 52px; height: 52px; margin-bottom: 12px; font-size: 22px; border-radius: 14px; }
.rk-table-wrap { margin-top: 12px; }
.rk-table th { padding: 8px 10px; }
.rk-table td { padding: 7px 10px; }
.site-footer { padding: 16px 0; margin-top: 24px; }

.home-links .hl-edit { margin-bottom: 4px; }


/* =========================================================
   DESAIN BARU — fresh, gaya Gen Z
   Krem hangat + oranye Tjorak. Kartu & tombol "sticker":
   garis tinta tegas, bayangan solid, ikon pastel, pil di mana-mana.
   Halaman tool tetap tenang (panel lembut), yang bisa disentuh yang "pop".
   ========================================================= */
body {
	letter-spacing: -0.005em;
	background: var(--bg);
}
h1, h2, h3, .brand-name, .hero-title { letter-spacing: -0.03em; }
*::selection { background: var(--accent); color: var(--on-accent); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* latar: titik-titik tipis ala buku catatan */
.bg-glow {
	background-image: radial-gradient(rgb(var(--ink-rgb) / 0.09) 1px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(#000 0, #000 40%, transparent 95%);
	mask-image: linear-gradient(#000 0, #000 40%, transparent 95%);
}

/* ---------- header: pil melayang ---------- */
.site-header {
	padding: 14px 0 4px;
	background: transparent;
	border: none;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.site-header .header-inner {
	width: calc(100% - 48px);
	max-width: 1052px;
	padding: 8px 8px 8px 12px;
	background: var(--surface);
	border: 1.5px solid var(--edge);
	border-radius: 99px;
	box-shadow: 0 3px 0 var(--edge);
}
.brand-mark {
	width: 36px;
	height: 36px;
	min-width: 36px;
	border: none;
	border-radius: 12px;
	background: var(--surface-2);
	box-shadow: none;
	overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.brand-name { font-size: 17px; font-weight: 800; }
.brand-tag { display: none; }
.site-nav { padding: 0; background: none; border: none; box-shadow: none; gap: 2px; }
.site-nav .nav-link {
	padding: 9px 15px;
	border-radius: 99px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--text-soft);
}
.site-nav .nav-link:hover { background: var(--surface-2); color: var(--text); }
.site-nav .nav-link.active { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.site-nav .nav-link.active i { color: inherit; }
.nav-dd {
	background: var(--surface);
	border: 1.5px solid var(--edge);
	border-radius: 22px;
	box-shadow: 0 4px 0 var(--edge);
}
.nav-dd .nav-link { border-radius: 12px; }
.nav-dd .nav-link:hover { background: var(--accent-soft); color: var(--text); }

/* ---------- hero beranda: blok oranye besar ---------- */
.hero-home {
	position: relative;
	overflow: hidden;
	text-align: left;
	margin: 18px 0 40px;
	padding: 48px 44px 44px;
	background: var(--accent);
	color: var(--hero-ink);
	border: 1.5px solid var(--edge);
	border-radius: 36px;
	box-shadow: 0 6px 0 var(--edge);
}
.hero-home::before {
	content: "";
	position: absolute;
	right: -70px;
	top: -80px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.2);
}
.hero-home::after {
	content: "";
	position: absolute;
	right: 70px;
	bottom: -64px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	border: 2px solid var(--hero-ink);
	opacity: 0.35;
}
.hero-home > * { position: relative; z-index: 1; }
.hero-home .hero-eyebrow {
	background: #fff;
	color: var(--hero-ink);
	border: 1.5px solid var(--hero-ink);
	margin-bottom: 18px;
}
.hero-home .hero-eyebrow i { color: var(--accent); }
.hero-home .hero-title {
	font-size: clamp(40px, 7vw, 72px);
	font-weight: 800;
	line-height: 1;
	margin: 0 0 14px;
	color: var(--hero-ink);
}
.hero-home .hero-title .text-gold {
	display: inline-block;
	padding: 0 0.18em 0.06em;
	background: var(--hero-ink);
	-webkit-background-clip: border-box;
	background-clip: border-box;
	-webkit-text-fill-color: #fff6ec;
	color: #fff6ec;
	border-radius: 0.28em;
	transform: rotate(-2.5deg);
}
.hero-home .hero-sub {
	margin: 0 0 26px;
	max-width: 520px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--hero-ink);
}
.hero-search {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 520px;
	padding: 0 20px;
	background: #fff;
	border: 1.5px solid var(--hero-ink);
	border-radius: 99px;
	box-shadow: 0 4px 0 var(--hero-ink);
	color: var(--hero-ink);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-search:focus-within { transform: translateY(2px); box-shadow: 0 2px 0 var(--hero-ink); }
.hero-search i { font-size: 15px; }
.hero-search input[type="search"],
.hero-search input[type="search"]:focus {
	flex: 1;
	min-width: 0;
	height: 54px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: var(--hero-ink);
}
.hero-search input[type="search"]::placeholder { color: #8a7b70; font-weight: 500; }
.home-empty {
	margin: 30px 0;
	text-align: center;
	font-weight: 600;
	color: var(--text-dim);
}

/* ---------- beranda: grup & kartu ---------- */
.home-group-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 34px 0 14px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: var(--text);
}
.home-group-title::before {
	content: "";
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--accent);
	border: 1.5px solid var(--edge);
}
.home-grid { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.home-card {
	grid-template-columns: 46px 1fr;
	column-gap: 14px;
	row-gap: 3px;
	padding: 16px;
	background: var(--surface);
	border: 1.5px solid var(--edge);
	border-radius: 22px;
	box-shadow: 0 3px 0 var(--edge);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
a.home-card:hover,
a.home-card:focus-visible {
	transform: translateY(-3px);
	border-color: var(--edge);
	box-shadow: 0 6px 0 var(--edge);
	background: var(--surface);
}
a.home-card:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.home-card-icon {
	width: 46px;
	height: 46px;
	border: 1.5px solid var(--edge);
	border-radius: 15px;
	font-size: 18px;
	color: var(--text);
	background: var(--p1);
}
.home-grid > .home-card:nth-child(6n + 2) .home-card-icon { background: var(--p2); }
.home-grid > .home-card:nth-child(6n + 3) .home-card-icon { background: var(--p3); }
.home-grid > .home-card:nth-child(6n + 4) .home-card-icon { background: var(--p4); }
.home-grid > .home-card:nth-child(6n + 5) .home-card-icon { background: var(--p5); }
.home-grid > .home-card:nth-child(6n + 6) .home-card-icon { background: var(--p6); }
.home-card h3 { font-size: 15.5px; font-weight: 800; letter-spacing: -0.02em; }
.home-card p { font-size: 12.5px; color: var(--text-soft); }

/* ---------- hero halaman tool ---------- */
.hero-eyebrow, .st-hero-eyebrow {
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: 0;
	color: var(--text);
	background: var(--surface);
	border: 1.5px solid var(--edge);
	box-shadow: 0 2px 0 var(--edge);
}
.hero-eyebrow i, .st-hero-eyebrow i { color: var(--accent); }
.st-hero { margin: 18px 0 22px; }
.st-hero h1, .hero .hero-title {
	font-size: clamp(30px, 5vw, 48px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.035em;
}
.st-hero h1 .text-gold,
.hero:not(.hero-home) .hero-title .text-gold {
	color: var(--text);
	-webkit-text-fill-color: var(--text);
	-webkit-background-clip: border-box;
	background-clip: border-box;
	background: linear-gradient(transparent 60%, rgb(var(--accent-rgb) / 0.45) 60%);
	padding: 0 0.08em;
}
.st-hero p, .hero:not(.hero-home) .hero-sub { font-size: 14.5px; color: var(--text-soft); }

/* ---------- panel ---------- */
.st-panel {
	padding: 22px;
	background: var(--surface);
	border: 1.5px solid var(--line-2);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}
.st-panel-head {
	margin: -22px -22px 18px;
	padding: 14px 22px;
	background: var(--surface-2);
	border-bottom: 1.5px solid var(--line-2);
	border-radius: calc(var(--radius-lg) - 2px) calc(var(--radius-lg) - 2px) 0 0;
}
.st-panel-head h2 { font-weight: 800; letter-spacing: -0.02em; }
.st-panel-head .dot {
	background: var(--accent);
	border: 1.5px solid var(--edge);
	box-shadow: none;
}
.st-field label { font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--text-soft); }
.st-section { border-color: var(--line-2); }

/* ---------- input ---------- */
input[type="text"], input[type="number"], input[type="url"], input[type="search"],
input[type="email"], input[type="password"], input[type="tel"], input[type="date"],
input[type="month"], select, textarea {
	background: var(--bg-soft);
	color: var(--text);
	border: 1.5px solid var(--line-2);
	border-radius: 14px;
	font-weight: 500;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.st-field select, .st-field input[type="text"] { padding: 11px 14px; font-size: 14px; border-radius: 14px; }
input::placeholder, textarea::placeholder { color: var(--text-mute); }
input:focus, select:focus, textarea:focus {
	outline: none;
	background: var(--surface);
	border-color: var(--edge);
	box-shadow: 0 0 0 4px var(--accent-ring);
}
input[type="range"], input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* ---------- tombol sticker ---------- */
.btn {
	padding: 12px 22px;
	font-size: 13.5px;
	font-weight: 700;
	letter-spacing: 0;
	border: 1.5px solid var(--edge);
	border-radius: 99px;
	box-shadow: 0 3px 0 var(--edge);
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 5px 0 var(--edge); }
.btn:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
.btn-sm { padding: 8px 16px; box-shadow: 0 2px 0 var(--edge); }
.btn-gold { background: var(--accent); color: var(--on-accent); }
.btn-gold:hover:not(:disabled) { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost, .btn-maroon {
	background: var(--surface);
	color: var(--text);
	border: 1.5px solid var(--edge);
}
.btn-ghost:hover:not(:disabled), .btn-maroon:hover:not(:disabled) {
	background: var(--surface-2);
	color: var(--text);
	border-color: var(--edge);
}
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	border-color: var(--line-2);
}
.btn-gold:disabled { background: var(--surface-2); color: var(--text-dim); }

/* ---------- chip, pilihan format, template ---------- */
.format-btn, .st-chip, .st-tpl-btn, .st-lang-btn {
	padding: 9px 16px;
	font-weight: 700;
	background: var(--surface);
	color: var(--text);
	border: 1.5px solid var(--line-2);
	border-radius: 99px;
	box-shadow: none;
	transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}
.format-btn:hover:not(:disabled), .st-chip:hover, .st-tpl-btn:hover, .st-lang-btn:hover {
	border-color: var(--edge);
	background: var(--surface);
	color: var(--text);
}
.format-btn.active, .st-chip.active, .st-tpl-btn.active, .st-lang-btn.active {
	background: var(--accent);
	color: var(--on-accent);
	border-color: var(--edge);
	box-shadow: 0 2px 0 var(--edge);
}
.format-bar { background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- upload ---------- */
.upload-area {
	padding: 52px 24px;
	background: var(--surface);
	border: 2px dashed var(--edge);
	border-radius: var(--radius-lg);
	box-shadow: none;
}
.upload-area:hover, .upload-area.dragover, .upload-area:focus-visible {
	background: var(--accent-soft);
	border-color: var(--accent);
	transform: none;
	box-shadow: none;
}
.upload-icon {
	background: var(--p1);
	border: 1.5px solid var(--edge);
	color: var(--text);
	border-radius: 18px;
	box-shadow: 0 3px 0 var(--edge);
}

/* ---------- kartu gambar, progres ---------- */
.img-card {
	background: var(--surface);
	border: 1.5px solid var(--line-2);
	border-radius: 22px;
	box-shadow: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.img-card:hover { transform: translateY(-3px); border-color: var(--edge); box-shadow: 0 5px 0 var(--edge); }
.progress-track { height: 12px; border: 1.5px solid var(--edge); border-radius: 99px; background: var(--surface); overflow: hidden; }
.progress-fill { background: var(--accent); box-shadow: none; border-radius: 0; }

/* ---------- toast, modal, footer ---------- */
.toast { background: var(--surface); border: 1.5px solid var(--edge); border-radius: 16px; box-shadow: 0 4px 0 var(--edge); }
.modal-backdrop { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.site-footer { background: transparent; border-top: 1.5px dashed var(--line-2); margin-top: 40px; }
.footer-title { font-weight: 800; }

/* ---------- mobile ---------- */
@media (max-width: 720px) {
	.site-header .header-inner { width: calc(100% - 28px); padding: 7px 7px 7px 10px; }
	.site-nav .nav-link { padding: 9px 12px; }
	.hero-home { margin: 12px 0 32px; padding: 30px 22px 28px; border-radius: 28px; box-shadow: 0 5px 0 var(--edge); }
	.hero-home::before { width: 180px; height: 180px; right: -60px; top: -60px; }
	.hero-home::after { display: none; }
	.hero-home .hero-sub { font-size: 14.5px; margin-bottom: 20px; }
	.hero-search input[type="search"] { height: 50px; }
	.home-grid { grid-template-columns: 1fr; gap: 12px; }
	.st-panel { padding: 18px; }
	.st-panel-head { margin: -18px -18px 16px; padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.btn, .home-card, .img-card, .hero-search { transition: none; }
	a.home-card:hover, .btn:hover:not(:disabled), .img-card:hover { transform: none; }
}
