/* Studio Talent — tema mengikuti docs/DESIGN.md (ungu identitas #9069C9, tanpa angka 13, tanpa ikon SVG) */
:root {
   --bg: #070508;
   --surface: #150e1c;
   --surface-2: #1d1028;
   --primary: #9069c9;
   --primary-soft: #bca5df;
   --text: #eeeef5;
   --text-2: #bfb8cc;
   --muted: #847a95;
   --border: rgba(144, 105, 201, 0.3);
   --live: #f43f5e;
   --serif: "Plus Jakarta Sans", system-ui, sans-serif; /* 2026-11-01 pemilik: huruf judul sama dengan Beranda (Oswald dibuang) */
   --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
   --chat-size: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--sans); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.wrap {
   width: min(100% - 20px, 560px); margin-inline: auto;
   height: 100vh; /* cadangan browser lama */
   height: 100dvh;
   display: flex; flex-direction: column; gap: 10px;
   padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
}

.bar {
   display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 6px;
   background: rgba(9, 6, 12, 0.93); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
}
.avatar {
   position: relative; width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden;
   display: grid; place-items: center; font-weight: 800; font-size: 18px;
   background: linear-gradient(160deg, #7354a1, #3a2a50); border: 1.5px solid var(--primary);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.who { flex: 1; min-width: 0; }
.name {
   font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
   white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.pill {
   display: inline-flex; flex: none; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 99px; white-space: nowrap;
   font-size: 11px; font-weight: 800; letter-spacing: 0.4px;
}
.pill.live { background: rgba(244, 63, 94, 0.16); color: #fda4af; }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.pill.off { background: rgba(255, 255, 255, 0.08); color: var(--text-2); }
.home {
   flex: none; display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
   text-decoration: none; font-family: var(--serif); font-size: 12px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
   background: linear-gradient(135deg, #2b2b2b, #0a0a0a); border: 1px solid rgba(255, 255, 255, 0.12);
}

.notice {
   padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45;
   background: rgba(144, 105, 201, 0.1); border: 1px solid var(--border);
}
.notice[hidden] { display: none; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat {
   display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 12px; border-radius: 12px;
   background: linear-gradient(180deg, #141217 0%, #0c0a0f 50%, #070609 100%);
   border: 1px solid rgba(255, 255, 255, 0.12);
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 3px 0 #242027, 0 5px 10px rgba(0, 0, 0, 0.55);
}
.stat b { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--primary-soft); line-height: 1.1; }
.stat span { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; text-align: center; }

.settings {
   padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
}
.set-head {
   display: flex; align-items: center; justify-content: space-between; gap: 8px;
   font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-2);
}
.set-live { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--primary-soft); text-align: right; }
.set-live[hidden], #setForm[hidden] { display: none; }
.set-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.set-label { flex: 0 0 96px; font-size: 12px; font-weight: 600; color: var(--muted); }
.seg { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
   min-width: 48px; height: 32px; padding: 0 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
   background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
}
.seg button[aria-pressed="true"] { background: linear-gradient(180deg, #a687d4, #7354a1); border-color: transparent; color: #fff; }
.seg button:disabled { opacity: 0.5; cursor: default; }
.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.set-info { margin: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }
.save-btn {
   flex: none; min-height: 36px; padding: 0 18px; border-radius: 10px;
   font-family: var(--serif); font-size: 12.5px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
   background: linear-gradient(180deg, #361f4b 0%, #231431 48%, #180d21 100%);
   border: 1px solid rgba(144, 105, 201, 0.7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 3px 0 #4a2a66;
}
.save-btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }
.chat-set { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
#chatInfo { margin-top: 6px; }
#segChat button[data-on="0"][aria-pressed="true"] { background: linear-gradient(180deg, #3a3640, #1f1c24); border-color: rgba(255, 255, 255, 0.2); }
/* HP: label di atas tombol supaya 5 pilihan harga muat satu baris */
@media (max-width: 420px) {
   .set-row { flex-direction: column; align-items: stretch; gap: 6px; }
   .set-label { flex: none; }
   .seg { flex-wrap: nowrap; }
   .seg button { flex: 1; min-width: 0; padding: 0 4px; }
}

.golive {
   display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-radius: 14px;
   background: var(--surface); border: 1px solid var(--border);
}
.golive[hidden] { display: none; }
/* Mode siaran layar penuh (ala aplikasi live): kamera penuh + info & chat melayang */
body.on-air { overflow: hidden; }
.air { position: fixed; inset: 0; z-index: 40; background: #000; overflow: hidden; color: #fff; }
.air[hidden] { display: none; }
.air video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.air video.fit-contain { object-fit: contain; }
.air video.mirror { transform: scaleX(-1); }
/* Header siaran = gaya header halaman penonton (live.css .stream-header): kapsul gelap + garis pelangi */
/* 2026-10-10 (masukan pemilik dari HP asli): dibuat RINGKAS seperti aplikasi live - kapsul 38px,
   tombol/pil kecil, latar lebih transparan supaya kamera lebih terlihat */
.air-top {
   position: absolute; left: 8px; right: 8px; top: calc(8px + env(safe-area-inset-top));
   display: flex; align-items: center; gap: 6px;
}
.air-head {
   position: relative; isolation: isolate; flex: 0 1 auto; min-width: 0; max-width: 64%; height: 38px;
   display: flex; align-items: center; gap: 6px; padding: 3px 11px 3px 3px; border-radius: 999px;
   background: rgba(0, 0, 0, 0.38); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.air-head::before {
   content: ""; position: absolute; inset: 0; z-index: -1; padding: 1px; border-radius: inherit; pointer-events: none;
   background: linear-gradient(90deg, #9069c9, #e8189a 55%, #22d3ee);
   -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
   mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.air-ava {
   flex: 0 0 32px; width: 32px; height: 32px; padding: 1.5px; border-radius: 50%;
   background: conic-gradient(from 200deg, #e8189a, #9069c9, #22d3ee, #e8189a);
}
.air-ava-in { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: linear-gradient(160deg, #7b2ff7, #f107a3); }
.air-ava-in img { display: block; width: 100%; height: 100%; object-fit: cover; }
.air-meta { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; }
.air-meta b { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; font-weight: 800; line-height: 1.1; }
/* LIVE + jam: teks kecil (bukan kotak tebal) */
.air-badge {
   flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
   font-size: 10.5px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: tabular-nums;
   color: #fff; /* putih: tetap terbaca di atas kamera yang terang; merahnya cukup di titik */
}
.air-dot { flex: 0 0 5px; width: 5px; height: 5px; border-radius: 50%; background: #ff4966; box-shadow: none; animation: air-blink 1.2s ease-in-out infinite; }
@keyframes air-blink { 50% { opacity: 0.3; } }
.air.prep .air-badge { color: #d4d4d8; }
.air.prep .air-dot { background: #a1a1aa; box-shadow: none; animation: none; }
/* Kanan atas: jumlah penonton + tombol Akhiri (ikon power, tetap minta konfirmasi) */
.air-right { flex: none; margin-left: auto; display: flex; align-items: center; gap: 4px; }
.air-count {
   height: 26px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 999px;
   font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, 0.38);
}
.air.prep .air-count { display: none; }
/* Ikon mata digambar CSS (tanpa SVG, docs/DESIGN.md) */
.air-eye { position: relative; flex: 0 0 13px; width: 13px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; }
.air-eye::after { content: ""; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); }
/* Teks tombol disembunyikan (tetap untuk pembaca layar); ikon power digambar CSS. Persiapan: ikon X (= Batal) */
/* Area sentuh tetap 32px (cukup untuk jari), tampilannya ikon polos seperti aplikasi live */
.air-end {
   position: relative; flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 0; color: transparent;
   border: 0; background: rgba(0, 0, 0, 0.38);
}
.air-end::before {
   content: ""; position: absolute; left: 8px; top: 8.5px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%;
   border: 2px solid #fb7185; border-top-color: transparent;
}
.air-end::after { content: ""; position: absolute; left: 15px; top: 6px; width: 2px; height: 9px; border-radius: 2px; background: #fb7185; }
.air.prep .air-end::before, .air.prep .air-end::after {
   left: 7px; top: 15px; width: 18px; height: 2px; border: 0; border-radius: 2px; background: #fff; transform: rotate(45deg);
}
.air.prep .air-end::after { transform: rotate(-45deg); }
.air-end:active { transform: scale(0.92); }
.air-pill { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.2; background: rgba(0, 0, 0, 0.38); white-space: nowrap; }
/* Kiri bawah: Perbaiki (jauh dari Akhiri supaya tidak tertukar saat panik) */
.air-fix {
   flex: 0 0 auto; height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px 0 9px; border-radius: 999px;
   font: inherit; font-size: 12px; font-weight: 800; color: #fff;
   border: 1px solid rgba(144, 105, 201, 0.45); background: rgba(0, 0, 0, 0.45);
}
.air-fix img { display: block; width: 16px; height: 16px; object-fit: contain; }
.air-fix:active { transform: scale(0.95); }
.air-fix:disabled { opacity: 0.55; }
.air.prep .air-fix { display: none; }
.air-info {
   position: absolute; left: 10px; right: 10px; top: calc(56px + env(safe-area-inset-top));
   font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.air-chat {
   position: absolute; left: 10px; bottom: calc(56px + env(safe-area-inset-bottom)); width: min(78%, 420px);
   display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.air-chat div {
   max-width: 100%; padding: 4px 10px; border-radius: 12px; font-size: 14px; line-height: 1.35; word-break: break-word;
   background: rgba(0, 0, 0, 0.38); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.air-chat b { color: var(--primary-soft); margin-right: 6px; }
.air-bar {
   position: absolute; left: 10px; right: 10px; bottom: calc(12px + env(safe-area-inset-bottom));
   display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.air-menu {
   position: absolute; right: 10px; bottom: calc(52px + env(safe-area-inset-bottom)); width: 168px;
   display: grid; gap: 2px; padding: 5px; border-radius: 12px;
   background: rgba(20, 12, 28, 0.86); border: 1px solid rgba(255, 255, 255, 0.14);
   -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.air-menu[hidden] { display: none; }
/* Panel filter: judul + Selesai di atas, pilihan filter digeser ke samping */
.fx-panel {
   position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
   padding: 12px 10px calc(14px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0;
   background: rgba(20, 12, 28, 0.94); border: 1px solid rgba(144, 105, 201, 0.4); border-bottom: 0;
   -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.fx-panel[hidden] { display: none; }
.fx-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 8px; font-size: 13px; font-weight: 800; }
.fx-head button {
   min-height: 32px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 800; color: #fff;
   border: 0; background: linear-gradient(180deg, #a687d4, #7354a1);
}
.fx-bar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.fx-bar button {
   flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
   background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.2);
}
.fx-bar button[aria-pressed="true"] { background: linear-gradient(180deg, #a687d4, #7354a1); border-color: transparent; }
/* 2026-10-24 tombol sekunder "Salin laporan siaran" di ringkasan Akhiri */
.end-lap { display: block; width: 100%; min-height: 40px; margin: 0 0 10px; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 700;
   color: inherit; background: transparent; border: 1px solid rgba(144, 105, 201, 0.55); cursor: pointer; }
/* 2026-10-24 atur filter Makeup: 4 penggeser 2 kolom di panel filter */
.mk-atur { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin: 10px 2px 0; }
.mk-atur[hidden] { display: none; }
.mk-geser { display: flex; flex-direction: column; font-size: 12px; font-weight: 700; color: #fff; }
.mk-geser span { display: flex; justify-content: space-between; }
.mk-geser output { font-weight: 800; color: #c9b3ef; }
.mk-geser input { width: 100%; height: 30px; margin: 0; accent-color: #a687d4; cursor: pointer; }
.air-menu button {
   min-height: 34px; padding: 0 11px; border-radius: 8px; border: 0; text-align: left;
   font-size: 13px; font-weight: 600; color: #fff; background: transparent;
}
.air-menu button:active, .air-menu button:hover { background: rgba(144, 105, 201, 0.25); }
/* Menu = tombol bulat titik tiga (teks disembunyikan, titik digambar CSS) */
.air-bar .air-menu-btn {
   position: relative; flex: 0 0 36px; width: 36px; height: 36px; margin-left: auto; padding: 0; border-radius: 50%;
   font-size: 0; color: transparent; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(144, 105, 201, 0.45);
}
.air-bar .air-menu-btn::before {
   content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%;
   background: #fff; box-shadow: -7px 0 0 #fff, 7px 0 0 #fff;
}
/* Pesan status: kapsul kecil kanan atas, hilang sendiri (kosong = tidak tampil) */
.air .air-info {
   left: auto; right: 8px; max-width: 78%; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; text-align: right;
   background: rgba(0, 0, 0, 0.38); border: 0; text-shadow: none;
}
.air .air-info:empty { display: none; }
.go-row { display: flex; gap: 8px; }
.go-btn {
   flex: 1; min-width: 0; min-height: 44px; white-space: nowrap; border-radius: 12px; font-family: var(--serif); font-size: 16px; font-weight: 700;
   letter-spacing: 0.8px; text-transform: uppercase; color: #fff; border: 0;
   background: linear-gradient(180deg, #a687d4 0%, #9069c9 45%, #7354a1 100%);
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 0 #563f79;
}
.go-btn:disabled { opacity: 0.55; cursor: default; }

.earn {
   display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
   background: var(--surface); border: 1px solid var(--border);
}
.earn[hidden] { display: none; }
.earn-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.earn-label { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.earn-main b { font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--primary-soft); line-height: 1.1; }
.earn-sub { font-size: 12px; color: var(--muted); }

.sheet {
   position: fixed; inset: 0; z-index: 20; display: flex; justify-content: center; align-items: flex-end;
   background: rgba(0, 0, 0, 0.72);
}
.sheet[hidden] { display: none; }
.sheet-card {
   width: min(100%, 560px); max-height: 92vh; max-height: 92dvh; overflow-y: auto;
   padding: 14px 14px calc(16px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0;
   background: #110b16; border: 1px solid var(--border); border-bottom: 0;
}
@media (min-width: 600px) {
   .sheet { align-items: center; }
   .sheet-card { border-radius: 18px; border-bottom: 1px solid var(--border); }
}
.sheet-head {
   display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px;
   font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
}
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sum div { padding: 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.sum span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; color: var(--muted); }
.sum b { display: block; margin-top: 2px; font-size: 17px; font-weight: 800; }
.sum .hi { border-color: rgba(144, 105, 201, 0.8); }
.sum .hi b { color: var(--primary-soft); }
.earn-note { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.earn-h { margin: 16px 0 6px; font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-2); }
.earn-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.earn-list li {
   padding: 9px 10px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-2);
   background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.07);
}
.earn-list .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--text); }
.earn-list .you { color: var(--primary-soft); font-weight: 800; }
.earn-list .run { color: #fda4af; font-weight: 700; }
.earn-empty { font-size: 12px; color: var(--muted); }

.chat-panel {
   flex: 1; min-height: 0; display: flex; flex-direction: column;
   background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.chat-head {
   display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px 8px 14px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.08);
   font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-2);
}
.size { display: flex; gap: 6px; }
.size button {
   min-width: 40px; height: 32px; border-radius: 10px; font-weight: 800; font-size: 14px;
   background: var(--surface-2); border: 1px solid var(--border);
}
.chat-list {
   flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px;
   display: flex; flex-direction: column; gap: 8px;
}
.row { font-size: var(--chat-size); line-height: 1.4; word-break: break-word; }
.row .u { font-weight: 800; color: var(--primary-soft); margin-right: 6px; }
.row .t { color: var(--text); }
.row.new { animation: flash 1.2s ease; }
@keyframes flash { from { background: rgba(144, 105, 201, 0.25); } }
.empty { margin: auto; padding: 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.empty[hidden] { display: none; }
.foot { margin: 0; text-align: center; font-size: 11px; color: var(--muted); }

/* =====================================================
   2026-10-10: Studio lebih mudah dibaca talent awam + identitas sama dengan beranda
   (garis pelangi di atas kartu, tombol utama ungu -> hitam 3D)
   ===================================================== */
/* Halaman boleh lebih tinggi dari layar; chat tetap kebagian ruang */
.wrap { height: auto; min-height: 100vh; min-height: 100dvh; }
.chat-panel { min-height: 280px; }

.golive, .earn, .settings, .last-live, .sheet-card, .guide { position: relative; }
.golive::before, .earn::before, .settings::before, .last-live::before, .sheet-card::before {
   content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 2px; border-radius: 0 0 3px 3px; pointer-events: none;
   background: linear-gradient(90deg, transparent, #9069c9, #e8189a, #22d3ee, transparent);
}

.go-btn {
   background: linear-gradient(180deg, #9069c9 0%, #6b4a9c 34%, #2a1a40 72%, #0d0813 100%);
   border: 1px solid rgba(144, 105, 201, 0.75);
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.55), 0 4px 0 #3b2457, 0 8px 14px rgba(0, 0, 0, 0.5);
   text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}
.go-btn:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 0 #3b2457; }

.stats[hidden] { display: none; }

/* Kartu "Live terakhir" (offline) */
.last-live {
   display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px;
   background: var(--surface); border: 1px solid var(--border);
}
.last-live[hidden] { display: none; }
.ll-head { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.ll-head span:last-child { text-transform: none; letter-spacing: 0; font-weight: 600; }
.ll-earn { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.15; color: #6ee7b7; }
.ll-stats { font-size: 13px; color: var(--text-2); }

/* Kartu pendapatan + progres pencairan */
.earn { flex-direction: column; align-items: stretch; }
.earn-top { display: flex; align-items: center; gap: 10px; }
.payout { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.pay-bar { height: 8px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.pay-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #9069c9, #e8189a, #22d3ee); transition: width 0.4s ease; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pay-text { font-size: 12.5px; line-height: 1.4; color: var(--text-2); }

/* Pengaturan: harga Rp penuh -> 3 kolom di HP */
@media (max-width: 420px) {
   #segPrice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
   #segPrice button { font-size: 12px; }
}

/* Panduan talent */
.guide { padding: 0 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.guide summary {
   cursor: pointer; padding: 12px 0; list-style: none;
   font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-2);
}
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; float: right; font-family: var(--sans); font-weight: 800; color: var(--primary-soft); }
.guide[open] summary::after { content: "-"; }
.guide ul { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.guide b { color: var(--text); }

/* Cek kesiapan sebelum live */
.check-list { margin: 0 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ck { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; line-height: 1.4; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.ck::before { flex: none; width: 22px; height: 19px; line-height: 19px; text-align: center; font-weight: 800; border-radius: 6px; }
.ck.ok::before { content: "OK"; font-size: 10px; color: #052e16; background: #6ee7b7; }
.ck.warn::before { content: "!"; color: #1c1300; background: #fbbf24; }
.ck.bad::before { content: "X"; font-size: 11px; color: #fff; background: #f43f5e; }
.ck.bad { border-color: rgba(244, 63, 94, 0.5); }
.ready-tips { margin-bottom: 12px; }
.sheet-actions { display: flex; gap: 8px; }
.sheet-actions .save-btn { flex: 0 0 auto; min-height: 44px; }
.sheet-actions .go-btn { flex: 1; }
.go-btn:disabled { opacity: 0.45; }

/* Ringkasan setelah Akhiri */
.end-card { text-align: center; }
.end-card .sheet-head { justify-content: center; }
.end-earn { display: flex; flex-direction: column; gap: 2px; margin: 4px 0 12px; }
.end-earn span { font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.end-earn b { font-family: var(--serif); font-size: 36px; font-weight: 700; line-height: 1.1; color: #6ee7b7; }
.end-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.end-grid div { padding: 8px 4px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.end-grid b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--primary-soft); }
.end-grid span { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.end-card #endNote { margin-bottom: 12px; }
.end-card .go-btn { width: 100%; }

/* Popup rincian: satu angka utama */
.sum-hero { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid rgba(144, 105, 201, 0.8); }
.sum-hero span { font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.sum-hero b { font-family: var(--serif); font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--primary-soft); }
.sum-hero small { font-size: 12px; line-height: 1.45; color: var(--text-2); }

/* Per live: angka pendapatan di depan, hitungan bisa dibuka */
.earn-list li.lv { display: flex; flex-direction: column; gap: 2px; }
.lv-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lv-when { font-weight: 700; color: var(--text); }
.lv-earn { font-family: var(--serif); font-size: 17px; font-weight: 700; color: #6ee7b7; white-space: nowrap; }
.lv-stats { color: var(--text-2); }
.lv-calc summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--primary-soft); }
.lv-calc div { font-size: 12px; color: var(--muted); }

/* Saat siaran: sinyal & pendapatan berjalan */
.air-stats {
   position: absolute; left: 10px; right: 10px; top: calc(52px + env(safe-area-inset-top));
   display: flex; flex-wrap: wrap; gap: 5px;
}
.air-info { top: calc(82px + env(safe-area-inset-top)); }
.sig::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #a1a1aa; vertical-align: 1px; }
.sig[data-q="bagus"]::before { background: #22c55e; }
.sig[data-q="sedang"]::before { background: #fbbf24; }
.sig[data-q="lemah"] { background: rgba(244, 63, 94, 0.55); }
.sig[data-q="lemah"]::before { background: #fff; }
.earn-pill { color: #6ee7b7; }
.earn-pill[hidden] { display: none; }

/* =====================================================
   Smart Check Detection (2026-10-10): ikon robot + animasi memindai + ceklis beranimasi.
   Ikon digambar CSS, tanpa SVG sesuai docs/DESIGN.md.
   ===================================================== */
.scan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ai-orb {
   position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%;
   background: conic-gradient(from 0deg, #9069c9, #e8189a, #22d3ee, #9069c9);
   box-shadow: none;
}
.ai-orb::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: #110b16; }
/* 2026-10-10: ikon robot (permintaan pemilik), digambar CSS: antena = latar .ai-spark, kepala = ::before,
   mata = ::after (berkedip saat memindai). .ai-spark berputar berlawanan arah cincin -> robot tetap tegak. */
.ai-spark {
   position: absolute; inset: 0; display: grid; place-items: center;
   background: radial-gradient(circle at 50% 10px, #67e8f9 0 2.5px, transparent 3px),
      linear-gradient(#e9d5ff, #e9d5ff) 50% 12px / 2px 6px no-repeat;
}
.ai-spark::before {
   content: ""; width: 24px; height: 16px; margin-top: 6px; border-radius: 6px;
   background: linear-gradient(135deg, #ffffff 0%, #e9d5ff 45%, #67e8f9 100%);
}
.ai-spark::after {
   content: ""; position: absolute; left: 16px; top: 25px; width: 4px; height: 4px; border-radius: 50%;
   background: #110b16; box-shadow: 10px 0 0 #110b16;
}
.sheet.scanning .ai-orb { animation: orb-spin 1.4s linear infinite, orb-glow 1.4s ease-in-out infinite; }
.sheet.scanning .ai-spark { animation: orb-spin 1.4s linear infinite reverse; }
.sheet.scanning .ai-spark::after { animation: robot-blink 1.6s ease-in-out infinite; }
@keyframes robot-blink { 0%, 80%, 100% { transform: scaleY(1); } 88% { transform: scaleY(0.15); } }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-glow { 50% { box-shadow: none; } }

.scan-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.scan-titles b { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; }
.scan-sub { font-size: 12.5px; font-weight: 600; color: var(--primary-soft); }
.sheet.scanning .scan-sub::after { content: ""; animation: scan-dots 1.2s steps(4) infinite; }
@keyframes scan-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

/* Garis pindai yang menyapu daftar selama pemindaian */
.check-list { position: relative; }
.check-list.scanning { overflow: hidden; }
.check-list.scanning::after {
   content: ""; position: absolute; left: 0; right: 0; top: -40px; height: 40px; pointer-events: none;
   background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.18), transparent);
   animation: scan-line 1.6s linear infinite;
}
@keyframes scan-line { to { top: 100%; } }

/* Butir: teks + dampak; status menunggu = lingkaran berputar; selesai = lencana "meletup" */
.ck .ck-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ck-impact { font-size: 12px; line-height: 1.4; color: var(--text-2); }
.ck.warn .ck-impact { color: #fcd34d; }
.ck.bad .ck-impact { color: #fda4af; }
.ck.pending { color: var(--muted); }
.ck.pending::before {
   content: ""; width: 16px; height: 16px; margin: 1px 3px; border-radius: 50%;
   border: 2px solid rgba(144, 105, 201, 0.35); border-top-color: #22d3ee; background: none;
   animation: orb-spin 0.8s linear infinite;
}
.ck.shown { animation: ck-in 0.35s ease both; }
.ck.shown::before { animation: ck-pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1) both; }
@keyframes ck-pop { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes ck-in { from { background: rgba(34, 211, 238, 0.12); } }

/* Ringkasan hasil pemindaian */
.ready-sum { margin: 0 0 10px; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-weight: 700; line-height: 1.4; }
.ready-sum[hidden] { display: none; }
.ready-sum.ok { color: #6ee7b7; background: rgba(110, 231, 183, 0.08); border: 1px solid rgba(110, 231, 183, 0.35); }
.ready-sum.warn { color: #fcd34d; background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.35); }

@media (prefers-reduced-motion: reduce) {
   .sheet.scanning .ai-orb, .sheet.scanning .ai-spark, .sheet.scanning .ai-spark::after, .ck.pending::before, .ck.shown, .ck.shown::before { animation: none; }
   .check-list.scanning::after { display: none; }
}

/* Status "tidak bisa dicek" (info): abu-abu, bukan masalah */
.ck.info::before { content: "?"; font-size: 12px; color: #fff; background: #52525b; }
.ck.info .ck-impact { color: var(--muted); }

/* =====================================================
   Ruang Siap (2026-10-10): kamera menyala untuk persiapan, belum tayang.
   Smart Check melayang di tengah kamera; selesai -> jadi lencana kecil.
   ===================================================== */
.air:not(.prep) .prep-only { display: none; }
.air.prep .air-stats, .air.prep .air-chat { display: none; }
.prep-row {
   position: absolute; left: 10px; right: 10px; top: calc(52px + env(safe-area-inset-top));
   display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.prep-chip {
   min-height: 26px; padding: 0 10px; border-radius: 999px; font: inherit; font-size: 11.5px; font-weight: 700; color: #fff;
   background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.16);
}
.prep-chip::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #22d3ee; vertical-align: 1px; }
.prep-chip[data-s="wait"]::before { animation: chip-blink 1s ease-in-out infinite; }
.prep-chip[data-s="ok"]::before { background: #22c55e; }
.prep-chip[data-s="warn"] { border-color: rgba(251, 191, 36, 0.6); }
.prep-chip[data-s="warn"]::before { background: #fbbf24; }
@keyframes chip-blink { 50% { opacity: 0.25; } }
.mic-meter {
   display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
   font-size: 11.5px; font-weight: 700; background: rgba(0, 0, 0, 0.38);
}
.mic-meter i { position: relative; width: 64px; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, 0.2); }
.mic-meter b { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #22d3ee, #9069c9, #e8189a); transition: width 80ms linear; }
.prep-hint {
   position: absolute; left: 10px; right: 10px; top: calc(88px + env(safe-area-inset-top)); margin: 0;
   font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}
.air.prep .air-info { top: calc(112px + env(safe-area-inset-top)); }
.air.prep .air-bar { align-items: center; }
.air.prep .air-menu { bottom: calc(66px + env(safe-area-inset-bottom)); }
.air-bar .prep-start {
   flex: 1; min-height: 46px; padding: 0 12px; border: 0; border-radius: 12px; font-family: var(--serif); font-size: 17px;
   background: linear-gradient(180deg, #a687d4 0%, #9069c9 45%, #7354a1 100%);
   box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 0 #563f79;
}

/* Hitung mundur 3-2-1 sebelum tayang (tidak menghalangi tombol Batal) */
.countdown {
   position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
   background: rgba(0, 0, 0, 0.35); pointer-events: none;
}
.countdown[hidden] { display: none; }
.countdown b {
   font-family: var(--serif); font-size: 120px; font-weight: 700; line-height: 1; color: #fff;
   text-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}
.countdown b.pop { animation: cd-pop 0.9s ease-out both; }
@keyframes cd-pop { 0% { transform: scale(1.8); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.85); opacity: 0.6; } }
.countdown span { font-size: 14px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8); }
.countdown span.warn { max-width: 86%; padding: 6px 12px; border-radius: 10px; text-align: center; color: #1c1300; background: #fbbf24; text-shadow: none; }

/* Smart Check di atas layar kamera: kartu di tengah, kamera tetap terlihat di belakang */
#readySheet { z-index: 45; }
#airView:not([hidden]) ~ #readySheet { align-items: center; padding: 16px; background: rgba(0, 0, 0, 0.45); }
#airView:not([hidden]) ~ #readySheet .sheet-card {
   border-radius: 18px; border-bottom: 1px solid var(--border); max-height: 86vh; max-height: 86dvh; padding-bottom: 14px;
}
@media (prefers-reduced-motion: reduce) {
   .prep-chip[data-s="wait"]::before, .countdown b.pop { animation: none; }
   .mic-meter b { transition: none; }
}
/* iPhone/iPad: bar Mic tidak dipakai (Web Audio dimatikan di iOS, lihat studio.js IS_IOS) */
.ios .mic-meter { display: none; }
/* Gift berbayar (2026-10-17): baris chat disorot + gambar gift kecil */
.row.gift { padding: 3px 8px; border-radius: 10px; background: linear-gradient(90deg, rgba(144, 105, 201, 0.32), rgba(232, 24, 154, 0.2)); }
.air-chat div.gift { background: linear-gradient(90deg, rgba(144, 105, 201, 0.7), rgba(232, 24, 154, 0.5)); font-weight: 700; }
.gift-img { width: 1.6em; height: 1.6em; margin-left: 6px; vertical-align: middle; object-fit: contain; }

/* 2026-10-22 lencana Platinum di chat (sama dengan halaman live) */
.row .chat-badge { display: inline-block; margin-right: 5px; padding: 1px 6px; border-radius: 99px; vertical-align: 1px;
  font-size: 9px; font-weight: 800; letter-spacing: .05em; line-height: 1.5; color: #1a1206; background: linear-gradient(90deg, #F2D27A, #B8862B); }

/* 2026-10-25 Langkah 2: moderasi chat per penonton (assets/js/studio-mod.js). Chat bisa diketuk -> lembar Bisukan/Blokir.
   Lembar di atas layar siaran (.air z 40), sama seperti Smart Check (#readySheet 45). */
#chatList .row[role="button"], #airChat > div[role="button"] { cursor: pointer; border-radius: 8px; -webkit-tap-highlight-color: transparent; }
#chatList .row[role="button"]:focus-visible, #airChat > div[role="button"]:focus-visible { outline: 2px solid var(--primary-soft); outline-offset: 2px; }
#chatList .row[role="button"]:active { background: rgba(144, 105, 201, 0.18); }
#airChat > div { min-height: 24px; }
#airChat > div[role="button"]:active { background: rgba(144, 105, 201, 0.55); }
.mod-sheet { z-index: 46; }
#airView:not([hidden]) ~ .mod-sheet { align-items: center; padding: 16px; background: rgba(0, 0, 0, 0.5); }
#airView:not([hidden]) ~ .mod-sheet .sheet-card { border-radius: 18px; border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.mod-sheet .sheet-head span { text-transform: none; overflow-wrap: anywhere; }
.mod-actions { display: grid; gap: 10px; margin-top: 12px; }
.mod-actions .save-btn { min-height: 44px; }
.mod-block { color: #ffb4c2; border-color: rgba(255, 110, 140, 0.6); }
.mod-info { min-height: 1.4em; margin-top: 10px; }
.mod-info.ok { color: #86efac; }
.mute-box { display: grid; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.mute-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mute-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; }
.mute-who { min-width: 0; display: grid; font-weight: 700; overflow-wrap: anywhere; }
.mute-who small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.mute-open { min-height: 40px; padding: 0 14px; }
#muteEmpty[hidden], #muteInfo:empty { display: none; }

/* 2026-10-31 lencana VIP gambar semua tier (sama dengan halaman live) */
.row .chat-badge-img { width: 22px; height: auto; margin-right: 4px; vertical-align: -5px; }

/* 2026-10-31 pemilik: kotak konfirmasi Akhiri (di atas layar siaran), tautan panduan, Setelan tanpa tombol Simpan
   (Selesai = simpan; tombol tetap ada untuk logika), animasi gift di layar talent (sama dengan halaman penonton) */
#endAsk { z-index: 47; align-items: center; }
#endAsk .sheet-card { max-width: 380px; margin: 0 16px; border-radius: 18px; }
#endAsk .go-btn { width: 100%; margin: 6px 0 10px; }
.end-yes { color: #ff8a8a; border-color: rgba(255,138,138,.45); }
.go-guide { display: inline-block; margin: 8px 0 0; padding: 6px 0; font-size: 13px; font-weight: 800; color: #6d3fd0; text-decoration: underline; text-underline-offset: 3px; }
#setSave { display: none; }
.gift-burst { position: fixed; left: 50%; top: 26%; z-index: 44; transform: translate(-50%, 0) scale(.6); text-align: center; pointer-events: none; opacity: 0;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,1.4,.4,1); }
.gift-burst.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.gift-burst .gift-img { width: 128px; height: 128px; object-fit: contain; filter: drop-shadow(0 8px 22px rgba(232,24,154,.5)); }
.gift-burst-who { display: inline-block; margin-top: 6px; padding: 5px 12px; border-radius: 99px; background: rgba(10,6,20,.72); font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); white-space: nowrap; }
.gift-burst-who b { color: #22d3ee; margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .gift-burst { transition: opacity .2s ease; transform: translate(-50%, 0); } }
