:root {
	--bg-body: #191923;
	--bg-sidebar: #20202a;
	--bg-card: #2c2c38;
	--text-main: #ffffff;
	--text-sec: #8c8c8e;
	--accent: #ffc107;
	--glass-bg: rgba(43, 45, 48, 0.65);
	/* Kuning Emas */
	--bg-dark: #191923;
	--bg-surface: #1a1a2e;
	--text-primary: #e0e0e0;
	--text-secondary: #a0a0a0;
	--accent-glow: #00ffff;
	--font-main: "Manrope", sans-serif;
}
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	outline: none;
}

body {
	font-family: 'Poppins', sans-serif;
	color: var(--text-main);
	background-color: var(--bg-body);
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: inherit;
	transition: 0.3s;
}

ul {
	list-style: none;
}

/* Setup Canvas Background */
body {
	background-color: #050508;
	/* Warna dasar gelap */
	color: #ffffff;
}

#bg-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	/* Di belakang konten */
	display: block;
}

/* Membuat elemen UI transparan (Glassmorphism) agar background terlihat */
.sidebar,
.card,
.main-nav,
.offcanvas-menu,
.chat-window,
.hero-text {
	background: rgba(18, 18, 28, 0.6) !important;
	/* Transparan gelap */
	backdrop-filter: blur(12px);
	/* Efek blur */
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(255, 255, 255, 0.08);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Penyesuaian khusus untuk sidebar agar lebih menyatu */
.sidebar {
	background: rgba(10, 10, 15, 0.7) !important;
}

/* Kartu service dan portfolio */
.service-card,
.card {
	background: rgba(255, 255, 255, 0.03) !important;
	transition: transform 0.3s ease, background 0.3s ease;
}

/* 6. Penyesuaian Konten Dalam Kartu Dinamis */
#blog-posts-container h3,
#project-gallery-container h3 {
	color: #fff;
	margin-top: 15px;
	padding: 0 15px;
}

#blog-posts-container p,
#project-gallery-container p {
	color: var(--text-muted);
	font-size: 0.9rem;
	padding: 0 15px 15px 15px;
}

#blog-posts-container img,
#project-gallery-container img {
	width: 100%;
	height: 200px;
	/* Tinggi standar gambar */
	object-fit: cover;
	border-bottom: 1px solid var(--glass-border);
}


.service-card:hover,
.card:hover {
	background: rgba(255, 255, 255, 0.08) !important;
	transform: translateY(-5px);
	border-color: rgba(255, 255, 255, 0.2);
}

/* Hero Banner text background */
.hero-text {
	background: rgba(0, 0, 0, 0.4) !important;
	padding: 20px;
	border-radius: 15px;
}


/* Container Utama */
.app-container {
	display: flex;
	min-height: 100vh;
	width: 100%;
	position: relative;
}

/* =========================================
   CRYPTO TICKER (GLASS CAPSULE STYLE)
   ========================================= */
.crypto-ticker-wrap {
    width: 100%;
    height: 50px;
    
    /* 1. Efek Glass */
    background: var(--glass-bg) !important; /* Gunakan variabel glass global */
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: var(--glass-border) !important;
    box-shadow: var(--glass-shadow);
    
    /* 2. Ujung Round (Pill Shape) */
    border-radius: 50px; /* Membuat ujung bulat sempurna */
    
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    z-index: 99;
    
    /* Jarak agar tidak mepet elemen lain */
    margin-bottom: 30px; 
}

/* 2. Jalur Animasi */
.ticker-track {
    display: inline-flex;
    align-items: center;
    height: 100%;
    animation: scroll-left 40s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

/* 3. Item Koin Individual */
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 25px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-main);
    font-size: 0.9rem;
    height: 100%;
    transition: background 0.3s ease;
    
    /* Border pemisah transparan halus */
    border-right: 1px solid rgba(255, 255, 255, 0.1); 
}

/* Hover Effect pada Koin */
.ticker-item:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Glass hover */
}

.ticker-item img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

/* Warna & Format Teks */
.t-symbol {
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.t-price {
    color: #e0e0e0; /* Putih agak abu agar beda dengan simbol */
    font-weight: 500;
}

/* --- WARNA TETAP HIJAU & MERAH --- */

.t-up {
    color: #00ff88 !important; /* Hijau Neon Pasti */
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4); /* Efek glow hijau */
    font-weight: 600;
}

.t-down {
    color: #ff4d4d !important; /* Merah Terang Pasti */
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.4); /* Efek glow merah */
    font-weight: 600;
}

.loading-text {
    padding: 0 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    font-size: 0.85rem;
}

/* 4. Definisi Keyframes Animasi */
@keyframes scroll-left {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}


