/* =========================================================
   Pastelbooks — gaya dasar
   ========================================================= */
:root {
    --paper:   #FCFAFF;
    --card:    #FFFFFF;
    --ink:     #2E2547;
    --ink-2:   #6B6388;
    --line:    #E7E1F3;

    --lilac:   #CDBDF2;
    --mint:    #BDE5D3;
    --peach:   #F8C9C1;
    --butter:  #F6E3A1;
    --sky:     #BCD9F2;
    --rose:    #F2BFD7;

    --display: "Young Serif", Georgia, "Times New Roman", serif;
    --ui:      "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
    --read:    "Literata", Georgia, serif;

    --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--ui);
    font-size: 17px;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--lilac);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Warna bergilir untuk punggung buku & sampul */
.c0 { --tone: var(--lilac); }
.c1 { --tone: var(--mint); }
.c2 { --tone: var(--peach); }
.c3 { --tone: var(--butter); }
.c4 { --tone: var(--sky); }
.c5 { --tone: var(--rose); }

/* ---------- Header ---------- */
.site-header {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
    text-decoration: none;
}

.brand-spines { display: inline-flex; align-items: flex-end; gap: 3px; }
.brand-spines i { width: 7px; border-radius: 2px; display: block; }
.brand-spines i:nth-child(1) { height: 22px; background: var(--lilac); }
.brand-spines i:nth-child(2) { height: 17px; background: var(--mint); }
.brand-spines i:nth-child(3) { height: 25px; background: var(--peach); }
.brand-spines i:nth-child(4) { height: 19px; background: var(--butter); transform: rotate(12deg); transform-origin: bottom left; }

.brand-name {
    font-family: var(--display);
    font-size: 23px;
    line-height: 1;
    letter-spacing: -0.01em;
}

.site-nav { display: flex; align-items: center; gap: 18px; }
.nav-link { text-decoration: none; font-weight: 600; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-user { color: var(--ink-2); font-weight: 500; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    font: 600 15px/1.2 var(--ui);
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink  { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #40355f; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--lilac); }
.btn-block { width: 100%; padding: 13px 20px; font-size: 16px; }

/* ---------- Main & footer ---------- */
.site-main { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.site-footer {
    max-width: var(--wrap);
    margin: 96px auto 0;
    padding: 28px 24px 40px;
    border-top: 1.5px solid var(--line);
    color: var(--ink-2);
    font-size: 14px;
}
.site-footer p { margin: 0; }

/* ---------- Hero: rak genre ---------- */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: end;
    gap: 56px;
    padding: 56px 0 72px;
}

.hero h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    max-width: 13ch;
}

.lead { font-size: 19px; color: var(--ink-2); max-width: 36ch; margin: 0 0 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.shelf-wrap { overflow-x: auto; padding-top: 12px; }

.shelf {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    padding: 0 14px;
    min-width: max-content;
}

.spine {
    --h: 160px;
    position: relative;
    width: 36px;
    height: var(--h);
    background: var(--tone);
    border-radius: 5px 5px 2px 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rise .6s cubic-bezier(.2, .8, .2, 1) both;
    animation-delay: var(--d, 0ms);
}

/* garis hiasan di punggung buku */
.spine::before,
.spine::after {
    content: "";
    position: absolute;
    left: 7px;
    right: 7px;
    height: 2px;
    background: rgba(46, 37, 71, .18);
    border-radius: 2px;
}
.spine::before { top: 12px; }
.spine::after  { bottom: 12px; }

.spine:last-child { transform: rotate(9deg); transform-origin: bottom left; margin-left: 4px; }

.spine-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    color: var(--ink);
}

.plank {
    height: 12px;
    margin-top: -1px;
    background: var(--ink);
    border-radius: 3px;
    min-width: max-content;
}

@keyframes rise {
    from { transform: translateY(24px); opacity: 0; }
    to   { opacity: 1; }
}
.spine:last-child { animation-name: rise-lean; }
@keyframes rise-lean {
    from { transform: translateY(24px) rotate(0); opacity: 0; }
    to   { transform: rotate(9deg); opacity: 1; }
}

/* ---------- Cerita terbaru ---------- */
.latest h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 30px;
    margin: 0 0 24px;
}

.empty {
    border: 2px dashed var(--line);
    border-radius: 18px;
    padding: 40px 28px;
    text-align: center;
    color: var(--ink-2);
}
.empty p { margin: 0 0 18px; }

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

.book h3 { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 12px 0 4px; }
.book h3 a { text-decoration: none; }
.book h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }

