/* ============================================================
   DataVault — Tutorial Video Animasi
   Dipakai index.html (halaman utama) dan dashboard.html (dashboard pengguna).
   Semua warna memakai token tema (var(--...)), jadi otomatis mengikuti
   mode siang / malam. Kelas memakai awalan .tv- agar tidak bentrok.
   ============================================================ */

html.tv-lock, html.tv-lock body { overflow: hidden !important; }
.tv-overlay [hidden], .tv-sec [hidden], .tv-banner[hidden], .tv-banner-dash[hidden] { display: none !important; }

/* ---------- Jendela pemutar ---------- */
.tv-overlay {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(8, 10, 14, .68);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: tvFade .2s ease both;
}
.tv-player {
  width: min(1060px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-white); color: var(--text-body);
  border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-lg);
  font-family: var(--font-family, system-ui, sans-serif); animation: tvPop .28s cubic-bezier(.22,1,.36,1) both;
}
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-light, var(--border)); }
.tv-title { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-display, inherit); font-weight: 700; font-size: 1.02rem; color: var(--text-dark); }
.tv-title span.tv-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-live { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 10px; background: var(--gold-pale); font-size: 16px; }
.tv-x { flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--text-muted); font-size: 18px; cursor: pointer; }
.tv-x:hover { background: var(--bg-section); color: var(--text-dark); }

.tv-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; padding: 16px 18px 18px; overflow: auto; min-height: 0; }
.tv-main { min-width: 0; }
.tv-stagebox { position: relative; }

/* ---------- Panggung (kanvas berskala) ---------- */
.tv-stage {
  position: relative; width: 100%; overflow: hidden; border-radius: 16px;
  background: var(--bg-warm); border: 1px solid var(--border); box-shadow: var(--shadow-card);
}
.tv-stage::before { content: ''; display: block; padding-top: 71.4286%; }   /* rasio 420 : 300 */
.tv-canvas {
  position: absolute; left: 0; top: 0; width: 420px; height: 300px; transform-origin: 0 0;
  background: var(--bg-warm); color: var(--text-body);
  font-family: var(--font-family, system-ui, sans-serif); font-size: 12px; line-height: 1.35;
  overflow: hidden; -webkit-font-smoothing: antialiased; user-select: none; -webkit-user-select: none;
}
.tv-canvas *, .tv-canvas *::before, .tv-canvas *::after { box-sizing: border-box; }
.tv-instant .tv-canvas * { transition: none !important; }

.tv-urlbar { position: absolute; left: 0; right: 0; top: 0; height: 22px; z-index: 6; display: flex; align-items: center; gap: 7px; padding: 0 9px; background: var(--bg-section); border-bottom: 1px solid var(--border); }
.tv-dots { display: flex; gap: 3px; } .tv-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.tv-url { flex: 1; min-width: 0; height: 14px; border-radius: 7px; background: var(--bg-white); border: 1px solid var(--border); font-size: 8.5px; line-height: 12px; color: var(--text-muted); padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-content { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; padding: 12px 14px; overflow: hidden; background: var(--bg-warm); }
.tv-in { animation: tvIn .38s ease both; }

.tv-cursor { position: absolute; left: 0; top: 0; z-index: 40; width: 20px; height: 20px; pointer-events: none; opacity: 0; transition: opacity .2s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.tv-cursor.show { opacity: 1; }
.tv-fx { position: absolute; inset: 0; z-index: 39; pointer-events: none; overflow: hidden; }
.tv-ripple { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(217,154,0,.35); border: 2px solid var(--gold-main); animation: tvRip .55s ease-out forwards; }

/* ---------- Komponen tiruan antarmuka ---------- */
.tv-canvas .tv-h { font-family: var(--font-display, inherit); font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--text-dark); letter-spacing: -.01em; }
.tv-canvas .tv-sub { font-size: 10.5px; color: var(--text-muted); line-height: 1.4; }
.tv-canvas b { color: var(--text-dark); font-weight: 650; }
.tv-gold { color: var(--gold-dark); }
.tv-row { display: flex; align-items: center; gap: 8px; } .tv-row.between { justify-content: space-between; } .tv-row.end { justify-content: flex-end; }
.tv-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 9px; }
.tv-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: 12px; padding: 9px 10px; box-shadow: var(--shadow-xs); }
.tv-block { display: flex !important; width: 100%; }