/* --- WEB3 READER BAR CSS --- */
.reader-status-wrapper {
	background: #1e1e24;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 12px 20px;
	margin-top: 20px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reader-info {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: #e0e0e0;
}

.reader-address {
	font-family: 'Courier New', Courier, monospace;
	color: #00ffff;
	font-weight: bold;
	background: rgba(0, 255, 255, 0.1);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.85rem;
}

.btn-connect-reader {
	background: transparent;
	border: 1px solid #00ffff;
	color: #00ffff;
	padding: 6px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
	transition: 0.3s;
	display: flex;
	align-items: center;
	gap: 8px;
}

.btn-connect-reader:hover {
	background: #00ffff;
	color: #121212;
}

/* --- TAMPILAN DESKTOP (Layar > 768px) --- */
@media (min-width: 769px) {
	.sticky-banner-container {
		width: 300px;
		/* Sesuai permintaan */
		right: 0;
		/* Menempel di kanan */
		top: 50%;
		/* Tengah vertikal */
		transform: translateY(-50%);
	}

	.sticky-banner-container img {
		width: 100%;
		/* Mengisi container 300px */
		border-top-left-radius: 8px;
		border-bottom-left-radius: 8px;
	}
}

/* --- TAMPILAN MOBILE (Layar <= 768px) --- */
@media (max-width: 768px) {
	.sticky-banner-container {
		width: 100px;
		/* Ukuran kecil untuk mobile */
		right: 15px;
		bottom: 20px;
		/* Posisi di bawah */
		top: auto;
		/* Reset posisi top desktop */
		transform: none;
	}

	.sticky-banner-container img {
		width: 100%;
		border-radius: 8px;
		/* Membulat sedikit */
		border: 2px solid #fff;
		/* Border putih agar kontras */
	}

	/* Penyesuaian tombol close di mobile */
	.sticky-close-btn {
		width: 24px;
		height: 24px;
		font-size: 16px;
		line-height: 20px;
		top: -8px;
		left: -8px;
	}

	/* Reader Bar Mobile */
	.reader-status-wrapper {
		flex-direction: column;
		text-align: center;
	}
}

/* --- CSS UTAMA --- */
.sticky-banner-container {
	position: fixed;
	z-index: 99999;
	transition: all 0.3s ease-in-out;
	background: transparent;
	line-height: 0;
	/* Menghilangkan gap di bawah gambar */
}

/* Style Tombol Close */
.sticky-close-btn {
	position: absolute;
	top: -12px;
	left: -12px;
	width: 30px;
	height: 30px;
	background: #ff0000;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	font-size: 20px;
	line-height: 26px;
	/* Centering text vertikal */
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

/* Agar gambar responsif mengikuti wadah */
.sticky-banner-container img {
	height: auto;
	display: block;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* HEADER DETAIL KOIN */
.coin-header-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 40px 0;
	flex-wrap: wrap;
	gap: 20px;
}

.coin-identity {
	display: flex;
	align-items: center;
	gap: 20px;
}

.coin-identity img {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	border: 2px solid #333;
}

.coin-identity h1 {
	margin: 0;
	font-size: 2.5rem;
	color: #fff;
}

.coin-identity span {
	color: #888;
	font-size: 1.2rem;
	text-transform: uppercase;
}

.coin-price-block {
	text-align: right;
}

.current-price {
	font-size: 2.5rem;
	font-weight: 800;
	color: #fff;
}

.price-change {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 8px;
	display: inline-block;
}

.green {
	background: rgba(0, 255, 136, 0.15);
	color: #00ff88;
}

.red {
	background: rgba(255, 77, 77, 0.15);
	color: #ff4d4d;
}

/* CHART CONTAINER */
.chart-box {
	height: 500px;
	background: #000;
	border: 1px solid #333;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 40px;
}

/* STATS GRID */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.stat-card {
	background: #1a1a2e;
	border: 1px solid #333;
	border-radius: 12px;
	padding: 25px;
}

.stat-card h3 {
	color: #888;
	font-size: 0.9rem;
	margin: 0 0 10px 0;
}

/* PERUBAHAN DI SINI: Ukuran font diubah dari 1.5rem menjadi 0.8rem */
.stat-card p {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	margin: 0;
}

@media (max-width: 768px) {
	.coin-header-section {
		flex-direction: column;
		align-items: flex-start;
	}

	.coin-price-block {
		text-align: left;
		margin-top: 10px;
	}

	.chart-box {
		height: 350px;
	}
}

/* --- WEB3 READER BAR CSS --- */
.reader-status-wrapper {
	background: #1e1e24;
	border: 1px solid #333;
	border-radius: 8px;
	padding: 12px 20px;
	margin-top: 20px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.reader-info {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: #e0e0e0;
}

.reader-address {
	font-family: 'Courier New', Courier, monospace;
	color: #00ffff;
	font-weight: bold;
	background: rgba(0, 255, 255, 0.1);
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 0.85rem;
}

.btn-connect-reader {
	background: transparent;
	border: 1px solid #00ffff;
	color: #00ffff;
	padding: 6px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 600;
	transition: 0.3s;
	display: flex;
	align-items: center;
	gap: 8px;
}

.btn-connect-reader:hover {
	background: #00ffff;
	color: #121212;
}

/* --- TAMPILAN DESKTOP (Layar > 768px) --- */
@media (min-width: 769px) {
	.sticky-banner-container {
		width: 300px;
		/* Sesuai permintaan */
		right: 0;
		/* Menempel di kanan */
		top: 50%;
		/* Tengah vertikal */
		transform: translateY(-50%);
	}

	.sticky-banner-container img {
		width: 100%;
		/* Mengisi container 300px */
		border-top-left-radius: 8px;
		border-bottom-left-radius: 8px;
	}
}

/* --- TAMPILAN MOBILE (Layar <= 768px) --- */
@media (max-width: 768px) {
	.sticky-banner-container {
		width: 100px;
		/* Ukuran kecil untuk mobile */
		right: 15px;
		bottom: 20px;
		/* Posisi di bawah */
		top: auto;
		/* Reset posisi top desktop */
		transform: none;
	}

	.sticky-banner-container img {
		width: 100%;
		border-radius: 8px;
		/* Membulat sedikit */
		border: 2px solid #fff;
		/* Border putih agar kontras */
	}

	/* Penyesuaian tombol close di mobile */
	.sticky-close-btn {
		width: 24px;
		height: 24px;
		font-size: 16px;
		line-height: 20px;
		top: -8px;
		left: -8px;
	}

	/* Reader Bar Mobile */
	.reader-status-wrapper {
		flex-direction: column;
		text-align: center;
	}
}

/* --- CSS UTAMA --- */
.sticky-banner-container {
	position: fixed;
	z-index: 99999;
	transition: all 0.3s ease-in-out;
	background: transparent;
	line-height: 0;
	/* Menghilangkan gap di bawah gambar */
}

/* Style Tombol Close */
.sticky-close-btn {
	position: absolute;
	top: -12px;
	left: -12px;
	width: 30px;
	height: 30px;
	background: #ff0000;
	color: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	font-size: 20px;
	line-height: 26px;
	/* Centering text vertikal */
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
}

/* Agar gambar responsif mengikuti wadah */
.sticky-banner-container img {
	height: auto;
	display: block;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* HEADER DETAIL KOIN */
.coin-header-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 40px 0;
	flex-wrap: wrap;
	gap: 20px;
}

.coin-identity {
	display: flex;
	align-items: center;
	gap: 20px;
}

.coin-identity img {
	width: 70px;
	height: 70px;
	border-radius: 50%;
	border: 2px solid #333;
}

.coin-identity h1 {
	margin: 0;
	font-size: 2.5rem;
	color: #fff;
}

.coin-identity span {
	color: #888;
	font-size: 1.2rem;
	text-transform: uppercase;
}

.coin-price-block {
	text-align: right;
}

.current-price {
	font-size: 2.5rem;
	font-weight: 800;
	color: #fff;
}

.price-change {
	font-size: 0.7rem;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 8px;
	display: inline-block;
}

.green {
	background: rgba(0, 255, 136, 0.15);
	color: #00ff88;
}

.red {
	background: rgba(255, 77, 77, 0.15);
	color: #ff4d4d;
}

/* CHART CONTAINER */
.chart-box {
	height: 500px;
	background: #000;
	border: 1px solid #333;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 40px;
}

/* STATS GRID */
.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.stat-card {
	background: #1a1a2e;
	border: 1px solid #333;
	border-radius: 12px;
	padding: 25px;
}

.stat-card h3 {
	color: #888;
	font-size: 0.9rem;
	margin: 0 0 10px 0;
}

/* PERUBAHAN DI SINI: Ukuran font diubah dari 1.5rem menjadi 0.8rem */
.stat-card p {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	margin: 0;
}

@media (max-width: 768px) {
	.coin-header-section {
		flex-direction: column;
		align-items: flex-start;
	}

	.coin-price-block {
		text-align: left;
		margin-top: 10px;
	}

	.chart-box {
		height: 350px;
	}
}

/* ========================================= 2. SIDEBAR ========================================= */
.sidebar {
	width: 290px;
	background: var(--bg-sidebar);
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 999;
	overflow-y: auto;
	scrollbar-width: none;
	display: flex;
	flex-direction: column;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar::-webkit-scrollbar {
	display: none;
}

/* Profile Header */
.profile-header {
	background: linear-gradient(159deg, rgba(37, 37, 50, 0.98) 0%, rgba(35, 35, 45, 0.98) 100%);
	padding: 30px;
	text-align: center;
	border-bottom: 1px solid #333;
}

.avatar-box {
	position: relative;
	width: 90px;
	height: 90px;
	margin: 0 auto 15px;
}

.avatar-box img {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--bg-card);
}

.status-dot {
	position: absolute;
	bottom: 5px;
	right: 5px;
	width: 12px;
	height: 12px;
	background: var(--accent);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

.profile-header h1 {
	font-size: 18px;
	margin-bottom: 5px;
	color: #fff;
}

.profile-header .subtitle {
	font-size: 12px;
	color: var(--text-sec);
	display: block;
}

/* Sidebar Menu */
.sidebar-menu {
	padding: 20px 0;
	border-bottom: 1px solid #333;
}

.sidebar-menu a {
	padding: 10px 30px;
	font-size: 13px;
	color: var(--text-sec);
	font-weight: 500;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
	color: var(--text-main);
	background: rgba(255, 255, 255, 0.03);
}

.sidebar-menu a i {
	font-size: 10px;
	color: var(--accent);
	opacity: 0;
	transition: 0.3s;
}

.sidebar-menu a:hover i {
	opacity: 1;
}

/* Info Table */
.info-table {
	padding: 20px 30px;
	font-size: 12px;
	border-bottom: 1px solid #333;
}

.info-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.info-row span:last-child {
	color: var(--text-sec);
	text-align: right;
}

/* Sidebar Footer */
.sidebar-footer {
	padding: 20px 30px;
	margin-top: auto;
}

.social-icons {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-bottom: 20px;
}

.social-icons a {
	color: var(--text-sec);
	font-size: 16px;
}

.social-icons a:hover {
	color: var(--accent);
	transform: translateY(-3px);
}

/* ========================================= 3. MAIN CONTENT ========================================= */
.main-content {
	margin-left: 290px;
	width: calc(100% - 290px);
	padding: 30px;
}

/* ========================================= 4. HERO BANNER ========================================= */
.hero-banner {
	position: relative;
	min-height: 350px;
	height: auto;
	background: linear-gradient(90deg, rgba(30, 30, 40, 0.95) 0%, rgba(30, 30, 40, 0.8) 100%);
	background-size: cover;
	background-position: center;
	border-radius: 3px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 30px 50px;
	margin-bottom: 40px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

/* Area Teks (Kiri) */
/* Area Teks (Kiri) - DIPERLEBAR */
.hero-content-left {
	flex: 2;
	/* Mengambil porsi ruang lebih besar (2 bagian) */
	max-width: 100%;
	/* Hapus batasan 600px agar teks melebar pol ke arah foto */
	min-width: 300px;
	/* Mencegah penyempitan berlebih di layar kecil */
	z-index: 2;
}

/* Typography Heading */
.hero-text h2 {
	font-size: 32px;
	font-weight: 800;
	margin-bottom: 15px;
	line-height: 1.2;
	color: #fff;
	/* Opsional: Text Shadow agar lebih terbaca di background transparan */
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Typography Paragraf */
.hero-text p {
	color: var(--text-muted);
	/* Gunakan variabel tema glass */
	margin-bottom: 25px;
	font-size: 15px;
	/* Sedikit diperbesar agar nyaman dibaca */
	line-height: 1.6;
}

/* Tombol CTA */
.btn-cta {
	background: var(--accent);
	/* Warna ungu tema */
	color: #fff;
	padding: 12px 30px;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	border: none;
	border-radius: 5px;
	/* Sudut sedikit membulat */
	cursor: pointer;
	display: inline-block;
	text-decoration: none;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	/* Shadow ungu */
	transition: transform 0.3s ease;
}

.btn-cta:hover {
	transform: translateY(-3px);
}

/* Area Gambar (Kanan) */
.hero-image-right {
	flex: 0 0 auto;
	/* Foto tidak boleh mengecil/gepeng */
	width: 280px;
	height: 280px;
	position: relative;
	z-index: 2;
	border-radius: 50%;

	/* Ganti warna border jadi tema Quantum (Ungu/Biru) */
	/* Jika mau tetap kuning emas, ganti var(--accent) dengan #ffc107 */
	border: 4px solid var(--accent);
	box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);

	overflow: hidden;
	animation: fadeUp 1s ease-out;
	margin-left: 20px;
	/* Jarak aman antara teks dan foto */
}

.hero-image-right img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}

/* Responsif Mobile: Agar foto tidak terlalu besar di HP */
@media (max-width: 768px) {
	.hero-image-right {
		width: 200px;
		height: 200px;
		margin-left: 0;
		margin-bottom: 20px;
	}
}

/* ========================================= 5. COMPONENTS (SECTIONS,CARDS,ETC) ========================================= */
section {
	margin-bottom: 50px;
}

.section-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 25px;
	color: var(--text-main);
	position: relative;
	display: inline-block;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--accent);
	border-radius: 2px;
}

/* Grid Layout */
.grid-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}

.card {
	background: var(--bg-card);
	padding: 25px;
	position: relative;
	transition: 0.3s;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
	transform: translateY(-5px);
	border-color: var(--accent);
}

.card h3 {
	font-size: 16px;
	margin-bottom: 5px;
	color: var(--text-main);
}

.card-meta {
	font-size: 11px;
	color: var(--accent);
	margin-bottom: 15px;
	display: block;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.card p {
	font-size: 13px;
	color: var(--text-sec);
	line-height: 1.6;
	margin-bottom: 10px;
}

/* Skills Tags */
.skills-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.skill-tag {
	background: #20202a;
	color: var(--text-sec);
	padding: 5px 15px;
	font-size: 12px;
	border-radius: 15px;
	border: 1px solid #333;
}

.skill-tag:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* Footer */
.main-footer {
	text-align: center;
	border-top: 1px solid #333;
	padding-top: 30px;
	margin-top: 50px;
	color: var(--text-sec);
	font-size: 12px;
}

.footer-links a {
	margin: 0 10px;
	color: var(--text-sec);
}

.footer-links a:hover {
	color: var(--accent);
}

/* Utilities */
.load-more-container {
	text-align: center;
	margin-top: 20px;
}

.btn-load {
	background: transparent;
	border: 1px solid var(--accent);
	color: var(--accent);
	padding: 10px 30px;
	cursor: pointer;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: 0.3s;
}

.btn-load:hover {
	background: var(--accent);
	color: #000;
}

.hidden {
	display: none;
}

/* ========================================= 6. ANIMATIONS ========================================= */
@keyframes pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
	}

	70% {
		box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
	}
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================= 7. RESPONSIVE (MOBILE) ========================================= */
@media (max-width:991px) {

	/* Layout Adjustments */
	.app-container {
		display: block;
	}

	.sidebar {
		display: none;
		/* Sidebar disembunyikan di mobile */
	}

	.main-content {
		margin-left: 0;
		width: 100%;
		padding: 20px;
		padding-top: 70px;
	}

	.nav-toggler {
		display: block;
		/* Tombol menu muncul */
	}

	/* Hero Banner Adjustments */
	.hero-banner {
		flex-direction: column;
		text-align: center;
		justify-content: center;
		padding: 40px 20px;
		gap: 30px;
	}

	.hero-content-left {
		max-width: 100%;
		order: 2;
		/* Teks pindah ke bawah */
	}

	.hero-image-right {
		width: 200px;
		height: 200px;
		margin: 0 auto;
		order: 1;
		/* Gambar pindah ke atas */
	}

	Default:Sembunyikan tombol wallet mobile di layar besar */ .mobile-wallet-wrapper {
		display: none;
	}

	/* Tampilkan hanya pada layar mobile (lebar di bawah 991px) */
	@media (max-width:991px) {
		.mobile-wallet-wrapper {
			display: block;
		}
	}
}

img {
	width: 100%;
	height: auto;
	aspect-ratio: attr(width) / attr(height);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--bg-dark);
	font-family: var(--font-main);
	color: var(--text-primary);
	background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
	background-size: 20px 20px;
	cursor: none;
	/* Custom cursor for desktop */
}