.book-cover {
    display: flex;
    align-items: flex-end;
    aspect-ratio: 2 / 3;
    border-radius: 4px 12px 12px 4px;
    background: var(--tone);
    box-shadow: inset 6px 0 0 rgba(46, 37, 71, .12);
    overflow: hidden;
    text-decoration: none;
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-title {
    font-family: var(--display);
    font-size: 19px;
    line-height: 1.2;
    padding: 16px 14px 18px 20px;
}

.rating {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 8px;
    border-radius: 999px;
    border: 1.5px solid var(--ink-2);
    color: var(--ink-2);
}

/* ---------- Form masuk / daftar ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 40px 0 0; }

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 22px;
    padding: 36px 32px 28px;
}

.auth-card h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 32px;
    margin: 0 0 6px;
}
.auth-sub { color: var(--ink-2); margin: 0 0 24px; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field small { display: block; color: var(--ink-2); font-size: 13px; margin-top: 6px; }

.field input {
    width: 100%;
    padding: 12px 14px;
    font: 16px/1.4 var(--ui);
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
}
.field input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--lilac); }

.check { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.auth-alt { text-align: center; margin: 18px 0 0; font-size: 15px; color: var(--ink-2); }
.auth-alt a { color: var(--ink); font-weight: 600; }

/* Kode 6 digit + timer (verifikasi email, lupa password) */
.code-input {
    text-align: center;
    font-size: 26px !important;
    font-weight: 700;
    letter-spacing: 10px;
    font-variant-numeric: tabular-nums;
}
.code-input::placeholder { letter-spacing: 6px; color: #CFC7E2; }
.code-form { margin-bottom: 4px; }
.code-timer { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.code-timer-text { margin: 0 0 12px; text-align: center; font-size: 14px; color: var(--ink-2); }
.code-timer-text b { color: var(--ink); font-variant-numeric: tabular-nums; }
.code-timer.is-expired .code-timer-text { color: #7A2338; }
.code-resend .btn[disabled] { opacity: .55; cursor: not-allowed; }

.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 20px; font-size: 15px; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert-error { background: #FDE8EC; color: #7A2338; }
.alert-ok    { background: #E3F4EC; color: #1F5A41; }

/* ---------- Layar kecil ---------- */
@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 56px; }
    .nav-user { display: none; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    .site-header { padding: 18px 20px; }
    .site-main { padding: 0 20px; }
    .auth-card { padding: 28px 22px 24px; }
    .books { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .spine { animation: none; }
}

/* =========================================================
   Area penulis
   ========================================================= */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin: 32px 0 24px;
}
.page-head h1,
.page-head h2 { font-family: var(--display); font-weight: 400; margin: 0; }
.page-head h1 { font-size: 36px; }
.page-head h2 { font-size: 26px; }

.back {
    display: inline-block;
    margin-top: 24px;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}
.back::before { content: "\2190\00a0"; }
.back:hover { color: var(--ink); }

.hint { color: var(--ink-2); font-size: 15px; background: #F4EFFC; border-radius: 12px; padding: 12px 16px; }

/* Status */
.status {
    flex: none;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.status-draft     { background: #EFEBF6; color: var(--ink-2); }
.status-published { background: var(--mint); color: #1F5A41; }
.status-hidden    { background: #FDE8EC; color: #7A2338; }

/* Daftar cerita */
.story-list, .chapter-list { list-style: none; margin: 0; padding: 0; }

.story-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1.5px solid var(--line);
    text-decoration: none;
}
.story-row:hover .story-row-title { text-decoration: underline; text-underline-offset: 3px; }
.mini-cover { flex: none; width: 40px; height: 58px; border-radius: 2px 6px 6px 2px; background: var(--tone); }
.story-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.story-row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-row-meta { color: var(--ink-2); font-size: 14px; }

/* Kepala halaman cerita */
.story-head { display: flex; gap: 28px; align-items: flex-start; margin: 20px 0 8px; }
.mid-cover {
    flex: none;
    width: 140px;
    aspect-ratio: 2 / 3;
    border-radius: 3px 10px 10px 3px;
    background: var(--tone);
    box-shadow: inset 5px 0 0 rgba(46, 37, 71, .12);
    display: flex;
    align-items: flex-end;
}
.mid-cover span { font-family: var(--display); font-size: 16px; line-height: 1.2; padding: 12px 10px 14px 16px; }
.story-head-main h1 { font-family: var(--display); font-weight: 400; font-size: 36px; line-height: 1.15; margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--line); }
.synopsis { color: var(--ink-2); max-width: 60ch; margin: 0 0 20px; }

/* Daftar bab */
.chapter-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1.5px solid var(--line);
    text-decoration: none;
}
.chapter-row:hover .chapter-title { text-decoration: underline; text-underline-offset: 3px; }
.chapter-num {
    flex: none;
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #F4EFFC;
    font-weight: 700; font-size: 14px;
}
.chapter-title { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chapter-words { color: var(--ink-2); font-size: 14px; white-space: nowrap; }

/* Form cerita */
.form-page { max-width: 680px; }
.form-page h1 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 12px 0 24px; }

.stack .field { margin-bottom: 26px; }
fieldset.field { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
fieldset.field legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
small.inline { color: var(--ink-2); font-weight: 400; margin-left: 6px; }

.field textarea {
    width: 100%;
    padding: 12px 14px;
    font: 16px/1.6 var(--ui);
    color: var(--ink);
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    resize: vertical;
}
.field textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--lilac); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--card);
    font-size: 15px;
    font-weight: 500;
}
.pill input:checked + span { background: var(--tone); border-color: var(--ink); font-weight: 600; }
.pill input:focus-visible + span { outline: 3px solid var(--lilac); outline-offset: 2px; }

.form-actions { margin-top: 8px; }

/* Editor bab */
.writer { max-width: 720px; margin: 0 auto; }
.writer-label { color: var(--ink-2); font-weight: 600; font-size: 15px; margin: 28px 0 4px; }

.writer-title {
    width: 100%;
    border: 0;
    background: transparent;
    font: 400 34px/1.2 var(--display);
    color: var(--ink);
    padding: 4px 0 14px;
    border-bottom: 1.5px solid var(--line);
}
.writer-title:focus { outline: none; border-bottom-color: var(--ink-2); }

.writer-body {
    width: 100%;
    min-height: 420px;
    margin-top: 20px;
    border: 0;
    background: transparent;
    font: 400 19px/1.85 var(--read);
    color: var(--ink);
    resize: none;
    overflow: hidden;
}
.writer-body:focus { outline: none; }
.writer-title::placeholder,
.writer-body::placeholder { color: #B7AFCB; }

.writer-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 18px;
    background: var(--paper);
    border-top: 1.5px solid var(--line);
}
.word-count { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.writer-buttons { display: flex; gap: 10px; }

@media (max-width: 600px) {
    .story-head { flex-direction: column; }
    .mid-cover { width: 110px; }
    .chapter-words { display: none; }
    .writer-title { font-size: 28px; }
    .writer-body { font-size: 18px; }
}

/* =========================================================
   Akun saya
   ========================================================= */
.account-head { display: flex; align-items: center; gap: 16px; margin: 28px 0 22px; }
.avatar {
    flex: none;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: var(--tone);
    display: grid; place-items: center;
    font-family: var(--display);
    font-size: 26px;
    line-height: 1;
}
.account-name { font-family: var(--display); font-size: 26px; line-height: 1.2; margin: 0; }
.account-meta { color: var(--ink-2); font-size: 14px; margin: 2px 0 0; }

.account-tabs {
    display: flex;
    gap: 4px;
    box-shadow: inset 0 -1.5px 0 var(--line); /* garis abu-abu di bawah tab */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}
.account-tabs::-webkit-scrollbar { display: none; }
.account-tabs a {
    padding: 10px 16px;
    border-bottom: 3px solid transparent;
    color: var(--ink-2);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.account-tabs a:hover { color: var(--ink); }
.account-tabs a.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.account-tabs + .page-head,
.account-tabs + .form-page h1 { margin-top: 28px; }

.btn-sm { padding: 7px 14px; font-size: 14px; }

/* Daftar Cerita saya ala Wattpad */
.story-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px 4px;
    border-bottom: 1.5px solid var(--line);
}
.story-item .mini-cover { width: 54px; height: 78px; }
.story-item .story-row-main { gap: 3px; }
.story-item .story-row-title { text-decoration: none; font-size: 17px; }
.story-item .story-row-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.story-row-meta .pub { color: #1F5A41; font-weight: 600; }
.story-row-status { margin-top: 4px; }
.story-row-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }

/* Form profil */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.grid-2 .field { margin-bottom: 14px; }
.at-wrap { position: relative; display: block; }
.at-wrap::before {
    content: "@";
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--ink-2);
    pointer-events: none;
}
.at-wrap input { padding-left: 32px; }
.field-note { display: block; color: var(--ink-2); font-size: 13px; margin-top: 8px; }

@media (max-width: 600px) {
    .grid-2 { grid-template-columns: 1fr; }
    .story-item { flex-wrap: wrap; }
    .story-row-actions { flex-direction: row; width: 100%; }
    .story-row-actions .btn { flex: 1; }
}

/* =========================================================
   Editor bab (Quill)
   ========================================================= */
.writer .ql-toolbar.ql-snow {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1.5px solid var(--line);
    background: var(--paper);
    font-family: var(--ui);
}
.writer .ql-toolbar.ql-snow .ql-formats { margin-right: 10px; }
.writer .ql-toolbar.ql-snow button {
    width: 36px;
    height: 34px;
    padding: 7px;
    border-radius: 8px;
}
.writer .ql-toolbar.ql-snow button:hover { background: #F4EFFC; }
.writer .ql-toolbar.ql-snow button.ql-active { background: var(--lilac); }
.writer .ql-snow .ql-stroke { stroke: var(--ink); }
.writer .ql-snow .ql-fill { fill: var(--ink); }
.writer .ql-toolbar.ql-snow button:hover .ql-stroke,
.writer .ql-toolbar.ql-snow button.ql-active .ql-stroke { stroke: var(--ink); }
.writer .ql-toolbar.ql-snow button:hover .ql-fill,
.writer .ql-toolbar.ql-snow button.ql-active .ql-fill { fill: var(--ink); }

.writer .ql-container.ql-snow {
    border: 0;
    font: 400 19px/1.85 var(--read);
    color: var(--ink);
}
.writer .ql-editor {
    min-height: 420px;
    padding: 20px 0 40px;
}
.writer .ql-editor p { margin: 0 0 1em; }
.writer .ql-editor img {
    display: block;
    max-width: 100%;
    margin: 1.2em auto;
    border-radius: 10px;
}
.writer .ql-editor.ql-blank::before {
    left: 0;
    right: 0;
    font-style: normal;
    color: #B7AFCB;
}

@media (max-width: 600px) {
    .writer .ql-container.ql-snow { font-size: 18px; }
}

/* =========================================================
   Ilustrasi (menu Gambar)
   ========================================================= */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px 22px;
}
.art-card h3 { font-size: 16px; font-weight: 600; line-height: 1.35; margin: 12px 0 6px; }
.art-card h3 a { text-decoration: none; }
.art-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-thumb {
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: #F4EFFC;
}
.art-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.art-thumb:hover img { transform: scale(1.03); }
.art-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.art-edit { color: var(--ink-2); font-size: 14px; font-weight: 600; }

/* Kotak pilih file */
.field-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px 20px;
    border: 2px dashed var(--line);
    border-radius: 18px;
    background: var(--card);
    text-align: center;
    color: var(--ink-2);
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.drop:hover { border-color: var(--ink-2); background: #FBF9FF; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-text strong { color: var(--ink); }
.drop-preview { max-height: 360px; width: auto; border-radius: 12px; }

.current-art { margin: 0 0 28px; }
.current-art img { max-height: 520px; width: auto; border-radius: 14px; }
.current-art figcaption { color: var(--ink-2); font-size: 14px; margin-top: 10px; }

/* Portofolio ilustrator (hanya untuk panitia) */
.portfolio-grid { margin: 24px 0 8px; }
.portfolio-grid .art-meta .muted { font-size: 13px; }
.portfolio-form { margin-top: 28px; }
.portfolio-form .form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.portfolio-previews { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.portfolio-previews img { height: 140px; width: auto; border-radius: 12px; object-fit: cover; }
.link-danger {
    background: none;
    border: 0;
    padding: 0;
    color: #C0392B;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.link-danger:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-portfolio { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.admin-portfolio a { display: block; }
.admin-portfolio img { width: 150px; height: 150px; object-fit: cover; border-radius: 12px; background: #F4EFFC; }

/* Zona hapus */
.danger-zone {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1.5px solid var(--line);
    color: var(--ink-2);
    font-size: 15px;
}
.danger-zone p { margin: 0 0 12px; }
.btn-danger { border-color: #7A2338; color: #7A2338; background: transparent; }
.btn-danger:hover { background: #FDE8EC; }

.btn:disabled { opacity: .6; cursor: progress; }

/* =========================================================
   Menu utama
   ========================================================= */
.nav-link.is-here { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.see-all { font-weight: 600; font-size: 15px; }

/* =========================================================
   Halaman Baca
   ========================================================= */
.genre-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.pill-link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--card);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.pill-link:hover { border-color: var(--ink-2); }
.pill-link.is-active { background: var(--tone, var(--lilac)); border-color: var(--ink); font-weight: 600; }

.book-author { margin: 0; color: var(--ink-2); font-size: 14px; }
.book-stats { display: flex; gap: 12px; margin: 4px 0 0; color: var(--ink-2); font-size: 13px; }

/* Halaman cerita */
.story-head.public { margin-top: 32px; }
.mid-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.byline { margin: -4px 0 12px; color: var(--ink-2); }
.byline strong { color: var(--ink); font-weight: 600; }
.stat-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.stat-row b { color: var(--ink); font-weight: 700; }
a.tag { text-decoration: none; }
a.tag:hover { border-color: var(--ink-2); }
.synopsis-block { max-width: 70ch; margin: 36px 0 8px; }
.synopsis-block h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.synopsis-block p { margin: 0; color: var(--ink-2); }

/* Halaman baca bab */
.reading { max-width: 700px; margin: 0 auto; }
.reading-head { margin: 28px 0 32px; text-align: center; }
.reading-label { color: var(--ink-2); font-size: 14px; font-weight: 600; margin: 0 0 8px; }
.reading-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; margin: 0; }
.reading-body { font: 400 19px/1.9 var(--read); }
.reading-body p { margin: 0 0 1.1em; }
.reading-body img { display: block; max-width: 100%; height: auto; margin: 1.5em auto; border-radius: 10px; }

.reading-vote {
    margin: 48px 0 24px;
    padding: 24px;
    border-radius: 18px;
    background: #F4EFFC;
    text-align: center;
}
.reading-vote p { margin: 0 0 12px; color: var(--ink-2); }

.reading-nav { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 48px; }

/* Tombol bintang */
.vote-form { display: inline-block; margin: 0; }
.vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 2px solid var(--ink);
    background: var(--card);
    color: var(--ink);
    font: 600 15px/1 var(--ui);
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease;
}
.vote-btn svg { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linejoin: round; transition: fill .15s ease; }
.vote-btn:hover { background: #FFF8DD; }
.vote-btn:active { transform: scale(.96); }
.vote-btn.is-voted { background: var(--butter); }
.vote-btn.is-voted svg { fill: #E9B949; stroke: #8A6512; }
.vote-btn.is-static { cursor: default; opacity: .75; }
.vote-btn.is-static:hover { background: var(--card); }
.vote-count { padding-left: 10px; margin-left: 2px; border-left: 1.5px solid var(--line); }
.vote-btn:disabled { opacity: .6; cursor: progress; }

/* Komentar */
.comments h2 { font-family: var(--display); font-weight: 400; font-size: 26px; margin: 0 0 18px; }
.comments h2 span { color: var(--ink-2); font-size: 20px; }
.comment-form { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-bottom: 28px; }
.comment-form textarea {
    width: 100%;
    padding: 12px 14px;
    font: 16px/1.5 var(--ui);
    color: var(--ink);
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    resize: vertical;
}
.comment-form textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--lilac); }
.comments-empty { color: var(--ink-2); }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1.5px solid var(--line); }
.avatar-sm { width: 38px; height: 38px; font-size: 17px; }
.comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.comment-meta strong { color: var(--ink); font-size: 15px; }
.badge { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--mint); color: #1F5A41; }
.comment-body { margin: 0; overflow-wrap: anywhere; }

/* =========================================================
   Galeri
   ========================================================= */
.art-artist { color: var(--ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.art-votes { flex: none; font-size: 14px; font-weight: 600; }

.art-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 24px;
}
.art-figure { margin: 0; }
.art-figure img { width: 100%; height: auto; border-radius: 16px; background: #F4EFFC; }
.art-info h1 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.2; margin: 0 0 10px; }
.art-desc { margin-top: 28px; }
.art-desc h2 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.art-desc p { margin: 0; color: var(--ink-2); }

/* =========================================================
   Nomor halaman
   ========================================================= */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 40px 0 0; }
.pagination a {
    display: grid; place-items: center;
    min-width: 40px; height: 40px; padding: 0 10px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    text-decoration: none;
    font-weight: 600;
}
.pagination a:hover { border-color: var(--ink-2); }
.pagination .active a { background: var(--ink); border-color: var(--ink); color: #fff; }

@media (max-width: 820px) {
    .art-detail { grid-template-columns: 1fr; }
    .site-nav { gap: 12px; }
}
@media (max-width: 600px) {
    .reading-body { font-size: 18px; }
    .reading-nav { flex-direction: column-reverse; }
    .reading-nav .btn { width: 100%; }
}

/* =========================================================
   Formulir pendaftaran lomba
   ========================================================= */
.form-page.wide { max-width: 760px; }
.lead-sm { color: var(--ink-2); margin: -12px 0 24px; }

.form-section { border: 0; padding: 0; margin: 0; min-width: 0; }
.form-section[disabled] { opacity: .75; }
.form-section h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 24px;
    margin: 40px 0 18px;
    padding-top: 24px;
    border-top: 1.5px solid var(--line);
}
.form-section h2:first-of-type { margin-top: 8px; padding-top: 0; border-top: 0; }
.section-note { color: var(--ink-2); font-size: 14px; margin: -8px 0 16px; }

.field select {
    width: 100%;
    padding: 12px 40px 12px 14px;
    font: 16px/1.4 var(--ui);
    color: var(--ink);
    background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232E2547' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    appearance: none;
}
.field select:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--lilac); }

.reg-status {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #F4EFFC;
}
.reg-status p { margin: 0; font-size: 15px; }

.statements { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.statements .check { align-items: flex-start; margin: 0; padding: 10px 12px; border-radius: 12px; }
.statements .check:hover { background: #F4EFFC; }
.statements .check input { margin-top: 3px; flex: none; }

/* Pilih ilustrasi */
.art-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.art-option { position: relative; cursor: pointer; }
.art-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.art-option-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    font-size: 14px;
    font-weight: 600;
}
.art-option-card img { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; border-radius: 9px; }
.art-option input:checked + .art-option-card { border-color: var(--ink); box-shadow: 4px 4px 0 var(--peach); }
.art-option input:focus-visible + .art-option-card { outline: 3px solid var(--lilac); outline-offset: 2px; }

/* =========================================================
   Panel admin
   ========================================================= */
.nav-admin { padding: 4px 10px; border-radius: 999px; background: var(--butter); }

.admin-head { margin-top: 24px; }
.admin-kicker { margin: 0 0 6px; color: var(--ink-2); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.admin-section { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 32px 0 14px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--tone);
    text-decoration: none;
}
a.stat-card:hover { box-shadow: 4px 4px 0 var(--ink); }
.stat-num { font-family: var(--display); font-size: 40px; line-height: 1.1; }
.stat-label { font-weight: 700; }
.stat-sub { font-size: 14px; color: var(--ink-2); }

.admin-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.admin-filter select,
.admin-filter input[type="search"] {
    padding: 9px 12px;
    font: 15px/1.3 var(--ui);
    color: var(--ink);
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 10px;
}
.admin-filter input[type="search"] { flex: 1; min-width: 200px; }

.table-wrap { overflow-x: auto; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    background: #F7F4FC;
    border-bottom: 1.5px solid var(--line);
    white-space: nowrap;
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover { background: #FBF9FF; }
.row-link { font-weight: 600; }
.cell-sub { display: block; color: var(--ink-2); font-size: 13px; }
.cell-action { text-align: right; white-space: nowrap; }
.cell-action form { margin: 0; }

.admin-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.dl-block { margin-bottom: 28px; }
.dl-block h2 { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 0 0 12px; }
.dl-block dl { margin: 0 0 16px; border-top: 1px solid var(--line); }
.dl-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dl-row dt { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.dl-row dd { margin: 0; overflow-wrap: anywhere; }
.muted { color: #B7AFCB; }
.admin-art { width: 180px; border-radius: 12px; margin-bottom: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.admin-side { position: sticky; top: 16px; }
.side-card { padding: 22px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); }
.side-card h2 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 0 0 14px; }
.pills.stacked { flex-direction: column; align-items: flex-start; margin-bottom: 18px; }
.side-note { color: var(--ink-2); font-size: 13px; margin: 12px 0 0; }

.link-btn { padding: 0; border: 0; background: none; color: var(--ink-2); font: 600 14px var(--ui); text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.art-card.is-hidden .art-thumb { opacity: .45; }

.admin-comments .comment { align-items: flex-start; justify-content: space-between; gap: 16px; }
.admin-comments .comment.is-hidden .comment-body { color: #B7AFCB; }
.comment-main { min-width: 0; }

@media (max-width: 900px) {
    .admin-detail { grid-template-columns: 1fr; }
    .admin-side { position: static; }
    .dl-row { grid-template-columns: 1fr; gap: 2px; }
}

/* =========================================================
   Pita menu Pastel Creators' Palette
   ========================================================= */
.pcp-strip {
    background: linear-gradient(90deg, var(--lilac), var(--rose) 35%, var(--peach) 60%, var(--butter) 85%, var(--mint));
}
.pcp-strip-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 6px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 15px;
    white-space: nowrap;
}
.pcp-strip-inner::-webkit-scrollbar { display: none; }
.pcp-name { font-family: var(--display); margin-right: 6px; }
.pcp-strip a { font-weight: 600; text-decoration: none; }
.pcp-strip a:hover,
.pcp-strip a.is-here { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pcp-strip .pcp-cta {
    margin-left: auto;
    padding: 4px 14px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
}
.pcp-strip .pcp-cta:hover { text-decoration: none; background: #40355f; }

/* =========================================================
   Halaman informasi
   ========================================================= */
.info-page { max-width: 720px; margin: 40px auto 0; }
.info-kicker { margin: 0 0 6px; color: var(--ink-2); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.info-page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(34px, 5vw, 48px); line-height: 1.12; margin: 0 0 28px; }

.prose { font-size: 18px; line-height: 1.75; }
.prose h2 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.25; margin: 40px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 28px 0 6px; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--ink-2); }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 4px solid var(--lilac); background: #F7F4FC; border-radius: 0 12px 12px 0; }
.prose a { font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--lilac); }

/* Timeline: daftar bernomor tampil sebagai garis waktu */
.page-timeline .prose ol { list-style: none; padding: 0; margin: 28px 0; position: relative; }
.page-timeline .prose ol::before {
    content: "";
    position: absolute;
    left: 11px; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(var(--lilac), var(--peach), var(--mint));
}
.page-timeline .prose ol li { position: relative; padding: 0 0 22px 44px; margin: 0; }
.page-timeline .prose ol li::before {
    content: "";
    position: absolute;
    left: 2px; top: 5px;
    width: 21px; height: 21px;
    border-radius: 50%;
    background: var(--card);
    border: 3px solid var(--ink);
}
.page-timeline .prose ol li strong { display: block; font-family: var(--display); font-weight: 400; font-size: 20px; }

/* FAQ: setiap pertanyaan seperti kartu */
.page-faq .prose h3 { margin: 18px 0 0; padding: 16px 20px 6px; background: var(--card); border: 1.5px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
.page-faq .prose h3 + p { margin: 0; padding: 0 20px 16px; background: var(--card); border: 1.5px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; color: var(--ink-2); }

.admin-edit-link { margin-top: 32px; font-size: 14px; }

.cta-band {
    max-width: 720px;
    margin: 56px auto 0;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-radius: 22px;
    background: var(--butter);
}
.cta-band h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 4px; }
.cta-band p { margin: 0; color: var(--ink-2); }

/* Editor halaman (admin) */
.page-editor-box { border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
.page-editor-box .ql-toolbar.ql-snow { border: 0; border-bottom: 1.5px solid var(--line); background: #F7F4FC; font-family: var(--ui); }
.page-editor-box .ql-container.ql-snow { border: 0; font: 17px/1.7 var(--ui); }
.page-editor-box .ql-editor { min-height: 380px; padding: 20px 22px; }
.page-editor-box .ql-editor h2 { font-family: var(--display); font-weight: 400; }

/* =========================================================
   Logo & kaki halaman dari pengaturan
   ========================================================= */
.brand-logo { height: var(--logo-h, 48px); width: auto; max-width: min(280px, 60vw); object-fit: contain; display: block; }
@media (max-width: 700px) { .brand-logo { height: calc(var(--logo-h, 48px) * .8); } }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Banner beranda
   ========================================================= */
.banners { position: relative; margin: 8px 0 8px; }
.banner-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 24px;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-slide {
    position: relative;
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 8 / 3;
    min-height: 260px;
    background: var(--lilac);
}
.banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-copy {
    position: absolute;
    left: 24px; bottom: 24px;
    max-width: min(460px, calc(100% - 48px));
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(252, 250, 255, .92);
    backdrop-filter: blur(6px);
}
.banner-copy h2 { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; margin: 0 0 6px; }
.banner-copy p { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; }
.banner-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.banner-dots button { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.banner-dots button.is-active { width: 28px; background: var(--ink); }

/* =========================================================
   Super Admin
   ========================================================= */
.tabs-divider { flex: none; width: 1.5px; margin: 8px 6px; background: var(--line); }
.account-tabs a.tab-super { color: #8A6512; }
.account-tabs a.tab-super.is-active { color: var(--ink); border-bottom-color: #E9B949; }

.super-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.super-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px;
    border-radius: 20px;
    background: var(--tone);
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}
.super-card:hover { box-shadow: 5px 5px 0 var(--ink); transform: translate(-2px, -2px); }
.super-card strong { font-family: var(--display); font-weight: 400; font-size: 21px; }
.super-card span:last-child { color: var(--ink-2); font-size: 14px; }
.super-icon { font-size: 26px; line-height: 1; }
.super-bottom { margin-top: 40px; grid-template-columns: 1fr 1fr; }

.sub-tabs { display: flex; gap: 6px; margin: -8px 0 24px; }
.sub-tabs a { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: 14px; }
.sub-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.role-super { background: var(--butter); color: #8A6512; }
.role-admin { background: var(--lilac); color: var(--ink); }

.user-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; align-items: start; }
.user-cards fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.temp-pass { margin-bottom: 20px; padding: 16px 18px; border-radius: 14px; background: var(--butter); }
.temp-pass p { margin: 0 0 6px; font-weight: 600; }
.temp-pass code { font-size: 22px; letter-spacing: .04em; user-select: all; }

/* Logo */
.logo-list { display: flex; flex-direction: column; gap: 16px; }
.logo-item { display: flex; gap: 20px; align-items: flex-start; padding: 20px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); }
.logo-preview {
    flex: none;
    width: 140px; height: 100px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: repeating-conic-gradient(#F1EDF8 0% 25%, #FFFFFF 0% 50%) 50% / 16px 16px;
}
.logo-preview.is-dark { background: var(--ink); }
.logo-preview img { max-width: 120px; max-height: 80px; }
.logo-ok { color: var(--mint); font-weight: 700; }
.logo-body h2 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 0 0 4px; }
.logo-body p { margin: 0 0 12px; color: var(--ink-2); font-size: 14px; }
.logo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }

/* Banner (admin) */
.banner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.banner-row { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); }
.banner-row img { flex: none; width: 160px; aspect-ratio: 8 / 3; object-fit: cover; border-radius: 10px; }
.banner-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.banner-current { display: block; width: 100%; max-width: 560px; aspect-ratio: 8 / 3; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.banner-active { align-self: end; margin-bottom: 30px; }

@media (max-width: 700px) {
    .super-bottom { grid-template-columns: 1fr; }
    .logo-item { flex-direction: column; }
    .banner-slide { aspect-ratio: auto; min-height: 380px; }
    .banner-copy { left: 12px; right: 12px; bottom: 12px; max-width: none; }
    .banner-row { flex-wrap: wrap; }
}

/* =========================================================
   Badge lomba
   ========================================================= */
.pcp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lilac), var(--rose), var(--peach));
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.pcp-badge-sm { padding: 2px 10px; font-size: 12px; margin-top: 10px; }
.pcp-badge-lg { padding: 5px 14px; font-size: 14px; margin-bottom: 10px; }
.pcp-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.pcp-badge.is-finalist { background: linear-gradient(90deg, var(--butter), var(--peach)); }
.pcp-badge.is-winner { background: linear-gradient(90deg, #F6D77A, var(--butter)); box-shadow: inset 0 0 0 1.5px #C99A2E; }
.pcp-badge:hover { filter: brightness(.97); }
.book .pcp-badge + h3 { margin-top: 6px; }
.story-row-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.story-row-status .pcp-badge { margin-top: 0; }
.reading-head .pcp-badge { margin: 0 auto 12px; }

/* Status tahapan */
.status-stage.is-submitted    { background: #EFEBF6; color: var(--ink-2); }
.status-stage.is-verified     { background: var(--mint); color: #1F5A41; }
.status-stage.is-judging      { background: var(--sky); color: #1F3F5A; }
.status-stage.is-finalist     { background: var(--butter); color: #6B4E0E; }
.status-stage.is-winner       { background: #F6D77A; color: #5C420A; }
.status-stage.is-not_selected { background: #F1EDF8; color: var(--ink-2); }
.status-stage.is-disqualified { background: #FDE8EC; color: #7A2338; }

/* =========================================================
   Proses lomba (akun peserta)
   ========================================================= */
.progress-card {
    margin: 24px 0 8px;
    padding: 22px 24px;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    background: var(--card);
}
.progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.progress-kicker { margin: 0; color: var(--ink-2); font-size: 13px; font-weight: 700; }
.progress-head h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 2px 0 4px; }
.progress-work { margin: 0; font-size: 15px; color: var(--ink-2); }
.progress-work a { color: var(--ink); font-weight: 600; }

.stages { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); margin: 0 0 18px; padding: 0; }
.stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.stage::before {
    content: "";
    position: absolute;
    top: 9px; right: 50%;
    width: 100%; height: 3px;
    background: var(--line);
    z-index: 0;
}
.stage:first-child::before { display: none; }
.stage-dot { position: relative; z-index: 1; width: 21px; height: 21px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); }
.stage.is-done { color: var(--ink); }
.stage.is-done::before, .stage.is-now::before { background: var(--ink); }
.stage.is-done .stage-dot { background: var(--ink); border-color: var(--ink); }
.stage.is-now { color: var(--ink); }
.stage.is-now .stage-dot { border-color: var(--ink); background: var(--butter); box-shadow: 0 0 0 5px rgba(246, 227, 161, .5); }
.progress-card.is-ended .stage.is-todo { opacity: .45; }

.progress-info { margin: 0 0 12px; }
.progress-note { padding: 12px 16px; border-radius: 14px; background: #F4EFFC; margin-bottom: 12px; }
.progress-note p { margin: 0; }
.progress-note-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px !important; }
.progress-time { margin: 0; color: var(--ink-2); font-size: 13px; }

/* =========================================================
   Tombol bagikan
   ========================================================= */
.share { margin: 28px 0; padding: 18px 20px; border-radius: 18px; background: #F7F4FC; }
.reading .share { text-align: left; }
.share-label { margin: 0 0 10px; font-weight: 700; font-size: 15px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.share-btn {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: var(--card);
    color: var(--ink);
    font: 600 14px var(--ui);
    text-decoration: none;
    cursor: pointer;
}
.share-btn:hover { border-color: var(--ink-2); }
.share-native { background: var(--ink); color: #fff; border-color: var(--ink); }
.share-copy { display: flex; gap: 8px; }
.share-copy input {
    flex: 1;
    min-width: 0;
    padding: 8px 12px;
    font: 14px var(--ui);
    color: var(--ink-2);
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 10px;
}
.share-copy-btn.is-done { background: #1F5A41; border-color: #1F5A41; }
.share-hint { margin: 10px 0 0; color: var(--ink-2); font-size: 13px; }
.art-info .share { margin-top: 20px; }

@media (max-width: 600px) {
    .progress-head { flex-direction: column; }
    .stage { font-size: 11px; }
    .share-copy { flex-direction: column; }
}

/* =========================================================
   Program & Event
   ========================================================= */
.home-programs { margin: 8px 0 64px; }
.home-programs h2, .program-section h2, .section-title { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0; }
.section-title { margin-bottom: 20px; }

.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.program-grid.is-archive { opacity: .85; }
.program-card {
    display: flex;
    flex-direction: column;
    border: 1.5px solid var(--line);
    border-radius: 22px;
    background: var(--card);
    overflow: hidden;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.program-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--tone); }
.program-card-cover { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--tone); overflow: hidden; }
.program-card-cover img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.program-card-mark { font-family: var(--display); font-size: clamp(34px, 5vw, 48px); letter-spacing: -.02em; }
.program-card-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; }
.program-card-body strong { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.2; }
.program-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.program-type { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.program-card-tagline { color: var(--ink-2); font-size: 15px; }
.program-card-date { font-size: 13px; font-weight: 600; }

/* Menu microsite */
.draft-note { margin: 16px 0 0; padding: 8px 14px; border-radius: 12px; background: var(--butter); font-size: 14px; font-weight: 600; }
.program-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin: 16px 0 0;
    padding: 12px 18px;
    border-radius: 18px;
    background: var(--tone);
}
.program-nav-name { font-family: var(--display); font-size: 19px; text-decoration: none; margin-right: 4px; }
.program-nav-links { display: flex; flex-wrap: wrap; gap: 4px 16px; flex: 1; }
.program-nav-links a { font-weight: 600; font-size: 15px; text-decoration: none; }
.program-nav-links a:hover, .program-nav-links a.is-here { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.program-nav-cta .btn { padding: 7px 16px; font-size: 14px; }
.program-nav-cta .cta-note { font-size: 14px; }
.cta-note { color: var(--ink-2); font-weight: 600; }

/* Hero program */
.program-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    margin: 28px 0 40px;
}
.program-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 6px 0 14px; }
.program-hero .lead { margin-bottom: 14px; }
.program-summary { color: var(--ink-2); margin: 0 0 20px; max-width: 54ch; }
.program-hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 24px; border-radius: 26px; background: var(--tone); }
.program-hero-mark {
    display: grid; place-items: center;
    aspect-ratio: 4 / 3;
    border-radius: 26px;
    background: var(--tone);
    font-family: var(--display);
    font-size: clamp(48px, 9vw, 96px);
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .35);
}
.program-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 24px; }
.program-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.program-facts dd { margin: 2px 0 0; font-weight: 600; }

.program-section { margin: 48px 0; }
.program-subsection { margin-top: 32px; }
.program-section .prose { max-width: 720px; }

.info-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.info-tile {
    display: flex; flex-direction: column; gap: 4px;
    padding: 18px 20px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    text-decoration: none;
}
.info-tile:hover { border-color: var(--ink-2); }
.info-tile strong { font-family: var(--display); font-weight: 400; font-size: 20px; }
.info-tile span { color: var(--ink-2); font-size: 14px; }

/* Kartu proses: aksen program */
.progress-card { border-left: 6px solid var(--tone, var(--line)); }
.progress-kicker a { color: var(--ink-2); text-decoration: none; }
.progress-kicker a:hover { color: var(--ink); text-decoration: underline; }
.progress-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.progress-link { font-size: 14px; font-weight: 600; }

/* Halaman Buku */
.books-soon { max-width: 640px; margin: 48px auto 0; text-align: center; }
.books-soon .shelf-wrap { display: flex; flex-direction: column; align-items: center; margin-bottom: 28px; }
.books-soon h1 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; }
.books-soon .lead { margin: 0 auto 24px; }

/* Admin */
.admin-group { margin-bottom: 32px; }
.admin-group .admin-section { display: flex; align-items: center; gap: 10px; margin: 0; }
.program-quick { margin: -12px 0 20px; }

@media (max-width: 820px) {
    .program-hero { grid-template-columns: 1fr; gap: 24px; }
    .program-hero-mark, .program-hero-img { order: -1; aspect-ratio: 16 / 9; }
}

/* Layar kecil: menu utama & menu program bisa digeser ke samping */
@media (max-width: 700px) {
    .site-header { flex-wrap: wrap; gap: 10px; }
    .site-nav {
        width: 100%;
        gap: 16px;
        overflow-x: auto;
        scrollbar-width: none;
        white-space: nowrap;
        padding-bottom: 2px;
    }
    .site-nav::-webkit-scrollbar { display: none; }
    .site-nav .btn { padding: 6px 14px; font-size: 14px; }

    .program-nav { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; min-width: 0; }
    .program-nav > * { min-width: 0; max-width: 100%; }
    .site-main { min-width: 0; }
    .program-nav-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; white-space: nowrap; gap: 16px; padding-bottom: 2px; }
    .program-nav-links::-webkit-scrollbar { display: none; }
    .program-nav-cta .btn { width: 100%; }

    .info-tiles { grid-template-columns: 1fr 1fr; }
    .info-tile { padding: 14px 16px; }
    .info-tile strong { font-size: 17px; }
}

/* Pengatur ukuran logo */
.logo-size { margin-top: 24px; padding: 20px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); }
.logo-size h2 { font-family: var(--display); font-weight: 400; font-size: 20px; margin: 0 0 4px; }
.logo-size p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.logo-size-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.logo-size-row input[type="range"] { flex: 1; min-width: 180px; accent-color: var(--ink); }
.logo-size-value { min-width: 56px; font-weight: 700; }
.logo-size-preview {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 18px; margin-bottom: 16px;
    border-radius: 14px; background: var(--paper); border: 1.5px dashed var(--line);
}
.logo-size-preview img { width: auto; max-width: min(280px, 60vw); object-fit: contain; }
.logo-size-preview span { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.inline-form { margin: 0 0 6px; }

/* =========================================================
   Kartu besar lomba & acara (satu per baris)
   ========================================================= */
.feature-intro { margin: 40px 0 32px; max-width: 760px; }
.feature-intro h1 { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 64px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 12px; }
.feature-intro .lead { margin: 0; }

.feature-list { display: flex; flex-direction: column; gap: 36px; }

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    border: 2.5px solid var(--ink);
    border-radius: 28px;
    background: var(--card);
    box-shadow: 10px 10px 0 var(--tone);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.feature:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0 var(--tone); }
.feature.is-flip .feature-art { order: 2; border-right: 0; border-left: 2.5px solid var(--ink); }

.feature-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 340px;
    padding: 32px;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, .55) 0 12%, transparent 13%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .4) 0 16%, transparent 17%),
        var(--tone);
    border-right: 2.5px solid var(--ink);
    text-decoration: none;
}
.feature-art img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(46, 37, 71, .18)); }
.feature-mark { font-family: var(--display); font-size: clamp(56px, 9vw, 110px); line-height: 1; letter-spacing: -.03em; }
.feature-sticker {
    position: absolute;
    top: 20px; left: 20px;
    padding: 6px 14px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--card);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    transform: rotate(-4deg);
}
.feature.is-flip .feature-sticker { left: auto; right: 20px; transform: rotate(4deg); }

.feature-body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; padding: 36px 40px; }
.feature-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.feature-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-2); }
.feature-status.is-open::before { background: #2FA36B; box-shadow: 0 0 0 0 rgba(47, 163, 107, .5); animation: pulse 1.8s infinite; }
.feature-status.is-soon::before { background: #E9B949; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(47, 163, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 163, 107, 0); } }

.feature h3 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -.015em; margin: 0; }
.feature h3 a { text-decoration: none; }
.feature h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--tone); }
.feature-tagline { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 42ch; }

