/* ==========================================================================
   AUF Publikasi Digital — Main Stylesheet (fresh white, modern, responsif)
   PRD Bagian 7: putih segar, aksen biru #2563EB, tipografi Inter.
   ========================================================================== */

:root {
	--auf-white: #ffffff;
	--auf-bg: #fafafa;
	--auf-primary: #2563eb;
	--auf-primary-dark: #1d4ed8;
	--auf-primary-soft: #eff6ff;
	--auf-text: #1f2937;
	--auf-text-2: #4b5563;
	--auf-text-3: #9ca3af;
	--auf-border: #e5e7eb;
	--auf-success: #16a34a;
	--auf-warning: #f59e0b;
	--auf-danger: #dc2626;
	--auf-radius: 12px;
	--auf-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
	--auf-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.10);
	--auf-container: 1200px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	line-height: 1.6;
	color: var(--auf-text);
	background: var(--auf-bg);
}

.auf-container {
	max-width: var(--auf-container);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------------------------------------------------------------- Buttons */
.auf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	border: none;
	border-radius: var(--auf-radius);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}

.auf-btn-primary {
	background: var(--auf-primary);
	color: #fff;
}

.auf-btn-primary:hover {
	background: var(--auf-primary-dark);
}

.auf-btn-outline {
	background: transparent;
	border: 1px solid var(--auf-primary);
	color: var(--auf-primary);
}

.auf-btn-outline:hover {
	background: var(--auf-primary-soft);
}

.auf-btn-ghost {
	background: transparent;
	color: var(--auf-text);
}

.auf-btn-ghost:hover {
	background: var(--auf-bg);
}

.auf-btn-light {
	background: #fff;
	color: var(--auf-primary);
	box-shadow: var(--auf-shadow);
}

.auf-btn-light:hover {
	box-shadow: var(--auf-shadow-lg);
}

/* ---------------------------------------------------------------- Header */
.auf-header {
	height: 72px;
	background: #fff;
	border-bottom: 1px solid var(--auf-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.auf-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.auf-brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.auf-brand-link {
	text-decoration: none;
	color: var(--auf-text);
	display: flex;
	align-items: center;
	gap: 12px;
}

.auf-brand-mark {
	font-size: 24px;
	font-weight: 700;
	color: var(--auf-primary);
}

.auf-brand-text {
	font-size: 18px;
	font-weight: 600;
	color: var(--auf-text);
}

.auf-nav {
	display: flex;
	gap: 32px;
}

.auf-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 24px;
}

.auf-menu li a {
	text-decoration: none;
	color: var(--auf-text-2);
	font-weight: 600;
	font-size: 14px;
	transition: color 0.2s;
}

.auf-menu li a:hover {
	color: var(--auf-primary);
}

.auf-header-actions {
	display: flex;
	gap: 12px;
}

/* ---------------------------------------------------------------- Main Content Area */
.auf-main {
	min-height: calc(100vh - 72px - 300px); /* header + footer estimate */
	padding: 48px 0;
}

.auf-section {
	margin-bottom: 64px;
}

.auf-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
}

.auf-section-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--auf-text);
	margin: 0;
}

.auf-link-more {
	color: var(--auf-primary);
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s;
}

.auf-link-more:hover {
	text-decoration: underline;
	transform: translateX(4px);
}

.auf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 32px;
}

/* ---------------------------------------------------------------- Footer */
.auf-footer {
	background: #111827; /* slate-900 */
	color: #d1d5db; /* slate-300 */
	padding: 60px 0 40px;
}

.auf-footer-top {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 40px;
}

@media (max-width: 1200px) {
	.auf-footer-top {
		grid-template-columns: 1.4fr 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.auf-footer-top {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 767px) {
	.auf-footer-top {
		grid-template-columns: 1fr;
	}
	.auf-footer {
		padding: 40px 0 20px;
	}
}

/* Desktop: sembunyikan kolom navigasi footer, tampilkan hanya di mobile */
@media (min-width: 901px) {
	.auf-footer-nav {
		display: none;
	}
	.auf-footer-top {
		grid-template-columns: 1.4fr 1fr 1fr;
		gap: 40px;
	}
}

.auf-footer-col {
	height: 100%;
}

.auf-footer-brand {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.auf-footer-logo {
	display: flex;
	align-items: center;
	gap: 12px;
}

.auf-footer-logo-text {
	font-size: 24px;
	font-weight: 700;
	color: #fff;
}

.auf-footer-desc {
	color: #9ca3af; /* slate-400 */
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.auf-footer-social {
	display: flex;
	gap: 12px;
	margin-top: 20px;
}

.auf-footer-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #d1d5db;
	text-decoration: none;
	transition: all 0.2s;
}

.auf-footer-social-link:hover {
	background: var(--auf-primary);
	color: #fff;
	transform: translateY(-2px);
}

.auf-footer-heading {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 20px;
}

.auf-footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.auf-footer-menu li {
	margin-bottom: 12px;
}

.auf-footer-menu a {
	color: #d1d5db;
	font-size: 14px;
	text-decoration: none;
	transition: color 0.2s;
}

.auf-footer-menu a:hover {
	color: #fff;
	text-decoration: underline;
}

.auf-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.auf-footer-contact li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: #d1d5db;
	font-size: 14px;
}

.auf-footer-contact svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.auf-footer-bottom {
	border-top: 1px solid #1f2937; /* slate-800 */
	padding: 24px 0;
}

.auf-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.auf-footer-bottom p {
	margin: 0;
	font-size: 14px;
	color: #6b7280; /* slate-500 */
}

.auf-back-to-top {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #374151; /* slate-700 */
	border-radius: 50%;
	background: transparent;
	color: #d1d5db;
	cursor: pointer;
	transition: all 0.2s;
}

.auf-back-to-top:hover {
	background: var(--auf-primary);
	border-color: var(--auf-primary);
	color: #fff;
}

/* ---------------------------------------------------------------- Bottom navigation (mobile) */
.auf-bottom-nav {
	display: none;
}

@media (max-width: 900px) {
	.auf-bottom-nav {
		display: grid;
		grid-template-columns: repeat(5, 1fr);
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 200;
		background: #ffffff;
		border-top: 1px solid var(--auf-border);
		padding-bottom: env(safe-area-inset-bottom);
		box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
	}

	.auf-bottom-nav-item {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 3px;
		padding: 8px 4px 6px;
		color: var(--auf-text-3);
		font-size: 11px;
		font-weight: 600;
		text-decoration: none;
		min-height: 52px;
	}

	.auf-bottom-nav-item:hover {
		color: var(--auf-primary);
	}

	.auf-bottom-nav-icon {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 22px;
		height: 22px;
	}

	.auf-bottom-nav-icon svg {
		width: 100%;
		height: 100%;
	}

	body {
		padding-bottom: calc(58px + env(safe-area-inset-bottom));
	}

	/* Kecuali di halaman reader: navigasi disembunyikan agar fokus baca. */
	body.auf-reader-active {
		padding-bottom: 0;
	}

	body.auf-reader-active .auf-bottom-nav {
		display: none;
	}

	body.auf-reader-active .auf-header {
		display: none;
	}

	/* Tabs member area: scroll horizontal, tidak wrap berantakan */
	.auf-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin-left: -20px;
		margin-right: -20px;
		padding: 0 20px;
	}

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

	.auf-tab {
		flex: 0 0 auto;
		white-space: nowrap;
	}
}

/* ---------------------------------------------------------------- Others */
.auf-404 {
	text-align: center;
	padding-top: 80px;
}

.auf-404-title {
	font-size: 96px;
	font-weight: 800;
	color: var(--auf-primary);
	margin-bottom: 8px;
}

.auf-404 p {
	color: var(--auf-text-2);
	margin-bottom: 20px;
}

.auf-dev-login input[type="email"] {
	padding: 10px 14px;
	border: 1px solid var(--auf-border);
	border-radius: 10px;
	font-size: 14px;
	min-width: 260px;
}

/* ---------------------------------------------------------------- Pagination */
.navigation.pagination {
	margin-top: 32px;
	text-align: center;
}

.nav-links {
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--auf-border);
	border-radius: 10px;
	color: var(--auf-text-2);
	font-weight: 600;
	font-size: 14px;
}