/* ========================================= 2. UTILITIES & LAYOUT ========================================= */
.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem;
}

section {
	margin-bottom: 6rem;
}

.hidden {
	display: none;
}

/* Custom Cursor Effect */
.glow-cursor {
	position: fixed;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(0, 255, 255, 0.1), transparent 60%);
	border-radius: 50%;
	pointer-events: none;
	transform: translate(-50%, -50%);
	transition: width 0.3s, height 0.3s;
	z-index: -1;
}

/* Scroll Reveal Animation */
.scroll-reveal {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

.loading-text {
	text-align: center;
	color: var(--text-secondary);
}

/* Buttons */
.btn {
	text-decoration: none;
	color: var(--text-secondary);
	font-weight: 600;
	padding: 0.8rem 1.5rem;
	border: 1px solid var(--bg-surface);
	border-radius: 20px;
	transition: all 0.3s ease;
	cursor: pointer;
	background-color: transparent;
	font-family: var(--font-main);
	font-size: 1rem;
}

.btn:hover {
	color: var(--bg-dark);
	background-color: var(--accent-glow);
	border-color: var(--accent-glow);
}

/* Service Card Styling */
.service-card {
	padding: 0 !important;
	/* Reset padding default card */
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.service-thumb {
	position: relative;
	height: 180px;
	overflow: hidden;
}

.service-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: 0.5s;
}

.service-card:hover .service-thumb img {
	transform: scale(1.1);
}

.price-tag {
	position: absolute;
	top: 15px;
	right: 15px;
	background: var(--accent);
	color: #000;
	font-weight: 800;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 14px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
	z-index: 2;
}

.service-body {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.service-list {
	margin: 15px 0;
	flex-grow: 1;
}

.service-list li {
	font-size: 13px;
	color: var(--text-sec);
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.service-list li i {
	color: var(--accent);
}

.btn-pay {
	width: 100%;
	padding: 12px;
	background: transparent;
	border: 1px solid var(--accent);
	color: var(--accent);
	font-weight: 600;
	text-transform: uppercase;
	cursor: pointer;
	transition: 0.3s;
	border-radius: 5px;
	margin-top: auto;
}

.btn-pay:hover {
	background: var(--accent);
	color: #000;
	box-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
}

.badge-crypto {
	font-size: 11px;
	color: #00d26a;
	border: 1px solid #00d26a;
	padding: 5px 10px;
	border-radius: 15px;
}

.btn-select-coin {
	flex: 1;
	padding: 10px;
	background: #2c2c38;
	border: 1px solid #444;
	color: #888;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: 0.3s;
}

.btn-select-coin.active {
	background: rgba(255, 193, 7, 0.1);
	border-color: var(--accent);
	color: var(--accent);
	font-weight: bold;
}

.btn-select-coin:hover {
	border-color: #666;
}

/* Styling Tombol Pilihan Koin */
.btn-select-coin {
	flex: 1;
	padding: 10px;
	background: #2c2c38;
	border: 1px solid #444;
	color: #aaa;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: 0.3s;
	font-size: 13px;
	/* Ukuran font disesuaikan */
}

/* KHUSUS LOGO:Perkecil Logo jadi 12px (Sebelumnya 20px) */
.btn-select-coin img {
	width: 14px !important;
	height: 14px !important;
	object-fit: contain;
}

.btn-select-coin.active {
	background: rgba(255, 193, 7, 0.1);
	border-color: var(--accent);
	color: var(--accent);
	font-weight: bold;
}

/* ========================================= 3. NAVIGATION (Main & Mobile) ========================================= */
.main-nav {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
	margin-bottom: 2rem;
}

.nav-brand {
	font-size: 1.8rem;
	font-weight: 800;
	color: var(--accent-glow);
	text-decoration: none;
	border: 2px solid var(--accent-glow);
	padding: 0.2rem 0.8rem;
	transition: all 0.3s ease;
}

.nav-brand:hover {
	background-color: var(--accent-glow);
	color: var(--bg-dark);
}

.nav-links {
	display: flex;
	gap: 2rem;
}

.nav-links a {
	text-decoration: none;
	color: var(--text-secondary);
	font-weight: 600;
	position: relative;
	padding-bottom: 0.5rem;
}

.nav-links a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--accent-glow);
	transition: width 0.3s ease;
}

.nav-links a:hover {
	color: var(--text-primary);
}

.nav-links a:hover::after {
	width: 100%;
}

/* Mobile Toggler */
.nav-toggler {
	display: none;
	background: none;
	border: 1px solid var(--bg-surface);
	border-radius: 4px;
	padding: 0.5rem;
	cursor: pointer;
}

.nav-toggler span {
	display: block;
	width: 22px;
	height: 2px;
	background-color: var(--text-primary);
	margin: 4px 0;
	transition: transform 0.3s, opacity 0.3s;
}

/* Offcanvas Menu (Mobile) */
.offcanvas-menu {
	position: fixed;
	top: 0;
	right: -300px;
	width: 250px;
	height: 100%;
	background-color: var(--bg-surface);
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
	z-index: 1000;
	transition: right 0.3s ease-in-out;
	padding: 2rem;
}

.offcanvas-menu.open {
	right: 0;
}

.close-btn {
	position: absolute;
	top: 1rem;
	right: 1.5rem;
	background: none;
	border: none;
	color: var(--text-primary);
	font-size: 2rem;
	cursor: pointer;
}

.nav-links-offcanvas {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-top: 4rem;
}

.nav-links-offcanvas a {
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 600;
	font-size: 1.2rem;
}

/* ========================================= 4. HEADER & PROFILE ========================================= */
.main-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2rem 0;
	border-bottom: 1px solid var(--bg-surface);
	margin-bottom: 4rem;
}