.feature-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 0; }
.feature-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.feature-facts dd { margin: 2px 0 0; font-weight: 600; }

.feature-countdown {
    margin: 4px 0 0;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--butter);
    font-size: 14px;
    font-weight: 700;
}
.feature-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.feature-actions .btn { padding: 12px 24px; font-size: 16px; }

@media (max-width: 820px) {
    .feature, .feature.is-flip { grid-template-columns: 1fr; box-shadow: 7px 7px 0 var(--tone); }
    .feature-art, .feature.is-flip .feature-art { order: 0; min-height: 220px; border-right: 0; border-left: 0; border-bottom: 2.5px solid var(--ink); }
    .feature-body { padding: 24px 22px 28px; }
    .feature-actions .btn { flex: 1; padding: 12px 14px; font-size: 15px; white-space: nowrap; }
    .feature, .feature.is-flip { margin-right: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    .feature-status.is-open::before { animation: none; }
}

/* =========================================================
   Beranda: hero "hub" (penulis, ilustrator, pembaca terhubung)
   ========================================================= */
html { overflow-x: clip; }

.hub {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -8px;
    padding: 56px 24px 72px;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.hub-glow {
    position: absolute;
    left: 50%;
    top: 78%;
    width: 760px;
    height: 360px;
    transform: translate(-50%, -50%);
    z-index: -1;
    background:
        radial-gradient(closest-side at 30% 55%, rgba(205, 189, 242, .55), transparent),
        radial-gradient(closest-side at 70% 45%, rgba(242, 191, 215, .45), transparent),
        radial-gradient(closest-side at 50% 70%, rgba(189, 229, 211, .45), transparent);
    filter: blur(18px);
    pointer-events: none;
}

/* Orbit: cincin + foto profil/ikon yang berputar mengikuti garis */
.hub-orbit { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.orbit-center {
    position: absolute;
    left: 50%;
    top: 74%;
    width: 0;
    height: 0;
    transform: scale(var(--os, 1));
}
.orbit-center .ring {
    position: absolute;
    left: calc(var(--d) / -2);
    top: calc(var(--d) / -2);
    width: var(--d);
    height: var(--d);
    border: 1px solid var(--line);
    border-radius: 50%;
}
.orbit-ring { position: absolute; left: 0; top: 0; width: 0; height: 0; animation: orbit-cw 150s linear infinite; }
.orbit-ring-1 { animation-name: orbit-ccw; animation-duration: 190s; }
.orbit-ring-2 { animation-duration: 230s; }
.orbit-slot { position: absolute; width: 0; height: 0; }
.orb {
    position: absolute;
    left: -32px;
    top: -32px;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--card);
    color: var(--ink);
    box-shadow: 0 10px 28px rgba(46, 37, 71, .10), 0 0 0 6px color-mix(in srgb, var(--tone) 45%, transparent);
    overflow: hidden;
}
/* Putaran balik supaya foto dan ikon tetap tegak */
.orbit-ring-0 .orb { animation: orbit-ccw 150s linear infinite; }
.orbit-ring-1 .orb { animation: orbit-cw 190s linear infinite; }
.orbit-ring-2 .orb { animation: orbit-ccw 230s linear infinite; }
.orb svg { width: 28px; height: 28px; }
.orb-photo { width: 68px; height: 68px; left: -34px; top: -34px; }
.orb-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

@keyframes orbit-cw  { to { transform: rotate(360deg); } }
@keyframes orbit-ccw { to { transform: rotate(-360deg); } }

.hub-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }

.hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    backdrop-filter: blur(6px);
    color: var(--ink-2);
    font-size: 15px;
    text-decoration: none;
}
.pill-text { display: inline-block; vertical-align: middle; }
.hub-pill b {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--lilac);
    color: var(--ink);
    font-weight: 600;
}
a.hub-pill:hover b { background: var(--mint); }
span.hub-pill { padding-right: 18px; }

