/* ============================================
Nama Folder : pustaka-digital/assets/css
Nama File   : style.css
Versi File  : 1.0.0
Deskripsi   : Seluruh gaya aplikasi + 5 tema baca
              (terang/sepia/hijau/gelap/malam) via CSS
              variables, responsif PC→HP, mode fokus,
              gaya area & toolbar pembaca.
============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

:root {
    --biru: #4f6ef7;
    --ungu: #7b5cf0;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(15, 25, 50, .08);
    --font: 'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;
    --skala: 1
}

html {
    scroll-behavior: smooth
}

html[data-tema="terang"] {
    --bg: #f1f4fa;
    --bg2: #e7ecf5;
    --card: #fff;
    --text: #212836;
    --muted: #5d6a83;
    --border: #e2e8f2;
    --biru: #4f6ef7;
    --navbg: linear-gradient(135deg, #4f6ef7, #7b5cf0);
    --navtext: #fff;
    --hero: linear-gradient(135deg, #4f6ef7, #8b5cf6, #6366f1);
    --herotext: #fff
}

html[data-tema="sepia"] {
    --bg: #f3ead6;
    --bg2: #ebdfc2;
    --card: #fbf5e9;
    --text: #453a28;
    --muted: #86765a;
    --border: #e0d3b4;
    --biru: #8a6d3b;
    --navbg: linear-gradient(135deg, #8a6d3b, #6b5430);
    --navtext: #fff7e6;
    --hero: linear-gradient(135deg, #8a6d3b, #b08d4f);
    --herotext: #fff7e6
}

html[data-tema="hijau"] {
    --bg: #e4efe4;
    --bg2: #d5e6d5;
    --card: #f2f9f2;
    --text: #1f3226;
    --muted: #5b7563;
    --border: #c3dcc3;
    --biru: #3c7a51;
    --navbg: linear-gradient(135deg, #3c7a51, #27573a);
    --navtext: #eaf7ec;
    --hero: linear-gradient(135deg, #3c7a51, #5f9e6e);
    --herotext: #eaf7ec
}

html[data-tema="gelap"] {
    --bg: #11151e;
    --bg2: #171d29;
    --card: #1c2333;
    --text: #e6eaf3;
    --muted: #94a0b8;
    --border: #2a3450;
    --biru: #7c9bff;
    --ungu: #a78bfa;
    --navbg: linear-gradient(135deg, #232c44, #161c2c);
    --navtext: #e6eaf3;
    --hero: linear-gradient(135deg, #312e81, #1e293b);
    --herotext: #e6eaf3
}

html[data-tema="malam"] {
    --bg: #0b0a08;
    --bg2: #12100c;
    --card: #171410;
    --text: #e2c78a;
    --muted: #a08d5e;
    --border: #2e2718;
    --biru: #c9a24b;
    --ungu: #b08d4f;
    --navbg: linear-gradient(135deg, #221b0d, #0b0a08);
    --navtext: #e8c876;
    --hero: linear-gradient(135deg, #3a2c10, #171410);
    --herotext: #e8c876
}

html {
    font-size: calc(16px * var(--skala))
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background .3s, color .3s;
    -webkit-font-smoothing: antialiased
}

a {
    color: var(--biru)
}

img {
    max-width: 100%
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 18px;
    width: 100%
}

.konten-utama {
    flex: 1
}

/* ===== NAVBAR ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navbg);
    color: var(--navtext);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18)
}

.nav-dalam {
    max-width: 1280px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    flex-wrap: wrap
}

.brand {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--navtext);
    text-decoration: none;
    white-space: nowrap
}

.cari-nav {
    flex: 1;
    display: flex;
    min-width: 170px;
    max-width: 420px
}

.cari-nav input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 10px 0 0 10px;
    padding: 9px 14px;
    font-size: .9rem;
    background: rgba(255, 255, 255, .94);
    color: #222;
    font-family: var(--font)
}

.cari-nav button {
    border: 0;
    border-radius: 0 10px 10px 0;
    padding: 0 14px;
    background: rgba(0, 0, 0, .28);
    color: #fff;
    cursor: pointer
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap
}

.nav-menu>a {
    color: var(--navtext);
    text-decoration: none;
    font-weight: 500;
    font-size: .9rem;
    opacity: .9
}

.nav-menu>a:hover {
    opacity: 1
}

.burger {
    display: none;
    background: none;
    border: 0;
    color: var(--navtext);
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: auto
}

.pilih-tema {
    display: flex;
    gap: 3px;
    background: rgba(255, 255, 255, .14);
    padding: 4px;
    border-radius: 999px
}

.pilih-tema button {
    border: 0;
    background: none;
    cursor: pointer;
    font-size: .95rem;
    padding: 2px 7px;
    border-radius: 999px;
    opacity: .6
}

.pilih-tema button.aktif {
    opacity: 1;
    background: rgba(255, 255, 255, .32)
}

.dropdown {
    position: relative
}

.tombol-user {
    background: rgba(255, 255, 255, .14);
    border: 0;
    color: var(--navtext);
    padding: 7px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: .83rem;
    font-weight: 600;
    font-family: var(--font);
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 230px;
    padding: 8px;
    z-index: 200
}

.dropdown-menu.buka {
    display: block
}

.dropdown-menu a {
    display: block;
    padding: 8px 10px;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    font-size: .9rem
}

.dropdown-menu a:hover {
    background: var(--bg2)
}

.dropdown-info {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    font-size: .85rem
}

/* ===== HERO + STATISTIK ===== */
.hero {
    background: var(--hero);
    color: var(--herotext);
    padding: 54px 0 66px;
    text-align: center
}