.profile-intro {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.profile-picture {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	border: 2px solid var(--accent-glow);
}

h1 {
	font-size: 2.2rem;
	font-weight: 800;
}

.subtitle {
	color: var(--text-secondary);
	font-weight: 400;
}

.contact-header {
	display: flex;
	gap: 0.5rem;
}

.contact-link {
	text-decoration: none;
	color: var(--text-secondary);
	font-weight: 600;
	padding: 0.8rem 1.5rem;
	border: 1px solid var(--bg-surface);
	border-radius: 20px;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	z-index: 1;
}

.contact-link span {
	position: relative;
	z-index: 2;
}

.contact-link:hover {
	color: var(--bg-dark);
	border-color: var(--accent-glow);
}

.contact-link::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: var(--accent-glow);
	transition: left 0.3s ease;
	z-index: -1;
}

.contact-link:hover::before {
	left: 0;
}

/* ========================================= 5. SECTIONS (About,Blog,Skills) ========================================= */
/* =========================================
   TYPOGRAPHY & SECTIONS
   ========================================= */
h2 {
	font-size: 1.5rem;
	/* Sedikit diperbesar agar lebih jelas */
	font-weight: 700;
	letter-spacing: 0.2em;
	color: #fff;
	/* Warna putih agar kontras */
	margin-bottom: 2rem;
	text-align: center;
	text-transform: uppercase;
	text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
	/* Efek glow halus */
}