.page-numbers.current {
	background: var(--auf-primary);
	color: #fff;
	border-color: var(--auf-primary);
}

.page-numbers:hover {
	border-color: var(--auf-primary);
	color: var(--auf-primary);
}

/* ---------------------------------------------------------------- Modal login (checkout guest) */
.auf-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(17, 24, 39, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: auf-fade-in 0.15s ease;
}

.auf-modal {
	background: #fff;
	border-radius: 16px;
	box-shadow: var(--auf-shadow-lg);
	max-width: 420px;
	width: 100%;
	padding: 28px 24px 24px;
	position: relative;
	text-align: center;
	animation: auf-pop-in 0.2s ease;
}

.auf-modal h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 10px;
}

.auf-modal-desc {
	color: var(--auf-text-2);
	font-size: 14px;
	margin: 0 0 20px;
	line-height: 1.6;
}

.auf-modal-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.auf-modal-body .auf-btn {
	width: 100%;
}

.auf-modal-body .auf-dev-login {
	flex-direction: column;
	align-items: stretch;
}

.auf-modal-body .auf-dev-login input[type="email"] {
	width: 100%;
	min-width: 0;
}

.auf-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	color: var(--auf-text-2);
}

.auf-modal-close:hover {
	color: var(--auf-text);
}

@keyframes auf-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes auf-pop-in {
	from {
		transform: scale(0.96);
	}
	to {
		transform: scale(1);
	}
}

/* ================================================================ HERO SECTION */
.auf-hero {
	background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}

.auf-hero-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.auf-hero-content {
	z-index: 10;
}

.auf-hero-title {
	font-size: 48px;
	font-weight: 800;
	color: var(--auf-text);
	margin: 0 0 16px;
	line-height: 1.2;
}

.auf-hero-title strong {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.auf-hero-quote {
	font-size: 18px;
	color: var(--auf-text-2);
	margin: 24px 0;
	font-style: italic;
	line-height: 1.6;
}

.auf-hero-actions {
	display: flex;
	gap: 16px;
	margin-top: 32px;
}

.auf-btn-lg {
	padding: 14px 32px;
	font-size: 16px;
}

.auf-hero-visual {
	position: relative;
	height: 500px;
}

.auf-photo-stack {
	position: relative;
	width: 100%;
	height: 100%;
}

.auf-photo {
	position: absolute;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	perspective: 1200px;
	cursor: pointer;
}

.auf-photo-inner {
	position: relative;
	width: 100%;
	height: 100%;
	transform-style: preserve-3d;
	transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.auf-photo-face {
	position: absolute;
	inset: 0;
	border-radius: 16px;
	overflow: hidden;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.auf-photo-face img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.auf-photo-back {
	transform: rotateY(180deg);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	text-align: center;
	color: #fff;
	background:
		radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
		linear-gradient(135deg, #2563eb 0%, #1e40af 60%, #172554 100%);
}

.auf-photo-back-icon {
	font-size: 38px;
	line-height: 1;
}

.auf-photo-back-text {
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.4px;
}

.auf-photo-main {
	width: 280px;
	height: 320px;
	top: 20px;
	left: 0;
	z-index: 3;
	transform: rotate(-5deg);
}

.auf-photo-mid {
	width: 240px;
	height: 280px;
	top: 80px;
	left: 140px;
	z-index: 2;
	transform: rotate(3deg);
}

.auf-photo-bottom {
	width: 200px;
	height: 240px;
	top: 160px;
	left: 220px;
	z-index: 1;
	transform: rotate(-8deg);
}

/* Flip 3D saat hover / focus (efek reaktif). */
.auf-photo:hover .auf-photo-inner,
.auf-photo:focus .auf-photo-inner,
.auf-photo:focus-visible .auf-photo-inner {
	transform: rotateY(180deg);
}

.auf-photo:hover {
	z-index: 20; /* naik ke paling atas agar flip terlihat penuh */
	box-shadow: 0 26px 52px rgba(15, 23, 42, 0.24);
}

.auf-photo:focus-visible {
	outline: 3px solid var(--auf-primary);
	outline-offset: 3px;
}

/* Naikkan ketiganya saat hover area hero (reaktif). */
.auf-hero-visual:hover .auf-photo-main {
	transform: rotate(-5deg) translateY(-10px);
}

.auf-hero-visual:hover .auf-photo-mid {
	transform: rotate(3deg) translateY(-5px);
}

.auf-hero-visual:hover .auf-photo-bottom {
	transform: rotate(-8deg) translateY(-3px);
}

@media (max-width: 1200px) {
	.auf-hero-inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.auf-hero-title {
		font-size: 40px;
	}
	.auf-hero-visual {
		height: 400px;
	}
}

@media (max-width: 768px) {
	.auf-hero {
		padding: 60px 0;
	}
	.auf-hero-title {
		font-size: 32px;
	}
	.auf-hero-actions {
		flex-direction: column;
	}
	.auf-btn-lg {
		width: 100%;
		text-align: center;
	}
	.auf-hero-visual {
		height: 300px;
	}
	.auf-photo-main {
		width: 200px;
		height: 240px;
		top: 0;
		left: 0;
	}
	.auf-photo-mid {
		width: 170px;
		height: 200px;
		top: 60px;
		left: 100px;
	}
	.auf-photo-bottom {
		width: 140px;
		height: 160px;
		top: 120px;
		left: 160px;
	}
}

/* ================================================================ SLIDER SECTION */
.auf-slider-section {
	padding: 64px 0;
	background: #fff;
}

.auf-ebook-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
}

.auf-slide {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: var(--auf-shadow);
	transition: all 0.3s ease;
	border: 1px solid var(--auf-border);
}

.auf-slide:hover {
	transform: translateY(-8px);
	box-shadow: var(--auf-shadow-lg);
}

.auf-slide-cover {
	display: block;
	position: relative;
	aspect-ratio: 3/4;
	overflow: hidden;
	background: #f0f0f0;
	text-decoration: none;
}

.auf-slide-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.auf-slide:hover .auf-slide-cover img {
	transform: scale(1.05);
}

.auf-card-placeholder {
	font-size: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

.auf-price-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--auf-primary);
	color: #fff;
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
}

.auf-slide-body {
	padding: 20px;
}

.auf-slide-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--auf-text);
	margin: 0 0 8px;
	line-height: 1.4;
}