.hero h1 {
    font-size: 1.9rem;
    font-weight: 800;
    margin-bottom: 10px
}

.hero p {
    opacity: .92;
    max-width: 640px;
    margin: 0 auto 24px;
    font-size: .95rem
}

.cari-besar {
    display: flex;
    gap: 8px;
    max-width: 640px;
    margin: auto;
    background: rgba(255, 255, 255, .16);
    padding: 8px;
    border-radius: 999px;
    backdrop-filter: blur(6px)
}

.cari-besar input {
    flex: 1;
    min-width: 0;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: .95rem;
    background: rgba(255, 255, 255, .96);
    color: #222;
    font-family: var(--font)
}

.statistik {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
    margin: -36px auto 26px;
    position: relative;
    z-index: 5
}

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    padding: 16px
}

.stat b {
    font-size: 1.5rem;
    display: block;
    color: var(--biru)
}

.stat span {
    color: var(--muted);
    font-size: .8rem
}

/* ===== KATEGORI / PILL ===== */
.kategori-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scrollbar-width: thin
}

.pill {
    white-space: nowrap;
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500
}

.pill.aktif {
    background: var(--biru);
    color: #fff;
    border-color: var(--biru)
}

/* ===== KARTU BUKU ===== */
.baris-urut {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 16px;
    flex-wrap: wrap
}

.baris-urut h2 {
    font-size: 1.15rem
}

.urut-form select {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font-family: var(--font);
    font-size: .85rem
}

.grid-buku {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 18px
}

.kartu-buku {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform .18s;
    display: flex;
    flex-direction: column
}

.kartu-buku:hover {
    transform: translateY(-5px)
}

