
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.app-card { display: flex; flex-direction: column; gap: 3px; padding: 14px; color: inherit; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; transition: transform .15s; }
.app-card:active { transform: scale(.97); }
.app-card svg { width: 64px; height: 64px; margin-bottom: 8px; border-radius: 16px; }
.app-card b { font-size: 18px; }
.app-card small { color: var(--muted); line-height: 1.35; }
.app-note { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.app { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--night); padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); -webkit-user-select: none; user-select: none; }
.app-bar { flex: none; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 6px 8px; }
.app-bar h1 { flex: 1; min-width: 0; margin: 0; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }

.icon-btn { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--ink); background: transparent; border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:active { background: rgba(255, 255, 255, .1); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn[aria-pressed="true"] { color: var(--night); background: var(--sun); }

.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 170px); max-width: calc(100% - 32px); padding: 9px 14px; font-size: 14px; font-weight: 700; color: var(--night); background: var(--sun); border-radius: 10px; transform: translateX(-50%); pointer-events: none; }

/* Melukis */
.paper { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.paper canvas { position: absolute; top: 0; left: 0; display: block; touch-action: none; cursor: crosshair; }
.draw-tools { flex: none; display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--panel); border-top: 1px solid var(--line); }
.tool-row { display: flex; align-items: center; gap: 4px; }
.size { flex: 1; min-width: 70px; height: 44px; margin: 0 6px; accent-color: var(--sun); }
.size-dot { flex: none; display: grid; place-items: center; width: 44px; height: 44px; }
.size-dot i { display: block; max-width: 40px; max-height: 40px; background: var(--ink); border: 1px solid rgba(0, 0, 0, .4); border-radius: 50%; }
.swatches { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.swatches::-webkit-scrollbar { display: none; }
.swatch { flex: none; width: 36px; height: 36px; padding: 0; background: var(--c); border: 2px solid rgba(255, 255, 255, .28); border-radius: 50%; cursor: pointer; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--sun); }
.swatch-custom { position: relative; flex: none; display: block; width: 36px; height: 36px; overflow: hidden; background: conic-gradient(#f33, #fc3, #3c6, #3cf, #63f, #f3c, #f33); border: 2px solid rgba(255, 255, 255, .28); border-radius: 50%; cursor: pointer; }
.swatch-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* Kamera */
.viewfinder { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; }
.viewfinder video { display: block; width: 100%; height: 100%; object-fit: contain; }
.viewfinder video.mirror { transform: scaleX(-1); }
.viewfinder canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.rec-badge { position: absolute; top: 10px; left: 50%; display: flex; align-items: center; gap: 7px; padding: 5px 11px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; background: rgba(0, 0, 0, .6); border-radius: 14px; transform: translateX(-50%); pointer-events: none; }
.rec-badge i { width: 10px; height: 10px; background: #ff3b30; border-radius: 50%; animation: rec-pulse 1s ease-in-out infinite alternate; }
@keyframes rec-pulse { from { opacity: 1; } to { opacity: .3; } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash.go { animation: flash .22s ease-out; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 900; color: #fff; text-shadow: 0 3px 18px rgba(0, 0, 0, .7); pointer-events: none; }
.cam-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; line-height: 1.45; }
.cam-error .btn { display: inline-flex; align-items: center; justify-content: center; }
.cam-tools { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 8px 12px 12px; background: var(--night); }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 13px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; }
.chip[aria-pressed="true"] { color: var(--night); background: var(--sun); border-color: var(--sun); }
.cam-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.thumb { position: relative; justify-self: start; width: 56px; height: 56px; padding: 0; overflow: hidden; background: var(--panel); border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb:disabled { cursor: default; }
.thumb span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; color: #fff; text-shadow: 0 1px 5px rgba(0, 0, 0, .8); }
.shutter { width: 74px; height: 74px; padding: 0; background: var(--ink); border: 5px solid var(--night); border-radius: 50%; box-shadow: 0 0 0 3px var(--ink); cursor: pointer; }
.shutter:active { transform: scale(.93); }
.shutter:disabled { opacity: .4; cursor: default; }
.shutter.counting { background: var(--hot); }
.cam-right { justify-self: end; display: flex; align-items: center; gap: 6px; }
.timer { min-width: 44px; padding: 0 8px; }
.timer:disabled { opacity: .4; cursor: default; }
.record { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; background: transparent; border: 3px solid var(--ink); border-radius: 50%; cursor: pointer; }
.record i { display: block; width: 28px; height: 28px; background: #ff3b30; border-radius: 50%; transition: width .15s, height .15s, border-radius .15s; }
.record.on i { width: 20px; height: 20px; border-radius: 5px; }
.record:disabled { opacity: .4; cursor: default; }

.viewer { position: fixed; z-index: 50; inset: 0; display: flex; flex-direction: column; background: #000; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.viewer-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.viewer-img img, .viewer-img video { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-actions { flex: none; display: grid; grid-template-columns: 1fr 1.7fr; gap: 8px; padding: 10px 12px; }
.viewer-actions .btn { font-size: 16px; white-space: nowrap; }

/* Edit Video */
.editor { -webkit-user-select: auto; user-select: auto; }
.editor [hidden], .ve-work [hidden] { display: none !important; }
.ve-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; line-height: 1.45; }
.ve-empty .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 28px; }
.app-bar .btn.small { display: inline-flex; align-items: center; width: auto; white-space: nowrap; cursor: pointer; }
.ve-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ve-stage { position: relative; flex: 1 1 34%; min-height: 150px; background: #000; }
.ve-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ve-play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: transparent; border: 0; cursor: pointer; }
.ve-play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -24px 0 0 -16px; border-style: solid; border-width: 24px 0 24px 38px; border-color: transparent transparent transparent rgba(255, 255, 255, .85); filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6)); }
.ve-play.playing::after { display: none; }
.ve-badge { position: absolute; left: 50%; bottom: 8px; padding: 4px 10px; font-size: 13px; font-weight: 700; white-space: nowrap; color: var(--night); background: var(--sun); border-radius: 8px; transform: translateX(-50%); pointer-events: none; }
.ve-controls { flex: 1 1 40%; min-height: 0; overflow-y: auto; padding: 8px 12px; }
.ve-group { margin-bottom: 12px; }
.ve-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.ve-label output { color: var(--muted); font-variant-numeric: tabular-nums; }
.ve-chips { display: flex; align-items: center; gap: 6px; }
.ve-chips .filters { flex: 1; min-width: 0; }
.ve-note { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.ve-trim { position: relative; height: 56px; overflow: hidden; background: var(--panel); border-radius: 10px; }
.ve-thumbs { position: absolute; inset: 0; display: flex; }
.ve-thumbs canvas { flex: 1 1 0; min-width: 0; height: 100%; object-fit: cover; }
.ve-shade { position: absolute; top: 0; bottom: 0; background: rgba(0, 0, 0, .68); pointer-events: none; }
.ve-playhead { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; pointer-events: none; }
.ve-trim input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; border: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.ve-trim input::-webkit-slider-runnable-track { height: 56px; background: transparent; }
.ve-trim input::-moz-range-track { height: 56px; background: transparent; }
.ve-trim input::-webkit-slider-thumb { width: 22px; height: 56px; background: var(--sun); border: 0; border-radius: 6px; cursor: ew-resize; pointer-events: auto; -webkit-appearance: none; appearance: none; }
.ve-trim input::-moz-range-thumb { width: 22px; height: 56px; background: var(--sun); border: 0; border-radius: 6px; cursor: ew-resize; pointer-events: auto; }
.ve-export { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px 12px; background: var(--panel); border-top: 1px solid var(--line); }
.ve-export p { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; }
.ve-export .btn { flex: none; width: auto; padding: 0 18px; white-space: nowrap; }
.ve-work { background: var(--night); }
.ve-progress { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 10px; width: min(420px, 100%); margin: 0 auto; padding: 24px; text-align: center; }
.ve-progress h2 { margin: 0; font-size: 22px; }
.ve-progress p { margin: 0; font-variant-numeric: tabular-nums; }
.ve-bar { height: 12px; overflow: hidden; background: var(--panel); border-radius: 6px; }
.ve-bar i { display: block; width: 0; height: 100%; background: var(--sun); }
.ve-result { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ve-result-video { flex: 1; min-height: 0; width: 100%; background: #000; }
.ve-result .ve-note { padding: 0 12px; text-align: center; }

@media (orientation: landscape) and (max-height: 500px) {
  .app.camera { display: grid; grid-template-columns: minmax(0, 1fr) 210px; grid-template-rows: 44px minmax(0, 1fr); }
  .camera .app-bar { grid-column: 1 / -1; min-height: 44px; padding: 0 8px; }
  .camera .cam-tools { justify-content: center; overflow-y: auto; }
  .cam-right { flex-direction: column; }
  .ve-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .ve-stage { grid-row: 1 / -1; }
  .ve-export { grid-column: 2; }
  .draw-tools { flex-direction: row; align-items: center; }
  .draw-tools .tool-row { flex: 1 1 50%; min-width: 0; }
  .draw-tools .swatches { flex: 1 1 50%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flash.go, .rec-badge i { animation: none; }
  .app-card { transition: none; }
}

/* Edit Video: menu tutorial & hasil */
.ve-menu-btn { position: relative; }
.ve-menu-btn i { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; background: var(--hot, #ff4d6d); border: 2px solid var(--night); border-radius: 50%; }
.ve-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ve-empty-links .btn { width: auto; padding: 0 16px; font-size: 15px; }
.ve-kira { color: var(--muted); font-weight: 700; }
.chip[aria-pressed="true"] .ve-kira { color: inherit; }
.ve-menu { background: var(--night); -webkit-user-select: auto; user-select: auto; }
.ve-tabs { flex: none; display: flex; gap: 8px; padding: 0 12px 10px; }
.ve-tabs .chip { flex: 1; }
.ve-menu-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 12px 20px; }
.ve-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ve-step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.ve-step svg { width: 120px; height: 80px; border-radius: 10px; background: #16131f; }
.ve-step b { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.ve-step b i { display: inline-grid; place-items: center; width: 24px; height: 24px; font-style: normal; font-size: 13px; color: var(--night); background: var(--sun); border-radius: 50%; }
.ve-step p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.ve-step p b { display: inline; font-size: inherit; color: var(--ink); }
.ve-tip { margin: 14px 2px; font-size: 14px; }
#tutorialMula { width: 100%; }
.ve-hasil { display: grid; gap: 10px; }
.ve-kad { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.ve-kad-gambar { position: relative; width: 112px; height: 72px; padding: 0; overflow: hidden; background: #000; border: 0; border-radius: 10px; cursor: pointer; }
.ve-kad-gambar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ve-kad-gambar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.ve-kad-teks { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ve-kad-teks b { font-size: 15px; }
.ve-kad-teks small { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ve-lencana { color: var(--sun) !important; font-weight: 700; }
.ve-kosong { margin: 40px 12px; text-align: center; color: var(--muted); line-height: 1.5; }
@media (max-width: 360px) { .ve-step { grid-template-columns: 1fr; } .ve-step svg { width: 100%; height: auto; } }
.ve-menu-h { margin: 6px 2px 8px; font-size: 16px; }
.ve-demo { margin-bottom: 16px; }
.ve-demo-skrin { position: relative; width: min(100%, 300px); margin: 0 auto; aspect-ratio: 9 / 16; overflow: hidden; background: #000; border: 1px solid var(--line); border-radius: 18px; }
.ve-demo-skrin canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.ve-demo-main { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0; background: rgba(0, 0, 0, .55); border: 3px solid #fff; border-radius: 50%; cursor: pointer; }
.ve-demo-main::after { content: ""; position: absolute; left: 29px; top: 21px; border-style: solid; border-width: 17px 0 17px 27px; border-color: transparent transparent transparent #fff; }
.ve-demo-kawal { display: flex; align-items: center; gap: 6px; width: min(100%, 300px); margin: 6px auto 0; }
.ve-demo-butang svg { fill: currentColor; stroke: none; }
.ve-demo-bar { flex: 1; min-width: 0; accent-color: var(--sun); }
.ve-demo-masa { min-width: 34px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.ve-hasil-atas { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ve-hasil-atas .ve-note { margin: 0; }
.ve-padam-semua { flex: none; width: auto; min-height: 36px; padding: 0 12px; font-size: 13px; color: #ff8a8a; background: transparent; border: 1px solid #ff8a8a; }
.ve-padam-semua.sedia, .ve-buang.sedia { color: #fff; background: #d63a3a; border-color: #d63a3a; }
.ve-hasil-nota { margin: 0 2px 10px; font-size: 12.5px; }
.ve-kad { grid-template-columns: 112px minmax(0, 1fr) auto auto; gap: 6px; }
.ve-buang { color: #ff8a8a; }
.ve-buang.sedia { width: auto; padding: 0 8px; font-size: 13px; font-weight: 800; border-radius: 10px; }
.ve-padam-btn { color: #ff8a8a; }

/* Kad Pasang App (PWA) */
.app-card-pasang { border-color: rgba(255, 194, 61, .55); background: linear-gradient(150deg, rgba(255, 90, 54, .2), rgba(255, 194, 61, .1)), var(--panel); }
.app-card-pasang img { width: 64px; height: 64px; margin-bottom: 8px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.app-card-pasang[data-dipasang] small { color: #7ee081; font-weight: 700; }
/* Edit Video: lagu & pratonton */
.ve-pilih-lagu { display: inline-flex; align-items: center; cursor: pointer; }
.ve-lagu-tip { margin: 0; flex: 1; min-width: 0; }
.ve-lagu-baris { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ve-lagu-baris b { flex: 1; min-width: 0; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.ve-lagu-trim canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ve-vol { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.ve-vol label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ve-vol input { width: 100%; accent-color: var(--sun); }
.ve-export { flex-wrap: wrap; }
.ve-export p { flex: 1 1 100%; }
.ve-export .btn { flex: 1 1 0; }
#exportBtn { flex: 1.4 1 0; }
.ve-saiz-hasil { flex: none; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; padding: 10px 12px 2px; text-align: center; }
.ve-saiz-hasil small { flex: 1 1 100%; color: var(--muted); font-size: 12px; font-weight: 700; }
.ve-saiz-hasil b { font-size: 24px; color: var(--sun); font-variant-numeric: tabular-nums; }
.ve-saiz-hasil span { color: var(--ink); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ve-kad-saiz { font-size: 15px; font-weight: 800; color: var(--sun); font-variant-numeric: tabular-nums; }
.ve-saiz-hasil .ve-lencana { flex: 1 1 100%; }
.ve-kad-teks small { white-space: normal; overflow: visible; }
/* Laju: pilihan laju satu baris penuh, Songsang & Gerak licin di bawah */
#speeds { margin-bottom: 6px; }
.ve-chips-bawah { flex-wrap: wrap; }
.ve-ralat { position: fixed; z-index: 99; left: 8px; right: 8px; top: calc(env(safe-area-inset-top) + 60px); padding: 10px 12px; font-size: 13px; line-height: 1.4; color: #fff; background: #b3261e; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .4); -webkit-user-select: text; user-select: text; }
#speeds { flex-wrap: wrap; overflow: visible; }
/* Audio: bisu & kelantangan */
.ve-audio-asal { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ve-bisu { flex: none; }
.ve-bisu.bisu { color: #fff; background: #b3261e; border-color: #b3261e; }
.ve-bisu:disabled { opacity: .4; }
.ve-vol-baris { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.ve-vol-baris span { flex: none; white-space: nowrap; }
.ve-vol-baris input { flex: 1; min-width: 60px; accent-color: var(--sun); }
.ve-vol-baris input:disabled { opacity: .35; }
.ve-vol-baris output { flex: none; min-width: 38px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
#laguAda .ve-vol-baris { margin-top: 8px; }

/* ===================== Edit Video — reka bentuk profesional ===================== */
.ve-pro { --ve-aksen: var(--sun); --ve-kad: #1e1a2b; --ve-garis: rgba(255, 255, 255, .08); background: radial-gradient(120% 60% at 50% -10%, #2a2142 0%, var(--night) 55%); }
.ve-pro .app-bar { gap: 6px; min-height: 52px; }
.ve-pro .app-bar h1 { font-size: 16px; font-weight: 800; letter-spacing: .2px; }
.ve-tukar { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; font-size: 13px; font-weight: 800; color: var(--ink); background: rgba(255, 255, 255, .07); border: 1px solid var(--ve-garis); border-radius: 17px; cursor: pointer; }
.ve-tukar svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ve-tukar[hidden] { display: none; }

/* Skrin kosong */
.ve-pro .ve-empty { gap: 12px; padding: 24px 22px 32px; }
.ve-hero svg { width: 180px; height: auto; filter: drop-shadow(0 12px 30px rgba(255, 90, 54, .25)); }
.ve-empty-tajuk { margin: 4px 0 0; font-size: 26px; font-weight: 900; letter-spacing: .3px; }
.ve-pro #emptyText { max-width: 320px; margin: 0; color: var(--muted); font-size: 15px; }
.ve-pilih { min-width: 220px; height: 52px; font-size: 17px; border-radius: 16px; background: linear-gradient(135deg, #ffc23d, #ff5a36); color: #1a1208; box-shadow: 0 10px 26px rgba(255, 90, 54, .35); }
.ve-ciri { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 360px; margin: 4px 0 6px; padding: 0; list-style: none; }
.ve-ciri li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--ve-garis); border-radius: 999px; }
.ve-ciri b { font-weight: 400; }
.ve-pro .ve-empty-links .btn { background: transparent; border: 1px solid var(--ve-garis); color: var(--ink); }

/* Pentas video */
.ve-pro .ve-stage { flex: 1 1 38%; min-height: 170px; margin: 0 10px; overflow: hidden; background: #000; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--ve-garis); }
.ve-pro .ve-play::after { border-width: 20px 0 20px 32px; margin: -20px 0 0 -12px; }
.ve-pro .ve-play::before { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(0, 0, 0, .45); border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; backdrop-filter: blur(4px); }
.ve-pro .ve-play.playing::before { display: none; }
.ve-stage-info { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.ve-stage-info span { max-width: 60%; padding: 4px 9px; overflow: hidden; font-size: 12px; font-weight: 800; color: #fff; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; background: rgba(0, 0, 0, .58); border-radius: 8px; backdrop-filter: blur(4px); }
.ve-stage-info span:empty { display: none; }
#stageTanda { color: var(--ve-aksen); }
.ve-pro .ve-badge { top: 10px; bottom: auto; }

/* Garis masa potong */
.ve-timeline { flex: none; margin: 10px 10px 0; padding: 10px 12px 12px; background: var(--ve-kad); border: 1px solid var(--ve-garis); border-radius: 16px; }
.ve-pro .ve-label { align-items: center; margin-bottom: 8px; font-size: 13px; font-weight: 800; letter-spacing: .3px; }
.ve-pro .ve-label output { padding: 2px 8px; font-size: 12px; color: var(--ink); background: rgba(255, 255, 255, .07); border-radius: 6px; }
.ve-pro .ve-trim { height: 52px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--ve-garis); }
.ve-pro .ve-trim input::-webkit-slider-runnable-track { height: 52px; }
.ve-pro .ve-trim input::-webkit-slider-thumb { height: 52px; width: 20px; border-radius: 6px; background: var(--ve-aksen); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .5); }
.ve-pro .ve-trim input::-moz-range-thumb { height: 52px; width: 20px; border-radius: 6px; background: var(--ve-aksen); }
.ve-pro .ve-playhead { width: 3px; background: #fff; box-shadow: 0 0 6px rgba(255, 255, 255, .8); }

/* Bar alat */
.ve-alat { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 10px 0; }
.ve-alat-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; padding: 8px 4px 7px; font: inherit; color: var(--muted); background: var(--ve-kad); border: 1px solid var(--ve-garis); border-radius: 14px; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.ve-alat-btn:active { transform: scale(.96); }
.ve-alat-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ve-alat-btn span { font-size: 12px; font-weight: 800; color: var(--ink); }
.ve-alat-btn small { max-width: 100%; overflow: hidden; font-size: 11px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ve-alat-btn[aria-selected="true"] { color: var(--night); background: var(--ve-aksen); border-color: var(--ve-aksen); box-shadow: 0 6px 18px rgba(255, 194, 61, .25); }
.ve-alat-btn[aria-selected="true"] span { color: var(--night); }

/* Panel tetapan */
.ve-pro .ve-controls { flex: 1 1 26%; margin: 8px 10px 0; padding: 12px; background: var(--ve-kad); border: 1px solid var(--ve-garis); border-radius: 16px; }
.ve-pro .ve-panel[hidden] { display: none !important; }
.ve-pro .ve-group { margin-bottom: 0; }
.ve-label-kedua { margin-top: 14px; }
.ve-pro .chip { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border-color: var(--ve-garis); transition: background .15s; }
.ve-pro .chip[aria-pressed="true"] { color: var(--night); background: var(--ve-aksen); border-color: var(--ve-aksen); }
.ve-pro .filters { gap: 6px; }
.ve-pro #sizes, .ve-pro #rates, .ve-pro #qualities { flex-wrap: wrap; overflow: visible; }
.ve-pro .ve-note { font-size: 12.5px; line-height: 1.45; }
.ve-pro input[type="range"] { accent-color: var(--ve-aksen); }

/* Bar eksport */
.ve-pro .ve-export { margin-top: 10px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(22, 19, 31, .92); border-top: 1px solid var(--ve-garis); backdrop-filter: blur(10px); }
.ve-pro .ve-export p { text-align: center; font-size: 12px; }
.ve-pro .ve-export .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 14px; font-size: 16px; font-weight: 800; }
.ve-pro .ve-export .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ve-btn-pratonton { color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--ve-garis); }
.ve-btn-eksport { color: #1a1208 !important; background: linear-gradient(135deg, #ffc23d, #ff5a36) !important; border: 0; box-shadow: 0 8px 22px rgba(255, 90, 54, .3); }

/* Proses */
.ve-cincin { position: relative; width: 140px; height: 140px; margin: 0 auto 6px; }
.ve-cincin svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ve-cincin circle { fill: none; stroke-width: 10; }
.ve-cincin-latar { stroke: var(--panel); }
.ve-cincin-isi { stroke: var(--sun); stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset .3s; }
.ve-cincin b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; }
.ve-work .ve-bar { display: none; }

@media (orientation: landscape) and (max-height: 500px) {
  .ve-pro .ve-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .ve-pro .ve-stage { grid-row: 1 / -1; margin: 0 6px 10px 10px; }
  .ve-pro .ve-timeline, .ve-pro .ve-alat, .ve-pro .ve-controls, .ve-pro .ve-export { grid-column: 2; }
  .ve-pro .ve-timeline { margin-top: 0; }
}
/* Sentuhan akhir */
.ve-pro h2, .ve-work h2 { text-transform: none; letter-spacing: .2px; color: var(--ink); }
.ve-pro .ve-label output:empty { display: none; }
.ve-pilih { background: linear-gradient(135deg, #ffc23d, #ff5a36) !important; color: #1a1208 !important; border: 0 !important; }
.ve-work { background: radial-gradient(120% 60% at 50% -10%, #2a2142 0%, var(--night) 55%); }
.ve-work .ve-progress h2 { font-size: 20px; }
.ve-work #cancel { width: auto; min-width: 160px; margin: 6px auto 0; background: transparent; border: 1px solid rgba(255, 255, 255, .15); }
.ve-result .app-bar h1 { font-size: 15px; }
.ve-result-video { border-radius: 0; }
.ve-saiz-hasil { margin: 10px 12px 0; padding: 12px; background: #1e1a2b; border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; }
.ve-result .viewer-actions .btn, #lihat .viewer-actions .btn { height: 50px; border-radius: 14px; font-weight: 800; }
.ve-result .viewer-actions .btn.primary, #lihat .viewer-actions .btn.primary { color: #1a1208; background: linear-gradient(135deg, #ffc23d, #ff5a36); border: 0; box-shadow: 0 8px 22px rgba(255, 90, 54, .3); }
.ve-result .viewer-actions .btn:not(.primary) { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.ve-menu .ve-tabs .chip { min-height: 42px; border-radius: 12px; }
.ve-step, .ve-kad { border-radius: 16px; background: #1e1a2b; border-color: rgba(255, 255, 255, .08); }