.tv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 14px; border-radius: 999px; border: 0; background: linear-gradient(180deg, var(--gold-light), var(--gold-main)); color: var(--brass-ink, #231800); font-weight: 700; font-size: 12px; line-height: 1.2; white-space: nowrap; box-shadow: 0 4px 12px -6px rgba(204,145,7,.8); transition: transform .12s, filter .2s; }
.tv-btn.ghost { background: transparent; border: 1.5px solid var(--gold-main); color: var(--gold-dark); box-shadow: none; }
.tv-btn.sm, .tv-sm { padding: 5px 10px; font-size: 10.5px; }
.tv-canvas .pressed { transform: scale(.93); filter: brightness(.95); }

.tv-lbl { font-size: 10px; font-weight: 600; color: var(--text-muted); margin-bottom: 3px; }
.tv-field { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 29px; padding: 5px 9px; border: 1.5px solid var(--border); border-radius: 9px; background: var(--bg-white); color: var(--text-dark); font-size: 11.5px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.tv-field.focus { border-color: var(--gold-main); box-shadow: 0 0 0 3px rgba(204,145,7,.2); }
.tv-field .tv-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-field .tv-txt:not(:empty) + .tv-ph { display: none; }
.tv-field .tv-txt:empty:not(.caret) { display: none; }          /* kolom kosong: placeholder rata kiri */
.tv-ph { color: var(--text-light, #8B91A0); }
.tv-field.focus .tv-txt.caret::after { content: ''; display: inline-block; width: 1.5px; height: 13px; margin-left: 1px; vertical-align: -2px; background: var(--gold-dark); animation: tvBlink 1s steps(1) infinite; }
.tv-check { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-muted); }
.tv-box { width: 13px; height: 13px; flex: none; border: 1.5px solid var(--border); border-radius: 4px; background: var(--bg-white); display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: transparent; transition: all .2s; }
.tv-box.on { background: var(--gold-main); border-color: var(--gold-main); color: #231800; }
.tv-link { color: var(--gold-dark); font-size: 10.5px; font-weight: 600; }
.tv-or { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: 9px; letter-spacing: .08em; color: var(--text-light, #8B91A0); }
.tv-or::before, .tv-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.tv-eye { font-size: 12px; opacity: .8; }
.tv-spin { display: inline-block; width: 11px; height: 11px; border: 2px solid rgba(35,24,0,.25); border-top-color: #231800; border-radius: 50%; animation: tvSpin .7s linear infinite; }

.tv-hid { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
.tv-hid.on { opacity: 1; visibility: visible; transition: opacity .3s ease, transform .3s ease, visibility 0s; }
.tv-spot { box-shadow: 0 0 0 2px var(--gold-main), 0 0 0 6px rgba(217,154,0,.22) !important; transition: box-shadow .25s; }
.tv-pulse { animation: tvPulse 1s ease-in-out 2; }

.tv-banner { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.tv-banner.ok { background: rgba(16,185,129,.14); color: var(--success-text, #065F46); border: 1px solid rgba(16,185,129,.35); }
[data-theme="dark"] .tv-banner.ok { color: #6EE7B7; }
.tv-toast { position: absolute; left: 50%; bottom: 12px; z-index: 30; transform: translate(-50%, 14px); opacity: 0; max-width: 92%; padding: 8px 14px; border-radius: 12px; background: var(--text-dark); color: var(--bg-white); font-size: 11px; font-weight: 600; box-shadow: var(--shadow-md); transition: all .3s ease; white-space: nowrap; }
.tv-toast.on { opacity: 1; transform: translate(-50%, 0); }

.tv-backdrop { position: absolute; left: 0; right: 0; top: 22px; bottom: 0; z-index: 10; background: rgba(10,12,16,.5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.tv-backdrop.on { opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.tv-modal { position: absolute; left: 50%; top: calc(22px + 50%); z-index: 12; width: 330px; max-width: 94%; padding: 12px 14px; border-radius: 14px; background: var(--bg-white); border: 1px solid var(--border); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translate(-50%, -46%) scale(.96); transition: all .3s cubic-bezier(.22,1,.36,1), visibility 0s linear .3s; }
.tv-modal.on { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); transition: all .3s cubic-bezier(.22,1,.36,1), visibility 0s; }
.tv-mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 12.5px; } .tv-mh span { color: var(--text-muted); font-size: 11px; }
.tv-modal .tv-lbl { margin-top: 7px; }

.tv-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.tv-search { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; padding: 5px 10px; border: 1.5px solid var(--border); border-radius: 9px; background: var(--bg-white); color: var(--text-muted); font-size: 10.5px; overflow: hidden; white-space: nowrap; transition: border-color .2s, box-shadow .2s; }
.tv-search.focus { border-color: var(--gold-main); box-shadow: 0 0 0 3px rgba(204,145,7,.2); color: var(--text-dark); }
.tv-search .tv-txt:not(:empty) + .tv-ph { display: none; }
.tv-av { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); color: #231800; font-weight: 700; font-size: 10px; }
.tv-welcome { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-medium), var(--gold-dark)); color: #fff; font-size: 10.5px; }
.tv-welcome b { color: #fff; font-size: 13px; display: block; }
.tv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 7px; }
.tv-stats.slim .tv-stat { flex-direction: row; align-items: center; gap: 6px; padding: 5px 8px; } .tv-stats.slim .tv-stat b { font-size: 13px; } .tv-stats.slim .tv-stat i { font-size: 12px; }
.tv-stat { display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border-radius: 10px; background: var(--bg-white); border: 1px solid var(--border); transition: box-shadow .25s; }
.tv-stat i { font-style: normal; font-size: 13px; line-height: 1; } .tv-stat b { font-size: 14px; line-height: 1.15; } .tv-stat span { font-size: 9.5px; color: var(--text-muted); }
.tv-bar { height: 7px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 6px; }
.tv-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--gold-medium), var(--gold-main)); transition: width .9s cubic-bezier(.22,1,.36,1); }
.tv-bar.warn i { background: linear-gradient(90deg, #F59E0B, #EF4444); }

.tv-tabs { display: flex; gap: 4px; padding: 3px; border-radius: 999px; background: var(--bg-section); border: 1px solid var(--border); margin: 7px auto 0; max-width: 220px; }
.tv-tabs span { flex: 1; text-align: center; padding: 4px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: var(--text-muted); transition: all .25s; }
.tv-tabs span.on { background: var(--bg-white); color: var(--text-dark); box-shadow: var(--shadow-xs); }
.tv-slots { display: flex; justify-content: center; gap: 6px; margin: 8px 0 2px; }
.tv-slots i { width: 32px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--border); border-radius: 9px; background: var(--bg-white); font-style: normal; font-weight: 800; font-size: 17px; color: var(--text-dark); transition: border-color .2s, box-shadow .2s; }
.tv-slots i:not(:empty) { border-color: var(--gold-main); }
.tv-slots.ok i { border-color: #10B981; box-shadow: 0 0 0 2px rgba(16,185,129,.18); }
.tv-seal { position: absolute; left: 50%; top: 178px; z-index: 8; width: 48px; height: 48px; margin-left: -24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #10B981; color: #fff; font-size: 25px; font-weight: 800; box-shadow: 0 8px 20px -6px rgba(16,185,129,.7); transform: scale(.4); }
.tv-seal.on { transform: scale(1); transition: transform .45s cubic-bezier(.34,1.56,.64,1), opacity .3s; }
.tv-notif { position: absolute; left: 12px; right: 12px; top: 8px; z-index: 14; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 12px; background: var(--bg-white); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: 10.5px; transform: translateY(-16px); }
.tv-notif.on { transform: translateY(0); }
.tv-notif-ico { font-size: 20px; } .tv-notif > div:nth-child(2) { flex: 1; min-width: 0; line-height: 1.3; }

.tv-pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: stretch; }
.tv-pkg { position: relative; display: flex; flex-direction: column; gap: 5px; align-items: center; padding: 10px 7px 9px; border-radius: 12px; background: var(--bg-white); border: 1.5px solid var(--border); text-align: center; transition: transform .25s, box-shadow .25s, border-color .25s; }
.tv-pkg.hov { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-light); }
.tv-pkg.pop { border-color: var(--gold-main); }
.tv-pkg.chosen { border-color: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,.2), var(--shadow-md); }
.tv-pn { font-family: var(--font-display, inherit); font-weight: 700; font-size: 13px; color: var(--text-dark); }
.tv-pq { width: 100%; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; } .tv-pq i { display: block; height: 100%; width: 0; background: var(--gold-main); border-radius: 3px; transition: width 1s cubic-bezier(.22,1,.36,1); }
.tv-pf { font-size: 10px; color: var(--text-muted); } .tv-pf::before { content: '✓ '; color: #10B981; font-weight: 800; }
.tv-poptag { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 999px; background: var(--gold-main); color: #231800; font-size: 9px; font-weight: 800; white-space: nowrap; }

.tv-pay { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 10px; height: 158px; margin-top: 8px; transition: opacity .3s, visibility 0s; } .tv-pay.fade { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.tv-qrbox { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; }
.tv-qr { width: 96px; height: 96px; padding: 5px; border-radius: 8px; background: #fff; color: #12151B; } .tv-qr svg { display: block; width: 100%; height: 100%; }
.tv-steps { display: flex; flex-direction: column; gap: 5px; justify-content: center; min-width: 0; }
.tv-st { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-white); opacity: .55; transition: all .3s; }
.tv-st.on { opacity: 1; border-color: var(--gold-main); } .tv-st.done { opacity: 1; border-color: rgba(16,185,129,.55); }
.tv-st > i { flex: none; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-section); color: var(--text-muted); font-style: normal; font-size: 10px; font-weight: 800; }
.tv-st.on > i { background: var(--gold-main); color: #231800; } .tv-st.done > i { background: #10B981; color: #fff; }
.tv-st b { display: block; font-size: 11px; } .tv-st span { display: block; font-size: 9.5px; color: var(--text-muted); }
.tv-active { position: absolute; left: 14px; right: 14px; top: 46px; z-index: 9; }

.tv-prod { display: flex; align-items: center; gap: 9px; } .tv-pico { width: 32px; height: 32px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--gold-pale); font-size: 17px; }
.tv-promo { display: flex; align-items: center; gap: 9px; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-ultra), var(--gold-pale)); border: 1px solid var(--gold-light); font-size: 10px; line-height: 1.35; }
.tv-promo > span:first-child { font-size: 20px; } .tv-promo > div { flex: 1; min-width: 0; }

.tv-day { --bg-warm: #F4F5F7; --bg-white: #FFFFFF; --bg-section: #ECEEF2; --border: #E3E5EA; --text-dark: #12151B; --text-body: #353B46; --text-muted: #5E6573; --gold-pale: #FFF3CD; --gold-ultra: #FFFBEE; --gold-dark: #8A5A00; background: var(--bg-warm); color: var(--text-body); transition: background-color .5s, color .5s; }
.tv-night { --bg-warm: #0E1115; --bg-white: #161A20; --bg-section: #1D222A; --border: #2A313B; --text-dark: #F2F4F7; --text-body: #CDD2DA; --text-muted: #98A0AD; --gold-pale: #2F2714; --gold-ultra: #231E12; --gold-dark: #F3CB5E; background: var(--bg-warm); color: var(--text-body); transition: background-color .5s, color .5s; }
.tv-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; } .tv-nav .tv-nr { display: flex; align-items: center; gap: 7px; }
.tv-tog { width: 26px; height: 26px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: var(--bg-white); font-size: 13px; transition: all .25s; }
.tv-badge-g { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--gold-pale); border: 1px solid var(--gold-light); color: var(--gold-dark); font-size: 10px; font-weight: 700; }
.tv-hero { text-align: center; } .tv-hero-t { margin: 9px 0 6px; font-family: var(--font-display, inherit); font-weight: 800; font-size: 22px; line-height: 1.12; letter-spacing: -.02em; color: var(--text-dark); }
.tv-hero .tv-row { justify-content: center; margin-top: 11px; }
.tv-label-pop { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 5px 13px; border-radius: 999px; background: var(--text-dark); color: var(--bg-white); font-size: 11px; font-weight: 700; }

.tv-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 4px; } .tv-qtile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 6px; border-radius: 11px; background: var(--bg-white); border: 1px solid var(--border); font-size: 10.5px; font-weight: 600; transition: transform .12s; } .tv-qtile i { font-style: normal; font-size: 17px; }
.tv-sec-h { margin: 8px 0 3px; font-size: 11px; font-weight: 700; color: var(--text-dark); }
.tv-dd { position: absolute; left: 14px; right: 14px; top: 62px; z-index: 5; padding: 4px; border-radius: 10px; background: var(--bg-white); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: 11px; }
.tv-dd div { padding: 4px 8px; border-radius: 7px; } .tv-dd div.hl { background: var(--gold-pale); }
.tv-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 52px; margin-top: 8px; border: 1.5px dashed var(--border); border-radius: 10px; background: var(--bg-section); font-size: 10.5px; color: var(--text-muted); transition: border-color .25s; }
.tv-drop.hot { border-color: var(--gold-main); }
.tv-fchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; background: var(--bg-white); border: 1px solid var(--border); color: var(--text-dark); font-size: 10.5px; font-weight: 600; }
.tv-fchip.tv-hid { transform: translateY(-10px); } .tv-fchip.on { transform: translateY(0); }

.tv-vrow { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; padding: 8px 10px; border-radius: 11px; background: var(--bg-white); border: 1px solid var(--border); transition: box-shadow .25s; }
.tv-vrow > i { font-style: normal; font-size: 18px; } .tv-vrow > div { flex: 1; min-width: 0; } .tv-vrow b { display: block; font-size: 11.5px; } .tv-vrow span.tv-mono, .tv-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10.5px; color: var(--text-muted); letter-spacing: .02em; }
.tv-vrow .tv-eye { font-size: 14px; }
.tv-tip { position: absolute; z-index: 20; padding: 4px 9px; border-radius: 8px; background: var(--text-dark); color: var(--bg-white); font-size: 10px; font-weight: 700; }
.tv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; min-height: 52px; align-content: flex-start; }
.tv-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; background: var(--bg-white); border: 1.5px solid var(--c, #999); color: var(--text-dark); font-size: 11px; font-weight: 600; }
@supports (background: color-mix(in srgb, red 10%, white)) {
  .tv-chip { background: color-mix(in srgb, var(--c, #999) 16%, var(--bg-white)); border: 1px solid color-mix(in srgb, var(--c, #999) 55%, transparent); }
}
.tv-icons { display: flex; gap: 5px; flex-wrap: wrap; } .tv-icons i { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 15px; border: 1.5px solid var(--border); background: var(--bg-white); transition: all .2s; }
.tv-icons i.sel { border-color: var(--gold-main); background: var(--gold-pale); transform: scale(1.1); }
.tv-sw { display: flex; gap: 7px; } .tv-sw i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); border: 2px solid transparent; transition: all .2s; } .tv-sw i.sel { border-color: var(--text-dark); transform: scale(1.15); }

.tv-files { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.tv-fr { display: flex; align-items: center; gap: 9px; max-height: 40px; padding: 7px 10px; border-radius: 10px; background: var(--bg-white); border: 1px solid var(--border); overflow: hidden; transition: max-height .4s ease, opacity .3s, padding .3s, margin .3s, border-width .3s, box-shadow .25s; }
.tv-fr.gone { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: -5px; border-width: 0; }
.tv-fr > i { font-style: normal; font-size: 16px; } .tv-fr > div { flex: 1; min-width: 0; } .tv-fr b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tv-fr span.s { display: block; font-size: 9.5px; color: var(--text-muted); }
.tv-star { font-size: 14px; color: var(--text-light, #8B91A0); transition: transform .3s cubic-bezier(.34,1.56,.64,1); } .tv-star.on { color: #F59E0B; transform: scale(1.35); }
.tv-menu { position: absolute; right: 18px; z-index: 15; width: 150px; padding: 4px; border-radius: 10px; background: var(--bg-white); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: 10.5px; transform-origin: top right; }
.tv-menu div { padding: 5px 8px; border-radius: 7px; } .tv-menu div.hl { background: var(--gold-pale); }
.tv-linkbox { display: flex; align-items: center; gap: 7px; margin: 7px 0 5px; padding: 5px 5px 5px 9px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg-section); } .tv-linkbox .tv-mono { flex: 1; min-width: 0; height: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-dark); }

.tv-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; margin-top: 8px; } .tv-col { min-width: 0; padding: 8px; border-radius: 12px; background: var(--bg-section); border: 1px solid var(--border); min-height: 168px; } .tv-col > .tv-ch { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; color: var(--text-dark); }
.tv-col .tv-fr { margin-bottom: 5px; }
.tv-acts { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.tv-mini { padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700; border: 1px solid var(--gold-main); color: var(--gold-dark); background: var(--bg-white); } .tv-mini.red { border-color: #EF4444; color: #EF4444; }
.tv-set { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; padding: 8px 10px; border-radius: 11px; background: var(--bg-white); border: 1px solid var(--border); transition: box-shadow .25s; } .tv-set > i { font-style: normal; font-size: 17px; } .tv-set > div { flex: 1; min-width: 0; } .tv-set b { display: block; font-size: 11.5px; } .tv-set span.s { display: block; font-size: 10px; color: var(--text-muted); }
.tv-switch { width: 34px; height: 19px; flex: none; border-radius: 999px; background: var(--border); position: relative; transition: background-color .25s; } .tv-switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .25s cubic-bezier(.34,1.56,.64,1); } .tv-switch.on { background: #10B981; } .tv-switch.on::after { transform: translateX(15px); }
.tv-pill { padding: 2px 8px; border-radius: 999px; font-size: 9.5px; font-weight: 700; background: rgba(16,185,129,.16); color: #059669; }
.tv-warn { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0; padding: 8px 10px; border-radius: 11px; background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4); font-size: 10.5px; font-weight: 600; color: var(--text-dark); }
.tv-canvas .plan-period { font-size: 11px; }

/* ---------- Kontrol, teks langkah & daftar langkah ---------- */
.tv-bigplay { position: absolute; left: 50%; top: 50%; z-index: 5; width: 68px; height: 68px; margin: -34px 0 0 -34px; border: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(15,17,22,.62); color: #fff; font-size: 26px; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .15s, opacity .2s; }
.tv-bigplay:hover { transform: scale(1.06); } .tv-bigplay.hide { opacity: 0; pointer-events: none; }
.tv-end { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; border-radius: 16px; background: rgba(12,14,18,.86); color: #fff; animation: tvFade .3s ease both; }
.tv-end h3 { margin: 0; font-family: var(--font-display, inherit); font-size: 1.25rem; color: #fff; } .tv-end p { margin: 0; max-width: 340px; font-size: .86rem; color: #D5DAE2; line-height: 1.5; }
.tv-end .tv-cta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.tv-pbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: inherit; font-weight: 700; font-size: .88rem; text-decoration: none; cursor: pointer; }
.tv-pbtn.primary { border: 0; background: linear-gradient(180deg, var(--gold-light), var(--gold-main)); color: #231800; box-shadow: 0 8px 20px -8px rgba(217,154,0,.8); }
.tv-pbtn:hover { filter: brightness(1.08); }

.tv-caption { margin-top: 12px; padding: 12px 14px; min-height: 92px; border-radius: 14px; background: var(--bg-section); border: 1px solid var(--border); }
.tv-stepno { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-dark); }
.tv-cap-t { margin: 2px 0 4px; font-family: var(--font-display, inherit); font-weight: 700; font-size: 1.02rem; color: var(--text-dark); }
.tv-cap-p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--text-body); }

.tv-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tv-cbtn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-white); color: var(--text-dark); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: background-color .15s, border-color .15s; }
.tv-cbtn:hover { background: var(--gold-ultra); border-color: var(--gold-light); }
.tv-cbtn.main { width: 46px; height: 46px; border-radius: 50%; border: 0; background: linear-gradient(180deg, var(--gold-light), var(--gold-main)); color: #231800; font-size: 17px; box-shadow: var(--shadow-gold); }
.tv-cbtn[aria-pressed="true"] { background: var(--gold-pale); border-color: var(--gold-main); }
.tv-prog { flex: 1 1 180px; min-width: 140px; display: flex; gap: 3px; align-items: center; }
.tv-seg { display: flex; align-items: center; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; min-width: 4px; }
.tv-track { display: block; position: relative; width: 100%; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.tv-track i { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, var(--gold-medium), var(--gold-main)); }
.tv-seg:hover .tv-track { height: 8px; }
.tv-time { flex: none; min-width: 78px; text-align: right; font-size: .78rem; font-variant-numeric: tabular-nums; color: var(--text-muted); }

.tv-chapters { min-width: 0; }
.tv-chap-h { margin: 0 0 8px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.tv-chaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; max-height: 480px; overflow-y: auto; }
.tv-chap { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; text-align: left; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text-body); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s; }
.tv-chap:hover { background: var(--bg-section); }
.tv-chap .no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-section); border: 1px solid var(--border); font-size: .74rem; font-weight: 800; color: var(--text-muted); }
.tv-chap.active { background: var(--gold-ultra); border-color: var(--gold-main); color: var(--text-dark); }
.tv-chap.active .no { background: var(--gold-main); border-color: var(--gold-main); color: #231800; }
.tv-chap.done .no { background: #10B981; border-color: #10B981; color: #fff; }
.tv-chap .ic { flex: none; font-size: 1rem; }
.tv-chap .tx { min-width: 0; line-height: 1.3; }

.tv-player button:focus-visible, .tv-sec button:focus-visible, .tv-pbtn:focus-visible { outline: 2px solid var(--gold-main); outline-offset: 2px; }

/* ---------- Bagian tutorial di halaman utama ---------- */
.tv-sec .tv-wrap { max-width: 1200px; margin: 0 auto; }
.tv-poster { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; margin-top: 8px; padding: 22px; border-radius: 28px; background: var(--bg-white); border: 1px solid var(--border); box-shadow: var(--shadow-card); }
.tv-poster-stage { position: relative; cursor: pointer; border-radius: 18px; }
.tv-poster-stage .tv-stage { box-shadow: var(--shadow-md); }
.tv-poster-play { position: absolute; left: 14px; bottom: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border: 0; border-radius: 999px; background: rgba(15,17,22,.78); color: #fff; font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tv-poster-play span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--gold-light), var(--gold-main)); color: #231800; font-size: 11px; }
.tv-poster-info h3 { margin: 0 0 8px; font-family: var(--font-display, inherit); font-size: clamp(1.25rem, 2.2vw, 1.6rem); color: var(--text-dark); }
.tv-poster-info p { margin: 0 0 14px; color: var(--text-muted); line-height: 1.65; }
.tv-poster-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.tv-poster-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-section); color: var(--text-body); font: inherit; font-size: .9rem; font-weight: 600; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.tv-poster-list button:hover { border-color: var(--gold-main); background: var(--gold-ultra); transform: translateX(2px); }
.tv-poster-list .no { flex: none; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-pale); color: var(--gold-dark); font-size: .74rem; font-weight: 800; }
.tv-poster-list .tm { margin-left: auto; font-size: .76rem; font-weight: 600; color: var(--text-muted); }

/* ---------- Banner di dashboard pengguna ---------- */
.tv-banner-dash { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: var(--space-4, 16px); padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, var(--gold-ultra), var(--gold-pale)); border: 1px solid var(--gold-light); }
.tv-banner-dash .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--bg-white); font-size: 20px; box-shadow: var(--shadow-xs); }
.tv-banner-dash .tx { flex: 1; min-width: 200px; font-size: .9rem; line-height: 1.45; color: var(--text-body); } .tv-banner-dash .tx b { color: var(--text-dark); display: block; }
.tv-banner-dash .acts { display: flex; align-items: center; gap: 8px; }
.tv-banner-dash .go { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 999px; background: linear-gradient(180deg, var(--gold-light), var(--gold-main)); color: #231800; font: inherit; font-weight: 700; font-size: .86rem; cursor: pointer; box-shadow: var(--shadow-gold); }
.tv-banner-dash .no { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); font-size: 16px; cursor: pointer; } .tv-banner-dash .no:hover { background: var(--bg-section); }

/* ---------- Keyframes ---------- */
@keyframes tvFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes tvPop { from { opacity: 0; transform: translateY(14px) scale(.98) } to { opacity: 1; transform: none } }
@keyframes tvIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes tvRip { from { transform: scale(1); opacity: 1 } to { transform: scale(4.2); opacity: 0 } }
@keyframes tvBlink { 50% { opacity: 0 } }
@keyframes tvSpin { to { transform: rotate(360deg) } }
@keyframes tvPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(217,154,0,.0) } 50% { box-shadow: 0 0 0 5px rgba(217,154,0,.35) } }
.tv-paused .tv-spin, .tv-paused .tv-pulse, .tv-paused .tv-in, .tv-paused .tv-txt.caret::after { animation-play-state: paused; }