.cover {
    position: relative;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.cover img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.grad-0 {
    background: linear-gradient(135deg, #667eea, #764ba2)
}

.grad-1 {
    background: linear-gradient(135deg, #f093fb, #f5576c)
}

.grad-2 {
    background: linear-gradient(135deg, #4facfe, #00f2fe)
}

.grad-3 {
    background: linear-gradient(135deg, #43e97b, #38f9d7)
}

.grad-4 {
    background: linear-gradient(135deg, #fa709a, #fee140)
}

.cover-inisial {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 4px 14px rgba(0, 0, 0, .25)
}

.cover-ikon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .4);
    backdrop-filter: blur(4px)
}

.kartu-isi {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px
}

.kartu-isi h3 {
    font-size: .93rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.kartu-penulis {
    font-size: .79rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.kartu-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .72rem;
    color: var(--muted);
    align-items: center
}

/* ===== BADGE & TOMBOL ===== */
.badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700
}

.badge-hijau {
    background: #dcfce7;
    color: #166534
}

.badge-kuning {
    background: #fef9c3;
    color: #854d0e
}

.badge-merah {
    background: #fee2e2;
    color: #991b1b
}

.badge-abu {
    background: var(--bg2);
    color: var(--muted)
}

.tombol {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font);
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: .9rem;
    transition: filter .15s, transform .05s
}

.tombol:active {
    transform: scale(.97)
}

.tombol-utama {
    background: linear-gradient(135deg, var(--biru), var(--ungu));
    color: #fff
}

.tombol-utama:hover {
    filter: brightness(1.1)
}

.tombol-ghost {
    background: var(--bg2);
    color: var(--text);
    border: 1px solid var(--border)
}

.tombol-bahaya {
    background: #ef4444;
    color: #fff
}

.tombol-kecil {
    padding: 6px 12px;
    font-size: .78rem
}

.inline-form {
    display: inline
}

/* ===== FORM ===== */
.form-kartu {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    max-width: 880px;
    margin: 26px auto
}

.form-grup {
    margin-bottom: 16px
}

.form-grup label {
    display: block;
    font-weight: 600;
    font-size: .84rem;
    margin-bottom: 6px
}

.form-grup .kecil {
    font-weight: 400;
    color: var(--muted);
    font-size: .75rem
}

input[type=text],
input[type=email],
input[type=password],
input[type=number],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: .92rem
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--biru)
}

textarea {
    min-height: 100px;
    resize: vertical
}

.form-grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.radio-kartu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.radio-kartu label {
    flex: 1;
    min-width: 160px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: .82rem;
    display: block;
    margin: 0
}

.radio-kartu label:has(input:checked) {
    border-color: var(--biru);
    background: rgba(79, 110, 247, .09)
}

.pesan-error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: .88rem
}

.pesan-info {
    background: rgba(79, 110, 247, .1);
    color: var(--text);
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: .84rem
}

/* ===== AUTH (LOGIN/DAFTAR) ===== */
.halaman-auth {
    display: flex;
    min-height: 100vh;
    background: var(--bg)
}

.auth-panel {
    flex: 1.1;
    background: linear-gradient(160deg, #4f6ef7, #7b5cf0, #9333ea);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px
}

.auth-panel h1 {
    font-size: 2.1rem;
    margin: 18px 0 12px
}

.auth-panel p {
    opacity: .9;
    line-height: 1.7;
    max-width: 460px
}

.auth-fitur {
    margin-top: 24px;
    line-height: 2.1;
    font-size: .95rem;
    list-style: none
}

.auth-form {
    width: 440px;
    max-width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 26px
}

.auth-form h2 {
    margin-bottom: 6px
}

.auth-form .sub {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 22px
}

@media(max-width:880px) {
    .auth-panel {
        display: none
    }

    .auth-form {
        width: 100%
    }
}

/* ===== TABEL ===== */
.tabel-wrap {
    overflow-x: auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow)
}

table.tabel {
    width: 100%;
    border-collapse: collapse;
    font-size: .87rem;
    min-width: 660px
}

.tabel th {
    background: var(--bg2);
    text-align: left;
    padding: 12px 14px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
    white-space: nowrap
}

.tabel td {
    padding: 11px 14px;
    border-top: 1px solid var(--border);
    vertical-align: middle
}

.tabel tr:hover td {
    background: var(--bg2)
}

.thumb-cover {
    width: 44px;
    height: 58px;
    border-radius: 6px;
    object-fit: cover;
    display: block
}

/* ===== PEMBACA (READER) ===== */
.progres-baca {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 300
}

#progresBaca {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--biru), var(--ungu))
}

