/* AmaresO Studio — gaya dasar (ink gelap + kuning brand, Plus Jakarta Sans) */
@font-face { font-family: 'PJS'; src: url('/static/fonts/PlusJakartaSans.woff2') format('woff2'), url('/static/fonts/PlusJakartaSans.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'PJS'; src: url('/static/fonts/PlusJakartaSans-Italic.woff2') format('woff2'), url('/static/fonts/PlusJakartaSans-Italic.ttf') format('truetype'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Silk'; src: url('/static/fonts/Silkscreen-Regular.woff2') format('woff2'), url('/static/fonts/Silkscreen-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'JBM'; src: url('/static/fonts/JetBrainsMono.woff2') format('woff2'), url('/static/fonts/JetBrainsMono.ttf') format('truetype'); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #15130F; --ink2: #0E0D0A; --surface: #1E1B15; --raised: #27231B;
  --line: rgba(255,227,91,.14); --line-soft: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.16);
  --text: #F4F0E4; --muted: #A39B89; --muted2: #CFC8B6;
  --yellow: #FFE35B; --yellow-deep: #D9B921; --on-yellow: #1A1708;
  --ok: #8FE3A5; --warn: #FFB454; --bad: #FF7F70; --cyan: #7FE3D0;
  --radius: 14px; --radius-sm: 10px;
  --font: 'PJS', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JBM', ui-monospace, Menlo, Consolas, monospace;
  --pixel: 'Silk', var(--mono);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: var(--yellow); }
a:hover { color: #FFF0A0; }
img, video { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -.015em; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 800; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.pixel { font-family: var(--pixel); }
.muted { color: var(--muted); }
.muted2 { color: var(--muted2); }
.yellow { color: var(--yellow); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap { max-width: 1232px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Header & footer */
.top { border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 20; background: rgba(21,19,15,.94); backdrop-filter: blur(8px); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 18px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand b { color: var(--yellow); font-weight: 800; }
.nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; font-size: 14px; }
.nav a { color: var(--muted2); text-decoration: none; }
.nav a.on, .nav a:hover { color: var(--text); font-weight: 700; }
.credit-pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--raised); border: 1px solid rgba(255,227,91,.25); font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none; }
.credit-pill i { width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); display: inline-block; }
.foot { border-top: 1px solid var(--line-soft); margin-top: 56px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-block: 24px; font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted2); text-decoration: none; }
main.page { padding-block: 32px 40px; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--yellow); color: var(--on-yellow); font: inherit; font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #FFEA80; color: var(--on-yellow); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); font-weight: 700; }
.btn.ghost:hover { border-color: var(--muted); }
.btn.outline { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(255,127,112,.5); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.btn.lg { min-height: 52px; font-size: 16px; padding: 0 22px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; color: var(--yellow); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

/* Kartu & panel */
.card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; }
.card.tight { padding: 16px; }
.card.accent { border-color: rgba(255,227,91,.22); }
.panel-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--mono); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(var(--min, 280px), 1fr)); }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }

/* Chip & status */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--raised); color: var(--muted2); border: 1px solid var(--line-soft); }
.chip.ok { background: rgba(143,227,165,.12); color: var(--ok); border-color: transparent; }
.chip.warn { background: rgba(255,180,84,.12); color: var(--warn); border-color: transparent; }
.chip.bad, .chip.error { background: rgba(255,127,112,.12); color: var(--bad); border-color: transparent; }
.chip.y { background: var(--yellow); color: var(--on-yellow); border-color: transparent; }
.tag { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--raised); color: var(--yellow); border: 1px solid rgba(255,227,91,.3); }
.tag.soon { color: var(--muted2); border-color: var(--line-strong); background: transparent; }

