/* Tema terang ala portal novel (wuxiaworld-style) */
:root {
  --bg: #eef1f5;
  --bg2: #ffffff;
  --card: #ffffff;
  --line: #e2e8f0;
  --txt: #1c2330;
  --muted: #6b7686;
  --accent: #1f7ae0;
  --accent-dark: #1663b8;
  --gold: #b8860b;
  --green: #15803d;
  --green-bg: #dcfce7;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --blue: #1d4ed8;
  --blue-bg: #dbeafe;
  --gold-bg: #fef3c7;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { max-width: 100%; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
  overflow-x: clip; /* cegah geser kanan-kiri di HP */
}
img { max-width: 100%; height: auto; }
/* Pecah kata/URL panjang agar tidak melebar melebihi layar */
.syn, .synopsis-full, .reader-para, .diff-orig, .diff-sugg,
td, th, .novel-info h3, .chapter-row .title, .para {
  overflow-wrap: anywhere;
}
/* Proteksi salin: konten bacaan tidak bisa diseleksi / disalin.
   Kolom isian (input, textarea) tetap bisa dipakai seperti biasa. */
.reader .content, .reader-para, .synopsis-full, .syn,
.chapter-row .title, .diff-orig, .diff-sugg, .para,
.novel-info h3, td, th {
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; /* iOS: matikan menu long-press */
}
.cover img { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.hidden { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Navbar */
#navbar {
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0.7rem 1.4rem;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 4px rgba(20, 40, 80, 0.06);
}
.brand { font-weight: 800; font-size: 1.15rem; color: var(--accent); }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 1.1rem; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-user { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); font-size: 0.9rem; }
/* Tombol Keluar — selalu di kanan atas, sejajar tulisan 7Crayfish */
#btn-logout { margin-left: auto; }
/* Ranah kultivasi — di bawah nama member */
#nav-username { display: flex; flex-direction: column; line-height: 1.3; }
.nav-name { font-weight: 600; color: var(--txt); white-space: nowrap; }
.nav-realm { font-size: 0.72rem; color: var(--gold); white-space: nowrap; }
.cult-realm { font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.cult-realm-sm { font-size: 0.72rem; color: var(--gold); }

/* Layout */
#view { max-width: 1020px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }
h1 { font-size: 1.45rem; margin-bottom: 1rem; }
h2.section-title {
  font-size: 1.15rem; margin: 1.6rem 0 0.9rem;
  padding-left: 0.7rem; border-left: 4px solid var(--accent);
}
p.muted, .muted { color: var(--muted); }

/* Card & grid */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(20, 40, 80, 0.05);
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1rem; }

/* Kartu novel ala portal */
.novel-card {
  display: flex; gap: 1rem; cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.novel-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31, 122, 224, 0.15); }
.cover {
  width: 92px; height: 124px; flex-shrink: 0;
  border-radius: 6px; overflow: hidden;
  background: linear-gradient(135deg, #1f7ae0, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.2rem; font-weight: 800;
}
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.lg { width: 150px; height: 200px; font-size: 3.4rem; }
.novel-info { flex: 1; min-width: 0; }
.novel-info h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.syn { color: var(--muted); font-size: 0.88rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.6rem; font-size: 0.8rem; color: var(--muted); flex-wrap: wrap; }

/* Header detail novel */
.novel-head { display: flex; gap: 1.4rem; }
.novel-head h1 { margin-bottom: 0.5rem; }
.synopsis-full { color: #3c4658; line-height: 1.7; margin: 0.8rem 0; white-space: pre-wrap; }

/* Badge */
.badge { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; }
.b-ongoing { background: var(--green-bg); color: var(--green); }
.b-completed { background: var(--blue-bg); color: var(--blue); }
.b-hiatus { background: var(--gold-bg); color: var(--gold); }
.b-pending { background: var(--gold-bg); color: var(--gold); }
.b-approved { background: var(--green-bg); color: var(--green); }
.b-rejected, .b-suspended { background: var(--red-bg); color: var(--red); }

/* Form */
.form { max-width: 440px; margin: 3rem auto; }
.form.wide { max-width: 760px; margin: 1rem 0; }
label { display: block; margin: 0.8rem 0 0.3rem; color: var(--muted); font-size: 0.9rem; }
input, textarea, select {
  width: 100%; padding: 0.65rem 0.8rem;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--txt); font-size: 1rem; font-family: inherit;
}
textarea { min-height: 110px; resize: vertical; }
textarea.tall { min-height: 320px; font-family: Georgia, serif; line-height: 1.7; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31,122,224,.15); }