.toolbar-baca {
    position: sticky;
    top: 57px;
    z-index: 90;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.tb-kiri {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1
}

.tb-info {
    min-width: 0
}

.tb-info h2 {
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.tb-info small {
    color: var(--muted)
}

.tb-kanan {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto;
    flex-wrap: wrap
}

.tb-sekat {
    width: 1px;
    height: 22px;
    background: var(--border)
}

.pembungkus-baca {
    margin: 22px auto;
    padding: 0 16px;
    transition: max-width .25s;
    width: 100%
}

.lebar-kecil {
    max-width: 680px
}

.lebar-sedang {
    max-width: 900px
}

.lebar-lebar {
    max-width: 1140px
}

.lebar-penuh {
    max-width: 100%
}

.area-baca {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px;
    min-height: 55vh
}

body.mode-fokus .navbar,
body.mode-fokus .footer,
body.mode-fokus .hero {
    display: none
}

.pdf-viewer {
    text-align: center
}

.pdf-halaman {
    margin: 0 auto 18px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
    border-radius: 4px;
    background: #fff;
    max-width: 100%
}

.doc-content {
    line-height: 1.85;
    font-size: 1rem
}

.doc-content p {
    margin: 0 0 1em
}

.doc-content h1,
.doc-content h2,
.doc-content h3 {
    margin: 1.2em 0 .5em
}

.doc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px
}

.doc-content table,
.tabel-data {
    border-collapse: collapse;
    width: 100%;
    font-size: .88rem;
    margin: 10px 0
}

.doc-content td,
.doc-content th,
.tabel-data td,
.tabel-data th {
    border: 1px solid var(--border);
    padding: 7px 10px
}

.tabel-data tr:nth-child(even) {
    background: var(--bg2)
}

.xls-judul {
    margin: 18px 0 8px;
    font-size: 1rem
}

.txt-pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    line-height: 1.8;
    font-family: inherit;
    font-size: 1rem
}

#gambarBaca {
    max-width: 100%;
    height: auto;
    display: block;
    margin: auto
}

.epub-viewer {
    height: 78vh;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden
}

.kartu-pesan {
    background: var(--card);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 36px 26px;
    text-align: center;
    color: var(--muted);
    margin: 30px auto;
    max-width: 640px;
    font-size: .95rem;
    line-height: 1.8
}

.memuat {
    text-align: center;
    color: var(--muted);
    padding: 60px 0
}

details.info-baca {
    margin-top: 22px
}

details.info-baca summary {
    cursor: pointer;
    font-weight: 700;
    padding: 10px 0
}

.tabel-detail {
    width: 100%;
    border-collapse: collapse;
    font-size: .87rem
}

.tabel-detail td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--border)
}

.tabel-detail td:first-child {
    color: var(--muted);
    width: 170px
}

/* ===== PAGINASI / TOAST / FOOTER ===== */
.paginasi {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 26px 0;
    flex-wrap: wrap
}

.paginasi a {
    min-width: 38px;
    text-align: center;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    font-size: .85rem
}

.paginasi a.aktif {
    background: var(--biru);
    color: #fff;
    border-color: var(--biru)
}

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    transition: .3s;
    background: #1f2937;
    color: #fff;
    padding: 12px 22px;
    border-radius: 12px;
    z-index: 400;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    font-size: .9rem;
    max-width: 90vw
}

.toast.muncul {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

.toast-sukses {
    background: #16a34a
}

.toast-peringatan {
    background: #d97706
}

.toast-gagal {
    background: #dc2626
}

.footer {
    margin-top: auto;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--muted);
    font-size: .85rem
}

/* ===== RESPONSIF ===== */
@media(max-width:900px) {
    .burger {
        display: block
    }

    .cari-nav {
        order: 3;
        max-width: 100%;
        flex-basis: 100%
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 12px;
        margin-left: 0
    }

    .nav-menu.buka {
        display: flex
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 6px
    }

    .hero {
        padding: 40px 0 56px
    }

    .hero h1 {
        font-size: 1.45rem
    }

    .toolbar-baca {
        top: 0;
        position: static
    }

    .area-baca {
        padding: 16px;
        border-radius: 10px
    }
}