.auf-slide-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.auf-slide-title a:hover {
	color: var(--auf-primary);
}

.auf-slide-meta {
	font-size: 13px;
	color: var(--auf-text-3);
	margin: 0 0 16px;
}

.auf-btn-sm {
	padding: 8px 16px;
	font-size: 13px;
	width: 100%;
	text-align: center;
}

/* ================================================================ CATEGORY GRID */
.auf-section-alt {
	background: #f9fafb;
}

.auf-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.auf-cat-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 32px 24px;
	background: #fff;
	border: 2px solid var(--auf-border);
	border-radius: 12px;
	text-decoration: none;
	transition: all 0.3s ease;
	gap: 8px;
}

.auf-cat-item:hover {
	border-color: var(--auf-primary);
	background: var(--auf-primary-soft);
	transform: translateY(-4px);
}

.auf-cat-name {
	font-weight: 700;
	color: var(--auf-text);
	font-size: 16px;
}

.auf-cat-count {
	font-size: 13px;
	color: var(--auf-text-3);
}

/* ================================================================ TESTIMONIALS */
.auf-testimonials {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
}

.auf-testimonial {
	background: #fff;
	padding: 32px 28px;
	border-radius: 12px;
	border-left: 4px solid var(--auf-primary);
	box-shadow: var(--auf-shadow);
	transition: all 0.3s ease;
}

.auf-testimonial:hover {
	transform: translateY(-4px);
	box-shadow: var(--auf-shadow-lg);
}

.auf-testimonial-text {
	font-size: 16px;
	font-style: italic;
	color: var(--auf-text-2);
	margin: 0 0 16px;
	line-height: 1.6;
}

.auf-testimonial-author {
	font-size: 13px;
	font-weight: 600;
	color: var(--auf-primary);
}

/* ================================================================ CTA SECTION */
.auf-cta {
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	padding: 80px 0;
	position: relative;
	overflow: hidden;
}

.auf-cta::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 600px;
	height: 600px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 50%;
	z-index: 0;
}

.auf-cta-inner {
	position: relative;
	z-index: 1;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.auf-cta-title {
	font-size: 42px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 16px;
	line-height: 1.2;
}

.auf-cta-sub {
	font-size: 18px;
	color: rgba(255, 255, 255, 0.9);
	margin: 0 0 32px;
	max-width: 600px;
}

.auf-cta .auf-btn {
	margin-top: 16px;
}

@media (max-width: 768px) {
	.auf-cta {
		padding: 60px 0;
	}
	.auf-cta-title {
		font-size: 32px;
	}
	.auf-cta-sub {
		font-size: 16px;
	}
}

/* ================================================================ CARD COMPONENT */
.auf-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--auf-shadow);
	transition: all 0.3s ease;
	border: 1px solid var(--auf-border);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.auf-card:hover {
	transform: translateY(-8px);
	box-shadow: var(--auf-shadow-lg);
}

.auf-card-media {
	display: block;
	aspect-ratio: 16/10;
	overflow: hidden;
	background: #f0f0f0;
	position: relative;
	text-decoration: none;
}

.auf-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
	display: block;
}

.auf-card:hover .auf-card-media img {
	transform: scale(1.05);
}

.auf-card-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 64px;
	background: #f0f0f0;
}

.auf-card-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background: var(--auf-primary);
	color: #fff;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
}

.auf-card-body {
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.auf-card-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--auf-text);
	margin: 0 0 8px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.auf-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.auf-card-title a:hover {
	color: var(--auf-primary);
}

.auf-card-excerpt {
	font-size: 14px;
	color: var(--auf-text-2);
	margin: 0 0 12px;
	line-height: 1.5;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.auf-card-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: var(--auf-text-3);
	margin-top: auto;
	align-items: center;
}

.auf-price-tag {
	color: var(--auf-primary);
	font-weight: 700;
	font-size: 14px;
}

/* ================================================================ RESPONSIVE ADJUSTMENTS */
@media (max-width: 1200px) {
	.auf-section {
		margin-bottom: 48px;
	}
	.auf-ebook-list {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 900px) {
	.auf-nav {
		display: none;
	}
	.auf-header-actions .auf-btn {
		display: none;
	}
	.auf-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
		gap: 20px;
	}
	.auf-ebook-list {
		grid-template-columns: repeat(3, 1fr);
	}
	.auf-testimonials {
		grid-template-columns: 1fr;
	}
	.auf-cat-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.auf-section {
		margin-bottom: 40px;
	}
	.auf-section-head {
		margin-bottom: 24px;
	}
	.auf-section-title {
		font-size: 24px;
	}
	.auf-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.auf-ebook-list {
		grid-template-columns: repeat(2, 1fr);
	}
	.auf-cat-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.auf-hero-quote {
		font-size: 16px;
	}
}

/* ================================================================ PAGE HEADER & ARCHIVE */
.auf-page {
	padding: 60px 0;
}

.auf-page-header {
	margin-bottom: 40px;
	border-bottom: 2px solid var(--auf-border);
	padding-bottom: 24px;
}

