/* Dramaloka — restyle Fase 2 ronde 2.
 * Sistem konsisten: token spacing/tipografi/radius, kartu + tombol +
 * header + tab bar + detail + pencarian + profil + panel admin yang
 * rapih seperti aplikasi beneran. Brand amber/emas gelap dipertahankan.
 * SEMUA class/id lama dipertahankan (logika JS + DOM tidak berubah).
 * Perbaikan dari screenshot: header & bottom nav SOLID (teks hantu
 * dari konten yang mengintip lewat latar 96-98% tembus pandang),
 * 5 tab atas muat penuh di 390px, meta kartu satu baris, scrim
 * backdrop detail lebih gelap (teks poster tidak menghantui judul). */
:root {
  /* Warna brand (dikunci): amber/emas di atas hitam. */
  --bg: #0a0a0a;
  --surface: #141414;
  --surface2: #1e1e1e;
  --surface3: #262626;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --faint: #7d7d7d;
  --amber: #f5b301;
  --amber-dark: #d99a00;
  --amber-soft: rgba(245, 179, 1, 0.14);
  --border: #262626;
  --border-strong: #333;
  --danger: #e5484d;
  --danger-soft: rgba(229, 72, 77, 0.12);
  --ok: #b8e6b8;
  --ok-soft: rgba(46, 160, 67, 0.12);
  /* Skala spacing (kelipatan 4). */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  /* Radius. */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;
  /* Tipografi. */
  --fs-title: 22px;
  --fs-h2: 18px;
  --fs-h3: 16px;
  --fs-body: 15px;
  --fs-small: 13px;
  --fs-tiny: 12px;
  --lh-tight: 1.3;
  --lh-body: 1.55;
}
* { box-sizing: border-box; }
/* Matikan kilau sentuh bawaan WebView/Android (v1.0.29): tanpa ini tiap ketuk
   menu menampilkan bayangan mengikuti bentuk tombol. */
* { -webkit-tap-highlight-color: transparent; }
/* Latar hidup (v1.0.25, dikuatkan v1.0.26): gradien gelap + glow amber di atas,
   menempel di viewport (fixed) supaya terasa hidup saat scroll. */