@media print {

    .navbar,
    .toolbar-baca,
    .footer,
    .hero,
    .paginasi,
    .kategori-scroll,
    .statistik {
        display: none !important
    }

    .area-baca {
        border: 0;
        box-shadow: none
    }
}

/* ===== NAVIGASI TAB ADMIN (tambahan v1.1.0) ===== */
.menu-admin {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 57px;
    z-index: 80
}

.menu-admin-dalam {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 18px;
    scrollbar-width: thin
}

.menu-admin-dalam a {
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600
}

.menu-admin-dalam a.aktif {
    background: var(--biru);
    color: #fff
}

.menu-admin-dalam a:hover:not(.aktif) {
    background: var(--bg2)
}

@media(max-width:900px) {
    .menu-admin {
        position: static
    }
}

/* ===== HALAMAN TENTANG KAMI (tambahan v1.2.0) ===== */
.hero-tentang {
    background: var(--hero);
    color: var(--herotext);
    padding: 58px 0 66px;
    text-align: center
}

.hero-tentang h1 {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0 12px
}

.hero-tentang p {
    opacity: .92;
    max-width: 640px;
    margin: 0 auto;
    font-size: .95rem;
    line-height: 1.7
}

.bagian-judul {
    margin: 44px 0 8px;
    font-size: 1.3rem
}

.bagian-sub {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: .9rem;
    max-width: 760px;
    line-height: 1.7
}

.grid-tujuan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px
}

.kartu-tujuan {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px 20px;
    text-align: center
}

.kartu-tujuan .ikon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 12px
}

.kartu-tujuan h3 {
    font-size: 1rem;
    margin-bottom: 8px
}

.kartu-tujuan p {
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.65
}

.grid-manfaat {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px
}

.item-manfaat {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px
}

.item-manfaat .ikon {
    font-size: 1.5rem;
    flex-shrink: 0
}

.item-manfaat b {
    display: block;
    font-size: .9rem;
    margin-bottom: 3px
}

.item-manfaat small {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.55;
    display: block
}

.sekuriti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

@media(max-width:860px) {
    .sekuriti-grid {
        grid-template-columns: 1fr
    }
}

.kartu-keamanan {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px
}

.kartu-keamanan h3 {
    margin-bottom: 14px;
    font-size: 1.02rem
}

.daftar-aman {
    list-style: none;
    line-height: 1.6
}

.daftar-aman li {
    padding: 7px 0 7px 4px;
    border-bottom: 1px dashed var(--border);
    font-size: .87rem
}

.daftar-aman li:last-child {
    border-bottom: 0
}

.peran-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border)
}

.peran-item:last-child {
    border-bottom: 0
}

.peran-item .ikon {
    font-size: 1.4rem
}

.peran-item b {
    font-size: .9rem
}

.peran-item small {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.55;
    margin-top: 2px
}

.kartu-pemilik {
    display: flex;
    gap: 38px;
    align-items: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 38px;
    margin-top: 6px
}

.foto-pemilik-bingkai {
    background: linear-gradient(135deg, var(--biru), var(--ungu));
    padding: 7px;
    border-radius: 30px;
    flex-shrink: 0;
    box-shadow: 0 16px 40px rgba(79, 110, 247, .35)
}

.foto-pemilik-besar {
    width: min(320px, 72vw);
    aspect-ratio: 4/5;
    height: auto;
    display: block;
    border-radius: 24px;
    object-fit: cover;
    background: var(--bg2)
}

.foto-pemilik-besar.foto-kosong {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(160deg, #4f6ef7, #7b5cf0, #9333ea)
}

.pemilik-info h3 {
    font-size: 1.6rem;
    margin-bottom: 6px
}

.pemilik-info .jabatan {
    display: inline-block;
    margin-bottom: 14px
}

.pemilik-info p {
    font-size: .92rem;
    line-height: 1.8
}

.kutipan-pemilik {
    margin-top: 18px;
    padding: 14px 18px;
    border-left: 4px solid var(--biru);
    background: var(--bg2);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.7
}

@media(max-width:820px) {
    .kartu-pemilik {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px
    }

    .kutipan-pemilik {
        border-left: 0;
        border-top: 4px solid var(--biru);
        border-radius: 12px;
        text-align: left
    }
}

.preview-foto-admin {
    width: 220px;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow)
}