.auf-page-title {
	font-size: 42px;
	font-weight: 800;
	color: var(--auf-text);
	margin: 0 0 16px;
	line-height: 1.2;
}

/* Filter navigation */
.auf-filter {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--auf-border);
}

.auf-filter-item {
	display: inline-block;
	padding: 10px 18px;
	background: #f0f0f0;
	color: var(--auf-text-2);
	border-radius: 20px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s;
	cursor: pointer;
	border: 1px solid transparent;
}

.auf-filter-item:hover {
	background: var(--auf-primary-soft);
	color: var(--auf-primary);
	border-color: var(--auf-primary);
}

.auf-filter-item.is-active {
	background: var(--auf-primary);
	color: #fff;
	border-color: var(--auf-primary);
}

/* Archive grid */
.auf-archive-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	margin-bottom: 60px;
}

@media (max-width: 1400px) {
	.auf-archive-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1200px) {
	.auf-archive-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 1000px) {
	.auf-archive-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.auf-page {
		padding: 40px 0;
	}
	.auf-page-title {
		font-size: 32px;
	}
	.auf-filter {
		gap: 8px;
	}
	.auf-filter-item {
		padding: 8px 14px;
		font-size: 13px;
	}
	.auf-archive-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 600px) {
	.auf-main {
		padding: 24px 0;
	}
	.auf-section {
		margin-bottom: 32px;
	}
	.auf-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.auf-ebook-list {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.auf-cat-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.auf-cat-item {
		padding: 20px 16px;
	}
	.auf-page-title {
		font-size: 26px;
	}
	.auf-archive-grid {
		grid-template-columns: 1fr;
	}
	.auf-cta-title {
		font-size: 26px;
	}
}

/* ================================================================ SINGLE ARTICLE */
.auf-article {
	padding: 60px 0;
}

.auf-article-container {
	max-width: var(--auf-container);
}

/* Layout artikel: konten + sidebar referensi */
.auf-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}

.auf-ebook-others {
	margin: 8px 0 64px;
}

.auf-ebook-others-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 19px;
	font-weight: 800;
	color: var(--auf-text);
	margin: 0 0 20px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--auf-primary);
}

.auf-ebook-others-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 18px;
}

.auf-ebook-others-item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	background: #fff;
	border: 1px solid var(--auf-border);
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
	text-decoration: none;
	color: var(--auf-text);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.auf-ebook-others-item:hover {
	transform: translateY(-4px);
	border-color: rgba(37, 99, 235, 0.35);
	box-shadow: var(--auf-shadow-lg);
}

/* Thumbnail konsisten (proporsi sampul buku, portrait) */
.auf-ebook-others-thumb {
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid var(--auf-border);
	background: linear-gradient(135deg, #eff6ff, #f0f2fe);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	color: var(--auf-primary);
}

.auf-ebook-others-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.auf-ebook-others-item:hover .auf-ebook-others-thumb img {
	transform: scale(1.05);
}

.auf-ebook-others-item strong {
	flex: 1 0 auto;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.auf-ebook-others-item small {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	color: var(--auf-text-3);
	font-size: 11.5px;
	line-height: 1.3;
}

.auf-ebook-others-item small .auf-price-tag {
	font-size: 12px;
	font-weight: 700;
	color: var(--auf-primary);
}

.auf-ebook-others-item small .auf-others-views {
	white-space: nowrap;
}

/* Sidebar referensi konten lain (artikel & e-book) */
.auf-sidebar {
	position: sticky;
	top: 24px;
	background: #fff;
	border: 1px solid var(--auf-border);
	border-radius: 16px;
	padding: 22px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.auf-sidebar-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 16px;
	font-weight: 800;
	color: var(--auf-text);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--auf-primary);
}

.auf-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.auf-sidebar-list li {
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--auf-border);
}

.auf-sidebar-list li:last-child {
	border-bottom: 0;
	padding-bottom: 2px;
}

.auf-sidebar-list a {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	text-decoration: none;
	color: var(--auf-text);
	padding: 4px 2px;
	border-radius: 10px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.auf-sidebar-list a:hover {
	background: #f1f5f9;
	transform: translateX(3px);
}

/* Thumbnail & fallback agar semua item sejajar */
.auf-sidebar-thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 10px;
	background: #f1f5f9;
	border: 1px solid var(--auf-border);
	display: flex;
	align-items: center;
	justify-content: center;
}

.auf-sidebar-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.auf-sidebar-thumb-fallback {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background: linear-gradient(135deg, #eff6ff, #f0f2fe);
	color: var(--auf-primary);
}

.auf-sidebar-item-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.auf-sidebar-item-info strong {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13.5px;
	line-height: 1.45;
	font-weight: 600;
	color: var(--auf-text);
}

.auf-sidebar-item-info small {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
	color: var(--auf-text-3);
	font-size: 11.5px;
	line-height: 1.3;
}

.auf-sidebar-item-info small .auf-price-tag {
	font-size: 12px;
	font-weight: 700;
}

@media (max-width: 767px) {
	.auf-article-layout {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.auf-sidebar {
		position: static;
	}
}

.auf-breadcrumb {
	margin-bottom: 24px;
}

.auf-breadcrumb ol {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 8px;
	flex-wrap: wrap;
}

.auf-breadcrumb li {
	font-size: 13px;
	color: var(--auf-text-3);
}

.auf-breadcrumb li span {
	color: var(--auf-text);
	font-weight: 600;
}

.auf-breadcrumb a {
	color: var(--auf-primary);
	text-decoration: none;
	transition: color 0.2s;
}

.auf-breadcrumb a:hover {
	text-decoration: underline;
}

.auf-article-header {
	margin-bottom: 40px;
	border-bottom: 2px solid var(--auf-border);
	padding-bottom: 24px;
}

.auf-article-title {
	font-size: 42px;
	font-weight: 800;
	color: var(--auf-text);
	margin: 0 0 20px;
	line-height: 1.2;
}

.auf-article-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--auf-text-2);
}

.auf-avatar {
	display: inline-block;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.auf-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.auf-article-featured {
	margin: 0 0 40px;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--auf-shadow-lg);
}

.auf-article-featured img {
	width: 100%;
	height: auto;
	display: block;
}

.auf-article-content {
	font-size: 16px;
	line-height: 1.8;
	color: var(--auf-text);
	margin-bottom: 60px;
}

.auf-article-content h2 {
	font-size: 28px;
	font-weight: 700;
	margin: 40px 0 16px;
	color: var(--auf-text);
}

.auf-article-content h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 32px 0 12px;
	color: var(--auf-text);
}

