/* The Warm Touch Hub — korporat dengan sentuhan lembut: rose pudar, krim, satu warna aksen */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700&display=swap');

:root {
  --primary: #a24a6b;
  --primary-hover: #873b58;
  --primary-soft: #fbedf2;
  --lavender: #8a78c0;
  --lavender-soft: #f1edfa;
  --peach-soft: #fdf0e6;
  --mint-soft: #e8f5ef;
  --accent: #d79bb0;
  --gold: #b07f55;
  --bg: #ffffff;
  --bg-alt: #fdf7f5;
  --surface: #ffffff;
  --text: #2b2228;
  --muted: #74666e;
  --line: #f0e4e6;
  --ok: #2f7d5b;
  --ok-soft: #e8f3ee;
  --warn: #8a6414;
  --warn-soft: #fbf3e2;
  --danger: #b23a4f;
  --danger-soft: #fbeaed;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(162, 74, 107, 0.06), 0 10px 28px -14px rgba(162, 74, 107, 0.28);
  --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
/* E-mel, URL dan nombor panjang dipecahkan supaya tidak melimpah di skrin kecil. */
p, li, dd, td, .alert, .hint { overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(560px, 100% - 32px); }
.container.narrow-wide { width: min(780px, 100% - 32px); }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* ---------------- Header */
.topbar { background: var(--primary-soft); color: var(--primary); font-size: 0.8rem; font-weight: 500; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, #d77d9c, #9d88cf); color: #fff;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.12rem; line-height: 1.15; display: block; white-space: nowrap; }
.brand-ssm { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 500; }
.nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 0.95rem; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.nav-links a:hover { background: var(--bg-alt); color: var(--primary); }
.nav-links a[aria-current='page'] { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff !important; margin-left: 6px; }
.cart-link:hover, .cart-link[aria-current='page'] { background: var(--primary-hover) !important; }
.cart-link svg { width: 18px; height: 18px; }
.cart-count { background: #fff; color: var(--primary); font-weight: 700; border-radius: 999px; font-size: 0.72rem; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.cart-count:empty { display: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1.2rem; color: var(--text); cursor: pointer; padding: 4px 10px; min-width: 42px; min-height: 42px; }

.nav-icons { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.icon-link { position: relative; display: inline-grid !important; place-items: center; width: 40px; height: 40px; padding: 0 !important; }
.icon-link svg { width: 20px; height: 20px; }
.mini-count { position: absolute; top: 2px; right: 0; background: var(--primary); color: #fff; border-radius: 999px; font-size: 0.65rem; font-weight: 700; min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; }
.mini-count:empty { display: none; }
.lang-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; font: 600 0.78rem var(--font-body); padding: 6px 8px; cursor: pointer; letter-spacing: 0.04em; }
.lang-btn:hover { border-color: var(--accent); color: var(--primary); }

@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav { flex-wrap: wrap; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; margin-left: 0; }
  .nav-links.open { display: flex; }
  .nav-icons { margin: 8px 0 0; justify-content: flex-start; }
}

/* ---------------- Buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem var(--font-body); padding: 11px 22px; border-radius: 10px;
  border: 1px solid var(--primary); background: var(--primary); color: #fff; text-decoration: none; cursor: pointer;
  text-align: center; text-wrap: balance;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--accent); }
.btn-outline:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.btn-soft { background: var(--bg-alt); color: var(--text); border-color: var(--line); }
.btn-soft:hover { background: var(--line); border-color: var(--line); }
.btn-sm { padding: 7px 12px; font-size: 0.85rem; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #962f42; border-color: #962f42; }
.btn-block { width: 100%; }

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type='checkbox'] { width: auto; accent-color: var(--primary); }
input[type='file'] { padding: 8px; background: var(--surface); }
.field { margin-bottom: 16px; }
.sub-label { margin: 10px 0 6px; font-weight: 500; color: var(--muted); font-size: 0.85rem; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check label { font-weight: 400; }
.check input { margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.hint { font-size: 0.82rem; color: var(--muted); margin-top: 4px; font-weight: 400; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 16px; font-size: 0.92rem; border: 1px solid transparent; }
.alert-error { background: var(--danger-soft); color: #7e2233; border-color: #f2cfd6; }
.alert-ok { background: var(--ok-soft); color: #1d5a40; }
.alert-info { background: var(--bg-alt); color: var(--text); border-color: var(--line); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-muted { background: var(--bg-alt); color: var(--muted); }

/* ---------------- Hero */
.hero { padding: 64px 0; background: linear-gradient(135deg, #fdf1f4 0%, #fbf6f2 55%, #f3effb 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.4rem); }
.hero h1 span { color: var(--primary); display: block; }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; }
.hero-art .stack-book { border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); border: 4px solid #fff; background: var(--surface); transition: transform 0.2s; }
.hero-art .stack-book:hover { transform: translateY(-4px); }
.hero-art .stack-book:nth-child(2) { margin-bottom: 24px; }
@media (max-width: 860px) {
  .hero { padding: 44px 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------------- Laman sambutan (welcome) */
.welcome {
  position: relative; overflow: hidden; color: #fff; display: grid; place-items: center;
  min-height: min(88vh, 860px); padding: 72px 0 96px;
  background: linear-gradient(120deg, #7e3553, #a24a6b 40%, #8a78c0 80%, #b07f55);
  background-size: 300% 300%; animation: welcome-glow 18s ease-in-out infinite;
}
@keyframes welcome-glow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.welcome-media, .welcome-shade { position: absolute; inset: 0; }
.welcome-media video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.welcome.has-video .welcome-media video { opacity: 1; }
/* Video YouTube sebagai latar: dibesarkan untuk menutup seluruh bahagian (seperti object-fit: cover). */
.welcome-media { pointer-events: none; }
.welcome-media .yt-bg {
  position: absolute; top: 50%; left: 50%; border: 0; opacity: 0; transition: opacity 1.2s ease;
  width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.2);
}
.welcome.has-video .welcome-media .yt-bg { opacity: 1; }
/* YouTube memerlukan pemain sekurang-kurangnya 200×200 piksel; ia disembunyikan di belakang kandungan. */
.yt-audio { position: fixed; width: 200px; height: 200px; left: 0; bottom: 0; border: 0; opacity: 0; pointer-events: none; z-index: -1; }
.music-credit { position: absolute; left: 20px; bottom: 20px; margin: 0; max-width: calc(100% - 200px); font-size: 0.72rem; color: rgba(255, 255, 255, 0.75); }
@media (max-width: 600px) { .music-credit { left: 14px; bottom: 64px; max-width: calc(100% - 28px); } }
.welcome-shade { background: linear-gradient(180deg, rgba(43, 32, 38, 0.25) 0%, rgba(43, 32, 38, 0.55) 70%, rgba(43, 32, 38, 0.7) 100%); }
.welcome-inner { position: relative; text-align: center; max-width: 820px; }
.welcome-eyebrow { display: block; font: 600 0.85rem var(--font-body); letter-spacing: 0.22em; text-transform: uppercase; color: #f6dfe8; margin-bottom: 14px; }
.welcome h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.05; color: #fff; margin-bottom: 18px; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.welcome-lead { font-size: clamp(1rem, 2.1vw, 1.2rem); color: #fbeef3; max-width: 640px; margin: 0 auto; }
.welcome-actions { justify-content: center; }
.btn-light { background: #fff; color: var(--primary); border-color: #fff; }
.btn-light:hover { background: var(--primary-soft); border-color: var(--primary-soft); color: var(--primary); }
.welcome .btn-ghost, .splash .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.welcome .btn-ghost:hover, .splash .btn-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; color: #fff; }
.welcome-books { display: flex; justify-content: center; gap: 16px; margin-top: 44px; }
.welcome-books .stack-book { width: 120px; border-radius: 10px; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.5); transition: transform 0.2s; }
.welcome-books .stack-book:nth-child(2) { transform: translateY(-14px); }
.welcome-books .stack-book:hover { transform: translateY(-6px); }
.welcome.has-video .welcome-books { display: none; }
.sound-btn {
  position: absolute; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(43, 32, 38, 0.45);
  color: #fff; font: 600 0.82rem var(--font-body); cursor: pointer; backdrop-filter: blur(6px);
}
.sound-btn svg { width: 18px; height: 18px; }
.sound-btn:hover { background: rgba(43, 32, 38, 0.65); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); color: #fbeef3; text-decoration: none; font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; }
.scroll-cue:hover { color: #fff; }
@media (max-width: 600px) {
  .welcome { min-height: 78vh; padding: 56px 0 88px; }
  .welcome-books .stack-book { width: 84px; }
  .welcome-books .stack-book:nth-child(n + 3) { display: none; }
  .sound-btn span { display: none; }
  .sound-btn { padding: 10px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .welcome { animation: none; } }

/* Skrin "Selamat Datang" (sekali bagi setiap sesi) */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; color: #fff; text-align: center;
  background: radial-gradient(circle at 30% 20%, #b65d80, #7e3553 55%, #4a2e47);
  animation: splash-in 0.5s ease;
}
.splash.closing { opacity: 0; transition: opacity 0.45s ease; pointer-events: none; }
@keyframes splash-in { from { opacity: 0; } to { opacity: 1; } }
.splash-inner { max-width: 520px; }
.splash-mark { width: 72px; height: 72px; margin: 0 auto 22px; }
.splash-mark svg { width: 36px; height: 36px; }
.splash h2 { color: #fff; font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 10px; }
.splash-lead { color: #fbeef3; margin-bottom: 28px; }
.splash-actions { justify-content: center; }
body.splash-open { overflow: hidden; }

/* Kad "Terokai" di laman utama */
.explore { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.explore-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 20px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.explore-tile strong { font: 700 1.05rem var(--font-head); }
.explore-tile strong::after { content: ' →'; color: var(--primary); }
.explore-tile span { color: var(--muted); font-size: 0.92rem; }
.explore-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }

/* Kepala halaman dalaman (Tentang Kami, Hubungi) */
.page-hero { padding: 56px 0 44px; background: linear-gradient(135deg, #fdf1f4 0%, #fbf6f2 55%, #f3effb 100%); }
.page-hero .lead { font-size: 1.08rem; color: var(--muted); max-width: 720px; margin: 0; }
@media (max-width: 600px) { .page-hero { padding: 40px 0 32px; } }
.timeline { list-style: none; counter-reset: tahap; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline li { counter-increment: tahap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.timeline li::before { content: counter(tahap); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font: 700 0.9rem var(--font-head); margin-bottom: 12px; }
.timeline strong { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.timeline span { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.info-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 16px 0 0; }
.info-list dt { color: var(--muted); }
.info-list dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .info-list { grid-template-columns: 1fr; gap: 2px; } .info-list dd { margin-bottom: 10px; } }
.cta-stack { flex-direction: column; align-items: flex-start; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 16px; }
.contact-cards { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.contact-card .icon { margin: 0; flex: none; }
.contact-card h3 { margin-bottom: 2px; }
.contact-card p { margin: 0 0 6px; font-size: 0.9rem; }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.link-list a { text-decoration: none; font-weight: 500; }
.link-list a::before { content: '→ '; color: var(--accent); }

/* ---------------- Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; }
.section-head h2, .section-head h1 { margin-bottom: 4px; }
.section-head .muted { max-width: 640px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--primary); }
@media (max-width: 600px) {
  .section { padding: 40px 0; }
  .section-head { margin-bottom: 20px; }
  .card { padding: 18px; }
  .site-footer { padding-top: 40px; }
}

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.cat {
  background: var(--surface); border-radius: var(--radius); padding: 18px 18px 16px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; transition: border-color 0.15s, box-shadow 0.15s;
}
.cat:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.cat-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font: 700 0.85rem var(--font-head); }
.cat-name { font-weight: 600; font-size: 0.95rem; }
.cat-link { font-size: 0.8rem; color: var(--muted); }

/* ---------------- Book cards */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.book { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow 0.2s, border-color 0.2s; }
.heart-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.94); color: var(--muted); cursor: pointer; }
.heart-btn svg { width: 18px; height: 18px; }
.heart-btn:hover { color: var(--primary); border-color: var(--accent); }
.heart-btn.on { color: var(--primary); }
.heart-btn.on svg path { fill: currentColor; }
.book > .heart-btn { position: absolute; top: 10px; right: 10px; z-index: 1; }
.heart-btn.with-label { width: auto; height: auto; border-radius: 10px; padding: 10px 16px; display: inline-flex; gap: 8px; font: 600 0.95rem var(--font-body); }
.book:hover { box-shadow: var(--shadow); border-color: #ddd5d2; }
.book-cover { aspect-ratio: 3 / 4; background: var(--bg-alt); position: relative; display: block; border-bottom: 1px solid var(--line); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.book-cover .badge { position: absolute; top: 10px; left: 10px; background: rgba(255, 255, 255, 0.92); color: var(--text); }
.book-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.book-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--text); text-decoration: none; }
.book-title:hover { color: var(--primary); }
.book-meta { font-size: 0.82rem; color: var(--muted); }
.book-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; gap: 8px; }
.price { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
/* Telefon: dua kad sebaris supaya katalog tidak terlalu panjang. */
@media (max-width: 520px) {
  .books { grid-template-columns: 1fr 1fr; gap: 12px; }
  .book-body { padding: 10px 12px 12px; }
  .book-title { font-size: 0.92rem; }
  .book-meta { font-size: 0.75rem; }
  .book-foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 10px; }
  .book-foot .price { font-size: 1rem; }
  .book-foot .btn { width: 100%; }
  .book-cover .badge { font-size: 0.65rem; padding: 2px 8px; }
  .book > .heart-btn { top: 8px; right: 8px; width: 34px; height: 34px; }
}

/* ---------------- Steps / features */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.step { padding: 22px 20px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step::before {
  counter-increment: step; content: '0' counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--primary-soft); font: 700 0.85rem var(--font-head); color: var(--primary); margin-bottom: 10px;
}
.step p { font-size: 0.88rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.feature p { margin: 0; font-size: 0.92rem; }
.icon { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 20px; height: 20px; }

/* ---------------- Tentang kami & institusi */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.about-grid .lead { font-size: 1.05rem; color: var(--muted); }
.pillars { display: grid; gap: 14px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: 16px 18px; }
.pillar h3 { margin-bottom: 4px; font-size: 0.98rem; }
.pillar p { margin: 0; font-size: 0.9rem; color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
.cta-band { background: linear-gradient(120deg, #7e3553, var(--primary)); color: #fff; border-radius: var(--radius); padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #f6e3ea; max-width: 620px; }
.cta-band .btn { background: #fff; color: var(--primary); border-color: #fff; }
.cta-band .btn:hover { background: var(--primary-soft); border-color: var(--primary-soft); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
@media (max-width: 600px) { .cta-band { padding: 28px 22px; } }

/* ---------------- Catalog toolbar */
.toolbar { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
@media (max-width: 700px) { .toolbar { grid-template-columns: 1fr; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 8px 16px; min-height: 38px; border-radius: 999px; cursor: pointer; font: 500 0.85rem var(--font-body); }
.chip:hover { border-color: var(--muted); }
.chip[aria-pressed='true'] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------------- Book detail */
.detail { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; }
.detail-cover { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.detail-cover::after { content: '© The Warm Touch Hub'; position: absolute; bottom: 10px; right: 10px; font-size: 0.7rem; color: #fff; background: rgba(31, 27, 30, 0.55); padding: 2px 8px; border-radius: 4px; }
.spec { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 20px 0; overflow: hidden; }
.spec div { padding: 10px 14px; font-size: 0.8rem; color: var(--muted); border-right: 1px solid var(--line); }
.spec div:last-child { border-right: 0; }
.spec strong { display: block; font-size: 0.95rem; color: var(--text); }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; gap: 24px; } .detail-cover { max-width: 240px; width: 100%; margin-inline: auto; } }
@media (max-width: 520px) { .spec { grid-template-columns: 1fr 1fr; } .spec div:nth-child(2) { border-right: 0; } .spec div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); } }

.previews { margin: 8px 0 24px; }
.preview-row { display: flex; gap: 12px; flex-wrap: wrap; }
.preview-thumb { padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-alt); cursor: zoom-in; width: 110px; transition: border-color 0.15s, box-shadow 0.15s; }
.preview-thumb:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.preview-thumb img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; user-select: none; }
.preview-dialog { border: 0; border-radius: var(--radius); padding: 16px; max-width: min(720px, 100vw - 24px); width: 100%; background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }
.preview-dialog::backdrop { background: rgba(43, 32, 38, 0.7); }
.preview-dialog img { width: 100%; max-height: 75vh; object-fit: contain; border-radius: var(--radius-sm); background: var(--bg-alt); user-select: none; }
.preview-dialog-bar, .preview-dialog-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.preview-dialog-bar { margin-bottom: 12px; }
.preview-dialog-nav { margin-top: 12px; }

/* ---------------- Penilaian & ulasan */
.stars { color: #e0a63a; letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: #e6dcdf; }
.book-rating { font-size: 0.85rem; display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.reviews { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.review-list { display: grid; gap: 14px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.review p { margin: 0 0 6px; white-space: pre-line; }
.review-form { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.review-form-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.star-input { display: flex; gap: 2px; margin-bottom: 10px; }
.star-btn { background: none; border: 0; font-size: 1.6rem; line-height: 1; color: #e6dcdf; cursor: pointer; padding: 2px; }
.star-btn.on { color: #e0a63a; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.testimonial blockquote { margin: 10px 0 14px; font-size: 0.98rem; line-height: 1.7; }
.testimonial figcaption { font-size: 0.88rem; }

/* ---------------- Pakej jimat */
.section-tight { padding-top: 0; }
.bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.bundle { display: grid; grid-template-columns: 120px 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px; }
.bundle-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.bundle-covers img { border-radius: 6px; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); }
.bundle-body { display: flex; flex-direction: column; gap: 6px; }
.bundle-body h3 { margin: 4px 0 0; }
.bundle-body p { margin: 0; font-size: 0.9rem; }
.bundle-list { margin: 0; padding-left: 18px; font-size: 0.88rem; }
.bundle-body .badge { align-self: flex-start; }
@media (max-width: 420px) { .bundle { grid-template-columns: 1fr; } .bundle-covers { grid-template-columns: repeat(4, 1fr); } }
.bundle-hint { background: var(--primary-soft); border-radius: var(--radius-sm); padding: 14px 18px; margin-top: 16px; }
.bundle-hint h3 { font-size: 0.95rem; margin-bottom: 6px; }
.bundle-hint p { margin: 0; font-size: 0.9rem; }

/* ---------------- Kupon & diskaun */
.summary-row.discount { color: var(--ok); }
.coupon-form { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.coupon-row { display: flex; gap: 8px; }
.hint.error { color: var(--danger); }
.hint.ok { color: var(--ok); }

/* ---------------- Butang WhatsApp terapung */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px;
  background: #25a35a; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem;
  padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
}
.wa-float:hover { background: #1e8a4c; }
.wa-float svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* ---------------- Artikel */
.articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.article-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.article-card:hover { box-shadow: var(--shadow); border-color: var(--accent); }
.article-card img, .article-card-mark { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-card-mark { display: grid; place-items: center; background: linear-gradient(135deg, #fdf1f4, #f3effb); color: var(--accent); }
.article-card-mark svg { width: 48px; height: 48px; }
.article-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.article-card-body h3 { margin: 0; font-size: 1.05rem; }
.article-card-body p { margin: 0; font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article h1 { margin-top: 6px; }
.article-cover { border-radius: var(--radius); margin: 18px 0 24px; width: 100%; }
.article-body { font-size: 1.04rem; line-height: 1.8; }
.article-body h2 { font-size: 1.35rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.12rem; margin-top: 1.4em; }
.article-body ul { padding-left: 22px; }
.article-cta { margin-top: 40px; text-align: center; }

/* ---------------- E-buku percuma */
.free-section { background: linear-gradient(135deg, #fdf1f4 0%, #f3effb 100%); }
.free-ebook { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.free-ebook > img { border-radius: var(--radius-sm); border: 4px solid #fff; box-shadow: var(--shadow); }
.free-form { margin-top: 16px; }
@media (max-width: 700px) { .free-ebook { grid-template-columns: 1fr; gap: 20px; } .free-ebook > img { max-width: 180px; } }

/* ---------------- Hadiah */
.gift-toggle { background: var(--primary-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.gift-toggle label { font-weight: 600; }
.gift-fields { border: 1px dashed var(--accent); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; }
.gift-card h3 { display: flex; align-items: center; gap: 8px; }
.gift-card h3 svg, .btn svg { width: 18px; height: 18px; }
.gift-message { font-style: italic; color: var(--text); background: var(--bg-alt); border-left: 3px solid var(--accent); padding: 10px 14px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 10px 0 14px; }
.gift-hero { text-align: center; margin-bottom: 24px; }
.gift-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); margin-bottom: 12px; }
.gift-icon svg { width: 32px; height: 32px; }
.gift-hero .gift-message { display: inline-block; text-align: left; max-width: 520px; }

/* ---------------- Log masuk sosial */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.auth-head { text-align: center; margin-bottom: 24px; }
.auth-head h1 { margin-bottom: 6px; }
.auth-head p { margin: 0; }
.auth-card { padding: 28px; }
.auth-social .social-btn { width: 100%; }
.auth-social .or-divider { margin: 22px 0 18px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; background: var(--bg-alt); border-radius: 10px; }
.auth-tab { padding: 9px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 600 0.95rem var(--font-body); cursor: pointer; }
.auth-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.auth-tab:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.auth-form .hint { margin-bottom: 0; }
.auth-note { text-align: center; margin-top: 14px; }
.social-btn { justify-content: center; gap: 12px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.social-btn:hover { background: var(--bg-alt); border-color: var(--muted); }
.social-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; font: 700 0.95rem var(--font-head); color: #fff; flex: none; }
.social-mark.small { width: 22px; height: 22px; font-size: 0.8rem; vertical-align: middle; }
.brand-google .social-mark, .social-mark.brand-google { background: #fff; color: #4285f4; border: 1px solid #dadce0; }
.or-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--muted); font-size: 0.85rem; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.method-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.method-row:last-child { border-bottom: 0; }
.account-side { display: grid; gap: 20px; align-content: start; }
.settings-sub { margin-top: 28px; }
.oauth-status td code { font-size: 0.8rem; word-break: break-all; }

/* ---------------- Akaun pelanggan */
.order-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.order-row:last-child { border-bottom: 0; }
.order-row:hover strong { color: var(--primary); }
.order-row .badge { margin-top: 4px; }
.claim-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------------- Institusi */
.inst-points { list-style: none; margin: 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 12px; }
.inst-points li { padding-left: 28px; position: relative; }
.inst-points li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
#enquiry-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
#enquiry-books label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }

/* ---------------- Pembaca dalam pelayar */
.reader-page { background: #4a4046; min-height: 100vh; padding-bottom: 40px; }
.reader-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.reader-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--font-head); }
.reader-controls { display: flex; align-items: center; gap: 8px; }
.reader-status { color: #f3e8ed; text-align: center; padding: 48px 16px; }
.reader-status.error { color: #ffd6df; }
.reader-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 12px; overflow-x: auto; }
.reader-sheet { position: relative; background: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); flex: none; user-select: none; -webkit-user-select: none; }
.reader-sheet canvas { display: block; pointer-events: none; }
.reader-mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; color: rgba(162, 74, 107, 0.13); font: 700 clamp(14px, 3vw, 28px) var(--font-head); transform: rotate(-30deg); text-align: center; padding: 20px; }
.reader-num { position: absolute; right: 8px; bottom: 6px; font-size: 0.72rem; color: #8a7d84; background: rgba(255, 255, 255, 0.85); padding: 1px 6px; border-radius: 4px; }
@media print { .reader-page { display: none !important; } }

/* ---------------- Cart / checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item img { border-radius: 6px; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; font-size: 0.95rem; }
.summary-total { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.progress { display: flex; gap: 0; margin-bottom: 32px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.progress span { flex: 1; min-width: 90px; padding: 10px 4px; font-weight: 500; font-size: 0.85rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.progress span.on { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }
@media (max-width: 600px) {
  .progress { flex-wrap: nowrap; margin-bottom: 24px; }
  .progress span { min-width: 0; padding: 8px 2px; font-size: 0.72rem; text-align: center; }
  .line-item { grid-template-columns: 52px 1fr auto; gap: 12px; }
}
.pay-box { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.pay-box dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0 0; font-size: 0.95rem; }
.pay-box dt { color: var(--muted); }
.pay-box dd { margin: 0; font-weight: 600; }

/* ---------------- Prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--primary); }
.prose p, .prose li { text-wrap: pretty; }
.prose .alert { margin: 24px 0; line-height: 1.65; }

/* Langkah bernombor (Cara Pembelian): tajuk di atas, penerangan di bawah. */
.step-list { list-style: none; counter-reset: langkah; padding: 0 !important; margin: 20px 0 28px; display: grid; gap: 12px; }
.step-list li {
  counter-increment: langkah; position: relative; margin: 0; padding: 16px 18px 16px 64px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.step-list li::before {
  content: counter(langkah); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font: 700 0.9rem var(--font-head);
}
.step-list strong { display: block; font-family: var(--font-head); font-size: 1rem; line-height: 1.4; margin-bottom: 2px; }
.step-list span { display: block; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.faq { display: grid; gap: 12px; margin-top: 16px; }
.faq p { margin: 0; padding: 16px 18px; background: var(--bg-alt); border-radius: var(--radius-sm); line-height: 1.65; }
.faq strong { display: inline-block; margin-bottom: 4px; }
@media (max-width: 600px) {
  .prose h2 { font-size: 1.15rem; }
  .prose p, .prose li { font-size: 0.95rem; }
  .step-list li { padding: 14px 14px 14px 54px; }
  .step-list li::before { left: 12px; top: 14px; width: 28px; height: 28px; font-size: 0.82rem; }
  .step-list span { font-size: 0.9rem; }
  .faq p { padding: 14px; }
}

/* ---------------- Flow diagram */
.flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin-top: 24px; }
.flow .node { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; font-size: 0.9rem; text-align: center; min-width: 120px; }
.flow .node small { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.flow .arrow { color: var(--accent); font-weight: 600; }
/* Desktop: satu baris. Tablet: grid 4 lajur tanpa anak panah. Telefon: menegak. */
@media (min-width: 1000px) {
  .flow { flex-wrap: nowrap; gap: 6px; }
  .flow .node { flex: 1 1 0; min-width: 0; padding: 10px 8px; }
}
@media (min-width: 601px) and (max-width: 999px) {
  .flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .flow .node { min-width: 0; }
  .flow .arrow { display: none; }
}
@media (max-width: 600px) {
  .flow { flex-direction: column; align-items: stretch; gap: 4px; max-width: 320px; margin-inline: auto; }
  .flow .node { min-width: 0; }
  .flow .arrow { transform: rotate(90deg); text-align: center; line-height: 1; }
}

/* ---------------- Footer */
.site-footer {
  background: #2b2026; color: #cdb9c2; padding: 56px 0 0; font-size: 0.9rem;
  border-top: 3px solid; border-image: linear-gradient(90deg, #d77d9c, #9d88cf) 1;
}
.site-footer a { color: #ecdfe4; text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-about p { max-width: 360px; line-height: 1.7; margin: 0 0 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-mark { width: 38px; height: 38px; }
.footer-brand .brand-mark svg { width: 20px; height: 20px; }
.footer-name { font: 700 1.05rem var(--font-head); color: #fff; }
.reg-tag { display: inline-flex; flex-direction: column; gap: 2px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; padding: 8px 12px; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: #a9909c; }
.reg-tag strong { font-size: 0.9rem; letter-spacing: 0.02em; color: #fff; text-transform: none; font-weight: 600; }
.site-footer h4 { color: #a9909c; font: 600 0.72rem var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; margin: 6px 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #d79bb0; }
.contact-list small { display: block; font-size: 0.72rem; color: #a9909c; letter-spacing: 0.04em; }
.contact-list a { word-break: break-all; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 48px; padding: 20px 0 24px; font-size: 0.8rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; color: #a9909c;
}
.legal-links { display: flex; gap: 20px; }
.legal-links a { color: #cdb9c2; }

/* ---------------- Admin */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }
.kpi { display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
button.kpi { cursor: pointer; border-color: var(--accent); }
button.kpi:hover { box-shadow: var(--shadow); }
.kpi-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.kpi strong { font: 700 1.5rem var(--font-head); color: var(--primary); }
.dash-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-grid h2 { font-size: 1.1rem; }
.bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 220px; }
.bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bar-track { flex: 1; width: 100%; max-width: 48px; display: flex; align-items: flex-end; background: var(--bg-alt); border-radius: 8px 8px 0 0; }
.bar-fill { width: 100%; background: linear-gradient(180deg, #d77d9c, var(--primary)); border-radius: 8px 8px 0 0; min-height: 2px; }
.bar-value { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.bar-label { font-size: 0.75rem; color: var(--muted); }
.promo-card { margin-top: 20px; }
.promo-form { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .grid-3 { grid-template-columns: 1fr; } }
.book-picker { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface); }
.book-picker legend { font-weight: 600; font-size: 0.9rem; padding: 0 6px; }
#bundle-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
#bundle-books label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 0; }
.tab-count:not(:empty), #pending-reviews:not(:empty) { background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.7rem; padding: 1px 7px; margin-left: 4px; }
.review-text { max-width: 320px; white-space: pre-line; }
.admin-nav { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#login-form { max-width: 420px; margin: 0 auto; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--bg-alt); }
.thumb { width: 44px; border-radius: 4px; aspect-ratio: 3/4; object-fit: cover; border: 1px solid var(--line); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.upload-drop { border: 1px dashed #cfc6c3; border-radius: var(--radius); padding: 18px; text-align: center; background: var(--bg-alt); }
.preview-cover { width: 110px; border-radius: 6px; margin: 10px auto 0; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; padding: 11px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; z-index: 50; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
[hidden] { display: none !important; }

/* ---------------- Program rujukan */
.referral-code { font: 700 1.5rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; color: var(--primary); background: var(--primary-soft); border-radius: var(--radius-sm); padding: 10px; text-align: center; margin: 4px 0 12px; }
.referral-card .coupon-row { margin-bottom: 10px; }
.wa-share { background: #25a35a; border-color: #25a35a; }
.wa-share:hover { background: #1e8a4c; border-color: #1e8a4c; }
.btn-wa { background: #25a35a; border-color: #25a35a; color: #fff; }
.btn-wa:hover { background: #1e8a4c; border-color: #1e8a4c; }