#about p {
	font-size: 1.1rem;
	line-height: 1.8;
	text-align: center;
	color: rgba(255, 255, 255, 0.8);
	/* Putih transparan */
	max-width: 800px;
	margin: 0 auto 3rem auto;
}

/* =========================================
   1. GRID SYSTEM YANG SERAGAM
   ========================================= */
.grid-container, 
.blog-grid {
    display: grid;
    /* UBAH: Dari 320px jadi 280px agar muat 3 kolom di layar laptop dengan sidebar */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 30px;
    align-items: stretch; 
}

/* --- PAKSA 3 KOLOM DI DESKTOP --- */
/* Kode ini menjamin tampilan 3 Samping x 2 Bawah di layar Desktop/Laptop */
@media (min-width: 1024px) {
    .grid-container, 
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   2. VISUAL CARDS (BLOG, EBOOK, PORTOFOLIO)
   ========================================= */
/* Target semua item gallery agar seragam ukurannya */
.blog-card,
#ebook-gallery-container > *, 
#blog-posts-container > *, 
#project-gallery-container > * {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Konten teks di bawah */
    
    /* Ukuran Tetap agar Rapi */
    min-height: 400px; 
    height: 100%;
    
    /* Glass Effect Base */
    background: #000; /* Fallback */
    border: var(--glass-border) !important;
    border-top: var(--glass-highlight) !important;
    border-left: var(--glass-highlight) !important;
    box-shadow: var(--glass-shadow);
    
    /* SUDUT BULAT (ROUND) */
    border-radius: 24px !important; 
    
    overflow: hidden; /* Agar gambar tidak keluar dari sudut bulat */
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Efek Hover Container */
.blog-card:hover,
#ebook-gallery-container > *:hover, 
#blog-posts-container > *:hover, 
#project-gallery-container > *:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border-color: rgba(255, 255, 255, 0.4) !important;
    z-index: 10;
}

/* --- GAMBAR FULL COVER (BACKGROUND) --- */
.blog-thumbnail,
.blog-card img,
#ebook-gallery-container img, 
#blog-posts-container img, 
#project-gallery-container img {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0; 
    border: none !important; 
    transition: transform 0.6s ease, filter 0.3s ease;
    filter: brightness(0.85); 
    
    /* Pastikan gambar mengikuti border radius parent */
    border-radius: 24px !important; 
}

/* Efek Zoom Gambar saat Hover */
.blog-card:hover img,
.blog-card:hover .blog-thumbnail img,
#ebook-gallery-container > *:hover img, 
#blog-posts-container > *:hover img, 
#project-gallery-container > *:hover img {
    transform: scale(1.1);
    filter: brightness(0.6); 
    border-radius: 24px !important; 
}

/* --- KONTEN TEKS (OVERLAY) --- */
.blog-card-content,
#ebook-gallery-container p,
#ebook-gallery-container h3,
#blog-posts-container p,
#blog-posts-container h3,
#project-gallery-container p,
#project-gallery-container h3 {
    position: relative;
    z-index: 2; 
}

/* Wrapper Konten Buatan (Background Gradasi Hitam) */
#ebook-gallery-container > *, 
#blog-posts-container > *, 
#project-gallery-container > * {
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(0, 0, 0, 0.7) 40%, 
        rgba(0, 0, 0, 0) 100%
    ) !important;
    padding: 25px !important;
    
    /* Pastikan wrapper konten juga bulat di bagian bawah */
    border-radius: 24px !important;
}

/* Judul */
.blog-card-content h3,
#ebook-gallery-container h3, 
#blog-posts-container h3, 
#project-gallery-container h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-top: auto; 
    margin-bottom: 10px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    padding: 0 !important; 
}

/* Deskripsi / Tanggal */
.blog-card-content p,
.blog-card-content .post-date,
#ebook-gallery-container p, 
#blog-posts-container p, 
#project-gallery-container p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
    padding: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* =========================================
   3. GENERAL CARD (EXPERIENCE / INFO)
   ========================================= */
/* Kartu ini biasanya hanya teks, jadi tidak perlu min-height 400px */
.card {
	/* Glass Effect Global */
	background: var(--glass-bg) !important;
	backdrop-filter: var(--glass-blur) !important;
	-webkit-backdrop-filter: var(--glass-blur) !important;

	border: var(--glass-border) !important;
	border-top: var(--glass-highlight) !important;
	/* Ciri Khas: Border Kiri Ungu */
	border-left: 4px solid var(--accent) !important;

	box-shadow: var(--glass-shadow);
	border-radius: var(--radius-card);

	padding: 2rem;
	margin-bottom: 1.5rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transition: transform 0.3s ease;

	/* Pastikan background tidak tertutup gradasi hitam */
	z-index: 1;
}