.auf-article-content p {
	margin: 0 0 16px;
}

.auf-article-content ul,
.auf-article-content ol {
	margin: 0 0 16px 24px;
	padding: 0;
}

.auf-article-content li {
	margin-bottom: 8px;
}

.auf-article-content a {
	color: var(--auf-primary);
	text-decoration: underline;
	transition: color 0.2s;
}

.auf-article-content a:hover {
	color: var(--auf-primary-dark);
}

.auf-article-content blockquote {
	border-left: 4px solid var(--auf-primary);
	padding: 16px 0 16px 24px;
	margin: 24px 0;
	font-style: italic;
	color: var(--auf-text-2);
	background: var(--auf-primary-soft);
}

.auf-article-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 24px 0;
	box-shadow: var(--auf-shadow);
}

.auf-article-footer {
	border-top: 2px solid var(--auf-border);
	padding-top: 40px;
	margin-bottom: 40px;
}

.auf-tags {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 32px;
	font-size: 14px;
}

.auf-tags a {
	display: inline-block;
	padding: 6px 14px;
	background: var(--auf-primary-soft);
	color: var(--auf-primary);
	border-radius: 20px;
	text-decoration: none;
	transition: all 0.2s;
}

.auf-tags a:hover {
	background: var(--auf-primary);
	color: #fff;
}

.auf-share {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
	margin-bottom: 32px;
	font-size: 14px;
}

.auf-share-item {
	display: inline-block;
	padding: 8px 16px;
	background: #f0f0f0;
	color: var(--auf-text);
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s;
	font-weight: 600;
	font-size: 13px;
}

.auf-share-item:hover {
	background: var(--auf-primary);
	color: #fff;
}

.auf-author-box {
	display: flex;
	gap: 16px;
	padding: 24px;
	background: var(--auf-primary-soft);
	border-radius: 12px;
	border-left: 4px solid var(--auf-primary);
}

.auf-author-box img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.auf-author-box-info {
	flex: 1;
}

.auf-author-box-label {
	font-size: 12px;
	color: var(--auf-text-3);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
}

.auf-author-box-info strong {
	display: block;
	font-size: 16px;
	color: var(--auf-text);
	margin: 4px 0 8px;
}

.auf-author-box-info p {
	font-size: 14px;
	color: var(--auf-text-2);
	margin: 0;
	line-height: 1.5;
}

/* ================================================================ SINGLE EBOOK */
.auf-ebook-detail {
	padding: 60px 0;
}

.auf-ebook-layout {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 60px;
	margin-bottom: 60px;
	align-items: start;
}

.auf-ebook-cover-col {
	position: sticky;
	top: 100px;
}

.auf-ebook-cover {
	width: 100%;
	aspect-ratio: 3/4;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: var(--auf-shadow-lg);
	display: block;
}

.auf-ebook-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 64px;
	background: #f0f0f0;
	border-radius: 12px;
}

.auf-ebook-info-col {
	padding-top: 20px;
}

.auf-ebook-title {
	font-size: 36px;
	font-weight: 800;
	color: var(--auf-text);
	margin: 16px 0 12px;
	line-height: 1.2;
}

.auf-ebook-meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	font-size: 14px;
	color: var(--auf-text-2);
	margin-bottom: 24px;
}

.auf-ebook-meta a {
	color: var(--auf-primary);
	text-decoration: none;
	transition: color 0.2s;
}

.auf-ebook-meta a:hover {
	text-decoration: underline;
}

.auf-ebook-price {
	font-size: 32px;
	font-weight: 700;
	color: var(--auf-primary);
	margin: 24px 0;
}

.auf-ebook-actions {
	margin: 32px 0;
}

.auf-ebook-actions .auf-btn-lg {
	width: 100%;
	margin-bottom: 16px;
	text-align: center;
}

.auf-ebook-hint {
	font-size: 13px;
	color: var(--auf-text-3);
	margin: 0;
	line-height: 1.5;
}

.auf-ebook-synopsis {
	background: #f9fafb;
	padding: 24px;
	border-radius: 12px;
	border-left: 4px solid var(--auf-primary);
	margin: 32px 0;
}

.auf-ebook-synopsis h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--auf-text);
	margin: 0 0 12px;
}

.auf-ebook-synopsis p {
	font-size: 15px;
	line-height: 1.6;
	color: var(--auf-text-2);
	margin: 0;
}

.auf-ebook-description {
	max-width: 800px;
	margin-bottom: 60px;
}

.auf-ebook-description h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px;
	color: var(--auf-text);
}

.auf-ebook-description p {
	font-size: 16px;
	line-height: 1.8;
	color: var(--auf-text-2);
	margin: 0 0 16px;
}

.auf-ebook-security {
	background: var(--auf-primary-soft);
	padding: 32px;
	border-radius: 12px;
	border-left: 4px solid var(--auf-primary);
	max-width: 800px;
}

.auf-ebook-security h3 {
	font-size: 18px;
	font-weight: 700;
	color: var(--auf-text);
	margin: 0 0 16px;
}

.auf-ebook-security ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.auf-ebook-security li {
	font-size: 14px;
	color: var(--auf-text);
	padding: 8px 0;
	padding-left: 24px;
	position: relative;
	line-height: 1.5;
}

.auf-ebook-security li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--auf-primary);
	font-weight: 700;
}

@media (max-width: 1200px) {
	.auf-ebook-layout {
		gap: 40px;
	}
}

@media (max-width: 900px) {
	.auf-ebook-layout {
		grid-template-columns: 1fr;
	}
	.auf-ebook-cover-col {
		position: static;
	}
	.auf-article-title {
		font-size: 32px;
	}
	.auf-ebook-title {
		font-size: 28px;
	}
}

/* ---------------------------------------------------------------- Like System */
.auf-article-stats,
.auf-ebook-stats {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 32px 0;
	padding: 16px 0;
	border-top: 1px solid var(--auf-border);
	border-bottom: 1px solid var(--auf-border);
}

.auf-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: transparent;
	border: 2px solid var(--auf-border);
	border-radius: 20px;
	font-weight: 600;
	font-size: 14px;
	color: var(--auf-text-2);
	cursor: pointer;
	transition: all 0.2s ease;
}

.auf-like-btn:hover {
	border-color: var(--auf-primary);
	color: var(--auf-primary);
	background: var(--auf-primary-soft);
}

.auf-like-btn.liked {
	background: #ffe0e6;
	border-color: #dc2626;
	color: #dc2626;
}

.auf-like-btn.liked:hover {
	background: #ffc0d0;
}