.preview-foto-admin.kosong {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 2.4rem
}

.admin-foto-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 26px;
    align-items: start
}

@media(max-width:760px) {
    .admin-foto-grid {
        grid-template-columns: 1fr
    }
}

/* ===== KOLOM SANDI + TOMBOL LIHAT (tambahan v1.1.0) ===== */
.grup-sandi {
    position: relative
}

.grup-sandi input {
    width: 100%;
    padding-right: 48px
}

.tombol-lihat {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 1.05rem;
    padding: 5px 7px;
    border-radius: 8px;
    color: var(--muted);
    line-height: 1
}

.tombol-lihat:hover {
    background: var(--bg2)
}

/* ===== SPINNER & LAZY RENDER PDF (tambahan v2.2.0) ===== */
@keyframes putar {
    to {
        transform: rotate(360deg)
    }
}

.memuat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px
}

.memuat::before {
    content: '';
    width: 46px;
    height: 46px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 4px solid var(--border);
    border-top-color: var(--biru);
    animation: putar .9s linear infinite
}

.spinner {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 3px solid var(--border);
    border-top-color: var(--biru);
    animation: putar .9s linear infinite
}

.pdf-halaman-wadah {
    margin: 0 auto 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: .8rem;
    max-width: 100%;
    overflow: hidden;
    scroll-margin-top: 70px;
    transition: background .3s
}

.pdf-halaman {
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
    border-radius: 4px;
    background: #fff;
    max-width: 100%;
    height: auto
}

/* ===== ZOOM KHUSUS AREA BUKU (tambahan v1.3.0) ===== */
/* Font dasar UI DIKUNCI 16px — zoom tidak lagi memperbesar menu/navbar */
html {
    font-size: 16px
}

/* Halaman PDF yang di-zoom melebihi lebar area → scroll horizontal */
.pdf-viewer {
    overflow-x: auto
}

.area-baca {
    overflow-x: auto
}

/* ===== HAND TOOL GESER BUKU (tambahan v1.4.0) ===== */
.pdf-viewer.bisa-geser,
.pdf-viewer.bisa-geser * {
    cursor: grab
}

.pdf-viewer.bisa-geser.sedang-geser,
.pdf-viewer.bisa-geser.sedang-geser * {
    cursor: grabbing
}

.pdf-viewer.bisa-geser canvas,
.pdf-viewer.bisa-geser img {
    -webkit-user-drag: none;
    user-select: none
}

/* ===== OPTIMALISASI SENTUH HP/TABLET (tambahan v1.5.0) ===== */
/* Area buku: jari menggulir bebas; cubit & dwokatuk diambil alih pembaca */
.pdf-viewer {
    touch-action: pan-x pan-y
}

.pdf-viewer,
.area-baca {
    -webkit-overflow-scrolling: touch
}

@media (pointer:coarse) {
    .pdf-viewer {
        -webkit-user-select: none;
        user-select: none
    }
}

/* Tombol toolbar lebih besar & nyaman disentuh; toolbar tak bertumpuk */
@media (pointer:coarse),
(max-width:900px) {
    .toolbar-baca {
        gap: 6px
    }

    .toolbar-baca .tombol-kecil {
        min-width: 40px;
        min-height: 40px;
        padding: 8px 12px;
        font-size: 1rem
    }

    .toolbar-baca .pilih-tema button {
        padding: 6px 10px;
        font-size: 1.1rem
    }

    .tb-kanan {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none
    }

    .tb-kanan::-webkit-scrollbar {
        display: none
    }

    .tombol,
    .nav-menu>a,
    .pill,
    .dropdown-menu a,
    .pilih-tema button {
        -webkit-tap-highlight-color: transparent
    }
}