.hub h1 {
    font-family: 'Young Serif', Georgia, serif;
    font-weight: 400;
    font-size: clamp(34px, 5.4vw, 62px);
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 26px auto 18px;
    max-width: 19ch;
    text-wrap: balance;
}
.crayon {
    display: inline-block;
    font-family: 'Caveat Brush', 'Young Serif', cursive;
    font-size: 1.28em;
    line-height: .9;
    white-space: nowrap;
}
.crayon span { display: inline-block; transform: rotate(var(--r)); }

.hub-lead {
    max-width: 40ch;
    margin: 0 auto 30px;
    color: var(--ink-2);
    font-size: 19px;
    line-height: 1.55;
}
.hub-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; }
.hub-actions .btn-line { background: var(--card); }

/* Kartu aktivitas bertumpuk */
.hub-feed { position: relative; height: 196px; max-width: 540px; margin: 0 auto; }
.feed-card,
.role-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 14px 36px rgba(46, 37, 71, .10);
    text-align: left;
    text-decoration: none;
    color: var(--ink);
}
.feed-card {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(150px) scale(.84);
    transition: transform .6s cubic-bezier(.2, .8, .2, 1), opacity .6s ease;
}
.feed-card.is-pos0 { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); z-index: 3; }
.feed-card.is-pos1 { opacity: .7; pointer-events: auto; transform: translateY(70px) scale(.94); z-index: 2; }
.feed-card.is-pos2 { opacity: .35; transform: translateY(128px) scale(.88); z-index: 1; }
.feed-card:hover .feed-line b:last-child { text-decoration: underline; text-underline-offset: 3px; }