.auf-like-icon {
	display: inline-block;
	font-size: 16px;
	transition: transform 0.3s ease;
}

.auf-like-btn:hover .auf-like-icon,
.auf-like-btn.liked .auf-like-icon {
	transform: scale(1.2);
}

.auf-like-text {
	font-size: 14px;
	font-weight: 600;
}

.auf-read-stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--auf-text-2);
	font-size: 14px;
}

.auf-read-icon {
	display: inline-block;
	font-size: 16px;
}

/* ---------------------------------------------------------------- Toast Notification */
.auf-toast {
	position: fixed;
	bottom: 20px;
	right: 20px;
	padding: 12px 20px;
	background: var(--auf-text);
	color: #fff;
	border-radius: var(--auf-radius);
	font-size: 14px;
	font-weight: 500;
	z-index: 9999;
	opacity: 0;
	transform: translateY(20px);
	transition: all 0.3s ease;
	box-shadow: var(--auf-shadow-lg);
}

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

@media (max-width: 768px) {
	.auf-toast {
		bottom: 10px;
		right: 10px;
		left: 10px;
	}
}

/* ---------------------------------------------------------------- Dashboard Stats */
.auf-dash { padding-top: 40px; }

.auf-dash-toolbar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.auf-dash-title-block .auf-page-sub {
	margin: 8px 0 0;
	color: var(--auf-text-3);
	font-size: 15px;
}

.auf-page-sub { color: var(--auf-text-3); }

.auf-sub-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--auf-text);
	margin: 24px 0 16px;
}

/* SPA Tabs */
.auf-dash-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--auf-border);
}

.auf-dash-tab {
	padding: 10px 20px;
	background: transparent;
	border: 1px solid var(--auf-border);
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--auf-text-2);
	cursor: pointer;
	transition: all 0.2s;
}

.auf-dash-tab:hover {
	border-color: var(--auf-primary);
	color: var(--auf-primary);
}

.auf-dash-tab.is-active {
	background: var(--auf-primary);
	border-color: var(--auf-primary);
	color: #fff;
}

/* SPA Panels */
.auf-dash-panel { display: none; }
.auf-dash-panel.is-active { display: block; animation: auf-fade-in 0.25s ease; }

/* Two-column dashboard */
.auf-dash-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
	margin-top: 24px;
}

.auf-dash-col {
	background: #fff;
	padding: 24px;
	border-radius: var(--auf-radius);
	border: 1px solid var(--auf-border);
	box-shadow: var(--auf-shadow);
}

.auf-admin-stats,
.auf-author-stats {
	margin-bottom: 48px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--auf-border);
}

.auf-admin-stats:last-child,
.auf-author-stats:last-child {
	border-bottom: none;
}

.auf-kpi-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 24px 0;
}

.auf-kpi {
	background: #fff;
	padding: 24px 20px;
	border-radius: var(--auf-radius);
	border: 1px solid var(--auf-border);
	box-shadow: var(--auf-shadow);
	text-align: center;
	transition: all 0.2s;
	position: relative;
	overflow: hidden;
}

.auf-kpi::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--auf-primary), #6366f1);
}

.auf-kpi:hover {
	transform: translateY(-4px);
	box-shadow: var(--auf-shadow-lg);
}

.auf-kpi-icon {
	display: block;
	font-size: 28px;
	margin-bottom: 10px;
}

.auf-kpi-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--auf-text-3);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.auf-kpi-value {
	display: block;
	font-size: 34px;
	font-weight: 800;
	color: var(--auf-primary);
	line-height: 1.2;
}

.auf-kpi-delta {
	display: block;
	font-size: 12px;
	color: var(--auf-text-3);
	margin-top: 6px;
}

.auf-top-list {
	margin: 12px 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.auf-top-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	background: #fafafa;
	border-radius: 10px;
	border: 1px solid var(--auf-border);
	transition: all 0.2s;
}

.auf-top-item:hover {
	box-shadow: var(--auf-shadow);
	border-color: var(--auf-primary);
	background: #fff;
}

.auf-top-rank {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	width: 30px;
	height: 30px;
	background: var(--auf-primary);
	color: #fff;
	border-radius: 50%;
	font-weight: 700;
	font-size: 13px;
	flex-shrink: 0;
}

.auf-top-title {
	flex: 1;
	font-weight: 600;
	color: var(--auf-text);
	font-size: 14px;
}

.auf-top-title a {
	color: var(--auf-text);
	text-decoration: none;
	transition: color 0.2s;
}

.auf-top-title a:hover {
	color: var(--auf-primary);
}

.auf-top-stat {
	font-size: 13px;
	color: var(--auf-text-3);
	font-weight: 500;
	white-space: nowrap;
}

.auf-chart-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.auf-chart-card {
	background: #fff;
	padding: 24px;
	border-radius: var(--auf-radius);
	border: 1px solid var(--auf-border);
	box-shadow: var(--auf-shadow);
	margin: 24px 0;
	position: relative;
	height: 320px;
}

.auf-chart-card:first-child { margin-top: 0; }

.auf-chart-card canvas {
	margin-top: 16px;
	width: 100% !important;
	height: 220px !important;
}

.auf-dash-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 32px;
}

.auf-range-switch {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.auf-range-item {
	padding: 8px 16px;
	background: transparent;
	border: 1px solid var(--auf-border);
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	color: var(--auf-text-2);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}

.auf-range-item:hover {
	border-color: var(--auf-primary);
	color: var(--auf-primary);
}

.auf-range-item.is-active {
	background: var(--auf-primary);
	border-color: var(--auf-primary);
	color: #fff;
}

/* Table */
.auf-table-wrap {
	background: #fff;
	border-radius: var(--auf-radius);
	border: 1px solid var(--auf-border);
	box-shadow: var(--auf-shadow);
	overflow-x: auto;
}

.auf-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.auf-table thead th {
	text-align: left;
	padding: 14px 16px;
	background: #f9fafb;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--auf-text-3);
	font-weight: 600;
	border-bottom: 1px solid var(--auf-border);
}

.auf-table tbody td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--auf-border);
	color: var(--auf-text-2);
}

.auf-table tbody tr:last-child td { border-bottom: none; }

.auf-table tbody tr {
	transition: background 0.2s;
}

.auf-table tbody tr:hover { background: #fafafa; }

.auf-table a { color: var(--auf-primary); text-decoration: none; }
.auf-table a:hover { text-decoration: underline; }

.auf-type-badge,
.auf-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
}