/* ---------- Layar kecil ---------- */
@media (max-width: 860px) {
  .tv-overlay { padding: 0; align-items: stretch; }
  .tv-player { width: 100%; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; border: 0; }
  .tv-body { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px 12px 18px; }
  .tv-chaps { flex-direction: row; max-height: none; overflow-x: auto; overflow-y: hidden; gap: 7px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
  .tv-chap { width: auto; flex: none; scroll-snap-align: start; border-color: var(--border); background: var(--bg-section); padding: 7px 12px 7px 8px; white-space: nowrap; }
  .tv-chap .ic { display: none; }
  .tv-prog { order: 9; flex: 1 0 100%; }
  .tv-time { margin-left: auto; }
  .tv-poster { grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 18px; border-radius: 22px; }
}
@media (max-width: 480px) {
  .tv-poster-play { left: 8px; bottom: 8px; padding: 5px 11px 5px 6px; font-size: .76rem; } .tv-poster-play span { width: 22px; height: 22px; }
  .tv-head { padding: 10px 12px; } .tv-title { font-size: .95rem; }
  .tv-caption { padding: 10px 12px; min-height: 104px; } .tv-cap-p { font-size: .9rem; }
  .tv-controls { gap: 6px; } .tv-cbtn { min-width: 42px; height: 42px; }
  .tv-end { gap: 8px; padding: 12px; } .tv-end p { font-size: .8rem; } .tv-pbtn { min-height: 40px; padding: 8px 14px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-overlay, .tv-player, .tv-end { animation: none; }
}