/* Button */
.btn {
  display: inline-block; padding: 0.6rem 1.2rem; border: none; border-radius: 8px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 0.95rem;
  cursor: pointer; margin-top: 1rem;
}
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: #fff; color: var(--muted); border: 1px solid var(--line); margin-top: 0; }
.btn-ghost:hover { color: var(--txt); border-color: #b9c4d4; background: #fff; }
.btn-green { background: var(--green); }
.btn-green:hover { background: #166534; }
.btn-red { background: var(--red); }
.btn-red:hover { background: #b91c1c; }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.85rem; margin-top: 0; }

/* Table */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.7rem 0.6rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
th { color: var(--muted); font-weight: 600; background: #f8fafc; }
td.actions { white-space: nowrap; }
td.actions .btn { margin: 0 0.25rem 0 0; }

/* Tabel digeser ke samping di layar kecil (teks tidak gepeng ke atas) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 640px; }
.table-scroll th, .table-scroll td { white-space: nowrap; }
.scroll-hint { display: none; }
@media (max-width: 640px) {
  .scroll-hint { display: block; text-align: center; color: var(--muted); font-size: 0.8rem; margin: 0 0 0.5rem; }
}

/* Chapter list */
.chapter-row {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.7rem 0.4rem; border-bottom: 1px solid var(--line);
}
.chapter-row:hover { background: #f8fafc; }
.chapter-row .num { color: var(--accent); font-weight: 700; min-width: 3.2rem; }
.chapter-row .title { flex: 1; }
.chapter-row a.title { color: var(--txt); font-weight: 600; }
.chapter-row a.title:hover { color: var(--accent); }

/* Alert */
.alert { padding: 0.8rem 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.92rem; border: 1px solid; }
.alert-error { background: var(--red-bg); color: var(--red); border-color: #fca5a5; }
.alert-info { background: var(--blue-bg); color: var(--blue); border-color: #93c5fd; }
.alert-ok { background: var(--green-bg); color: var(--green); border-color: #86efac; }

/* Reader */
.reader { max-width: 740px; margin: 0 auto; }
.reader h1 { text-align: center; }
.reader .content {
  white-space: pre-wrap; font-family: Georgia, serif;
  font-size: 1.08rem; line-height: 1.9; color: #2a3446;
}
.toolbar { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1rem 0; }
.toolbar .btn { margin-top: 0; }
.center { text-align: center; }
.row-between { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.6rem; }
.row-between h1 { margin-bottom: 0; }

@media (max-width: 640px) {
  .novel-head { flex-direction: column; }
  .cover.lg { width: 120px; height: 160px; }
  /* --- perbaikan tampilan HP: tidak ada geser horizontal --- */
  #navbar { flex-wrap: wrap; gap: 0.5rem 1rem; padding: 0.7rem 1rem; }
  /* --- tombol navigasi HP: kotak biru tua bercahaya biru muda, sama besar --- */
  .nav-links { width: 100%; gap: 0.6rem; }
  .nav-links a {
    flex: 1 1 0;
    display: flex; align-items: center; justify-content: center;
    background: #1e3a8a; color: #fff;
    font-size: 0.82rem; font-weight: 700; text-align: center; line-height: 1.25;
    padding: 0.65rem 0.25rem; border-radius: 0.65rem;
    border: 1px solid rgba(147, 197, 253, 0.55);
    box-shadow: 0 0 12px rgba(147, 197, 253, 0.85), 0 2px 6px rgba(30, 58, 138, 0.35);
  }
  .nav-links a:hover { color: #fff; text-decoration: none; background: #27408f; }
  .nav-user { margin-left: 0; }
  #view { padding: 1rem 0.8rem 3rem; }
  .card { overflow: hidden; }
  .novel-card { gap: 0.8rem; }
  .cover { width: 76px; height: 104px; font-size: 1.8rem; }
  .verify-row { flex-wrap: wrap; }
}

/* Istilah [xxx] di chapter → bold hijau dengan highlight hijau muda (seperti badge peran) */
.term { font-weight: 700; color: var(--green); background: var(--green-bg);
  padding: 0 .3rem; border-radius: 4px; }

/* Pemutar audio chapter */
.audio-card .section-title { margin-bottom: .4rem; }
.audio-card audio { width: 100%; }

/* Dashboard & koreksi */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; text-align: center; box-shadow: 0 1px 3px rgba(20,40,80,.05); }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }

.mode-toggle { display: flex; gap: 0.5rem; margin: 1rem 0 0.4rem; }
.mode-toggle .btn { margin-top: 0; }

.para { border: 1px dashed transparent; border-radius: 8px; padding: 0.6rem 0.8rem; margin-bottom: 0.4rem; cursor: pointer; }
.para:hover { border-color: var(--accent); background: #f0f7ff; }
.para-mine { background: #fffbeb; border: 1px solid #fcd34d; }
.para-mine:hover { background: #fef6e0; }
.para-hint { font-size: 0.75rem; color: var(--muted); }
.reader-para { font-family: Georgia, serif; font-size: 1.08rem; line-height: 1.9; color: #2a3446; margin-bottom: 1.1rem; }

.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 0.8rem 0; }
.diff-label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.3rem; font-weight: 700; }
.diff-orig { background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px; padding: 0.7rem; white-space: pre-wrap; font-size: 0.92rem; line-height: 1.6; }
.diff-sugg { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 0.7rem; white-space: pre-wrap; font-size: 0.92rem; line-height: 1.6; }

.review-item { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }

@media (max-width: 640px) {
  .diff { grid-template-columns: 1fr; }
}

/* Lembar Persetujuan moderator */
.agreement-box { margin: 1.2rem 0 0.6rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.agreement-box h3 { margin: 0; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
.agreement-text { max-height: 260px; overflow-y: auto; padding: 0.8rem 1rem; font-size: 0.92rem; line-height: 1.7; }
.agreement-text ol { margin: 0.4rem 0 0.8rem 1.2rem; padding: 0; }
.agreement-text li { margin-bottom: 0.3rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; font-size: 0.95rem; line-height: 1.5; }
.check input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--accent); }

/* Kolom komentar chapter */
.comment { border-bottom: 1px solid var(--line); padding: 0.7rem 0; }
.comment:last-child { border-bottom: none; }
.comment-head { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; font-size: 0.85rem; }
.comment-head .btn { margin-top: 0; margin-left: auto; }
.comment-body { margin-top: 0.3rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: break-word; }
.b-admin { background: var(--blue-bg); color: var(--blue); }
.b-moderator { background: var(--green-bg); color: var(--green); }

/* Pilihan peran saat pendaftaran */
.role-toggle { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; }
.role-toggle .btn { flex: 1; }

/* Avatar */
.avatar-xs, .avatar-sm, .avatar-lg { flex: none; }
img.avatar-xs, img.avatar-sm, img.avatar-lg {
  display: block; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%; background: var(--line);
}
.avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold-bg); color: var(--gold);
  font-weight: 700; flex: none;
}
.avatar-xs { width: 28px; height: 28px; font-size: 0.8rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.85rem; }
.avatar-lg { width: 96px; height: 96px; font-size: 2rem; }
#nav-profile { display: inline-flex; }
.profile-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }

/* Cropper foto profil */
#crop-viewport {
  width: 280px; height: 280px; max-width: 100%;
  overflow: hidden; position: relative; border-radius: 12px;
  border: 2px dashed var(--gold); background: #111; touch-action: none;
  cursor: grab; margin: 0.6rem 0;
}
#crop-viewport:active { cursor: grabbing; }
#crop-img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
#crop-wrap input[type="range"] { accent-color: var(--gold); }

/* Chapter terkunci (Batu Roh) */
.lock-card { padding: 2.5rem 1.5rem; }
.lock-emoji { font-size: 3rem; }
.lock-ico { margin-right: 0.2rem; }

/* Badge peran */
.b-member { background: var(--gold-bg); color: var(--gold); }

/* ---------- Klaim Harian Batu Roh ---------- */
.claim-card {
  position: relative; overflow: hidden; border-radius: 16px; text-align: center;
  padding: 2rem 1.2rem; margin: 1rem 0 1.2rem; color: #fff;
  background: radial-gradient(circle at 50% 0%, #5b3a9e 0%, #2b1b4d 55%, #191233 100%);
  border: 1px solid rgba(255, 215, 0, .4);
  animation: claim-glow 3s ease-in-out infinite;
}
@keyframes claim-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(43,27,77,.5), 0 0 0 rgba(255,215,0,0); }
  50% { box-shadow: 0 10px 34px rgba(43,27,77,.55), 0 0 28px rgba(255,215,0,.35); }
}
.claim-card.claimed { animation: none; }
.claim-inner { position: relative; z-index: 2; }
.claim-title { font-size: 1.35rem; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.claim-sub { color: #e9e2ff; margin: .5rem 0 1rem; }
.claim-hint { color: #c9bdf0; font-size: .85rem; margin: .8rem 0 0; }

/* batu-batu melayang di latar kartu */
.claim-stones-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.claim-stones-bg span { position: absolute; opacity: .28; animation: stone-drift 7s ease-in-out infinite; }
.claim-stones-bg span:nth-child(1) { left: 8%; top: 12%; font-size: 1.6rem; }
.claim-stones-bg span:nth-child(2) { left: 85%; top: 20%; font-size: 1.1rem; animation-delay: -2s; }
.claim-stones-bg span:nth-child(3) { left: 15%; top: 70%; font-size: 1.2rem; animation-delay: -4s; }
.claim-stones-bg span:nth-child(4) { left: 78%; top: 68%; font-size: 1.8rem; animation-delay: -1s; }
.claim-stones-bg span:nth-child(5) { left: 48%; top: 8%; font-size: 1rem; animation-delay: -5.5s; }
@keyframes stone-drift {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-14px) rotate(8deg); }
}

/* tombol klaim emas */
.btn-claim {
  position: relative; overflow: hidden; border: none; cursor: pointer;
  font-size: 1.15rem; font-weight: 800; color: #3a2503;
  padding: .9rem 2.2rem; border-radius: 999px;
  background: linear-gradient(180deg, #ffe27a 0%, #f5b81f 55%, #e09c0a 100%);
  transition: transform .12s ease, filter .2s;
  animation: claim-btn-pulse 1.8s ease-in-out infinite;
}
.btn-claim:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); filter: brightness(1.05); }
.btn-claim:active:not(:disabled) { transform: translateY(3px); }
.btn-claim:disabled { cursor: wait; animation: none; filter: saturate(.7); }
@keyframes claim-btn-pulse {
  0%, 100% { box-shadow: 0 6px 0 #9a6b06, 0 10px 24px rgba(245,184,31,.45), 0 0 0 rgba(255,215,0,0); }
  50% { box-shadow: 0 6px 0 #9a6b06, 0 10px 24px rgba(245,184,31,.45), 0 0 32px rgba(255,215,0,.8); }
}
.btn-claim-shine {
  position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg); animation: shine-sweep 2.6s ease-in-out infinite; pointer-events: none;
}
@keyframes shine-sweep { 0% { left: -70%; } 55%, 100% { left: 140%; } }

/* status sudah diklaim */
.claim-done-badge {
  display: inline-block; font-weight: 800; font-size: 1.05rem; color: #062d16;
  background: linear-gradient(180deg, #bbf7d0, #6ee7a8);
  padding: .55rem 1.4rem; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(110,231,168,.5);
}

/* kilatan sukses + partikel */
.claim-card.claim-success { animation: claim-flash .8s ease 2; }
@keyframes claim-flash { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.7); } }
.claim-float-layer { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.stone-particle {
  position: absolute; bottom: 18%; font-weight: 800; color: #ffe27a;
  text-shadow: 0 2px 6px rgba(0,0,0,.5); animation: float-up 1.8s ease-out forwards;
}
@keyframes float-up {
  0% { transform: translateY(0) scale(.8); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-130px) scale(1.15); opacity: 0; }
}

/* ---------- Kartu emas Batu Spiritual (varian kartu klaim) ---------- */
.claim-card.gold-card {
  background: radial-gradient(circle at 50% 0%, #8a5a00 0%, #5c3d05 55%, #2e2007 100%);
  border-color: rgba(255, 215, 0, .65);
  animation: gold-glow 3s ease-in-out infinite;
}
@keyframes gold-glow {
  0%, 100% { box-shadow: 0 10px 30px rgba(92,61,5,.5), 0 0 0 rgba(255,215,0,0); }
  50% { box-shadow: 0 10px 34px rgba(92,61,5,.55), 0 0 28px rgba(255,215,0,.5); }
}
.gold-card .claim-sub { color: #ffefd2; }
.gold-card .claim-hint { color: #e6c877; }
.spiritual-card .gold-card { margin: .6rem 0 .2rem; }

/* tombol hantu terang untuk latar gelap */
.btn-ghost-light {
  margin-top: .9rem; background: transparent; color: #ffe9b0; cursor: pointer;
  border: 2px solid rgba(255, 215, 0, .55); border-radius: 999px;
  padding: .7rem 1.8rem; font-weight: 800; font-size: 1rem;
  transition: transform .12s ease, background .2s;
}
.btn-ghost-light:hover { background: rgba(255,215,0,.14); transform: translateY(-2px); }

/* ---------- Hero beranda publik ---------- */
.hero-card {
  position: relative; overflow: hidden; border-radius: 20px; text-align: center;
  padding: 3rem 1.4rem 2.4rem; margin-bottom: 1.4rem; color: #fff;
  background:
    radial-gradient(circle at 50% -20%, rgba(91,58,158,.9) 0%, transparent 60%),
    radial-gradient(circle at 85% 110%, rgba(184,134,11,.35) 0%, transparent 55%),
    linear-gradient(165deg, #1b1440 0%, #12102b 60%, #0c0a1d 100%);
  border: 1px solid rgba(255,215,0,.28);
  animation: hero-glow 4s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { box-shadow: 0 14px 40px rgba(20,12,50,.55), 0 0 0 rgba(255,215,0,0); }
  50% { box-shadow: 0 14px 44px rgba(20,12,50,.6), 0 0 34px rgba(255,215,0,.22); }
}
.hero-badge {
  display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .05em;
  color: #3a2503; background: linear-gradient(180deg, #ffe27a, #f5b81f);
  padding: .35rem 1.1rem; border-radius: 999px; margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(245,184,31,.45);
}
.hero-card h1 {
  font-size: 2.6rem; margin: 0 0 .7rem; letter-spacing: .02em;
  text-shadow: 0 3px 18px rgba(0,0,0,.55), 0 0 42px rgba(255,215,0,.25);
}
.hero-desc {
  max-width: 600px; margin: 0 auto 1.7rem; color: #d9d4f5;
  font-size: 1.02rem; line-height: 1.8;
}
.hero-desc b { color: #fff; white-space: nowrap; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.hero-cta .btn-claim { display: inline-block; text-decoration: none; }
.hero-cta-row { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; align-items: center; }
.hero-cta-row .btn-ghost-light { margin-top: 0; }
.btn-discord2 {
  display: inline-block; text-decoration: none; font-weight: 800; color: #fff;
  background: #5865F2; padding: .7rem 1.6rem; border-radius: 999px;
  transition: transform .12s ease, background .2s;
}
.btn-discord2:hover { background: #4752C4; transform: translateY(-2px); }
.hero-stats {
  display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
  margin-top: 1.8rem; color: #bdb6e6; font-size: .88rem;
}
.hero-stats b { color: #ffe27a; }
@media (max-width: 480px) {
  .hero-card { padding: 2.2rem 1rem 1.8rem; }
  .hero-card h1 { font-size: 2.1rem; }
}

/* panel kelola anggota: dua kartu berdampingan */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.grid2 .card { margin-bottom: 0; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

/* kartu bawah beranda: komunitas + info */
.hero-card-bottom { padding: 2.2rem 1.4rem 1.8rem; margin: 1.6rem 0; }

/* hero beranda: background banner novel xianxia (gambar via <img>, diatur fitBanner) */
.hero-card.hero-banner {
  background: #141126;
  padding: 4.5rem 1.4rem 3.5rem;
  animation: none;
  box-shadow: 0 14px 40px rgba(20,12,50,.55);
}
.hero-card.hero-banner::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(10,8,26,.32) 0%, rgba(10,8,26,.18) 40%, rgba(10,8,26,.55) 100%);
}
.hero-banner-img { position: absolute; z-index: 0; max-width: none; }
.hero-card.hero-banner h1 {
  font-size: 3rem;
  text-shadow: 0 3px 22px rgba(0,0,0,.8), 0 0 46px rgba(255,215,0,.35);
}
/* icon 7Crayfish: biarkan bening (transparan), tanpa lingkaran putih */
.hero-icon {
  width: 1.15em; height: 1.15em; vertical-align: -.18em;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
}
/* editor banner di dashboard admin */
.banner-editor {
  aspect-ratio: 21 / 8; padding: 0; margin-bottom: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.banner-editor:active { cursor: grabbing; }
.banner-editor .claim-inner { pointer-events: none; }
.banner-editor h1 { font-size: 2rem; margin: 0 0 .8rem; }
@media (max-width: 480px) {
  .hero-card.hero-banner { padding: 3.2rem 1rem 2.6rem; }
  .hero-card.hero-banner h1 { font-size: 2.3rem; }
  .banner-editor { aspect-ratio: 16 / 9; }
  .banner-editor h1 { font-size: 1.6rem; }
}
.hero-card-title {
  font-size: 1.3rem; font-weight: 800; margin-bottom: .6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero-card-bottom .hero-desc { margin-bottom: 1.2rem; font-size: .95rem; }
.hero-card-bottom .hero-stats { margin-top: 1.3rem; }

/* sel alasan di tabel pendaftar admin */
.reason-cell { max-width: 280px; white-space: normal; line-height: 1.5; font-size: .9rem; }

/* denyut saldo di navbar saat klaim */
.stones-pulse { animation: stones-pulse .6s ease 2; display: inline-block; }
@keyframes stones-pulse { 50% { transform: scale(1.35); } }

/* ---------- Login Google ---------- */
input[readonly] { background: #eef1f5; color: var(--muted); cursor: default; }

/* ===== Top Up Batu Roh via QRIS ===== */
.topup-card {
  border: 1px solid var(--gold, #d4a017);
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.08), rgba(46, 139, 87, 0.08));
}
.tp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.tp-modal {
  background: var(--card-bg, #1e2430);
  color: #ece7d9;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.tp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}
.tp-head h3 { margin: 0; }
.tp-pkgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}
.tp-pkg {
  border: 1px solid rgba(212, 160, 23, 0.5);
  border-radius: 10px;
  padding: 0.7rem 0.5rem;
  background: rgba(212, 160, 23, 0.06);
  cursor: pointer;
  text-align: center;
  color: inherit;
  font: inherit;
  transition: transform 0.12s, box-shadow 0.12s;
}
.tp-pkg:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.25);
}
.tp-rp { font-weight: bold; font-size: 1rem; }
.tp-st { color: var(--green, #2e8b57); font-weight: bold; font-size: 1.1rem; margin-top: 0.2rem; }
.tp-bonus { font-size: 0.72rem; opacity: 0.75; margin-top: 0.15rem; }
.tp-note { font-size: 0.8rem; margin-top: 0.9rem; }
.tp-qrbox { text-align: center; }
.tp-qr {
  width: 240px;
  height: 240px;
  max-width: 100%;
  border: 6px solid #fff;
  border-radius: 8px;
  background: #fff;
}
.tp-amount { font-weight: bold; font-size: 1.1rem; margin: 0.7rem 0 0.4rem; }
.tp-success { text-align: center; padding: 1rem 0; }
.tp-success-icon { font-size: 3rem; }

/* ===== Top Up via Saweria ===== */
.sw-big {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: .05em;
  background: #0f2a1d;
  border: 1px dashed #3b7d5a;
  border-radius: 10px;
  padding: .5rem .8rem;
  display: inline-block;
  margin: .2rem 0;
}
.sw-code { font-family: monospace; }
/* Emas berkilau untuk nominal & kode */
.sw-gold {
  background: linear-gradient(180deg, #fff8dc 0%, #ffd54a 35%, #d4a017 60%, #fff3c4 85%, #c9930a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.sw-form label { display: block; font-size: .88rem; margin: .6rem 0 .2rem; }
.sw-form input[readonly] { opacity: .7; }

/* ===== Feed Discord: Obrolan Sekte ===== */
.discord-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: .6rem 0 .8rem; }
.dtab {
  border: 1px solid var(--line); background: var(--bg2); color: var(--txt);
  border-radius: 999px; padding: .3rem .85rem; font-size: .85rem; cursor: pointer;
}
.dtab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.discord-feed { display: flex; flex-direction: column; gap: .7rem; max-height: 440px; overflow-y: auto; padding-right: .25rem; }
.dmsg { display: flex; gap: .6rem; align-items: flex-start; }
.dmsg-av { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; }
.dmsg-av-none { display: flex; align-items: center; justify-content: center; background: var(--bg); font-size: 1.1rem; }
.dmsg-body { min-width: 0; flex: 1; }
.dmsg-head { font-size: .85rem; display: flex; gap: .45rem; flex-wrap: wrap; align-items: baseline; }
.dmsg-time { font-size: .75rem; }
.dmsg-text { margin-top: .15rem; line-height: 1.45; overflow-wrap: anywhere; }
.spoiler {
  background: #2b2f36; color: transparent; border-radius: 4px;
  padding: 0 .35em; cursor: pointer; -webkit-user-select: none; user-select: none;
}
.spoiler.revealed { color: inherit; background: rgba(0,0,0,.12); }

/* ===== Halaman publik (beranda) ===== */
.public-hero {
  text-align: center; padding: 2.2rem 1rem 1.6rem;
  background: linear-gradient(180deg, var(--gold-bg), transparent);
  border-radius: 12px; margin-bottom: 1.2rem;
}
.public-hero h1 { font-size: 2rem; margin-bottom: .4rem; }
.public-hero p { max-width: 560px; margin: 0 auto 1rem; }
.public-hero .toolbar { justify-content: center; }
.public-cta { text-align: center; margin-top: 1.2rem; }
.public-cta .toolbar { justify-content: center; }
/* Tombol Discord (blurple) */
.btn-discord { background: #5865F2; border-color: #5865F2; color: #fff; }
.btn-discord:hover { background: #4752C4; border-color: #4752C4; color: #fff; }

/* ---------- PAYWALL BATU ROH (10 paragraf preview) ---------- */
.preview-card { position: relative; overflow: hidden; }
.preview-badge {
  display: inline-block; font-size: .85rem; font-weight: 700; color: #1d7a4f;
  background: #e3f5ec; border: 1px solid #bfe6d2; border-radius: 999px;
  padding: .25rem .8rem; margin-bottom: 1rem;
}
.preview-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--bg2));
}
.paywall { text-align: center; margin: 1.5rem 0 2rem; }
.paywall-stone {
  background: none; border: none; cursor: pointer; padding: .5rem 1rem;
  display: inline-flex; flex-direction: column; align-items: center; gap: .4rem;
}
.paywall-stone img {
  width: 130px; height: 130px; object-fit: cover; border-radius: 50%;
  box-shadow: 0 0 24px rgba(46, 204, 130, .55), 0 0 60px rgba(46, 204, 130, .25);
  animation: stone-glow 2.4s ease-in-out infinite;
  transition: transform .2s ease;
}
.paywall-stone:hover img { transform: scale(1.06); }
.paywall-stone:active img { transform: scale(.97); }
@keyframes stone-glow {
  0%, 100% { box-shadow: 0 0 18px rgba(46,204,130,.45), 0 0 44px rgba(46,204,130,.2); }
  50% { box-shadow: 0 0 32px rgba(46,204,130,.75), 0 0 80px rgba(46,204,130,.35); }
}
.paywall-title { font-size: 1.05rem; font-weight: 700; color: var(--txt); }
.paywall-hint { font-size: .85rem; color: #1d7a4f; font-weight: 600; }
/* Panel mengembang turun dengan animasi halus */
.paywall-panel {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .55s ease, opacity .4s ease, margin .4s ease;
  margin-top: 0;
}
.paywall-panel.open { max-height: 520px; opacity: 1; margin-top: .8rem; }
.paywall-inner { text-align: center; max-width: 520px; margin: 0 auto; }

/* ===== Dua mata uang: Batu Roh (biru) & Batu Spiritual (kuning) ===== */
/* Berlian kuning: emoji 💎 digeser hue-nya menjadi kuning keemasan */
.gem-yellow { display: inline-block; filter: hue-rotate(205deg) saturate(1.35); }
.currency-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
@media (max-width: 640px) { .currency-duo { grid-template-columns: 1fr; } }
.currency-card { text-align: center; }
.roh-card { border: 2px solid rgba(31, 122, 224, .45); background: linear-gradient(160deg, rgba(31,122,224,.10), rgba(31,122,224,.02)); }
.spiritual-card { border: 2px solid rgba(184, 134, 11, .55); background: linear-gradient(160deg, rgba(184,134,11,.12), rgba(184,134,11,.03)); }
.curr-gem { font-size: 2.6rem; line-height: 1; }
.curr-num { font-size: 2.4rem; font-weight: 800; margin-top: .3rem; }
.roh-card .curr-num { color: var(--accent); }
.spiritual-card .curr-num { color: var(--gold); }
.curr-name { font-size: 1.05rem; font-weight: 700; margin: .2rem 0 .8rem; }
.roh-card .curr-name { color: var(--accent-dark); }
.spiritual-card .curr-name { color: var(--gold); }
.curr-note { font-size: .85rem; margin-top: 1rem; }
.roh-card .claim-card { margin: 0 0 .5rem; }
.stat-roh .stat-num { color: var(--accent); }
.stat-spiritual .stat-num { color: var(--gold); }

/* Tombol emas Batu Spiritual */
.btn-spiritual { background: var(--gold); }
.btn-spiritual:hover { background: #96690a; }
.btn-spiritual:disabled { background: #d6c08a; cursor: not-allowed; }

/* Pilihan mata uang saat buka chapter */
.unlock-choose { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1rem 0; }
@media (max-width: 480px) { .unlock-choose { grid-template-columns: 1fr; } }
.unlock-curr { margin-top: 0; padding: .9rem .6rem; font-size: 1rem; }
.unlock-curr .unlock-bal { display: block; font-size: .8rem; font-weight: 400; opacity: .9; margin-top: .25rem; }
.unlock-curr:disabled { background: #9db4cc; cursor: not-allowed; }
.unlock-curr[data-curr="spiritual"]:not(:disabled) { background: var(--gold); }
.unlock-curr[data-curr="spiritual"]:not(:disabled):hover { background: #96690a; }

/* ---------- Kartu Kultivator ---------- */
.cult-card { max-width: 640px; }
.cult-head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: .6rem; }
.cult-avatar { flex: none; }
.cult-id { flex: 1; min-width: 0; }
.cult-name { margin: 0 0 .3rem; font-size: 1.35rem; overflow-wrap: anywhere; }
.cult-role { margin: 0 0 .3rem; }
.cult-realm-line { margin: 0; }
.cult-like { flex: none; text-align: center; }
.cult-like-label { font-size: .75rem; }
.cult-energy { padding: .6rem .8rem; background: var(--gold-bg); border-radius: .6rem; margin-bottom: .8rem; }
.cult-section { border-top: 1px solid var(--line); padding: .7rem 0 .2rem; }
.cult-section h3 { margin: 0 0 .4rem; font-size: 1rem; }
.cult-section p { margin: .3rem 0; }
.cult-wallet { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.cult-stars { margin: .3rem 0 .5rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .4rem; }
.beast-chip, .pusaka-chip {
  display: inline-block; padding: .25rem .6rem; border-radius: 999px;
  background: var(--gold-bg); border: 1px solid var(--line); font-size: .85rem;
}
.pusaka-chip { background: #f3ecdc; }

/* ---------- Leaderboard ---------- */
.lb-card { max-width: 720px; padding: .4rem; }
.lb-row {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: .8rem .6rem; border-bottom: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--gold-bg); }
.lb-rank { flex: none; width: 2rem; text-align: center; font-size: 1.1rem; }
.lb-avatar { flex: none; }
.lb-id { flex: 1; min-width: 0; }
.lb-name { font-weight: 700; overflow-wrap: anywhere; }
.lb-realm { font-size: .85rem; margin: .15rem 0 .3rem; }
.lb-beasts { display: flex; flex-wrap: wrap; gap: .3rem; }
.lb-stars { flex: none; white-space: nowrap; }
/* Dinding Donatur Sekte */
.donor-wall { max-width: 720px; padding: .4rem; }
.donor-row {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  padding: .55rem .6rem; border-bottom: 1px solid var(--line);
}
.donor-row:last-child { border-bottom: none; }
.donor-name { font-weight: 600; overflow-wrap: anywhere; }
.donor-stones { flex: none; white-space: nowrap; font-size: .92rem; }
.donor-stones b { margin: 0 .45rem 0 .15rem; }
@media (max-width: 480px) {
  .cult-head { gap: .7rem; }
  .cult-name { font-size: 1.15rem; }
  .lb-row { gap: .6rem; padding: .7rem .4rem; }
}

/* 💚 Patungan Lempengan Giok */
.lj-bar {
  position: relative;
  height: 2.4rem;
  background: #241f12;
  border: 1px solid #6b5b2e;
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
}
.lj-bar:hover { border-color: #ffd700; }
.lj-fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, #8a6d1f, #ffd700);
  transition: width .5s ease;
}
.lj-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .92rem;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.85);
  white-space: nowrap;
}
.lj-donors { display: flex; flex-direction: column; gap: .35rem; max-height: 50vh; overflow-y: auto; }
.lj-donor {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .35rem .5rem;
  background: rgba(255,215,0,.06);
  border: 1px solid #6b5b2e;
  border-radius: .5rem;
}
.lj-rank {
  width: 1.6rem; height: 1.6rem; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem;
  background: #8a6d1f; color: #fff; border-radius: 50%;
}
.lj-name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.lj-amt { white-space: nowrap; }

/* Judul kartu Lempengan Giok */
.lj-channel {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  font-weight: 700; font-size: 1.05rem;
  margin: .1rem 0 .7rem;
}
.lj-yt {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.25rem;
  background: #f00; color: #fff;
  border-radius: .35rem; font-size: .7rem; padding-left: .12rem;
}
