/*
 * Tema area akun (akun/*) -- disamakan dgn situs utama: latar kertas,
 * Plus Jakarta Sans + Fraunces utk judul, sidebar tinta solid (bukan
 * gradasi ungu + pil berpendar). Aktif lewat class `acc-theme` yg
 * dipasang akun/_sidebar.php.
 */
body.acc-theme {
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-color: #1a1714;
    --bs-secondary-color: #6b645c;
    --bs-border-color: #e4ddd2;
    --bs-link-color: #9f1239;
    --bs-link-color-rgb: 159, 18, 57;
    --bs-link-hover-color: #be123c;
    --bs-link-hover-color-rgb: 190, 18, 60;
    font-family: var(--bs-body-font-family);
    color: #1a1714;
}
body.acc-theme, body.acc-theme.bg-light, body.acc-theme .bg-light { background-color: #f7f4ee !important; }
body.acc-theme .text-muted { color: #6b645c !important; }

/* Judul halaman & kartu */
body.acc-theme .container-fluid > h4,
body.acc-theme .container-fluid > .d-flex > h4,
body.acc-theme h1, body.acc-theme h2, body.acc-theme h3 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.005em;
}
body.acc-theme .container-fluid > h4 { font-size: 2rem; }
body.acc-theme .card {
    border: 1px solid #e4ddd2 !important;
    border-radius: 14px;
    box-shadow: none !important;
}
body.acc-theme .card .card-header { background: transparent; border-bottom-color: #e4ddd2; }
body.acc-theme .card .fs-3.fw-bold, body.acc-theme .card .display-6, body.acc-theme .card .fs-2.fw-bold {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
}
body.acc-theme .table { --bs-table-bg: transparent; }
body.acc-theme .table > :not(caption) > * > * { border-bottom-color: #e4ddd2; }

/* Tombol & form */
body.acc-theme .btn-dark { background: #1a1714; border-color: #1a1714; }
body.acc-theme .btn-outline-dark { border-color: #1a1714; color: #1a1714; }
body.acc-theme .btn-outline-dark:hover { background: #1a1714; color: #f7f4ee; }
body.acc-theme .form-control, body.acc-theme .form-select { border-color: #e4ddd2; }
body.acc-theme .form-control:focus, body.acc-theme .form-select:focus { border-color: #1a1714; box-shadow: 0 0 0 .2rem rgba(26, 23, 20, .08); }

/* Sidebar: kertas, teks tinta, tanpa ikon per menu; menu aktif = garis merah tipis + tebal. */
body.acc-theme .author-sidebar { background: #efe9df !important; color: #1a1714; border-right: 1px solid #e4ddd2; }
@media (min-width: 992px) {
    body.acc-theme .author-sidebar {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }
}
body.acc-theme .acc-side-brand { display: flex; flex-direction: column; text-decoration: none; color: #1a1714; padding: .5rem .25rem 0; }
body.acc-theme .acc-side-brand-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #9f1239; }
body.acc-theme .acc-side-brand-name { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.45rem; line-height: 1.1; }
body.acc-theme .acc-side-me { padding: .75rem .25rem 1rem; border-bottom: 1px solid #ddd5c8; }
body.acc-theme .acc-side-me .small { color: #6b645c !important; font-size: .72rem; }
body.acc-theme .acc-side-me .fw-bold { color: #1a1714; }
body.acc-theme .acc-side-me .btn { color: #1a1714 !important; background: transparent !important; }
body.acc-theme .author-avatar { width: 36px; height: 36px; background: #1a1714 !important; color: #f7f4ee; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1rem; }
body.acc-theme .author-sidebar .nav { gap: 0 !important; }
body.acc-theme .author-sidebar .nav-link { color: #3d3833; font-weight: 500; font-size: .9rem; padding: .45rem .75rem; border-radius: 0; background: none; box-shadow: none; }
body.acc-theme .author-sidebar .nav .nav-link > i:first-child { display: none; }
body.acc-theme .author-sidebar .nav-link:hover { background: none; color: #9f1239; }
body.acc-theme .author-sidebar .nav-link.active { background: none !important; color: #1a1714; font-weight: 700; box-shadow: inset 2px 0 0 #be123c !important; }
body.acc-theme .author-sidebar .nav-group-label { color: #8a8178; letter-spacing: .14em; font-size: .66rem; padding: 0 .75rem; margin: 1.1rem 0 .3rem; }
body.acc-theme .author-sidebar .nav-group-toggle .nav-group-chevron { color: #8a8178; }
body.acc-theme .author-sidebar .acc-side-danger { color: #9f1239 !important; }
body.acc-theme .acc-side-foot { border-top: 1px solid #ddd5c8; margin-top: 1rem; padding-top: .75rem; }
body.acc-theme .acc-side-foot .nav-link { color: #6b645c; font-size: .85rem; }
body.acc-theme .acc-side-foot .nav-link .bi { font-size: .75rem; margin-left: .2rem; }
body.acc-theme .acc-side-foot .acc-side-logout { font-weight: 700; color: #1a1714; }

/* Halaman masuk/daftar (akun/login, register, dst): header ringkas, kartu putih, judul serif. */
body.acc-auth { display: flex; flex-direction: column; min-height: 100vh; }
body.acc-auth > .container { flex: 1 0 auto; padding-top: 3rem; padding-bottom: 3rem; }
body.acc-auth .card { background: #fff; border: 1px solid #e4ddd2 !important; border-radius: 16px; box-shadow: none !important; }
body.acc-auth .card-body { padding: 2rem !important; }
body.acc-auth .card-body h5.fw-bold { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.9rem; letter-spacing: -0.005em; margin-top: 0 !important; }
body.acc-auth .sc-footer-min { margin-top: 0; }
body.acc-auth .card a:not(.btn) { color: #9f1239; }

/* Beranda akun (akun/dashboard): sapaan, strip angka, panel royalti/karya, daftar naskah & buku. */
body.acc-theme .acc-home { max-width: 1040px; padding-top: 2.5rem !important; padding-bottom: 3rem !important; }
body.acc-theme .acc-kicker, body.acc-theme .acc-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #6b645c; margin-bottom: .4rem; }
body.acc-theme .acc-home-title { font-size: clamp(2.1rem, 4.5vw, 3rem); line-height: 1.05; margin-bottom: 1.75rem; }
body.acc-theme .acc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 1.75rem; border-top: 1px solid #e4ddd2; border-bottom: 1px solid #e4ddd2; }
body.acc-theme .acc-stats > div { padding: 1.1rem 1rem 1.1rem 0; }
body.acc-theme .acc-stats > div + div { padding-left: 1rem; border-left: 1px solid #e4ddd2; }
body.acc-theme .acc-stats dt, body.acc-theme .acc-mini-stats dt { font-size: .75rem; font-weight: 600; color: #6b645c; margin-bottom: .35rem; }
body.acc-theme .acc-stats dd { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 2rem; line-height: 1; margin: 0; }
body.acc-theme .acc-panel { background: #fff; border: 1px solid #e4ddd2; border-radius: 14px; padding: 1.35rem 1.5rem; margin-bottom: 1.25rem; }
body.acc-theme .acc-royalty { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
body.acc-theme .acc-royalty > div { margin: .25rem 0; }
body.acc-theme .acc-royalty-action { text-align: right; max-width: 18rem; }
body.acc-theme .acc-money { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 2.3rem; line-height: 1.1; }
body.acc-theme .acc-sub { font-size: .82rem; color: #6b645c; }
body.acc-theme .acc-btn-ink { background: #1a1714; color: #f7f4ee; border: 0; border-radius: 999px; font-weight: 600; padding: .55rem 1.25rem; }
body.acc-theme .acc-btn-ink:hover, body.acc-theme .acc-btn-ink:focus { background: #be123c; color: #fff; }
body.acc-theme .acc-btn-ink.disabled { background: #d6cdbf; color: #6b645c; opacity: 1; }
body.acc-theme .acc-link { font-size: .88rem; font-weight: 700; color: #1a1714; text-decoration: none; }
body.acc-theme .acc-link:hover { color: #9f1239; }
body.acc-theme .acc-panel-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-bottom: .75rem; }
body.acc-theme .acc-mini-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 1rem; margin: 0; }
body.acc-theme .acc-mini-stats dd { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.45rem; margin: 0; }
body.acc-theme .acc-invite { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1.5rem 0 1.5rem 1.5rem; margin-bottom: 1.25rem; border-left: 3px solid #be123c; }
body.acc-theme .acc-invite > div { max-width: 42rem; margin: 0 1.5rem .75rem 0; }
body.acc-theme .acc-invite-title { font-size: 1.6rem; line-height: 1.2; margin-bottom: .4rem; }
body.acc-theme .acc-invite p { color: #3d3833; }
body.acc-theme .acc-aside { font-size: .88rem; color: #3d3833; margin: 0 0 2.5rem; }
body.acc-theme .acc-aside strong { color: #1a1714; }
body.acc-theme .acc-section { margin-top: 2.5rem; }
body.acc-theme .acc-section-title { font-size: 1.4rem; margin-bottom: .75rem; }
body.acc-theme .acc-empty { font-size: .9rem; color: #6b645c; padding: 1.1rem 0; margin: 0; border-top: 1px solid #e4ddd2; border-bottom: 1px solid #e4ddd2; }
body.acc-theme .acc-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e4ddd2; }
body.acc-theme .acc-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: .9rem 0; border-bottom: 1px solid #e4ddd2; }
body.acc-theme .acc-row-main { min-width: 0; margin-right: 1rem; }
body.acc-theme .acc-row-title { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.1rem; }
body.acc-theme .acc-code { font-size: .75rem; color: #6b645c; background: none; padding: 0; }
body.acc-theme .acc-row-side { display: flex; align-items: center; flex-wrap: wrap; }
body.acc-theme .acc-row-side > * { margin-left: 1rem; }
body.acc-theme .acc-status { font-size: .85rem; }
body.acc-theme .acc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .4rem; vertical-align: 1px; background: #a8a29e; }
body.acc-theme .acc-dot.is-warning { background: #d97706; }
body.acc-theme .acc-dot.is-info { background: #2563eb; }
body.acc-theme .acc-dot.is-success { background: #15803d; }

@media (max-width: 767.98px) {
    body.acc-theme .acc-home { padding-top: 1.5rem !important; }
    body.acc-theme .acc-mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.acc-theme .acc-royalty-action { text-align: left; }
    body.acc-theme .acc-row-side > * { margin: .35rem 1rem 0 0; }
}
@media (max-width: 479.98px) {
    body.acc-theme .acc-stats dd { font-size: 1.6rem; }
    body.acc-theme .acc-stats > div + div { padding-left: .75rem; }
}

/* Seluruh halaman akun: komponen Bootstrap disetel ke gaya yang sama dgn beranda akun & Ruang Tulis. */
body.acc-theme .container-fluid.px-4.py-4 { max-width: 1120px; margin-left: 0; }
body.acc-theme .card-body > h5.fw-bold:first-child,
body.acc-theme .card-body > h6.fw-bold:first-child,
body.acc-theme .card-header h5, body.acc-theme .card-header h6 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 1.2rem; }
body.acc-theme .card-body > h6.fw-bold:first-child > .bi { color: #9f1239; font-size: 1rem; }
body.acc-theme .form-label { font-size: .82rem; font-weight: 700; }
body.acc-theme .form-control, body.acc-theme .form-select, body.acc-theme .input-group-text { border-radius: 10px; }
body.acc-theme .input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
body.acc-theme .input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.acc-theme .input-group-text { background: #f1ece3; border-color: #e4ddd2; }
body.acc-theme .form-check-input:checked { background-color: #1a1714; border-color: #1a1714; }

body.acc-theme .btn-danger { background: #1a1714; border-color: #1a1714; color: #f7f4ee; border-radius: 999px; padding-left: 1.15rem; padding-right: 1.15rem; }
body.acc-theme .btn-danger:hover, body.acc-theme .btn-danger:focus { background: #be123c; border-color: #be123c; color: #fff; }
body.acc-theme .btn-outline-danger { border-color: #ddd5c8; color: #1a1714; border-radius: 999px; }
body.acc-theme .btn-outline-danger:hover { background: #1a1714; border-color: #1a1714; color: #f7f4ee; }
body.acc-theme .btn-outline-dark, body.acc-theme .btn-outline-secondary { border-color: #ddd5c8; border-radius: 999px; }
body.acc-theme .acc-danger-zone .btn-danger, body.acc-theme form[action*="hapus"] .btn-danger { background: #be123c; border-color: #be123c; }

body.acc-theme .alert { border: 0; border-left: 3px solid #d6cdbf; border-radius: 0 8px 8px 0; background: #f1ece3; color: #3d3833; }
body.acc-theme .alert-info { border-left-color: #2563eb; background: #eef3fc; }
body.acc-theme .alert-warning { border-left-color: #d97706; background: #fdf5e7; }
body.acc-theme .alert-danger { border-left-color: #be123c; background: #fdf0f2; color: #881337; }
body.acc-theme .alert-success { border-left-color: #15803d; background: #edf7ef; color: #14532d; }

body.acc-theme .table > thead th { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b645c; }
body.acc-theme .container-fluid.px-4 .badge.bg-secondary { background: #ebe4d8 !important; color: #3d3833; }
body.acc-theme .container-fluid.px-4 .badge.bg-info { background: #e6eefb !important; color: #1e3a8a !important; }
body.acc-theme .container-fluid.px-4 .badge.bg-warning { background: #fbefd9 !important; color: #78350f !important; }
body.acc-theme .container-fluid.px-4 .badge.bg-success { background: #e3f1e6 !important; color: #14532d !important; }
body.acc-theme .container-fluid.px-4 .badge.bg-danger { background: #fbe4e8 !important; color: #881337 !important; }
body.acc-theme .container-fluid.px-4 .badge { font-weight: 600; border-radius: 999px; }

body.acc-theme .list-group-item { background: transparent; border-color: #e4ddd2; }
body.acc-theme .list-group-item .bi-bell-fill { color: #be123c !important; font-size: .8rem; }
body.acc-theme .pagination .page-link { border: 0; border-radius: 999px !important; color: #1a1714; background: transparent; margin: 0 .1rem; }
body.acc-theme .pagination .page-item.active .page-link { background: #1a1714; color: #f7f4ee; }

body.acc-theme .card .card-body.text-center.py-5 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
body.acc-theme .card .card-body.text-center.py-5 > .bi:first-child { color: #b5aa99 !important; }