.feed-avatar {
    position: relative;
    flex: none;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--tone);
    font-family: 'Young Serif', Georgia, serif;
    font-size: 19px;
}
.feed-avatar > svg { width: 22px; height: 22px; }
.feed-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--card);
}
.feed-badge svg { width: 12px; height: 12px; }
.feed-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.feed-line { font-size: 16px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-line b { color: var(--ink); font-weight: 600; }
.feed-meta { font-size: 13.5px; color: #9A92B3; }
.feed-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }

.hub-roles { display: grid; gap: 12px; max-width: 540px; margin: 0 auto; }
.role-card { transition: transform .2s ease; }
.role-card:hover { transform: translateY(-2px); }

/* Strip angka */
.hub-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 40px;
    margin: 8px 0 48px;
    color: var(--ink-2);
}
.hub-stats p { margin: 0; }
.hub-stats b { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 26px; color: var(--ink); margin-right: 6px; }

@media (max-width: 1180px) { .orbit-center { --os: .82; } }
@media (max-width: 980px)  { .orbit-center { --os: .68; } }
@media (max-width: 820px) {
    .hub { padding: 36px 20px 56px; }
    .orbit-center { --os: .55; top: 80%; }
}
@media (max-width: 480px) {
    .hub h1 { font-size: 32px; }
    .hub-lead { font-size: 17px; }
    .hub-pill { font-size: 14px; padding-left: 14px; }
    .pill-text { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .orbit-center { --os: .42; }
    .orbit-slot { display: none; }
    .feed-card, .role-card { padding: 12px 14px; gap: 12px; }
    .feed-line { font-size: 15px; }
    .feed-avatar { width: 40px; height: 40px; font-size: 17px; }
    .feed-thumb { width: 38px; height: 38px; }
    .feed-card.is-pos1 { transform: translateY(62px) scale(.94); }
    .feed-card.is-pos2 { transform: translateY(114px) scale(.88); }
    .hub-feed { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
    .orb, .orbit-ring { animation: none !important; }
    .feed-card { transition: none; }
}

/* Foto profil */
.feed-avatar > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-img { object-fit: cover; padding: 0; }
.avatar-row { display: flex; align-items: flex-start; gap: 18px; }
.avatar-row small { display: block; margin-top: 6px; }
.avatar-row .check { margin: 10px 0 0; }
.avatar-preview {
    flex: none;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--tone);
    font-family: 'Young Serif', Georgia, serif;
    font-size: 34px;
}
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.headline-preview { margin: -4px 0 28px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 14px; background: var(--card); }
.headline-preview p { margin: 6px 0 0; font-family: 'Young Serif', Georgia, serif; font-size: 26px; line-height: 1.2; }
.headline-preview .crayon { font-size: 1.25em; }

/* =========================================================
   Ruang Ngobrol program
   ========================================================= */

.chat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.chat-head h1 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 30px; margin: 0 0 4px; }
.chat-sub { margin: 0; color: var(--ink-2); }
.chat-online { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.chat-online .dot { width: 9px; height: 9px; border-radius: 50%; background: #3FB68B; box-shadow: 0 0 0 4px rgba(63, 182, 139, .18); }
.chat-rules { margin: 0 0 14px; padding: 12px 16px; border-radius: 14px; background: #F4EFFC; font-size: 14.5px; color: var(--ink-2); }
.chat-rules summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.chat-rules ul { margin: 8px 0 0; padding-left: 20px; }
.chat-rules li + li { margin-top: 4px; }

.chat-box { position: relative; }
.chat-list {
    height: min(60vh, 560px);
    overflow-y: auto;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    overscroll-behavior: contain;
}
.chat-empty { margin: 40px 0; text-align: center; color: var(--ink-2); }
.chat-day { margin: 14px 0 10px; text-align: center; font-size: 12.5px; color: #9A92B3; }
.chat-day:first-child { margin-top: 0; }
.chat-jump {
    position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
    padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ink); color: #fff;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px rgba(46, 37, 71, .2);
}

.msg { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; }
.msg.is-mine { flex-direction: row-reverse; }
.msg-avatar {
    flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
    overflow: hidden; background: var(--tone); font-family: 'Young Serif', Georgia, serif; font-size: 15px;
}
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.msg-bubble { max-width: min(78%, 520px); padding: 8px 12px 9px; border-radius: 4px 16px 16px 16px; background: #F5F1FC; }
.msg.is-mine .msg-bubble { border-radius: 16px 4px 16px 16px; background: #E6F5EE; }
.msg-meta { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 13px; color: #9A92B3; }
.msg.is-mine .msg-meta { justify-content: flex-end; }
.msg-meta b { color: var(--ink); font-weight: 600; }
.msg-staff { padding: 1px 7px; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: 11.5px; font-weight: 600; }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.msg-tools { display: none; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.msg.show-tools .msg-tools,
.msg-bubble:focus-within .msg-tools { display: flex; }
@media (hover: hover) { .msg:hover .msg-tools { display: flex; } }
.msg-bubble[tabindex] { cursor: pointer; }
.msg-bubble[tabindex]:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 2px; }
.msg.is-mine .msg-tools { justify-content: flex-end; }
.msg-tool { padding: 0; border: 0; background: none; color: #9A92B3; font: inherit; font-size: 12.5px; cursor: pointer; }
.msg-tool:hover { color: #C0392B; text-decoration: underline; }

.chat-alert { margin: 10px 0 0; padding: 10px 14px; border-radius: 12px; background: #FDE8EC; color: #7A2338; font-size: 14.5px; }
.chat-closed { margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; background: #F4EFFC; color: var(--ink-2); text-align: center; }
.chat-form { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; }
.chat [hidden] { display: none !important; }
.chat-form textarea {
    flex: 1; min-height: 48px; max-height: 140px; resize: none; padding: 12px 14px;
    border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font: inherit; line-height: 1.4;
}
.chat-form textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--lilac); }
.chat-form .btn { height: 48px; }
.chat-hint { margin: 6px 2px 0; font-size: 12.5px; color: #9A92B3; }

@media (max-width: 480px) {
    .chat-head h1 { font-size: 24px; }
    .chat-list { height: 58vh; padding: 12px; }
    .msg-bubble { max-width: 82%; }
    .chat-hint { display: none; }
}


/* =========================================================
   Komunitas: obrolan beranda, daftar online, Diskusi (tahap 23)
   ========================================================= */
.lounge { margin: 0 0 56px; padding: 28px; border: 1.5px solid var(--line); border-radius: 26px; background: linear-gradient(180deg, #FFFFFF, #FAF7FF); }
.lounge-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 20px; margin-bottom: 18px; }
.lounge-head h2 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 0 0 4px; }
.lounge-head p { margin: 0; color: var(--ink-2); max-width: 640px; }
.lounge-head a { font-weight: 600; color: var(--ink); }
.lounge-guest { padding: 28px; border: 2px dashed var(--line); border-radius: 18px; text-align: center; }
.lounge-guest p { margin: 0 0 14px; color: var(--ink-2); }
.lounge-guest b { color: var(--ink); }
.lounge-guest .hub-actions { justify-content: center; margin: 0; }
.lounge-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.lounge-chat { min-width: 0; }
.lounge .chat-list { height: 420px; }
.lounge .chat-hint { line-height: 1.45; }

.online { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); max-height: 498px; overflow-y: auto; }
.online h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.online-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.online-item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.online-avatar {
    position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    background: var(--tone); font-family: var(--display); font-size: 15px;
}
.online-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.online-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #3FB68B; border: 2px solid #fff; }
.online-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.online-text b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.online-text small { font-size: 12.5px; color: #9A92B3; }
.online-item.is-me b { color: var(--ink-2); }

.emoji-btn {
    flex: none; width: 44px; height: 48px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper);
    font-size: 21px; line-height: 1; cursor: pointer;
}
.emoji-btn:hover, .emoji-btn[aria-expanded="true"] { border-color: var(--ink-2); background: #F4EFFC; }
.emoji-picker {
    position: absolute; z-index: 60; display: grid; grid-template-columns: repeat(8, 36px); gap: 2px; padding: 8px;
    border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(46, 37, 71, .18);
}
.emoji-picker[hidden] { display: none; }
.emoji-picker button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; font-size: 21px; cursor: pointer; }
.emoji-picker button:hover, .emoji-picker button:focus-visible { background: #F4EFFC; outline: none; }

/* Diskusi */
.d-wrap { max-width: 720px; margin: 32px auto 56px; }
.d-head h1 { font-family: var(--display); font-weight: 400; font-size: 36px; margin: 0 0 6px; }
.d-head p { margin: 0 0 18px; color: var(--ink-2); }
.d-back { margin: 0 0 14px; }
.d-back a { font-weight: 600; text-decoration: none; }
.d-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 18px; padding-bottom: 2px; }
.d-filter::-webkit-scrollbar { display: none; }
.d-filter a { flex: none; padding: 6px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); background: var(--card); }
.d-filter a.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }

.compose { margin: 0 0 22px; padding: 16px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); }
.compose-row { display: flex; gap: 12px; align-items: flex-start; }
.compose-text { flex: 1; min-width: 0; }
.compose textarea, .d-reply textarea {
    width: 100%; min-height: 84px; resize: vertical; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px;
    background: var(--paper); font: inherit; line-height: 1.5;
}
.d-reply textarea { min-height: 52px; }
.compose textarea:focus, .d-reply textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 4px var(--lilac); }
.compose-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding-left: 54px; }
.compose-tools .btn { margin-left: auto; }
.compose-tools .emoji-btn { height: 42px; width: 42px; }
.compose-file { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 14px; font-size: 14.5px; font-weight: 600; cursor: pointer; background: var(--paper); }
.compose-file:hover, .compose-file:focus-within { border-color: var(--ink-2); }
.compose-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.compose-program select { height: 42px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); font: inherit; font-size: 14.5px; max-width: 170px; }
.compose-preview { position: relative; margin: 12px 0 0 54px; color: #7A2338; font-size: 14px; }
.compose-preview img { max-height: 220px; width: auto; border-radius: 14px; border: 1px solid var(--line); }
.compose-remove { margin-top: 6px; padding: 0; border: 0; background: none; color: #9A92B3; font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; }
.compose .chat-hint { padding-left: 54px; }

.d-avatar {
    flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
    background: var(--tone); font-family: var(--display); font-size: 17px;
}
.d-avatar img { width: 100%; height: 100%; object-fit: cover; }
.d-avatar.is-sm { width: 34px; height: 34px; font-size: 14px; }

.d-list { display: grid; gap: 16px; }
.d-post { padding: 18px 18px 12px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--card); }
.d-post-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.d-who { flex: 1; min-width: 0; }
.d-who p { margin: 0; line-height: 1.35; }
.d-meta { font-size: 13.5px; color: #9A92B3; }
.d-tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--butter); color: var(--ink); font-weight: 600; font-size: 12.5px; text-decoration: none; }
.d-body { overflow-wrap: anywhere; line-height: 1.6; }
.d-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.d-more { display: inline-block; margin-top: 4px; font-size: 14.5px; font-weight: 600; }
.d-image { display: block; margin-top: 12px; border-radius: 14px; overflow: hidden; background: #F4EFFC; }
.d-image img { width: 100%; max-height: 560px; object-fit: contain; }
.d-post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.d-comments { font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.d-comments:hover { color: var(--ink); text-decoration: underline; }

.reacts { display: flex; flex-wrap: wrap; gap: 4px; }
.react {
    display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 8px; border: 1.5px solid transparent; border-radius: 999px;
    background: #F7F4FC; font: inherit; font-size: 16px; line-height: 1; cursor: pointer; filter: grayscale(.35); opacity: .8;
}
.react:hover { opacity: 1; filter: none; border-color: var(--line); }
.react.has-n { filter: none; opacity: 1; }
.react.is-mine { border-color: #9B7BE0; background: #EFE8FC; }
.react .n { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.react .n:empty { display: none; }

.post-menu { position: relative; flex: none; }
.post-menu summary { list-style: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; color: #9A92B3; font-size: 20px; line-height: 1; }
.post-menu summary::-webkit-details-marker { display: none; }
.post-menu summary:hover, .post-menu[open] summary { background: #F4EFFC; color: var(--ink); }
.post-menu-box {
    position: absolute; right: 0; top: 38px; z-index: 30; width: 250px; padding: 8px; border: 1px solid var(--line); border-radius: 16px;
    background: #fff; box-shadow: 0 14px 40px rgba(46, 37, 71, .16); display: grid; gap: 6px;
}
.post-menu-box form { margin: 0; }
.post-menu-box form + form { padding-top: 6px; border-top: 1px solid var(--line); }
.post-menu-box label span, .mute-form > span { display: block; margin: 2px 6px 4px; font-size: 13px; color: #9A92B3; }
.post-menu-box select { width: 100%; height: 36px; margin-bottom: 4px; padding: 0 8px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: var(--paper); }
.menu-item { display: block; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; color: var(--ink); }
.menu-item:hover { background: #F4EFFC; }
.menu-item.is-danger { color: #7A2338; }
.mute-form { display: flex; flex-wrap: wrap; }
.mute-form > span { width: 100%; }
.mute-form .menu-item { width: auto; }

.d-thread { margin-top: 26px; }
.d-thread h2 { font-family: var(--display); font-weight: 400; font-size: 24px; margin: 0 0 14px; }
.d-none { color: var(--ink-2); }
.d-comments-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 14px; }
.d-comment { display: flex; gap: 10px; align-items: flex-start; }
.d-comment-main { flex: 1; min-width: 0; }
.d-comment-bubble { padding: 9px 14px 10px; border-radius: 4px 16px 16px 16px; background: #F5F1FC; }
.d-comment-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 13.5px; color: #9A92B3; }
.d-comment-meta b { color: var(--ink); font-weight: 600; }
.d-comment-body { margin: 0; overflow-wrap: anywhere; line-height: 1.55; }
.d-comment-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.d-comment-foot .react { height: 28px; font-size: 14px; padding: 0 6px; background: transparent; }
.d-comment-foot .react.is-mine { background: #EFE8FC; }
.d-comment:target .d-comment-bubble { box-shadow: 0 0 0 3px var(--butter); }
.d-reply { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.d-reply-text { flex: 1; min-width: 0; }
.d-reply-tools { display: flex; gap: 8px; }
.d-reply-tools .btn { height: 48px; }
.d-pager { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }

/* Panel komunitas (admin) */
.admin-sub { font-family: var(--display); font-weight: 400; font-size: 22px; margin: 28px 0 12px; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: #C0392B; color: #fff; font-size: 12px; font-weight: 700; }
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.report-card { padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); }
.report-card p { margin: 0 0 8px; }
.report-kind { font-size: 14.5px; color: var(--ink-2); }
.report-kind b { color: var(--ink); }
.report-body { padding: 10px 14px; border-radius: 12px; background: #F5F1FC; overflow-wrap: anywhere; }
.report-img { max-height: 200px; width: auto; border-radius: 12px; margin-bottom: 8px; }
.report-reasons { margin: 0 0 10px; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.report-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.report-actions form { margin: 0; }
.report-mute { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto !important; }
.report-mute span { font-size: 14px; color: var(--ink-2); }
.report-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.report-row p { margin: 0; }

@media (max-width: 860px) {
    .lounge-grid { grid-template-columns: minmax(0, 1fr); }
    .online { order: -1; max-height: none; padding: 12px; }
    .online h3 { margin-bottom: 8px; }
    .online-list { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .online-list::-webkit-scrollbar { display: none; }
    .online-item { flex-direction: column; gap: 4px; width: 64px; flex: none; text-align: center; }
    .online-avatar { width: 46px; height: 46px; }
    .online-text { align-items: center; width: 100%; }
    .online-text b { font-size: 12.5px; max-width: 64px; }
    .online-text small { display: none; }
}
@media (max-width: 480px) {
    .lounge { padding: 18px 14px; margin-left: -6px; margin-right: -6px; border-radius: 20px; }
    .lounge-head h2 { font-size: 24px; }
    .lounge .chat-list { height: 52vh; padding: 12px; }
    .d-wrap { margin-top: 20px; }
    .d-head h1 { font-size: 28px; }
    .compose { padding: 12px; }
    .compose-row .d-avatar { display: none; }
    .compose-tools, .compose .chat-hint { padding-left: 0; }
    .compose-preview { margin-left: 0; }
    .compose-tools .btn { width: 100%; margin-left: 0; }
    .compose-program { flex: 1; }
    .compose-program select { max-width: none; width: 100%; }
    .d-post { padding: 14px 14px 10px; }
    .d-reply > .d-avatar { display: none; }
    .d-reply-tools { width: 100%; justify-content: flex-end; }
    .react { padding: 0 6px; }
}

/* =========================================================
   Tahap 24: lonceng notifikasi, obrolan melayang, @tag, utas komentar, ❤️
   ========================================================= */
.nav-bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--ink); flex: none; }
.nav-bell:hover, .nav-bell.is-here { background: #F4EFFC; }
.nav-badge {
    position: absolute; top: 1px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: #E0475B; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; border: 2px solid var(--paper);
}
.nav-badge[hidden] { display: none; }

.fchat { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.fchat > * { pointer-events: auto; }
.fchat-toggle {
    position: relative; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px;
    background: var(--ink); color: #fff; font: 600 15px/1 var(--ui); cursor: pointer; box-shadow: 0 12px 30px rgba(46, 37, 71, .28);
    transition: transform .15s ease;
}
.fchat-toggle:hover { transform: translateY(-2px); }
.fchat-toggle:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; }
.fchat.is-open .fchat-toggle { background: #fff; color: var(--ink); box-shadow: 0 8px 22px rgba(46, 37, 71, .18); }
.fchat-badge {
    position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
    background: #E0475B; color: #fff; font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; border: 2px solid #fff;
}
.fchat-panel {
    width: 380px; height: min(620px, calc(100vh - 110px)); display: flex; flex-direction: column; padding: 14px 14px 10px;
    border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 20px 60px rgba(46, 37, 71, .25);
}
.fchat-panel[hidden] { display: none !important; }
.fchat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.fchat-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.2; }
.fchat-head .chat-online { font-size: 13px; gap: 6px; }
.fchat-head .chat-online .dot { width: 8px; height: 8px; box-shadow: 0 0 0 3px rgba(63, 182, 139, .18); }
.fchat-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #F4EFFC; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.fchat-close:hover { background: var(--lilac); }
.fchat-guest { margin: auto 0; padding: 18px; text-align: center; }
.fchat-guest p { color: var(--ink-2); margin: 0 0 14px; }
.fchat-guest b { color: var(--ink); }
.fchat-guest .btn { margin: 4px; }

.online-strip { list-style: none; display: flex; gap: 6px; margin: 0 -14px 8px; padding: 2px 14px 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); flex: none; }
.online-strip::-webkit-scrollbar { display: none; }
.online-strip .online-item { flex: none; }
.online-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 58px; padding: 4px 0; border: 0; border-radius: 12px; background: none; font: inherit; cursor: pointer; }
.online-btn:hover:not(:disabled) { background: #F4EFFC; }
.online-btn:disabled { cursor: default; }
.online-btn .online-avatar { width: 40px; height: 40px; }
.online-name { max-width: 56px; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.online-item.is-me .online-name { color: #9A92B3; }

.fchat .chat-box { flex: 1; min-height: 0; display: flex; }
.fchat .chat-list { height: auto; flex: 1; padding: 10px; border-radius: 14px; background: #FCFAFF; }
.fchat .msg-avatar { width: 30px; height: 30px; font-size: 13px; }
.fchat .msg-bubble { max-width: 82%; font-size: 15px; }
.fchat .chat-form { margin-top: 8px; gap: 6px; }
.fchat .chat-form textarea { min-height: 44px; padding: 10px 12px; font-size: 15px; }
.fchat .chat-form .btn { height: 44px; padding: 0 14px; }
.fchat .emoji-btn { width: 40px; height: 44px; font-size: 19px; }
.fchat .chat-hint { margin-top: 5px; font-size: 11.5px; line-height: 1.35; }
.fchat .chat-alert { margin-top: 6px; padding: 8px 12px; font-size: 13.5px; }
.msg.is-tagged .msg-bubble { box-shadow: inset 3px 0 0 #D9A72A; background: #FFF7DD; }
.mention { color: #6A4FC2; font-weight: 600; }
.msg.is-mine .mention { color: #1F7A57; }

.mention-box {
    z-index: 95; list-style: none; margin: 0; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
    box-shadow: 0 14px 40px rgba(46, 37, 71, .2); max-height: 280px; overflow-y: auto;
}
.mention-box[hidden] { display: none; }
.mention-box li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; cursor: pointer; }
.mention-box li.is-on, .mention-box li:hover { background: #F4EFFC; }
.mention-av { position: relative; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tone); font-family: var(--display); font-size: 13px; }
.mention-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mention-av .online-dot { width: 10px; height: 10px; }
.mention-tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mention-tx b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mention-tx small { font-size: 12.5px; color: #9A92B3; }

/* ❤️ suka */
.react { gap: 5px; height: 34px; padding: 0 12px; font-size: 15px; filter: none; opacity: 1; background: #F7F4FC; }
.react .heart { font-size: 16px; line-height: 1; }
.react .n { font-size: 14px; color: var(--ink); }
.react-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.react.has-n .react-label { display: none; }
.react.is-mine { border-color: #F2A7B6; background: #FDECEF; }
.react.pop .heart { animation: heart-pop .35s ease; }
@keyframes heart-pop { 40% { transform: scale(1.35); } }
.d-comment-foot { justify-content: flex-start; gap: 4px 12px; }
.d-comment-foot .post-menu { margin-left: auto; }
.d-comment-foot .react { height: 28px; padding: 0 8px; background: transparent; }
.d-comment-foot .react .react-label { font-size: 13px; }
.d-comment-foot .react.is-mine { background: #FDECEF; }
.d-reply-btn { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.d-reply-btn:hover { color: var(--ink); text-decoration: underline; }
.d-thread-item { display: grid; gap: 10px; }
.d-replies { list-style: none; margin: 0 0 0 44px; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.d-reply.is-inline { margin-left: 44px; }
.d-reply.is-inline[hidden] { display: none; }
.d-reply.is-inline textarea { min-height: 44px; }

/* Halaman notifikasi */
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif-item { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; }
.notif-item:hover { border-color: var(--lilac); }
.notif-item.is-new { background: #F7F2FF; border-color: #DCCFF7; }
.notif-item.is-staff { box-shadow: inset 4px 0 0 #D9A72A; }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.45; }
.notif-excerpt { color: var(--ink-2); font-size: 14.5px; overflow-wrap: anywhere; }
.notif-time { font-size: 13px; color: #9A92B3; }
.notif-dot { flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: #E0475B; }

@media (max-width: 600px) {
    .fchat { right: 14px; bottom: 14px; }
    .fchat-toggle { height: 50px; padding: 0 16px 0 14px; }
    .fchat.is-open { inset: 0; right: 0; bottom: 0; gap: 0; }
    .fchat.is-open .fchat-toggle { display: none; }
    .fchat-panel { width: 100%; height: 100%; border-radius: 0; border: 0; padding: 12px 12px 10px; }
    html.fchat-lock, html.fchat-lock body { overflow: hidden; }
    .d-replies { margin-left: 14px; }
    .d-reply.is-inline { margin-left: 14px; }
}
@media (max-width: 700px) {
    /* Lonceng selalu terlihat di pojok kanan atas, tidak ikut tergeser di menu */
    .site-header { position: relative; }
    .nav-bell { position: absolute; top: 18px; right: 20px; background: #F4EFFC; }
    .site-header .brand { padding-right: 52px; }
}
@media (max-width: 600px) {
    /* Tombol obrolan jadi bulat kecil + ruang kosong di bawah halaman supaya tidak menutupi tombol lain */
    .fchat-toggle { width: 54px; height: 54px; padding: 0; justify-content: center; }
    .fchat-label { display: none; }
    body { padding-bottom: 76px; }
}

/* =========================================================
   Tahap 25: Ringkasan admin - pendaftaran, karya teratas, trafik
   ========================================================= */
.dash-block { margin-top: 8px; }
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 32px 0 14px; }
.dash-head .admin-section { margin: 0; }
.seg-row { display: flex; flex-wrap: wrap; gap: 8px; }
.seg { display: inline-flex; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); }
.seg a { padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.seg a.is-on { background: var(--ink); color: #fff; }

.funnel { display: flex; align-items: stretch; gap: 12px; margin-bottom: 16px; }
.funnel-step { flex: 1; display: flex; flex-direction: column; gap: 2px; padding: 18px 22px; border-radius: 18px; background: #E8F1FB; }
.funnel-step.is-key { background: #EDE5FB; }
.funnel-arrow { display: grid; place-items: center; font-size: 26px; color: #9A92B3; }
.funnel-num { font-family: var(--display); font-size: 40px; line-height: 1.1; }
.funnel-label { font-weight: 700; }
.funnel-sub { font-size: 14px; color: var(--ink-2); }
.funnel-sub b { color: var(--ink); }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dash-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); }
.dash-tile-label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.dash-tile-num { font-family: var(--display); font-size: 32px; line-height: 1.15; }
.dash-tile-num small { font-family: var(--ui); font-size: 13.5px; color: var(--ink-2); }
.dash-tile-sub { font-size: 13.5px; color: #8A82A3; }
.meter { display: block; height: 8px; margin: 4px 0 2px; border-radius: 999px; background: #EFEAF8; overflow: hidden; }
.meter i { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: #7B5FD0; }

.dash-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dash-panel { min-width: 0; padding: 18px 20px; border: 1.5px solid var(--line); border-radius: 18px; background: var(--card); margin-bottom: 16px; }
.dash-two .dash-panel { margin-bottom: 0; }
.dash-panel h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.dash-panel h3 small { margin-left: 6px; font-weight: 500; font-size: 13px; color: #9A92B3; }

/* Grafik batang (satu seri) */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-bottom: 1px; border-bottom: 1px solid var(--line); }
.bars-sm { height: 110px; }
.bars.is-dense { gap: 2px; }
.bar { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.bar i { display: block; width: 100%; height: var(--h); min-height: 0; border-radius: 4px 4px 0 0; background: #9B82E0; transition: background .12s; }
.bar:hover i { background: #5B3FB8; }
.bar::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 5;
    padding: 6px 10px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12.5px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .12s;
}
.bar:hover::after { opacity: 1; }
.bar:first-child::after, .bar:nth-child(2)::after { left: 0; transform: none; }
.bar:last-child::after, .bar:nth-last-child(2)::after { left: auto; right: 0; transform: none; }
.bars-axis { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 0; font-size: 12.5px; color: #9A92B3; }
.bars-axis b { color: var(--ink); }
.dash-table { margin-top: 12px; }
.dash-table summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.dash-table .admin-table { margin-top: 10px; }
.dash-table .admin-table td { padding: 8px 12px; }

.status-list, .mini-list, .source-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.status-list a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: #F7F4FC; text-decoration: none; }
.status-list a:hover { background: #EFE8FC; }
.mini-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.mini-list a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-list li { display: grid; grid-template-columns: minmax(90px, 1.2fr) 2fr auto; align-items: center; gap: 10px; font-size: 14.5px; }
.source-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.source-bar { height: 10px; border-radius: 999px; background: #EFEAF8; overflow: hidden; }
.source-bar i { display: block; height: 100%; min-width: 4px; border-radius: 999px; background: #9B82E0; }
.source-num small { color: #9A92B3; }

.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #F4EFFC; font-weight: 700; font-size: 14px; }
.rank-list li:nth-child(1) .rank-no { background: #F6E3A1; }
.rank-list li:nth-child(2) .rank-no { background: #E4E2EA; }
.rank-list li:nth-child(3) .rank-no { background: #F3D2BC; }
.rank-thumb { flex: none; width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.rank-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rank-title { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-title:hover { text-decoration: underline; }
.rank-by { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.rank-tag { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--butter); color: var(--ink); font-size: 12px; font-weight: 700; text-decoration: none; }
.rank-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: #8A82A3; }
.rank-score { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.rank-score b { font-family: var(--display); font-size: 22px; font-weight: 400; }
.rank-score small { font-size: 12px; color: #9A92B3; }
.dash-note { margin-top: 4px; font-size: 13.5px; }

@media (max-width: 860px) {
    .dash-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .funnel { flex-direction: column; }
    .funnel-arrow { transform: rotate(90deg); height: 18px; }
    .bars { height: 130px; gap: 2px; }
    .bar::after { display: none; }
    .dash-panel { padding: 14px; }
    .seg a { padding: 6px 10px; font-size: 13px; }
}
@media (max-width: 600px) {
    .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dash-tile { padding: 12px 14px; }
    .dash-tile-num { font-size: 26px; }
    .dash-tile-num small { display: block; }
}
.status.role-owner { background: #2E2547; color: #F6E3A1; }
.dash-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 18px 0 0; color: var(--ink-2); font-size: 14.5px; }