.auf-type-badge.is-ebook { background: #eff6ff; color: #2563eb; }
.auf-type-badge.is-article { background: #fef3c7; color: #b45309; }
.auf-status-badge.is-publish { background: #dcfce7; color: #15803d; }
.auf-status-badge.is-draft { background: #f3f4f6; color: #6b7280; }

.auf-empty {
	color: var(--auf-text-3);
	font-size: 14px;
	font-style: italic;
}

/* Sampul (feature image) pada tabel konten dashboard author */
.auf-cover-cell {
	min-width: 170px;
}
.auf-cover-thumb {
	width: 80px;
	height: 80px;
	border-radius: 10px;
	background: #f3f4f6;
	border: 1px solid var(--auf-border);
	overflow: hidden;
}
.auf-cover-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.auf-cover-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--auf-text-3);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	padding: 4px;
	box-sizing: border-box;
}
.auf-cover-actions {
	display: flex;
	gap: 6px;
	margin-top: 8px;
}
.auf-cover-actions button {
	padding: 5px 10px;
	background: #fff;
	border: 1px solid var(--auf-border);
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--auf-text-2);
	cursor: pointer;
	transition: all 0.2s;
}
.auf-cover-actions button:hover {
	border-color: var(--auf-primary);
	color: var(--auf-primary);
}
.auf-cover-actions button.is-hidden {
	display: none;
}
.auf-cover-cell.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

@media (max-width: 900px) {
	.auf-chart-grid,
	.auf-dash-cols { grid-template-columns: 1fr; }
	.auf-chart-card { height: auto; }
}

@media (max-width: 768px) {
	.auf-dash-toolbar { flex-direction: column; }
	.auf-dash-tabs { overflow-x: auto; flex-wrap: nowrap; }
	.auf-dash-tab { flex: 0 0 auto; }
	.auf-kpi-value { font-size: 28px; }
}

@media (max-width: 600px) {
	.auf-dash-col { padding: 16px; }
	.auf-chart-card { padding: 16px; }
}

/* ---------------------------------------------------------------- Member Area */
.auf-tabs {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin: 0 0 28px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--auf-border);
}

.auf-tab {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	background: transparent;
	border: 1px solid var(--auf-border);
	border-radius: 20px;
	font-size: 14px;
	font-weight: 600;
	color: var(--auf-text-2);
	text-decoration: none;
	transition: all 0.2s;
	cursor: pointer;
}

.auf-tab:hover {
	border-color: var(--auf-primary);
	color: var(--auf-primary);
}

.auf-tab.is-active {
	background: var(--auf-primary);
	border-color: var(--auf-primary);
	color: #fff;
}

.auf-tab-content {
	animation: auf-fade-in 0.25s ease;
}

/* Koleksi e-book saya */
.auf-grid.auf-collection-grid {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.auf-collection-item {
	background: #fff;
	border: 1px solid var(--auf-border);
	border-radius: var(--auf-radius);
	overflow: hidden;
	box-shadow: var(--auf-shadow);
	transition: all 0.3s ease;
}

.auf-collection-item:hover {
	transform: translateY(-6px);
	box-shadow: var(--auf-shadow-lg);
}

.auf-collection-cover {
	display: block;
	aspect-ratio: 3/4;
	overflow: hidden;
	background: #f0f0f0;
	text-decoration: none;
}

.auf-collection-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.auf-collection-item:hover .auf-collection-cover img {
	transform: scale(1.05);
}

.auf-collection-info {
	padding: 14px 16px;
}

.auf-collection-info h3 {
	font-size: 14px;
	font-weight: 700;
	color: var(--auf-text);
	margin: 0 0 12px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.auf-collection-info h3 a {
	color: inherit;
	text-decoration: none;
}

.auf-collection-info h3 a:hover {
	color: var(--auf-primary);
}

.auf-collection-info .auf-btn-sm {
	width: 100%;
	text-align: center;
}

/* Profil */
.auf-profile {
	display: flex;
	gap: 28px;
	align-items: flex-start;
	background: #fff;
	border: 1px solid var(--auf-border);
	border-radius: var(--auf-radius);
	box-shadow: var(--auf-shadow);
	padding: 28px;
}

.auf-profile-avatar {
	flex-shrink: 0;
}

.auf-profile-avatar img {
	border-radius: 50%;
	width: 96px;
	height: 96px;
	object-fit: cover;
}

.auf-profile-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.auf-profile-list li {
	font-size: 15px;
	color: var(--auf-text-2);
}

.auf-profile-list strong {
	color: var(--auf-text);
	font-weight: 600;
	min-width: 140px;
	display: inline-block;
}

/* Empty state */
.auf-empty {
	background: #fff;
	border: 1px dashed var(--auf-border);
	border-radius: var(--auf-radius);
	padding: 40px 24px;
	text-align: center;
	color: var(--auf-text-2);
}

.auf-empty p {
	margin: 0 0 16px;
}

/* Badge status pembayaran (member area) */
.auf-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	color: #fff;
	line-height: 1.4;
}

@media (max-width: 768px) {
	.auf-profile {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.auf-profile-list strong {
		min-width: 0;
		display: block;
		margin-bottom: 2px;
	}
	/* Tabel riwayat → kartu responsif */
	.auf-table-wrap {
		overflow-x: auto;
	}
	.auf-table {
		min-width: 640px;
	}
}

/* ---------------------------------------------------------------- Custom Login (bismillah) */
.auf-login-page {
	max-width: 460px;
	margin: 0 auto;
	padding: 40px 0;
}

/* --------------------------------------------------------- Member Gate (belum login) */
.auf-member-gate-wrap {
	max-width: 1080px;
}

.auf-member-gate {
	display: grid;
	grid-template-columns: 1.1fr 1fr;
	gap: 56px;
	align-items: center;
	padding: 24px 0 40px;
}

.auf-member-benefits .auf-page-title {
	margin-bottom: 10px;
}

.auf-member-intro {
	color: var(--auf-text-2);
	font-size: 16px;
	line-height: 1.6;
	margin: 0 0 32px;
	max-width: 46ch;
}

.auf-benefit-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 18px;
}

.auf-benefit-list li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--auf-border);
	border-radius: 14px;
	padding: 16px 18px;
	box-shadow: var(--auf-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.auf-benefit-list li:hover {
	transform: translateY(-3px);
	box-shadow: var(--auf-shadow-lg);
}

.auf-benefit-list li > span {
	flex-shrink: 0;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	background: linear-gradient(135deg, #eff6ff, #e0f2fe);
	border-radius: 12px;
}

.auf-benefit-list li strong {
	display: block;
	color: var(--auf-text);
	font-size: 15px;
	margin-bottom: 3px;
}

.auf-benefit-list li p {
	margin: 0;
	color: var(--auf-text-2);
	font-size: 13.5px;
	line-height: 1.55;
}

.auf-member-login {
	position: relative;
}

.auf-login-note {
	font-size: 12.5px;
	color: var(--auf-text-3);
	text-align: center;
	margin: 0;
	line-height: 1.6;
}

@media (max-width: 768px) {
	.auf-member-gate {
		grid-template-columns: 1fr;
		gap: 36px;
	}
}

/* Login card */
.auf-login-card {
	background: #fff;
	border: 1px solid var(--auf-border);
	border-radius: 16px;
	box-shadow: var(--auf-shadow-lg);
	padding: 36px 32px;
}

.auf-login-head {
	text-align: center;
	margin-bottom: 24px;
}

.auf-login-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--auf-primary), #1d4ed8);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 16px;
}