.card:hover {
	transform: translateY(-5px);
	background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.card h3 {
	font-size: 1.3rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 0.5rem;
}

.card-meta {
	color: var(--accent);
	font-size: 0.9rem;
	margin-bottom: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.card p {
	line-height: 1.6;
	color: var(--text-muted);
}

/* =========================================
   SKILLS (GLASS CHIPS)
   ========================================= */
.skills-container {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
	margin-top: 20px;
}

.skill-tag {
	/* Glass Chip Style */
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(5px);

	color: var(--text-muted);
	padding: 0.8rem 1.5rem;
	border-radius: 50px;
	/* Bentuk pil/kapsul */
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	cursor: default;
	text-align: center;
}

.skill-tag:hover {
	color: #fff;
	background: var(--accent);
	border-color: var(--accent);
	/* Glow Effect sesuai warna accent */
	box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
	transform: translateY(-3px);
}

/* ========================================= 
   6. POST DETAIL & TYPOGRAPHY 
   ========================================= */

.post-full-content {
    /* 1. Glass Effect Properties */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(24px) saturate(120%);
    -webkit-backdrop-filter: blur(24px) saturate(120%);
    
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 16px;

    /* 2. Layout & Spacing (DIPERBAIKI AGAR FULL WIDTH) */
    width: 100%;          /* Memaksa lebar penuh mengikuti container */
    max-width: 100%;      /* Menghapus batasan 800px sebelumnya */
    margin-bottom: 40px;  /* Jarak bawah */
    padding: 40px;        /* Padding dalam */
    box-sizing: border-box; /* Mencegah padding membuat elemen melebar keluar */
}

/* Meta Data (Tanggal/Author) */
.post-full-content .post-meta {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    text-align: center; /* Meta tetap di tengah agar rapi */
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

/* Body Text Global */
.post-full-content .post-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

/* Tombol Kembali */
.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--accent-glow);
    text-decoration: none;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
}

.back-link:hover {
    background: var(--accent-glow);
    color: #000;
}

/* Typography inside Post Body */
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
    font-family: var(--font-main);
    color: #ffffff;
    margin-bottom: 1rem;
    margin-top: 2.5rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.post-body h1 { font-size: 2.5rem; }
.post-body h2 { font-size: 2rem; }
.post-body h3 { font-size: 1.7rem; }

.post-body p {
    margin-bottom: 1.5rem;
}

/* Link di dalam artikel */
.post-body a {
    color: var(--accent-glow);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-glow);
    transition: background-color 0.3s;
}

.post-body a:hover {
    background-color: rgba(0, 255, 255, 0.2);
    color: #fff;
}

.post-body strong {
    font-weight: 800;
    color: #fff;
}

.post-body em {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
}

/* Lists */
.post-body ul,
.post-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.post-body li {
    margin-bottom: 0.5rem;
}

/* Blockquote */
.post-body blockquote {
    background: rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--accent-glow);
    padding: 20px;
    margin: 2rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    border-radius: 0 8px 8px 0;
}

/* Gambar di dalam artikel */
.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Post Tags Container */
.post-tags-container {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-tags-container h4 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Tag Link */
.tag-link {
    display: inline-block;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag-link:hover {
    color: #000;
    background-color: var(--accent-glow);
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .post-full-content {
        padding: 25px;
        width: 100%;
        border-radius: 12px;
    }
    .post-body h1 { font-size: 1.8rem; }
    .post-body h2 { font-size: 1.5rem; }
}

/* ========================================= 
   7. ARCHIVE & SEARCH 
   ========================================= */
.search-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    /* Ubah ini agar search bar juga full width jika diinginkan */
    width: 100%; 
    margin-left: 0;
    margin-right: 0;
}

.search-form input {
    flex-grow: 1;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    background-color: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: 20px;
    color: var(--text-primary);
    font-family: var(--font-main);
}

.search-form input:focus {
    outline: none;
    border-color: var(--accent-glow);
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================= 8. CHATBOT (UPDATED) ========================================= */
.chat-bubble {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 60px;
	height: 60px;
	background: var(--accent-glow);
	color: var(--bg-dark);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 20px rgba(0, 255, 255, 0.3);
	transition: transform 0.3s ease;
	z-index: 1000;
}

.chat-bubble:hover {
	transform: scale(1.1);
}

.chat-window {
	position: fixed;
	bottom: 6.5rem;
	right: 2rem;
	width: 350px;
	max-width: 90vw;
	height: 500px;
	background-color: var(--bg-dark);
	border: 1px solid var(--bg-surface);
	border-radius: 15px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	z-index: 1001;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	pointer-events: none;
}

.chat-window.open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.chat-header {
	padding: 1rem;
	background-color: var(--bg-surface);
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h3 {
	margin: 0;
	font-size: 1rem;
	color: var(--text-primary);
	font-weight: 600;
}

#close-chat {
	background: none;
	border: none;
	color: var(--text-secondary);
	font-size: 1.5rem;
	cursor: pointer;
	padding: 0;
	line-height: 1;
}

.chat-body {
	flex-grow: 1;
	padding: 1rem;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	scroll-behavior: smooth;
}

/* --- PERBAIKAN PESAN DI SINI --- */
.message {
	display: flex;
	max-width: 85%;
	flex-direction: column;
	/* Biar rapi */
}

/* Kita pakai class .msg-content agar lebih fleksibel daripada tag <p>*/
.msg-content {
	padding: 0.8rem 1rem;
	border-radius: 18px;
	margin: 0;
	line-height: 1.6;
	/* Jarak antar baris lebih lega */
	font-size: 0.95rem;
	/* INI KUNCI AGAR ENTER/LIST TERBACA */
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* Gaya Pesan User (Kanan) */
.message.user {
	align-self: flex-end;
}

.message.user .msg-content {
	background: var(--accent-glow);
	color: var(--bg-dark);
	/* Text hitam di atas warna neon */
	border-bottom-right-radius: 4px;
	font-weight: 500;
}

/* Gaya Pesan Bot (Kiri) */
.message.bot {
	align-self: flex-start;
}

.message.bot .msg-content {
	background-color: var(--bg-surface);
	color: var(--text-primary);
	border: 1px solid rgba(255, 255, 255, 0.1);
	/* Sedikit border biar tegas */
	border-bottom-left-radius: 4px;
}

/* Link di dalam chat agar terlihat jelas */
.msg-content a {
	text-decoration: underline;
	font-weight: bold;
}

.message.bot .msg-content a {
	color: var(--accent-glow);
	/* Link warna neon di bubble gelap */
}

.message.user .msg-content a {
	color: #000;
	/* Link warna hitam di bubble neon */
}

/* --- FOOTER --- */
.chat-footer {
	padding: 1rem;
	border-top: 1px solid var(--bg-surface);
	background-color: var(--bg-dark);
}

#chat-form {
	display: flex;
	gap: 0.5rem;
}

#chat-input {
	flex-grow: 1;
	background-color: var(--bg-surface);
	border: 1px solid var(--text-secondary);
	border-radius: 20px;
	padding: 0.8rem 1rem;
	color: var(--text-primary);
	font-family: var(--font-main);
	outline: none;
}

#chat-input:focus {
	border-color: var(--accent-glow);
	box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

#chat-form button {
	background: var(--accent-glow);
	border: none;
	color: var(--bg-dark);
	font-weight: 700;
	padding: 0 1.5rem;
	border-radius: 20px;
	cursor: pointer;
	transition: transform 0.2s;
}