/* Form */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field > .label, legend { font-size: 14px; font-weight: 700; }
.field .help { font-size: 12.5px; color: var(--muted); }
.field .err { font-size: 12.5px; color: var(--bad); }
.input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--ink); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: 15px; }
textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:focus, select:focus, textarea:focus { border-color: var(--yellow); outline: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cards-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cards-pick label { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line-strong); cursor: pointer; }
.cards-pick label:has(input:checked) { border: 2px solid var(--yellow); background: var(--raised); padding: 11px; }
.cards-pick .sw { height: 56px; border-radius: 8px; }
.cards-pick .t { display: flex; gap: 8px; align-items: center; font-weight: 800; }
.cards-pick .d { font-size: 12.5px; color: var(--muted2); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); font-weight: 700; cursor: pointer; }
.checks label:has(input:checked) { border-color: var(--yellow); background: var(--raised); }
input[type=checkbox], input[type=radio] { accent-color: var(--yellow); width: 18px; height: 18px; }
.drop { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.drop img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--ink2); }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); font-size: 14px; }
.notice.bad { border-color: rgba(255,127,112,.4); color: #FFD3CC; background: rgba(255,127,112,.08); }
.notice.ok { border-color: rgba(143,227,165,.35); color: #D7F6E0; background: rgba(143,227,165,.07); }

/* Tabel */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 12px 14px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Beranda */
.hero { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-start; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.04; }
.hero h1 span { color: var(--yellow); }
.hero .lead { font-size: 17px; color: var(--muted2); max-width: 540px; }
.usp { display: flex; gap: 14px; align-items: baseline; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); font-size: 14px; }
.usp b { flex: none; width: 128px; color: var(--yellow); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.filters a.on { background: var(--yellow); border-color: var(--yellow); color: var(--on-yellow); font-weight: 800; }
.tool { display: flex; flex-direction: column; gap: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); overflow: hidden; text-decoration: none; color: var(--text); }
.tool:hover { border-color: rgba(255,227,91,.4); color: var(--text); }
.tool.off { opacity: .55; }
.tool .cover { position: relative; height: 240px; background: var(--ink2); overflow: hidden; }
.tool .cover video, .tool .cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.tool .cover .ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.tool .cover .ph b { font-family: var(--pixel); font-size: 24px; color: rgba(255,255,255,.88); font-weight: 400; }
.tool .cover .badge { position: absolute; left: 10px; bottom: 10px; font-size: 12px; font-weight: 700; background: rgba(11,10,8,.82); padding: 4px 8px; border-radius: 6px; }
.tool .cover .ratio { position: absolute; right: 10px; bottom: 10px; font-family: var(--mono); font-size: 11px; background: rgba(11,10,8,.82); padding: 4px 7px; border-radius: 6px; }
.tool .cover .tag { position: absolute; right: 10px; top: 10px; background: rgba(21,19,15,.85); }
.tool .body { display: flex; flex-direction: column; gap: 8px; padding: 0 20px; }
.tool .name { font-size: 18px; font-weight: 800; }
.tool .desc { font-size: 14px; color: var(--muted2); }
.tool .meta { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px 18px; border-top: 1px solid var(--line-soft); margin: 0 0 0; font-size: 13px; }
.tool .meta .price { font-weight: 800; color: var(--yellow); }
.steps3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps3 > div { display: flex; gap: 16px; padding: 20px; border-radius: 14px; border: 1px solid var(--line); }
.steps3 .n { font-family: var(--pixel); font-size: 26px; color: var(--yellow); line-height: 1; }

/* Stepper */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.stepper li span { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line-strong); font-family: var(--pixel); }
.stepper li.on { color: var(--text); font-weight: 800; }
.stepper li.on span { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.stepper li.done span { background: rgba(143,227,165,.15); color: var(--ok); border-color: transparent; }

/* Proyek */
.proj { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); text-decoration: none; color: var(--text); }
.proj:hover { border-color: rgba(255,227,91,.35); color: var(--text); }
.proj .th { width: 54px; height: 96px; border-radius: 8px; background: var(--ink2); object-fit: cover; flex: none; }
.progress { height: 12px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--yellow); transition: width .6s; }
.steps-list { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.steps-list li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); }
.steps-list li:last-child { border-bottom: 0; }
.steps-list .dot { width: 30px; height: 30px; flex: none; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; border: 1px solid var(--line-strong); }
.steps-list .done .dot { background: rgba(143,227,165,.15); color: var(--ok); border-color: transparent; }
.steps-list .run .dot { background: var(--yellow); color: var(--on-yellow); border-color: transparent; }
.steps-list .fail .dot { background: rgba(255,127,112,.15); color: var(--bad); border-color: transparent; }
.video-card { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-soft); }
.video-card video { width: 100%; aspect-ratio: 9/16; max-height: 560px; object-fit: contain; background: #000; border-radius: 12px; }

/* Editor storyboard */
.ed-top { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.seg button { min-height: 36px; padding: 0 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted2); font: inherit; font-weight: 700; cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--yellow); color: var(--on-yellow); font-weight: 800; }
.strip { overflow-x: auto; padding: 4px 2px 10px; }
.strip ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; min-width: max-content; }
.strip li button { display: flex; flex-direction: column; gap: 8px; width: 118px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.frame { position: relative; height: 210px; width: 118px; border-radius: 9px; overflow: hidden; background: var(--ink2); outline: 1px solid var(--line-soft); }
.frame.sel { outline: 3px solid var(--yellow); outline-offset: 2px; }
.frame .shot { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.frame .lbl { position: absolute; left: 6px; top: 6px; font-family: var(--pixel); font-size: 12px; background: rgba(11,10,8,.78); padding: 2px 6px; border-radius: 4px; }
.frame .tc { position: absolute; left: 6px; bottom: 6px; font-family: var(--mono); font-size: 11px; background: rgba(11,10,8,.78); padding: 2px 6px; border-radius: 4px; }
.frame .warnmark { position: absolute; right: 6px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: #1a1000; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.frame.live { background: radial-gradient(circle at 65% 65%, #4A3A22, #0B0A08 72%); }
.frame.text { background: linear-gradient(160deg, var(--raised), var(--ink2)); }
.frame.end { background: linear-gradient(var(--ink) 66%, var(--yellow) 66%); }
.frame .cap { position: absolute; left: 8px; right: 8px; top: 34px; font-size: 11px; font-weight: 800; line-height: 1.25; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.strip .t { font-size: 13px; font-weight: 700; line-height: 1.3; }
.ed-detail { display: flex; flex-wrap: wrap; gap: 22px; }
.ed-preview { position: relative; width: 236px; height: 420px; flex: none; border-radius: 12px; overflow: hidden; background: var(--ink2); border: 2px solid var(--yellow); }
.ed-preview .shot { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.ed-preview .hl { position: absolute; border: 2px solid var(--yellow); border-radius: 6px; box-shadow: 0 0 0 999px rgba(0,0,0,.5); }
.ed-preview .cap { position: absolute; left: 10px; right: 10px; top: 44px; text-align: center; font-size: 15px; font-weight: 800; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.85); }
.ed-preview .note { position: absolute; left: 8px; bottom: 8px; right: 8px; font-family: var(--mono); font-size: 10px; background: rgba(11,10,8,.85); padding: 4px 6px; border-radius: 4px; }
.ed-fields { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.ed-fields .two { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.issue { font-size: 12.5px; }
.issue.warn { color: var(--warn); }
.issue.error { color: var(--bad); }
.cmt { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--ink); }
.cmt.ai { background: var(--raised); border: 1px solid rgba(255,227,91,.25); }
.cmt .who { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 800; }
.cmt.ai .who b { color: var(--yellow); }
.diff { font-size: 12.5px; color: var(--muted2); }
.diff del { color: var(--muted); }
.diff ins { color: var(--ok); text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; padding: 12px 18px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .progress > i { transition: none; } }

/* Admin */
.admin { display: flex; flex-wrap: wrap; min-height: 100vh; }
.admin nav.side { flex: 1 1 220px; max-width: 100%; padding: 18px 14px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.admin nav.side a { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 9px; color: var(--muted2); text-decoration: none; font-size: 14px; font-weight: 600; }
.admin nav.side a.on { background: var(--raised); color: var(--yellow); font-weight: 800; }
.admin nav.side .brand { padding: 4px 8px 16px; font-size: 16px; }
.admin .content { flex: 999 1 760px; min-width: 0; padding: 26px max(20px, env(safe-area-inset-right)) 48px 28px; display: flex; flex-direction: column; gap: 22px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.health li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.health { list-style: none; margin: 0; padding: 0; }
.health .s { flex: none; width: 74px; }
.code { font-family: var(--mono); font-size: 13px; line-height: 1.6; }
textarea.code { min-height: 220px; background: var(--ink2); }
pre.log { white-space: pre-wrap; background: var(--ink2); border: 1px solid var(--line-soft); border-radius: 12px; padding: 14px; font-family: var(--mono); font-size: 12.5px; max-height: 420px; overflow: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line-soft); }
.tabs a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; color: var(--muted); text-decoration: none; font-weight: 700; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--text); border-color: var(--yellow); }
.legal { max-width: 760px; }
.legal p, .legal li { color: var(--muted2); margin-bottom: 10px; }

@media (max-width: 640px) {
  h1 { font-size: 28px; }
  .card { padding: 16px; }
  .admin nav.side { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .admin .content { padding-left: max(16px, env(safe-area-inset-left)); }
  .usp b { width: 104px; }
  .top .wrap { gap: 10px 16px; }
  .top .wrap > .btn.sm { display: none; }
  .brand { font-size: 16px; }
  .brand img { width: 30px; height: 30px; }
  .nav { gap: 14px; }
}

/* ---------- Pratinjau editor ---------- */
.ed-preview .pv-chip { position: absolute; left: 10px; right: 10px; top: 46px; display: flex; justify-content: center; align-items: center; gap: 6px; }
.ed-preview .pv-chip span { max-width: 190px; text-align: center; font-size: 11.5px; font-weight: 800; line-height: 1.2; color: var(--on-yellow); background: var(--yellow); padding: 4px 8px; border-radius: 5px; box-shadow: 0 4px 10px rgba(0,0,0,.4); }
.ed-preview .pv-chip.step span { background: rgba(11,10,8,.85); color: #fff; }
.ed-preview .pv-chip b { width: 22px; height: 22px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--on-yellow); font-family: var(--pixel); font-weight: 400; box-shadow: 2px 2px 0 #0B0A08; }
.ed-preview .pv-hint { position: absolute; right: 10px; top: 200px; font-family: var(--mono); font-size: 11px; background: rgba(11,10,8,.8); color: #fff; padding: 3px 7px; border-radius: 5px; }
.ed-preview .pv-prod { position: absolute; left: 38px; top: 110px; width: 160px; height: 190px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.5)); }
.ed-preview .pv-text { position: absolute; left: 14px; right: 14px; top: 150px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ed-preview .pv-text b { font-size: 22px; line-height: 1.05; color: var(--text); }
.ed-preview .pv-text i { font-size: 13px; font-weight: 800; color: var(--yellow); }
.ed-preview .pv-text span { font-size: 10.5px; color: var(--muted); }
.ed-preview .pv-end { position: absolute; left: 12px; right: 12px; top: 64px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.ed-preview .pv-end .pv-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--yellow); color: var(--on-yellow); font-family: var(--pixel); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ed-preview .pv-end b { font-size: 16px; }
.ed-preview .pv-end span { font-size: 12px; font-weight: 800; }
.ed-preview .pv-end small { font-size: 10px; color: var(--muted2); }
.ed-preview .pv-end em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--on-yellow); background: var(--yellow); padding: 6px 12px; border-radius: 7px; box-shadow: 2px 2px 0 #0B0A08; }
.ed-preview .pv-callout { position: absolute; left: 30px; right: 30px; top: 214px; display: flex; gap: 7px; align-items: center; padding: 7px 8px; border-radius: 8px; background: rgba(21,19,15,.9); border: 1.5px solid var(--yellow); font-size: 10.5px; font-weight: 800; color: #fff; }
.ed-preview .pv-callout b { width: 18px; height: 18px; flex: none; border-radius: 5px; display: flex; align-items: center; justify-content: center; background: var(--yellow); color: var(--on-yellow); font-family: var(--pixel); font-weight: 400; }
.ed-preview .pv-callout small { display: block; font-size: 9px; font-weight: 600; color: var(--muted2); }
.ed-preview .pv-callout.alert { border-color: #E5484D; background: rgba(40,12,14,.9); }
.ed-preview .pv-callout.alert b { background: #E5484D; color: #fff; }
.ed-preview .pv-callout.success { border-color: #7FE3D0; background: rgba(12,22,20,.9); }
.ed-preview .pv-callout.success b { background: #7FE3D0; color: #0B0A08; }
.ed-preview .pv-sub { position: absolute; left: 18px; right: 18px; top: 262px; text-align: center; font-size: 10px; font-weight: 700; color: #fff; background: rgba(11,10,8,.76); padding: 3px 6px; border-radius: 5px; }

/* ---------- Contoh video: tombol putar & pemutar layar penuh ---------- */
.tool-wrap { position: relative; display: flex; }
.tool-wrap > .tool { flex: 1 1 auto; min-width: 0; }
.play-ico { position: relative; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--yellow); box-shadow: 0 6px 18px rgba(0,0,0,.45); transition: transform .15s ease; }
.play-ico::after { content: ''; position: absolute; left: 19px; top: 15px; border-left: 15px solid var(--on-yellow); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.cover-play { position: absolute; left: 50%; top: 120px; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border: 0; border-radius: 999px; background: rgba(11,10,8,.78); color: #fff; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.cover-play:hover .play-ico, .cover-play:focus-visible .play-ico, .sample-play:hover .play-ico, .sample-play:focus-visible .play-ico { transform: scale(1.08); }
.cover-play:focus-visible, .sample-play:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sample-thumb { position: relative; width: 120px; aspect-ratio: 9/16; flex: none; border-radius: 12px; overflow: hidden; background: #000; }
.sample-thumb img, .sample-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.sample-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); color: #fff; font: inherit; font-weight: 800; font-size: 13px; cursor: pointer; }
html.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; background: rgba(6,5,4,.96); }
.lightbox[hidden] { display: none; }
.lb-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 12px; }
.lb-stage video { height: 100%; max-height: 100%; max-width: 100%; aspect-ratio: 9/16; background: #000; border-radius: 12px; }
.lb-stage:fullscreen { padding: 0; background: #000; }
.lb-stage:fullscreen video { border-radius: 0; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.lb-title { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .lb-stage { padding: 0; }
  .lb-stage video { border-radius: 0; width: 100%; height: 100%; object-fit: contain; }
}
/* Ringkasan harga: durasi terpilih */
.dur-row { padding: 6px 10px; margin: 0 -10px; border-radius: 8px; border: 1px solid transparent; }
.dur-row.on { border-color: var(--yellow); background: var(--raised); }
.dur-row.on .muted { color: var(--text); font-weight: 700; }