/* Logo pada kartu login — mengikuti logo di header (custom logo / site icon / mark). */
.auf-login-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.auf-login-logo-img {
	width: 88px;
	height: 88px;
	object-fit: contain;
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
}

.auf-login-logo .custom-logo-link {
	display: inline-flex;
}

.auf-login-logo .custom-logo-link img {
	width: 88px;
	height: auto;
	border-radius: 14px;
}

.auf-login-head h1 {
	font-size: 24px;
	font-weight: 700;
	color: var(--auf-text);
	margin: 0 0 6px;
}

.auf-login-head p {
	font-size: 14px;
	color: var(--auf-text-3);
	margin: 0;
}

.auf-login-google {
	margin-bottom: 16px;
	text-align: center;
}

.auf-login-google a,
.auf-login-google .auf-google-btn {
	display: inline-flex;
	width: 100%;
	justify-content: center;
}

/* Tombol "Masuk dengan Google" */
.auf-btn-google {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 48px;
	padding: 0 16px;
	background: #fff;
	color: #1f2937;
	border: 1px solid var(--auf-border);
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.auf-btn-google:hover {
	background: #f9fafb;
	border-color: #d1d5db;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
	transform: translateY(-1px);
}

.auf-btn-google svg {
	flex-shrink: 0;
}

/* Form login dev (mode pengembangan) */
.auf-login-google .auf-dev-login {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
}

.auf-login-google .auf-dev-login input[type="email"] {
	width: 100%;
	min-width: 0;
	height: 46px;
	padding: 0 14px;
	border: 1px solid var(--auf-border);
	border-radius: 10px;
	font-size: 14px;
	color: var(--auf-text);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.auf-login-google .auf-dev-login input[type="email"]:focus {
	outline: none;
	border-color: var(--auf-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auf-login-google .auf-dev-login .auf-btn {
	width: 100%;
	height: 46px;
}

.auf-login-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--auf-text-3);
	font-size: 13px;
	margin: 16px 0;
}

.auf-login-divider::before,
.auf-login-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--auf-border);
}

.auf-login-card form#loginform {
	margin: 0;
}

/* Reset margin default paragraf yang dibungkus wp_login_form */
.auf-login-card form#loginform .login-username,
.auf-login-card form#loginform .login-password,
.auf-login-card form#loginform .login-remember,
.auf-login-card form#loginform .login-submit {
	margin: 0 0 18px;
	padding: 0;
	position: relative;
}

.auf-login-card form#loginform .login-submit {
	margin-bottom: 0;
	margin-top: 4px;
}

.auf-login-card form#loginform label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--auf-text-2);
	margin-bottom: 6px;
}

/* Field dengan prefix icon */
.auf-login-card form#loginform input[type="text"],
.auf-login-card form#loginform input[type="password"] {
	width: 100%;
	height: 46px;
	padding: 0 14px 0 42px;
	border: 1px solid var(--auf-border);
	border-radius: 10px;
	font-size: 14px;
	color: var(--auf-text);
	background-color: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* Ikon user & gembok di dalam field */
.auf-login-card form#loginform .login-username::before,
.auf-login-card form#loginform .login-password::before {
	content: '';
	position: absolute;
	left: 14px;
	top: 35px; /* di bawah label (label ~13px + margin 6px) */
	width: 16px;
	height: 16px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0.5;
	pointer-events: none;
}

.auf-login-card form#loginform .login-username::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

.auf-login-card form#loginform .login-password::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

.auf-login-card form#loginform input[type="text"]:focus,
.auf-login-card form#loginform input[type="password"]:focus,
.auf-login-card form#loginform input[type="email"]:focus {
	outline: none;
	border-color: var(--auf-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Fix warna autofill agar selaras dengan tema */
.auf-login-card form#loginform input:-webkit-autofill,
.auf-login-card form#loginform input:-webkit-autofill:hover,
.auf-login-card form#loginform input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #fff inset;
	-webkit-text-fill-color: var(--auf-text);
	transition: background-color 9999s ease-in-out 0s;
}

/* Kotak centang "Ingat saya" */
.auf-login-card form#loginform .login-remember {
	display: flex;
	align-items: center;
}

.auf-login-card form#loginform .login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
	user-select: none;
}

.auf-login-card form#loginform .login-remember input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--auf-primary);
	cursor: pointer;
	margin: 0;
}

.auf-login-card form#loginform input[type="submit"] {
	width: 100%;
	height: 48px;
	padding: 0;
	background: var(--auf-primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
	-webkit-appearance: none;
	appearance: none;
}

.auf-login-card form#loginform input[type="submit"]:hover {
	background: var(--auf-primary-dark);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.auf-login-card form#loginform input[type="submit"]:active {
	transform: translateY(1px);
}

.auf-login-card .login-error,
.auf-login-card .login-message {
	background: #fef2f2;
	color: #b91c1c;
	font-size: 13px;
	padding: 10px 12px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.auf-login-recover {
	text-align: center;
	font-size: 13px;
	color: var(--auf-text-3);
	margin: 20px 0 0;
}

.auf-login-recover a {
	color: var(--auf-primary);
	text-decoration: none;
}

.auf-login-recover a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.auf-article {
		padding: 40px 0;
	}
	.auf-article-title {
		font-size: 28px;
	}
	.auf-article-content {
		font-size: 15px;
		line-height: 1.7;
	}
	.auf-ebook-title {
		font-size: 24px;
	}
	.auf-ebook-price {
		font-size: 28px;
	}
	.auf-author-box {
		flex-direction: column;
		text-align: center;
	}
	.auf-author-box img {
		margin: 0 auto;
	}
}