#chat-form button:hover {
	transform: scale(1.05);
}

/* ========================================= 9. EBOOK / PDF VIEWER ========================================= */
.btn-read-pdf {
	display: inline-block;
	padding: 12px 20px;
	background-color: #dc3545;
	/* Red */
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-weight: bold;
	font-size: 0.9rem;
	border: 1px solid #dc3545;
	text-align: center;
	width: 100%;
	max-width: 300px;
	transition: background 0.3s;
}

.btn-read-pdf:hover {
	background-color: #bb2d3b;
}

.pdf-viewer-wrapper {
	position: relative;
	width: 100%;
	height: 70vh;
	/* Dynamic height */
	min-height: 500px;
	background: #1a1a2e;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #333;
}

.pdf-viewer-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

/* ========================================= 10. FOOTER ========================================= */
footer {
	text-align: center;
	padding: 2rem 0;
	border-top: 1px solid var(--bg-surface);
	color: var(--text-secondary);
	font-size: 0.9rem;
}

/* ========================================= 11. MEDIA QUERIES (Responsive) ========================================= */
@media (min-width:768px) {

	/* Desktop specific overrides */
	.btn-read-pdf {
		width: auto;
	}

	.ebook-header h1 {
		font-size: 2rem;
	}
}

@media (max-width:768px) {

	/* Mobile Global */
	body {
		cursor: default;
		/* Remove custom cursor on touch */
	}

	.container {
		padding: 1rem;
	}

	.glow-cursor {
		display: none;
	}

	/* Header & Nav */
	.main-header {
		flex-direction: column;
		gap: 1.5rem;
		margin-bottom: 2rem;
		padding-top: 0;
	}

	.profile-intro {
		flex-direction: column;
		text-align: center;
	}

	.contact-header {
		flex-wrap: wrap;
		justify-content: center;
	}

	.contact-link {
		padding: 0.6rem 1.2rem;
	}

	/* Navigation Mobile Logic */
	.nav-links {
		display: none;
		/* Hide default nav,use offcanvas */
	}

	.nav-toggler {
		display: block;
		/* Show hamburger */
	}

	/* Layout Adjustments */
	h1 {
		font-size: 1.8rem;
	}

	#about p {
		font-size: 1.1rem;
	}

	.blog-grid {
		grid-template-columns: 1fr;
	}

	.card {
		padding: 1.5rem;
	}

	/* PDF Viewer Mobile */
	.pdf-viewer-wrapper {
		height: 60vh;
		min-height: 400px;
	}

	/* Post Content Mobile */
	.post-full-content h1 {
		font-size: 2rem;
	}

	/* Container Utama */
	.related-wrapper {
		margin-top: 60px;
		padding-top: 20px;
		border-top: 1px solid rgba(255, 255, 255, 0.1);
		width: 100%;
	}

	.related-heading {
		font-size: 1.4rem;
		margin-bottom: 20px;
		font-weight: 700;
		color: #fff;
		border-left: 4px solid #00ffff;
		/* Aksen warna cyan */
		padding-left: 10px;
	}

	/* GRID SYSTEM:4 Kolom Sejajar */
	.related-grid {
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		/* 4 Kolom sama besar */
		gap: 20px;
		/* Jarak antar kotak */
	}

	/* Tampilan Kartu Artikel */
	.related-card {
		display: flex;
		flex-direction: column;
		background: #1a1a1a;
		/* Warna background kartu gelap */
		border-radius: 8px;
		overflow: hidden;
		text-decoration: none;
		transition: transform 0.3s, box-shadow 0.3s;
		border: 1px solid #333;
		height: 100%;
		/* Agar tinggi sama rata */
	}

	.related-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 5px 15px rgba(0, 255, 255, 0.15);
		border-color: #00ffff;
	}

	/* Gambar Thumbnail */
	.related-img {
		width: 100%;
		height: 140px;
		/* Tinggi gambar fix biar rapi */
		object-fit: cover;
		background-color: #222;
	}

	/* Judul Artikel */
	.related-info {
		padding: 15px;
		flex-grow: 1;
		/* Mengisi sisa ruang */
	}

	.related-title {
		font-size: 0.95rem;
		color: #e0e0e0;
		margin: 0;
		line-height: 1.4;
		font-weight: 600;
		/* Membatasi teks maksimal 3 baris */
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* --- RESPONSIF (Tablet & HP) --- */
	@media (max-width:992px) {
		.related-grid {
			grid-template-columns: repeat(2, 1fr);
			/* Tablet:2 Kolom */
		}
	}

	@media (max-width:576px) {
		.related-grid {
			grid-template-columns: 1fr;
			/* HP:1 Kolom ke bawah */
		}

		.related-img {
			height: 180px;
			/* Gambar lebih besar di HP */
		}
	}

	/* ========================================= STYLE:MODERN CODE BOX (MAC/VSCODE THEME) ========================================= */
	/* 1. CONTAINER UTAMA (Box Pembungkus) */
	.code-box {
		position: relative;
		background-color: #1e1e1e;
		/* Warna Background Gelap ala VS Code */
		border: 1px solid #333;
		/* Border halus */
		border-radius: 8px;
		/* Sudut membulat */
		margin: 25px 0;
		/* Jarak atas bawah dari paragraf lain */
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
		/* Bayangan agar terlihat timbul */
		overflow: hidden;
		/* Memastikan isi tidak keluar dari radius */
		font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
		/* Font coding */
	}

	/* 2. HEADER BAR (Bagian Atas) */
	.code-header {
		background-color: #252526;
		/* Sedikit lebih terang dari background utama */
		padding: 8px 15px;
		display: flex;
		justify-content: space-between;
		/* Kiri dots,Kanan tombol copy */
		align-items: center;
		border-bottom: 1px solid #333;
		user-select: none;
		/* Agar header tidak ikut ter-blok saat select text */
	}

	/* 3. WINDOW CONTROLS (Titik Merah Kuning Hijau) */
	.window-controls {
		display: flex;
		align-items: center;
		gap: 8px;
		/* Jarak antar titik */
	}

	.window-dot {
		width: 12px;
		height: 12px;
		border-radius: 50%;
		display: inline-block;
	}

	.red {
		background-color: #ff5f56;
	}

	.yellow {
		background-color: #ffbd2e;
	}

	.green {
		background-color: #27c93f;
	}

	/* 4. JUDUL BAHASA (Text di Header) */
	.code-title {
		margin-left: 10px;
		font-size: 12px;
		color: #858585;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}

	/* 5. TOMBOL COPY */
	.copy-btn {
		background: transparent;
		border: 1px solid #444;
		color: #ccc;
		padding: 4px 10px;
		border-radius: 4px;
		font-size: 11px;
		cursor: pointer;
		display: flex;
		align-items: center;
		gap: 6px;
		transition: all 0.2s ease;
	}

	.copy-btn:hover {
		background-color: #3e3e42;
		color: #fff;
		border-color: #666;
	}

	.copy-btn svg {
		width: 14px;
		height: 14px;
		opacity: 0.8;
	}

	/* State saat tombol sudah diklik (Added via JS) */
	.copy-btn.copied {
		border-color: #28a745;
		color: #28a745;
	}

	/* 6. RESET KONTEN PRE & CODE (Sangat Penting!) Ini memaksa elemen <pre>bawaan editor backend untuk tunduk pada style box kita.*/
	/* Target <pre>yang ada DI DALAM .code-box */
	.code-box pre {
		margin: 0 !important;
		/* Hapus margin bawaan browser/editor */
		padding: 15px !important;
		/* Beri jarak teks ke dinding box */
		background: transparent !important;
		/* Hapus background bawaan editor */
		border: none !important;
		/* Hapus border bawaan editor */
		border-radius: 0 !important;
		/* Hapus radius bawaan editor */
		overflow-x: auto;
		/* Scroll horizontal jika baris kode panjang */
		/* Styling Text Default */
		color: #d4d4d4;
		font-size: 14px;
		line-height: 1.5;
		tab-size: 4;
	}

	/* Target <code>di dalamnya */
	.code-box pre code {
		background: transparent !important;
		border: none !important;
		padding: 0 !important;
		font-family: inherit;
		color: inherit;
		/* Biarkan Prism yang mengatur warna syntax */
		box-shadow: none !important;
	}

	/* Scrollbar Custom (Opsional - Agar scrollbar chrome lebih rapi) */
	.code-box pre::-webkit-scrollbar {
		height: 8px;
	}

	.code-box pre::-webkit-scrollbar-track {
		background: #1e1e1e;
	}

	.code-box pre::-webkit-scrollbar-thumb {
		background: #444;
		border-radius: 4px;
	}

	.code-box pre::-webkit-scrollbar-thumb:hover {
		background: #555;
	}

	/* Chatbot Mobile */
	.chat-window {
		width: 90vw;
		height: 70vh;
		bottom: 5rem;
		right: 5vw;
	}

	.badge-container {
		position: fixed;
		top: 20px;
		right: 20px;
		z-index: 10000;
		display: flex;
		align-items: center;
		background: rgba(26, 26, 26, 0.9);
		border: 1px solid #3d8bff;
		padding: 10px 15px;
		border-radius: 50px;
		color: white;
		font-family: sans-serif;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
		backdrop-filter: blur(5px);
		transition: all 0.5s ease;
	}

	.badge-icon {
		font-size: 24px;
		margin-right: 10px;
		transition: transform 0.3s ease;
	}

	.badge-text {
		display: flex;
		flex-direction: column;
	}

	#badge-status {
		font-weight: bold;
		font-size: 13px;
	}

	#badge-detail {
		font-size: 10px;
		color: #888;
	}

	.sticky-banner-container {
		position: fixed;
		z-index: 99999;
		transition: all 0.3s ease-in-out;
		background: transparent;
		line-height: 0;
		/* Menghilangkan gap di bawah gambar */
	}

	/* Style Tombol Close */
	.sticky-close-btn {
		position: absolute;
		top: -12px;
		left: -12px;
		width: 30px;
		height: 30px;
		background: #ff0000;
		color: #fff;
		border: 2px solid #fff;
		border-radius: 50%;
		font-size: 20px;
		line-height: 26px;
		/* Centering text vertikal */
		cursor: pointer;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 100000;
	}

	/* Agar gambar responsif mengikuti wadah */
	.sticky-banner-container img {
		height: auto;
		display: block;
		box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	}

	/* --- TAMPILAN DESKTOP (Layar > 768px) --- */
	@media (min-width: 769px) {
		.sticky-banner-container {
			width: 300px;
			/* Sesuai permintaan */
			right: 0;
			/* Menempel di kanan */
			top: 50%;
			/* Tengah vertikal */
			transform: translateY(-50%);
		}

		.sticky-banner-container img {
			width: 100%;
			/* Mengisi container 300px */
			border-top-left-radius: 8px;
			border-bottom-left-radius: 8px;
		}
	}

	/* --- TAMPILAN MOBILE (Layar <= 768px) --- */
	@media (max-width: 768px) {
		.sticky-banner-container {
			width: 100px;
			/* Ukuran kecil untuk mobile */
			right: 15px;
			bottom: 20px;
			/* Posisi di bawah */
			top: auto;
			/* Reset posisi top desktop */
			transform: none;
		}

		.sticky-banner-container img {
			width: 100%;
			border-radius: 8px;
			/* Membulat sedikit */
			border: 2px solid #fff;
			/* Border putih agar kontras */
		}

		/* Penyesuaian tombol close di mobile */
		.sticky-close-btn {
			width: 24px;
			height: 24px;
			font-size: 16px;
			line-height: 20px;
			top: -8px;
			left: -8px;
		}
	}

    /* --- WEB3 READER BAR CSS --- */
    .reader-status-wrapper {
        background: #1e1e24;
        border: 1px solid #333;
        border-radius: 8px;
        padding: 12px 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .reader-info {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.9rem;
        color: #e0e0e0;
    }

    .reader-address {
        font-family: 'Courier New', Courier, monospace;
        color: #00ffff;
        font-weight: bold;
        background: rgba(0, 255, 255, 0.1);
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 0.85rem;
    }

    .btn-connect-reader {
        background: transparent;
        border: 1px solid #00ffff;
        color: #00ffff;
        padding: 6px 16px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 0.85rem;
        font-weight: 600;
        transition: 0.3s;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .btn-connect-reader:hover {
        background: #00ffff;
        color: #121212;
    }
	
	/* Penyesuaian loker */
	.loker-description-content {
        color: #e0e0e0 !important;
        line-height: 1.6;
        font-size: 1rem;
    }

    .loker-description-content * {
        color: #e0e0e0 !important;
        background-color: transparent !important;
    }

    .loker-description-content a {
        color: #00ffff !important;
        text-decoration: underline;
    }
 
/* Efek Saat Ada Serangan (Petir) */
 .status-attack {
     border-color: #ffcc00 !important;
     background: rgba(40, 30, 0, 0.9) !important;
     box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
}
 .shake {
     animation: shake 0.5s infinite;
}
 @keyframes shake {
     0% {
         transform: translate(1px, 1px) rotate(0deg);
    }
     20% {
         transform: translate(-1px, -2px) rotate(-1deg);
    }
     40% {
         transform: translate(-3px, 0px) rotate(1deg);
    }
     100% {
         transform: translate(1px, 1px) rotate(0deg);
    }
} }