html { background: radial-gradient(140% 700px at 50% -40px, rgba(245,179,1,0.25), rgba(245,179,1,0.07) 45%, rgba(245,179,1,0) 70%), linear-gradient(#181818, #0d0d0d 35%, #080808); background-attachment: fixed; }
html, body { margin: 0; padding: 0; color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: var(--fs-body); line-height: var(--lh-body); }
body { background: transparent; }
a { color: inherit; }
button { font-family: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
#app { max-width: 1100px; margin: 0 auto; padding-bottom: 88px; }

/* Halus: tiap ganti tampilan muncul dengan fade naik sedikit. */
#main > div { animation: fadeIn .28s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Baris poster yang bisa digeser menyamping (seperti di artefak). */
.row { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: stretch; }
.row::-webkit-scrollbar { display: none; }
.row .card { flex: 0 0 150px; scroll-snap-align: start; }
/* Tinggi poster baris horizontal dikunci 225px (= 150px x 3/2) supaya
   bawah poster selalu sejajar walau aspect-ratio tidak jalan di WebView lama. */
.row .card img { height: 225px; }
.row .card-body h3 { font-size: var(--fs-small); }

/* Skeleton loading: kartu abu-abu berkilau selagi katalog dimuat. */
.skeleton { flex: 0 0 150px; aspect-ratio: 2 / 3; border-radius: var(--r-md); background: linear-gradient(100deg, #1a1a1a 40%, #2a2a2a 50%, #1a1a1a 60%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.grid .skeleton { flex: none; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Header — SOLID (Fase 2): latar tembus pandang lama membiarkan teks
   konten mengintip dari balik header/bottom nav ("teks hantu"). */
header.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 10px var(--sp-4) var(--sp-2);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { margin: 0; font-size: var(--fs-title); letter-spacing: -0.3px; line-height: 1.2; flex: 0 0 auto; }
.brand h1 span { color: var(--amber); }
.search-row { display: flex; gap: var(--sp-2); margin-top: 10px; }
.search-row input {
  flex: 1; background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 10px 14px; font-size: var(--fs-body); outline: none;
}
.search-row input:focus { border-color: var(--amber); }
.icon-btn {
  background: var(--surface2); color: var(--text);
  border: 1px solid var(--border); border-radius: 50%;
  width: 40px; height: 40px; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}
.icon-btn svg { display: block; }
.icon-btn.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Status refresh: satu baris, terpotong rapi — tidak pernah mendorong
   ikon atau menumpuk di atas judul. */
.refresh-status { margin-left: auto; color: var(--muted); font-size: var(--fs-small); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Tab atas: muat berlima di 390px (padding + font dikecilkan, gap rapat)
   supaya tidak ada tab terpotong setengah huruf di tepi kanan. */
nav.tabs {
  display: flex; gap: var(--sp-1); margin-top: 10px;
  overflow-x: auto; scrollbar-width: none;
}
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs button {
  flex: 0 0 auto; background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: var(--r-pill);
  padding: 7px 8px; font-size: 12.5px; line-height: 1.3; cursor: pointer; white-space: nowrap;
}
nav.tabs button.active { background: var(--amber); color: #111; font-weight: 700; }

/* Hero: gambar penuh lebar tanpa bingkai, seperti di artefak. */
.hero { margin: 0; overflow: hidden; background: var(--surface); position: relative; min-height: 360px; border: none; border-radius: 0; }
.hero img { width: 100%; height: 400px; object-fit: cover; display: block; animation: kenburns 16s ease-in-out infinite alternate; }
/* Zoom (Ken Burns) supaya hero terasa hidup; transform saja = murah di GPU.
   v1.0.26: lebih cepat + lebih nge-zoom dari v1.0.25 supaya geraknya kelihatan. */
@keyframes kenburns { from { transform: scale(1) translateY(0); } to { transform: scale(1.15) translateY(-12px); } }
/* Ken Burns hemat (v1.0.27): dijeda JS saat gambar tidak kelihatan di layar
   atau pemutar dibuka. Dijeda di tempat, lanjut dari titik yang sama. */
.kb-paused { animation-play-state: paused !important; }
.hero-anim img { animation: heroFade .5s ease, kenburns 16s ease-in-out infinite alternate; }
.hero-anim .hero-body { animation: heroFade .5s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--sp-5) var(--sp-4); background: linear-gradient(transparent, rgba(0,0,0,0.92)); }
.hero-body h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.15; text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.hero-body p { margin: 0 0 var(--sp-3); color: #ddd; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.hero-dots { display: flex; gap: 6px; margin-top: var(--sp-3); }
.hero-dots span { width: 12px; height: 12px; border-radius: var(--r-pill); background: #444; cursor: pointer; transition: width .2s ease, background .2s ease; }
.hero-dots span.active { width: 28px; background: var(--amber); }

/* Sections & grid — padding sisi 16px (dulu 24px: terlalu sempit di HP). */
section { padding: 0 var(--sp-4); margin-top: var(--sp-5); }
section h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); margin: 0 0 var(--sp-3); display: flex; align-items: center; gap: var(--sp-2); }
section h2::before { content: ''; flex: 0 0 auto; width: 5px; height: 20px; border-radius: 2px; background: var(--amber); box-shadow: 0 0 10px rgba(245,179,1,0.55); }

/* Kepala seksi beranda: judul di kiri, "Lihat Semua" di kanan. */
.section-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.section-head h2 { margin: 0; }
.see-all { background: none; border: none; color: var(--amber); font-weight: 700; font-size: 14px; cursor: pointer; padding: 4px 0 4px var(--sp-2); white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); align-items: stretch; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(5, 1fr); } }
/* Kartu adalah <button>: isinya ketengah sendiri kalau kartu dipaksa lebih
   tinggi oleh stretch (baris campuran, mis. Sedang Tayang) sehingga poster
   turun ~10px dari atas bingkai. Flex kolom menempelkan isi ke atas. */
.card { display: flex; flex-direction: column; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; cursor: pointer; text-align: left; padding: 0; color: var(--text); transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.card:active { transform: scale(.96); border-color: var(--amber); }
/* Badge kualitas video: pil gelap dengan teks HD amber di pojok kanan atas poster, seperti di artefak. */
.hd-badge { display: inline-block; background: rgba(0,0,0,0.65); color: var(--amber); font-weight: 700; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 6px; letter-spacing: 0.4px; vertical-align: middle; }
.card .hd-badge { position: absolute; top: var(--sp-2); right: var(--sp-2); left: auto; z-index: 2; }
.card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; display: block; background: #222; }
.card-body { padding: 10px 10px var(--sp-3); }
/* Judul selalu setinggi 2 baris supaya tanggal di bawahnya sejajar di semua kartu,
   judul 1 baris tidak bikin kartunya lebih pendek. */
.card-body h3 { margin: 0; font-size: var(--fs-small); line-height: 1.35; min-height: 2.7em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Meta kartu SATU baris (Fase 2): "2023-12-06 · HD" dulu membungkus dan
   "HD" jatuh sendirian ke baris kedua, bikin kartu tidak rata. */
.card-body p { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-tiny); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-row { display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; background: var(--surface2); border: 1px solid var(--border); color: var(--text); border-radius: var(--r-pill); padding: 9px 16px; font-size: 14px; cursor: pointer; transition: transform .12s ease; }
.chip:active { transform: scale(.96); }
.chip.active { background: var(--amber); color: #111; border-color: var(--amber); font-weight: 700; box-shadow: 0 0 20px rgba(245,179,1,0.5); }

/* Buttons — satu sistem: primer amber, sekunder gelap, ghost, danger. */
.btn { background: var(--amber); color: #111; border: none; border-radius: var(--r-pill); padding: 11px 18px; font-weight: 700; font-size: 14px; line-height: 1.3; cursor: pointer; transition: transform .12s ease, opacity .12s ease; }
.btn:active { transform: scale(.97); }
.btn.secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn:disabled { opacity: 0.5; cursor: default; }

/* Detail — padding-top 42px = tinggi tombol back yang dihapus v1.0.21.
   Padding ini JUGA menahan margin-top 150px .detail-head supaya tidak
   collapse keluar .detail (bug v1.0.21: margin jatuh ke atas, .detail +
   backdrop ikut turun 150px, muncul ruang hitam di atas). */
.detail { padding: 42px var(--sp-4) var(--sp-4); position: relative; overflow: hidden; }
/* Backdrop (restore v1.0.42): NORMAL — tanpa blur, tanpa digelapkan,
   tanpa mask fade; keterbacaan judul/meta dijaga scrim gradien
   ::after di bawah (transparent 35% -> var(--bg) 96%), bukan
   text-shadow/chip. Animasi kenburns tetap (sudah ada di v1.0.42). */
.detail-backdrop { position: absolute; top: 0; left: 0; right: 0; height: 320px; background-size: cover; background-position: center 20%; opacity: 1; filter: none; -webkit-mask-image: none; mask-image: none; pointer-events: none; animation: kenburns 20s ease-in-out infinite alternate; }
.detail-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, var(--bg) 96%); }
.detail > :not(.detail-backdrop) { position: relative; }
.back-circle { position: absolute; top: var(--sp-4); left: var(--sp-4); z-index: 3; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.55); color: #fff; border: none; font-size: 20px; cursor: pointer; }
.detail-head { margin-top: 150px; }
.detail-actions { display: flex; gap: 10px; margin-top: var(--sp-4); }
.detail-actions .btn { flex: 1; padding: 13px 10px; font-size: var(--fs-body); }
.btn-dark { background: var(--surface2); color: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); padding: 13px 18px; font-weight: 700; font-size: var(--fs-body); cursor: pointer; flex: 0 0 auto; transition: transform .12s ease; }
.btn-dark:active { transform: scale(.97); }
.genre-pill { display: inline-block; background: var(--surface2); border: 1px solid var(--border); color: #eee; border-radius: var(--r-pill); padding: 7px 14px; font-size: var(--fs-small); margin: 0 6px 6px 0; }
.detail .meta-line { color: var(--muted); font-size: 14px; margin-top: 6px; }
.detail .info-line { margin: var(--sp-2) 0 0; font-size: 14px; line-height: 1.5; color: #ccc; }
.detail .info-line b { color: var(--text); }

/* Baris episode ala artefak: kartu gelap, tombol putar lingkaran amber, Download di kanan. */
.ep-row { display: flex; align-items: center; gap: 14px; background: #161616; border: 1px solid #222; border-radius: 14px; padding: var(--sp-3) 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s ease; }
.ep-row:active { border-color: var(--amber); }
.ep-row.last-watched { border-color: var(--amber); }
.ep-mark { display: block; font-size: var(--fs-tiny); font-weight: 400; color: var(--amber); margin-top: 2px; }
/* Bar progres tipis di bawah poster kartu Lanjutkan Menonton. */
.continue-progress { display: block; position: relative; height: 4px; margin-top: -4px; background: rgba(255,255,255,.45); z-index: 2; }
.continue-progress span { display: block; height: 100%; background: var(--amber); }
/* Bingkai emas untuk kartu Lanjutkan Menonton. */
#continueGrid .card { border-color: var(--amber); }
/* Modal konfirmasi download. */
.confirm-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 80; display: none; align-items: center; justify-content: center; padding: var(--sp-6); }
.confirm-modal.open { display: flex; }
.confirm-card { background: #161616; border: 1px solid var(--amber); border-radius: var(--r-lg); padding: var(--sp-5); width: 100%; max-width: 340px; }
.confirm-card h3 { margin: 0 0 var(--sp-2); font-size: 17px; }
.confirm-card p { margin: 0 0 var(--sp-4); color: var(--muted); font-size: 14px; line-height: 1.5; }
.confirm-actions { display: flex; gap: 10px; }
.confirm-actions .btn, .confirm-actions .btn-dark { flex: 1; }
.ep-play { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; background: var(--amber); background-size: cover; background-position: center; color: #111; border: none; font-size: 24px; cursor: pointer; }
.ep-title { flex: 1; min-width: 0; font-weight: 600; font-size: var(--fs-body); }
.ep-download { background: #222; color: #fff; border: none; border-radius: var(--r-pill); padding: 9px 16px; font-weight: 600; font-size: var(--fs-small); cursor: pointer; flex: 0 0 auto; }

/* Pemeran: foto lingkaran dengan nama di bawah. */
.cast-row { display: flex; gap: var(--sp-4); overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.cast-row::-webkit-scrollbar { display: none; }
.cast-item { flex: 0 0 76px; text-align: center; }
.cast-item img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #222; }
.cast-item p { font-size: var(--fs-tiny); color: var(--muted); margin: 6px 0 0; line-height: 1.3; }
.cast-item .cast-initials { width: 72px; height: 72px; border-radius: 50%; background: var(--surface3); color: var(--amber); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto; letter-spacing: .5px; }
.cast-item img + .cast-initials { display: none; }

/* Judul Terkait: grid 3 kolom, 6 baris ke bawah (18 judul). */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }

/* Badge episode di kartu Lanjutkan Menonton + tombol hapus di pojok poster. */
.ep-badge { position: absolute; top: var(--sp-2); left: var(--sp-2); z-index: 2; background: rgba(0,0,0,0.65); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.continue-x { position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* Input pencarian di halaman pencarian. */
.search-input { width: 100%; background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 13px var(--sp-4); font-size: var(--fs-body); outline: none; }
.search-input:focus { border-color: var(--amber); }
.detail-head { display: flex; gap: var(--sp-4); }
.detail-head img { width: 140px; flex: 0 0 auto; border-radius: var(--r-md); aspect-ratio: 2/3; object-fit: cover; }
.detail-head h2 { margin: 0 0 var(--sp-2); font-size: 20px; }
.meta { color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.detail p.desc { color: #ddd; font-size: 14px; line-height: 1.6; }
.episode-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.episode-list button { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; cursor: pointer; }
.episode-list button.watched { border-color: var(--amber); color: var(--amber); }

/* Player modal */
.modal { position: fixed; inset: 0; background: #000; z-index: 50; display: none; flex-direction: column; overflow: hidden; }
.modal.open { display: flex; }
/* Area bawah pemutar (server, tombol, daftar episode) yang bisa di-scroll;
   video + judul tetap di atas. overscroll-behavior menahan scroll supaya
   halaman di belakang modal tidak ikut bergerak. */
.player-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* Pemutar custom: video + kontrol buatan sendiri di dalam stage.
   Stage yang di-fullscreen (bukan video saja) supaya kontrol custom
   tetap terlihat saat fullscreen, dan orientasi dikunci landscape. */
.player-stage { position: relative; width: 100%; background: #000; touch-action: pan-y; }
.player-stage video { width: 100%; aspect-ratio: 16 / 9; min-height: 220px; max-height: 62vh; background: #000; display: block; object-fit: contain; touch-action: pan-y; }
.player-stage:fullscreen, .player-stage:-webkit-full-screen { background: #000; }
.player-stage:fullscreen video, .player-stage:-webkit-full-screen video { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; }
.player-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-start; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 25%, transparent 60%, rgba(0,0,0,.65)); opacity: 1; transition: opacity .25s; z-index: 2; }
.player-stage.controls-hidden .player-overlay { opacity: 0; pointer-events: none; }
.player-top { display: none; align-items: center; gap: var(--sp-3); padding: 14px var(--sp-4); }
.player-stage:fullscreen .player-top, .player-stage:-webkit-full-screen .player-top { display: flex; }
.player-top-titles h3 { margin: 0; font-size: var(--fs-h3); }
.player-top-titles p { margin: 2px 0 0; color: #ccc; font-size: var(--fs-small); }
.player-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; border: none; background: rgba(0,0,0,.55); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: none; align-items: center; justify-content: center; padding-left: 4px; }
.player-center.show { display: flex; }
.player-spinner { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: var(--amber); animation: player-spin 0.8s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
.player-seek-ind { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.65); color: #fff; padding: 8px 12px; border-radius: var(--r-pill); font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.player-seek-ind.left { left: var(--sp-4); }
.player-seek-ind.right { right: var(--sp-4); }
.player-seek-ind.show { opacity: 1; }
/* Indikator geser video ala MX Player: waktu target besar + delta [+-00:00]. */
.player-swipe-ind { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.player-swipe-ind .swipe-time { font-size: 30px; font-weight: 700; line-height: 1.2; }
.player-swipe-ind .swipe-delta { font-size: var(--fs-h3); line-height: 1.4; }
.player-bottom { display: flex; align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); margin-top: auto; }
.player-icon-btn { background: transparent; border: none; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex: none; }
.player-icon-btn.small { font-size: 18px; width: 36px; height: 36px; }
.player-icon-btn svg { display: block; }
.player-time { color: #fff; font-size: var(--fs-small); font-variant-numeric: tabular-nums; flex: none; }
.player-seek-wrap { position: relative; flex: 1; display: flex; align-items: center; touch-action: none; }
.player-seek-wrap input[type="range"] { width: 100%; -webkit-appearance: none; appearance: none; height: 22px; background: transparent; cursor: pointer; margin: 0; touch-action: none; }
.player-seek-wrap input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.player-seek-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--amber); margin-top: -6px; }
.player-seek-wrap input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.player-seek-wrap input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: none; border-radius: 50%; background: var(--amber); }
.player-seek-bubble { position: absolute; bottom: 30px; transform: translateX(-50%); background: rgba(0,0,0,.8); color: #fff; font-size: var(--fs-tiny); padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); }
.modal-head h3 { margin: 0; font-size: var(--fs-h3); }
.modal-head p { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-small); }
.load-more-wrap { text-align: center; padding: var(--sp-5) var(--sp-4) var(--sp-2); }
.load-more-wrap .btn { width: 100%; max-width: 340px; }
.player-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
.player-episodes { padding: 0 var(--sp-4) var(--sp-3); }
.player-episodes h4 { margin: var(--sp-2) 0; font-size: 14px; }
.player-episodes .episode-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.player-episodes .episode-list button { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; cursor: pointer; }
.player-episodes .episode-list button.active { background: var(--amber); color: #111; border-color: var(--amber); font-weight: 700; }
.player-episodes .next-row { margin-top: 10px; }
.player-note { padding: 0 var(--sp-4) var(--sp-4); color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.server-status { padding: 0 var(--sp-4); font-size: var(--fs-small); color: var(--muted); }

/* Bottom nav — SOLID (Fase 2): latar 98% tembus pandang lama membiarkan
   teks konten mengintip dari balik nav ("teks hantu"). */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--bg); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; padding: var(--sp-2) 2px calc(var(--sp-2) + env(safe-area-inset-bottom));
}
.bottom-nav button { background: transparent; border: none; color: var(--muted); font-size: 11.5px; line-height: 1.3; padding: 6px 4px; cursor: pointer; flex: 1 1 0; min-width: 0; white-space: nowrap; }
.bottom-nav button.active { color: var(--amber); font-weight: 700; }
/* v1.0.29: tanpa latar/garis fokus yang tertinggal sesudah ketuk menu. */
.bottom-nav button:focus, .bottom-nav button:active { background: transparent; outline: none; }

/* States */
.empty, .error-box { text-align: center; color: var(--muted); padding: 28px var(--sp-3); line-height: 1.6; }
.error-box { color: #ffb4b8; }
.hidden { display: none !important; }
footer { padding: var(--sp-5) var(--sp-4); color: var(--muted); font-size: var(--fs-small); line-height: 1.6; border-top: 1px solid var(--border); margin-top: 28px; }

/* Baru Rilis (v1.0.17): badge BARU isi amber di pojok kiri atas kartu,
   hitungan "x hari lalu" di bawah judul dengan warna amber. */
.baru-badge { display: inline-block; background: var(--amber); color: #111; font-weight: 700; font-size: 11px; line-height: 1; padding: 4px 7px; border-radius: 6px; letter-spacing: 0.4px; vertical-align: middle; }
.card .baru-badge { position: absolute; top: var(--sp-2); left: var(--sp-2); z-index: 2; }
.card-body p .rel-time { color: var(--amber); font-weight: 700; }

/* Badge status di detail: TAMAT (isi amber) / ONGOING (outline amber). */
.status-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; letter-spacing: 0.4px; }
.status-badge.tamat { background: var(--amber); color: #111; }
.status-badge.ongoing { background: transparent; border: 1px solid var(--amber); color: var(--amber); }

/* Episode Baru (v1.0.17): daftar baris vertikal — poster kecil di kiri,
   judul + nomor episode di tengah, pil BARU di kanan. Ditekan langsung
   memutar episode itu. */
.ep-new-list { display: flex; flex-direction: column; gap: 10px; }
.ep-new-row { display: flex; align-items: center; gap: var(--sp-3); width: 100%; background: #161616; border: 1px solid #222; border-radius: 14px; padding: 10px var(--sp-3); cursor: pointer; text-align: left; color: var(--text); }
.ep-new-row:active { border-color: var(--amber); }
.ep-new-row img { width: 56px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--r-sm); background: #222; flex: 0 0 auto; }
.ep-new-info { flex: 1; min-width: 0; }
.ep-new-info b { display: block; font-size: var(--fs-body); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-new-info span { display: block; color: var(--amber); font-size: var(--fs-small); font-weight: 700; margin-top: 3px; }
.ep-new-pill { flex: 0 0 auto; background: transparent; border: 1px solid var(--amber); color: var(--amber); font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: var(--r-pill); letter-spacing: 0.4px; }

/* Layar login (v1.0.31): overlay penuh di atas aplikasi, dark + amber. */
#authView { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: 32px var(--sp-5) calc(32px + env(safe-area-inset-bottom)); }
#authView.hidden { display: none !important; }
.auth-card { width: 100%; max-width: 380px; text-align: center; animation: fadeIn .28s ease; }
.auth-mascot { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 2px solid var(--amber); box-shadow: 0 0 24px rgba(245,179,1,.35); }
.auth-mascot.small { width: 84px; height: 84px; }
.auth-card h1 { margin: var(--sp-4) 0 6px; font-size: 26px; }
.auth-card h1 span { color: var(--amber); }
.auth-sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 var(--sp-4); text-align: center; }
.auth-label { display: block; text-align: left; font-size: var(--fs-small); font-weight: 700; color: var(--muted); margin: var(--sp-3) 0 6px; }
.auth-input { width: 100%; background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; font-size: var(--fs-body); outline: none; }
.auth-input:focus { border-color: var(--amber); }
.auth-btn { width: 100%; margin-top: 18px; padding: 13px 16px; font-size: var(--fs-body); }
.auth-btn:disabled { opacity: .5; cursor: default; }
.auth-link { background: none; border: none; color: var(--amber); font-size: 14px; cursor: pointer; padding: 6px; }
.auth-link.strong { font-weight: 700; }
#vipClaimNoProofBtn, #tokenClaimNoProofBtn { display: block; width: 100%; margin-top: 18px; padding: 13px 16px; font-size: var(--fs-body); font-weight: 700; background: var(--surface2); color: var(--amber); border: 1px solid var(--amber); border-radius: var(--r-pill); cursor: pointer; }
#vipClaimNoProofBtn:disabled, #tokenClaimNoProofBtn:disabled { opacity: .5; cursor: default; }
.auth-switch { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.auth-divider { display: flex; align-items: center; gap: var(--sp-3); color: var(--muted); font-size: var(--fs-small); margin: 18px 0 4px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-error { color: #ffb4b8; font-size: 14px; line-height: 1.5; margin: 0; text-align: left; }
.auth-error:not(:empty) { margin: 0 0 4px; background: var(--danger-soft); border: 1px solid rgba(229,72,77,.4); border-radius: 10px; padding: 10px 12px; }
.recovery-box { background: var(--surface); border: 1px solid var(--amber); border-radius: var(--r-lg); padding: 18px var(--sp-4); margin: var(--sp-4) 0; }
.recovery-label { display: block; color: var(--amber); font-size: var(--fs-tiny); font-weight: 700; letter-spacing: 1.5px; margin-bottom: 10px; }
.recovery-code { display: block; font-size: 24px; font-weight: 700; letter-spacing: 2px; word-break: break-all; margin-bottom: 14px; }
.auth-check { display: flex; align-items: flex-start; gap: 10px; text-align: left; font-size: 14px; line-height: 1.5; margin: var(--sp-4) 0 0; cursor: pointer; }
.auth-check input { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; accent-color: var(--amber); }
.mylist-foot { text-align: center; padding: var(--sp-5) 0 var(--sp-2); }

/* Profil + Admin (v1.0.33): dark + amber, mengikuti gaya kartu login. */
.profile-btn span { font-weight: 700; font-size: 17px; color: var(--amber); }
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-4); text-align: center; margin-bottom: var(--sp-4); }
.profile-avatar { width: 72px; height: 72px; margin: 0 auto var(--sp-3); border-radius: 50%; background: var(--surface2); border: 2px solid var(--amber); color: var(--amber); font-size: 32px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
/* Pemilih avatar (round 3, v1.0.38): grid 8 preset — 2 maskot + 6 warna. */
.avatar-grid { display: grid; grid-template-columns: repeat(4, 56px); gap: 10px; margin-top: var(--sp-3); }
.avatar-option { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--border); padding: 0; cursor: pointer; overflow: hidden; }
.avatar-option img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-option.selected { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(245,179,1,.35); }
.profile-email { font-size: var(--fs-h3); font-weight: 700; word-break: break-all; margin-bottom: 10px; }
.profile-email-sub { font-size: 14px; opacity: 0.75; word-break: break-all; }
.role-badge { display: inline-block; background: var(--surface2); border: 1px solid var(--border); color: var(--muted); font-size: var(--fs-tiny); font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); letter-spacing: 0.4px; }
.role-badge.admin { background: var(--danger); border-color: var(--danger); color: #fff; }
/* Pendiri: bintang emas (amber branding #f5b301), jelas berbeda dari tag
   ADMIN merah; selalu tampil BERSAMA tag ADMIN, bukan menggantikannya. */
.role-badge.founder { background: var(--amber); border-color: var(--amber); color: #111; margin-left: 6px; }
/* VIP (v1.0.45, M4): pill emas (amber branding #f5b301), sejelas badge
   ADMIN merah / Pendiri kuning; struktur pill yang sama, bukan tulisan
   tipis. Dipakai di Profil (#profileVipBadge) dan Daftar Akun. */
.role-badge.vip { background: var(--amber); border-color: var(--amber); color: #111; margin-left: 6px; }
/* F2 — pill "Pengguna" putih tebal (bukan abu-abu). :not(.admin) supaya
   merah-ADMIN / emas-Pendiri tidak ikut berubah: elemen admin/pendiri
   membawa class .admin sehingga selektor ini tidak cocok. */
#profileRoleBadge:not(.admin) { color: var(--text); }
/* F3 — pill VIP satu baris dengan badge peran (bukan blok di bawah). */
#profileVipRow:not(.hidden) { display: inline-block; margin: 6px 0 0 6px; }
#profileVipRow .role-badge.vip { margin-left: 0; }
.profile-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.profile-block h3 { margin: 0 0 4px; font-size: var(--fs-h3); }
.profile-block .btn { margin-top: var(--sp-3); }
.profile-note { color: var(--muted); font-size: 14px; line-height: 1.6; margin: var(--sp-2) 0; }
.profile-msg { font-size: 14px; line-height: 1.5; margin: 0; text-align: left; }
.profile-msg.error:not(:empty) { margin: 10px 0 4px; color: #ffb4b8; background: var(--danger-soft); border: 1px solid rgba(229,72,77,.4); border-radius: 10px; padding: 10px 12px; }
.profile-msg.ok:not(:empty) { margin: 10px 0 4px; color: var(--ok); background: var(--ok-soft); border: 1px solid rgba(46,160,67,.4); border-radius: 10px; padding: 10px 12px; }
.profile-stats { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 4px; }
.profile-stats b { color: var(--text); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.small { padding: 8px 12px; font-size: var(--fs-small); }
.danger-zone { border-color: rgba(229,72,77,.45); }
#deleteAccountStep1, #deleteAccountStep2 { margin-top: var(--sp-3); }
#deleteAccountStep1 .confirm-actions, #deleteAccountStep2 .confirm-actions { margin-top: var(--sp-3); }
/* Kartu VIP Profil (Fase 2): baris paket jadi baris rapi — label kiri,
   harga kanan — bukan teks mengalir. */
#vipCardBody .profile-note { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); margin: 6px 0; }
#vipCardBody .profile-note b { color: var(--text); white-space: nowrap; }
#tokenCardBody .profile-note { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); margin: 6px 0; }
#tokenCardBody .profile-note b { color: var(--text); white-space: nowrap; }
#tokenCardBody .profile-note .hook { color: var(--text); }
#tokenCardBody .profile-note s { color: var(--muted); }
.pkg-btn { margin-bottom: 8px; }
.token-package-btn { text-align: center; }
.custom-label { display: block; color: var(--muted); font-size: 13px; margin: 14px 0 6px; }
.custom-row { display: flex; gap: 10px; align-items: center; }
.custom-row .auth-input { flex: 1; min-width: 0; }
.custom-total { font-size: 15px; font-weight: 700; white-space: nowrap; }
.custom-total s { color: var(--muted); font-weight: 400; }
/* Seksi Telegram Profil (Fase 2): dulu heading + teks + tombol telanjang
   di atas latar; sekarang kartu seperti blok Profil lain. */
#telegramSection { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-4); }
#telegramSection h2 { margin: 0 0 4px; }
#telegramSection h2::before { display: none; }
#telegramSection .btn { margin-top: var(--sp-3); }
.admin-user-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; }
.admin-user-info { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.admin-user-email { font-weight: 700; font-size: 14px; overflow-wrap: break-word; }
/* Lencana centang biru terverifikasi (round 3.2): hanya baris Pendiri,
   tepat setelah nama. Biru verifikasi Facebook #1877F2, 16px selaras
   tinggi huruf nama; inline di dalam span nama supaya ikut membungkus. */
.verified-badge { display: inline-block; width: 16px; height: 16px; margin-left: 4px; vertical-align: -3px; }
/* Identitas baris Kelola Akun (round 3): email di atas, @username di bawah. */
.admin-user-id { display: flex; flex-direction: column; min-width: 0; }
.admin-user-tg { display: block; font-size: var(--fs-small); color: var(--muted); word-break: break-all; }
.admin-self-note { color: var(--muted); font-size: var(--fs-tiny); font-style: italic; }
.admin-user-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-top: 10px; }
.admin-user-actions .btn { margin-top: 0; }
/* Tombol terkunci (baris sendiri / baris admin & Pendiri untuk admin
   biasa): jauh lebih pudar dari tombol aktif supaya jelas tidak bisa
   diklik — round 3.1. */
.admin-user-actions .btn:disabled { opacity: .35; cursor: not-allowed; }
/* Badge akun diblokir (suspend): garis merah, bukan tag peran. */
.role-badge.suspended { background: transparent; border-color: rgba(229,72,77,.6); color: #ffb4b8; margin-left: 6px; }
/* Baris meta akun: tanggal daftar · terakhir aktif · request hari ini. */
.admin-user-meta { color: var(--muted); font-size: var(--fs-tiny); line-height: 1.5; margin-top: 6px; }
#adminResetBox { margin: var(--sp-3) 0; }
#adminResetBox .profile-note { text-align: left; }
/* Daftar Akun: kolom rapi — kolom cari + tombol urut sebaris di atas,
   daftar + tombol "lebih banyak" di bawah. */
#adminUsersSection { display: flex; flex-direction: column; gap: 10px; }
#adminUsersSection .admin-user-row { margin-top: 0; }
#adminUsersList:empty { display: none; }
#adminSearchInput { margin-bottom: 0; }

/* Bar pengumuman Beranda (round 3, item 7): di bawah slider hero, di atas
   Genre. Hanya tampil bila ada pengumuman aktif; bila tidak ada,
   .hidden menutupnya total tanpa sisa ruang. Ikon mikrofon aksen di
   kiri; teks berjalan kanan -> kiri berulang (marquee CSS). */
.announce-bar { display: flex; align-items: center; gap: 10px; margin: var(--sp-3) var(--sp-4) 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: var(--r-md); color: var(--text); overflow: hidden; }
.announce-icon { flex: 0 0 auto; display: flex; align-items: center; color: var(--amber); }
.announce-icon svg { display: block; }
.announce-track { flex: 1; min-width: 0; overflow: hidden; }
.announce-text { display: inline-block; white-space: nowrap; font-size: 14px; line-height: 1.4; animation: announceScroll 20s linear infinite; will-change: transform; }
@keyframes announceScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Lapisan pengumuman Pendiri (pola .confirm-modal): catatan + hitungan. */
.announce-note { margin: 0 0 4px; color: var(--muted); font-size: var(--fs-small); line-height: 1.5; }
.announce-count { margin: 6px 0 0; color: var(--muted); font-size: var(--fs-tiny); text-align: right; }
.confirm-card textarea.auth-input { border-radius: var(--r-md); resize: vertical; min-height: 76px; }
/* Baris Berhenti tayang + Batal di lapisan pengumuman: label panjang
   tetap satu baris (tanpa mengubah tombol .confirm-actions lain). */
.announce-actions .btn, .announce-actions .btn-dark { flex: 1 1 0; min-width: 0; white-space: nowrap; font-size: 14px; padding-left: 8px; padding-right: 8px; }

/* ---- VIP v1.0.43 ---- */
/* Tombol avatar header: gambar hewan (bukan huruf awal email). */
.profile-btn { padding: 0; overflow: hidden; }
.profile-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Banner VIP/jatah/klaim: bar bertumpuk DI ATAS hero (konten bergeser ke
   bawah, bukan overlay). Tiap banner punya tombol X di ujung kanan. */
#vipBanners { padding: 0 var(--sp-4); }
#vipBanners:empty { display: none; }
.vip-banner { display: flex; align-items: center; gap: 10px; margin-top: var(--sp-3); padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--amber); border-radius: var(--r-md); color: var(--text); }
.vip-banner-text { flex: 1; font-size: 14px; line-height: 1.5; }
.vip-banner .btn { flex: 0 0 auto; }
.vip-banner-x { flex: 0 0 auto; background: transparent; border: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; }
/* Layar jatah habis + alur bayar VIP: overlay penuh seperti #authView. */
#quotaView, #vipPayView, #tokenPayView { position: fixed; inset: 0; z-index: 100; background: var(--bg); overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: 32px var(--sp-5) calc(32px + env(safe-area-inset-bottom)); }
#quotaView.hidden, #vipPayView.hidden, #tokenPayView.hidden { display: none !important; }
#quotaView .auth-card, #vipPayView .auth-card, #tokenPayView .auth-card { position: relative; }
.token-use{color:#ff4d4d;font-weight:800;font-size:15px;margin:8px 0;line-height:1.4}
.quota-x { position: fixed; top: var(--sp-4); right: var(--sp-4); z-index: 101; background: var(--surface2); font-size: 24px; }
.vip-pay-x { position: absolute; top: -8px; right: -8px; background: var(--surface2); font-size: 22px; }
.vip-package-btn { text-align: center; }
.qris-img { width: 100%; max-width: 280px; display: block; margin: var(--sp-3) auto; border-radius: var(--r-md); background: #fff; padding: 8px; }
.claim-shot-img { width: 100%; max-width: 280px; display: block; margin-top: 10px; border-radius: var(--r-md); }
.vip-days-select { background: var(--surface2); color: var(--text); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 8px 10px; font-size: var(--fs-small); }
/* Seksi VIP di Kelola Akun: satu seksi per fitur, berurutan ke bawah. */
.admin-vip-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-4); }
.admin-vip-section h3 { margin: 0 0 4px; font-size: var(--fs-h3); }
.admin-vip-section .btn { margin-top: var(--sp-3); }
.admin-vip-section .admin-user-row { margin-top: 10px; }

/* Accordion Kelola Akun (Fase 1 ronde 2, Butir 1) — chrome berbasis
   class, tanpa inline style, supaya Fase 2 mudah me-restyling.
   .admin-acc = kartu lipatan; header = tombol; .open = terbuka. */
.admin-acc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: var(--sp-4); overflow: hidden; }
.admin-acc-header { display: flex; align-items: center; gap: 10px; width: 100%; padding: 15px var(--sp-4); background: none; border: 0; color: var(--text); font: inherit; font-size: var(--fs-body); font-weight: 700; text-align: left; cursor: pointer; }
.admin-acc-header:focus-visible { outline: 2px solid var(--amber); outline-offset: -2px; }
.admin-acc-title { flex: 1; min-width: 0; }
.admin-acc-badge { background: var(--amber); border: 1px solid var(--amber); color: #111; font-size: var(--fs-tiny); font-weight: 700; line-height: 1; padding: 4px 9px; border-radius: var(--r-pill); flex: 0 0 auto; }
.admin-acc-chev { flex: none; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s ease; margin-right: 2px; }
.admin-acc.open .admin-acc-chev { transform: rotate(225deg); }
.admin-acc-body { display: none; padding: 0 var(--sp-4) var(--sp-4); }
.admin-acc.open .admin-acc-body { display: block; }
.admin-acc-body .btn { margin-top: var(--sp-3); }
.admin-acc-body .admin-user-row { margin-top: 10px; }
.admin-acc-body .profile-stats { margin: 0; }
/* Panel Log Aktivitas (hanya Pendiri, 29 Nov 2026): daftar scroll di
   dalam, max 60vh seperti panel Kelola Akun lain. */
.activity-log-list { max-height: 60vh; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r-md); padding: 4px 12px; margin-top: 10px; }
.activity-log-row { padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; line-height: 1.5; }
.activity-log-row:last-child { border-bottom: none; }
.activity-log-time { color: var(--muted); font-size: 13px; }
/* Isi lipatan klaim: baris klaim + kontrolnya sejajar rapi. */
.admin-acc-body .claim-shot-img { margin-top: var(--sp-3); }

/* Pengelola tier VIP (Ronde 5 item 8, klarifikasi 06:09): baris tier,
   kolom harga yang jelas bisa diedit (border tegas + latar beda + "Rp"),
   preview harga sesudah diskon, tombol hapus terpisah. */
.vip-tier-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.vip-tier-fields { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; flex: 1; min-width: 0; }
.vip-tier-days { width: 90px; display: block; margin-top: 6px; }
.vip-price-wrap { display: flex; align-items: center; background: var(--surface2); border: 2px solid var(--amber); border-radius: var(--r-md); overflow: hidden; margin-top: 6px; }
.vip-price-cur { padding: 0 2px 0 12px; font-weight: 700; color: var(--amber); white-space: nowrap; }
.vip-price-wrap .auth-input { flex: 1; min-width: 0; width: 130px; border: 0; background: transparent; padding: 12px 12px 12px 6px; }
.vip-price-wrap:focus-within { outline: 2px solid var(--amber); outline-offset: 2px; }
.vip-tier-disc { font-size: var(--fs-small); color: var(--muted); flex: 1 1 100%; margin-top: 8px; align-self: flex-start; white-space: nowrap; }
.vip-tier-disc b { color: var(--text); }
.vip-tier-del { flex-shrink: 0; margin-left: auto; margin-top: 0; }

/* Patch bedah #2 (28 Nov 2026) item C: keempat daftar admin scroll di dalam. */
#adminQuotaRequestsList, #adminClaimsList, #adminFarmingList, #adminUsersList { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
/* Patch bedah #2 item D: daftar klaim pending di Beranda (expand-inline). */
.home-claims { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-top: 8px; overflow: hidden; }
.home-claims-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border); }
.home-claims-count { flex: 0 0 auto; background: var(--amber); color: #111; font-size: 12px; font-weight: 700; line-height: 1; padding: 4px 9px; border-radius: 999px; }
.home-claims-list { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 12px 14px; }
.home-claims-list .admin-user-row, .home-claims-list .admin-vip-row { margin-top: 0; margin-bottom: 10px; }
.home-claims-list .admin-user-row:last-child, .home-claims-list .admin-vip-row:last-child { margin-bottom: 0; }
/* Patch bedah #2 item E: toast global. */
.app-toast { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 10px; width: calc(100% - 32px); max-width: 420px; background: var(--surface2); color: var(--text); border: 1px solid var(--amber); border-radius: 12px; padding: 12px 12px 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.app-toast.error { border-color: #e5484d; color: #ffb4b8; }
.app-toast #appToastMsg { flex: 1; min-width: 0; }
.app-toast #appToastClose { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
/* Mata sandi form daftar (29 Nov 2026). */
.pw-wrap{position:relative}
.pw-wrap .auth-input{padding-right:46px}
.eye-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;background:transparent;color:#aaa;cursor:pointer;font-size:18px;line-height:1;border-radius:8px}
.eye-btn:hover{color:#fff;background:#333}
.eye-btn svg{width:20px;height:20px;display:block;margin:auto}
.eye-btn .icon-eye-off{display:none}
.eye-btn.showing .icon-eye{display:none}
.eye-btn.showing .icon-eye-off{display:block}
