* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg0: #070a16; --bg1: #0c1226; --card: rgba(24, 32, 60, .55); --line: rgba(122, 140, 200, .18);
  --txt: #eef1fb; --muted: #9aa6ce; --gold1: #c39641; --gold2: #f3dfa2;
  --accent: #6d7bff; --accent2: #a35bff; --glass-border: rgba(150, 170, 255, .22);
}
html, body { height: 100%; }
body { font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif; color: var(--txt); background: var(--bg0); overflow: hidden; }

/* ===== Latar sinematik ===== */
.orbs { position: fixed; inset: 0; z-index: 0; overflow: hidden; filter: blur(60px); }
.orbs .o { position: absolute; border-radius: 50%; opacity: .55; mix-blend-mode: screen; }
.o1 { width: 620px; height: 620px; background: radial-gradient(circle, #4a3bff, transparent 62%); top: -180px; left: -120px; animation: drift1 22s ease-in-out infinite; }
.o2 { width: 560px; height: 560px; background: radial-gradient(circle, #a13bff, transparent 62%); bottom: -220px; right: -120px; animation: drift2 26s ease-in-out infinite; }
.o3 { width: 480px; height: 480px; background: radial-gradient(circle, #c39641, transparent 60%); top: 40%; left: 45%; opacity: .32; animation: drift3 30s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(120px,80px) scale(1.15);} }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-100px,-70px) scale(1.1);} }
@keyframes drift3 { 0%,100%{ transform: translate(-50%,-50%) scale(1);} 50%{ transform: translate(-35%,-60%) scale(1.2);} }
body::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% -10%, transparent 55%, rgba(3,5,12,.75) 100%); }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.app { position: relative; z-index: 2; display: flex; flex-direction: row; height: 100vh; }

/* ===== Sidebar ===== */
.sidebar { width: 252px; flex-shrink: 0; display: flex; flex-direction: column; padding: 18px 14px; border-right: 1px solid var(--line); background: rgba(8,11,24,.5); backdrop-filter: blur(16px); }
.side-brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 16px; }
.logo { font-size: 23px; animation: float 4s ease-in-out infinite; filter: drop-shadow(0 4px 10px rgba(120,110,255,.5)); }
@keyframes float { 0%,100%{ transform: translateY(0) rotate(-3deg);} 50%{ transform: translateY(-4px) rotate(3deg);} }
.bname { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-weight: 700; font-size: 19px; letter-spacing: -.01em; background: linear-gradient(92deg, #fff, #cfd6ff 40%, var(--gold2) 75%, #fff); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 10px rgba(195,150,65,.4)); animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 220% center; } }
.newbtn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border: none; border-radius: 12px; color: #fff; font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 8px 22px rgba(120,90,255,.4); transition: transform .15s, filter .2s; }
.newbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.newbtn:active { transform: scale(.98); }
.side-lbl { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 18px 8px 8px; font-weight: 700; }
.hist { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; min-height: 40px; padding-right: 2px; }
.hist-empty { padding: 10px; line-height: 1.6; }
.histitem { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; transition: .16s; animation: pop .3s ease; }
.histitem:hover { background: rgba(120,140,255,.1); border-color: var(--line); }
.histitem.active { background: linear-gradient(135deg, rgba(109,123,255,.24), rgba(163,91,255,.14)); border-color: var(--glass-border); }
.hi-ic { font-size: 15px; }
.hi-body { flex: 1; min-width: 0; }
.hi-body b { display: block; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-body span { font-size: 10.5px; color: var(--muted); }
.hi-act { display: flex; gap: 3px; opacity: 0; transition: .16s; }
.histitem:hover .hi-act { opacity: 1; }
.hi-act button { padding: 5px 6px; font-size: 11px; background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); border-radius: 8px; }
.hi-act button:hover { border-color: var(--accent); color: var(--txt); }
.hi-act .del:hover { border-color: #ff6b6b; color: #ffb3b3; }

.side-foot { padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 7px; }
.chip { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); background: rgba(10,14,30,.6); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.chip + .chip { margin-top: 5px; }
.chip b { color: var(--gold2); font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; }
.setrow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: none; color: var(--muted); border-radius: 11px; padding: 10px; font-size: 13.5px; font-weight: 600; font-family: inherit; cursor: pointer; transition: .16s; }
.setrow:hover { background: rgba(120,140,255,.1); color: var(--txt); }
.prof { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; font-family: inherit; transition: .16s; }
.prof:hover { background: rgba(120,140,255,.08); border-color: var(--accent); }
.av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #20242e; background: linear-gradient(135deg, var(--gold2), var(--gold1)); }
.pi { min-width: 0; flex: 1; }
.pi b { display: block; font-size: 12.5px; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pi span { font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.gdot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; background: conic-gradient(from -40deg,#ea4335,#fbbc05,#34a853,#4285f4,#ea4335); }
.ver { padding: 2px 4px 0; }

.content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.main { position: relative; flex: 1; overflow-y: auto; padding: 34px; max-width: 780px; width: 100%; margin: 0 auto; }
.view { display: none; perspective: 1200px; perspective-origin: 50% 40%; }
.view.active { display: block; animation: viewin .4s ease; }
@keyframes viewin { from { opacity: 0; } to { opacity: 1; } }

/* ===== Panggung 4D (tilt + kedalaman) ===== */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt .z1 { transform: translateZ(35px); } .tilt .z2 { transform: translateZ(65px); } .tilt .z3 { transform: translateZ(80px); }
@media (prefers-reduced-motion: reduce) { .tilt { transform: none !important; } .o { animation: none !important; } }

/* ===== Card ===== */
.card { position: relative; background: var(--card); border: 1px solid var(--glass-border); border-radius: 22px; padding: 24px; margin-bottom: 20px; backdrop-filter: blur(18px); box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px; pointer-events: none; background: linear-gradient(135deg, rgba(160,120,255,.4), transparent 40%, transparent 70%, rgba(195,150,65,.3)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.eyebrow { display: inline-block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent2); margin-bottom: 8px; font-weight: 700; }
.eyebrow.gold { color: var(--gold1); }
.hero .htitle { font-family: "Sora", "Space Grotesk", sans-serif; font-weight: 800; font-size: 32px; line-height: 1.12; letter-spacing: -.02em; margin: 2px 0 18px; color: #fff; text-shadow: 0 0 20px rgba(120,120,255,.22); animation: titleGlow 3.6s ease-in-out infinite; }
@keyframes titleGlow { 0%,100% { text-shadow: 0 0 16px rgba(120,120,255,.16); } 50% { text-shadow: 0 0 30px rgba(150,120,255,.42); } }
.grad { background: linear-gradient(92deg, var(--accent) 0%, var(--gold2) 30%, var(--accent2) 60%, var(--accent) 100%); background-size: 280% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 16px rgba(163,91,255,.5)); animation: gradFlow 5s linear infinite; }
@keyframes gradFlow { to { background-position: 280% center; } }

.reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }
.pop { animation: pop .5s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

label { display: block; font-size: 13px; color: var(--muted); margin: 16px 0 8px; font-weight: 500; }
label:first-of-type { margin-top: 6px; }
input, textarea, select { width: 100%; background: rgba(8,12,26,.75); border: 1px solid var(--line); color: var(--txt); border-radius: 12px; padding: 13px 15px; font-size: 14px; font-family: inherit; outline: none; transition: .2s; }
input::placeholder, textarea::placeholder { color: #63709c; }
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109,123,255,.18), 0 0 22px rgba(109,123,255,.15); }
textarea { resize: vertical; line-height: 1.55; }
.row { display: flex; gap: 10px; align-items: center; } .row input { flex: 1; } .row.between { justify-content: space-between; }
.sel { display: inline-block; } .sel select { width: 110px; margin-top: 6px; }

/* ===== Dropdown elegan ===== */
.selwrap { position: relative; }
.selwrap.sm { display: inline-block; width: 120px; margin-top: 6px; }
.selwrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px; font-weight: 600; }
.selwrap select:hover { border-color: var(--accent); }
.selwrap .caret { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--accent2); font-size: 12px; }
.selwrap select option, .selwrap select optgroup { background: #0d1428; color: var(--txt); }
.selwrap select optgroup { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; color: var(--gold2); }

/* ===== Contoh ide (auto-isi) ===== */
.examples { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.ex { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted); border-radius: 30px; padding: 7px 13px; font-size: 12.5px; font-weight: 500; transition: .18s; }
.ex:hover { color: #fff; border-color: var(--accent); background: rgba(109,123,255,.16); transform: translateY(-1px); }
.ex::before { content: "＋ "; color: var(--accent2); font-weight: 700; }

/* ===== Opsi lanjutan ===== */
details.adv { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(8,12,26,.4); overflow: hidden; }
details.adv > summary { list-style: none; cursor: pointer; padding: 13px 16px; font-size: 13px; font-weight: 600; color: var(--muted); user-select: none; transition: .2s; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::after { content: "▾"; float: right; transition: transform .25s; color: var(--accent2); }
details.adv[open] > summary::after { transform: rotate(180deg); }
details.adv > summary:hover { color: var(--txt); }
.adv-body { padding: 4px 16px 18px; animation: reveal .4s ease; }

/* ===== Segmented sumber gambar ===== */
.seg { display: flex; gap: 6px; background: rgba(8,12,26,.7); border: 1px solid var(--line); border-radius: 14px; padding: 5px; }
.segbtn { flex: 1; background: transparent; color: var(--muted); border-radius: 10px; padding: 11px; font-size: 13px; font-weight: 600; transition: .2s; }
.segbtn.active { color: #fff; background: linear-gradient(135deg, rgba(109,123,255,.9), rgba(163,91,255,.9)); box-shadow: 0 6px 16px rgba(120,90,255,.35); }

/* ===== Kartu paket ===== */
.paket { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.pk { text-align: left; background: rgba(8,12,26,.6); border: 1px solid var(--line); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; gap: 3px; transition: .18s; }
.pk b { font-size: 13.5px; color: var(--txt); }
.pk span { font-size: 10.5px; color: var(--muted); line-height: 1.3; }
.pk em { font-style: normal; font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-weight: 600; font-size: 15px; color: var(--gold2); margin-top: 4px; }
.pk:hover { border-color: var(--accent); transform: translateY(-2px); }
.pk.active { border-color: transparent; background: linear-gradient(150deg, rgba(109,123,255,.28), rgba(163,91,255,.2)); box-shadow: 0 8px 22px rgba(120,90,255,.32), inset 0 0 0 1px rgba(160,120,255,.5); }

/* ===== Upload gambar ===== */
.uploadbox { margin-top: 14px; border: 1.5px dashed rgba(150,170,255,.35); border-radius: 16px; padding: 22px; cursor: pointer; transition: .2s; background: rgba(109,123,255,.05); }
.uploadbox:hover { border-color: var(--accent); background: rgba(109,123,255,.12); }
.uploadbox.drag { border-color: var(--gold1); background: rgba(195,150,65,.12); }
.upl-inner { display: flex; align-items: center; gap: 14px; }
.upl-ic { font-size: 28px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thumb { position: relative; width: 78px; height: 78px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.4); animation: pop .3s ease; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; border: none; font-size: 12px; line-height: 20px; padding: 0; cursor: pointer; }
.thumb .num { position: absolute; bottom: 3px; left: 3px; font-size: 10px; background: rgba(0,0,0,.6); padding: 1px 6px; border-radius: 8px; }

.ghint { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--gold2); background: rgba(195,150,65,.08); border: 1px solid rgba(195,150,65,.28); border-radius: 12px; padding: 11px 14px; }
.charcount { margin-top: 6px; text-align: right; }
.charcount.warn { color: #ffcf7a; }
.hi-thumb { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); }
.genrow { display: flex; align-items: center; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.hargainfo { flex: 1; min-width: 160px; }

/* ===== Buttons ===== */
button { cursor: pointer; border: none; border-radius: 12px; padding: 12px 18px; font-size: 14px; font-weight: 600; font-family: inherit; transition: transform .12s, box-shadow .2s, filter .2s, background .2s, color .2s; }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 8px 24px rgba(109,80,255,.35); }
.primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.4), transparent); transform: skewX(-20deg); transition: left .5s; }
.primary:hover:not(:disabled)::after { left: 130%; }
.primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 10px 30px rgba(109,80,255,.5); }
.big { padding: 15px 32px; font-size: 15px; }
.glow { animation: glowpulse 2.6s ease-in-out infinite; }
@keyframes glowpulse { 0%,100%{ box-shadow: 0 8px 24px rgba(109,80,255,.4); } 50%{ box-shadow: 0 10px 42px rgba(163,91,255,.72), 0 0 32px rgba(195,150,65,.35); } }
.ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--txt); }
.ghost:hover { background: rgba(120,140,255,.14); border-color: var(--accent); }
.round { width: 38px; height: 38px; padding: 0; border-radius: 50%; }
.tiny { padding: 7px 13px; font-size: 12.5px; }

.muted { color: var(--muted); } .small { font-size: 12px; } .hidden { display: none !important; }

/* ===== Progress / loader ===== */
.loader { text-align: center; margin-bottom: 14px; }
.reel { display: inline-block; font-size: 40px; animation: spin 2.4s linear infinite; filter: drop-shadow(0 4px 16px rgba(120,110,255,.5)); }
@keyframes spin { to { transform: rotate(360deg); } }
.progwrap { height: 12px; background: rgba(8,12,26,.8); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); position: relative; }
.progbar { height: 100%; width: 0%; border-radius: 20px; transition: width .5s ease; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--gold2)); background-size: 200% 100%; animation: flow 2s linear infinite; }
@keyframes flow { to { background-position: 200% 0; } }
.progwrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent, rgba(255,255,255,.15), transparent); background-size: 40% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { 0%{ background-position: -60% 0; } 100%{ background-position: 160% 0; } }
#progmsg { margin-top: 12px; text-align: center; }

video { width: 100%; border-radius: 14px; background: #000; margin-bottom: 14px; max-height: 380px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.naskah { color: var(--txt); line-height: 1.65; margin-top: 8px; font-size: 14px; }
details summary { cursor: pointer; margin-top: 12px; }
.err { background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.5); color: #ffb3b3; padding: 13px 16px; border-radius: 14px; }
.foot { text-align: center; padding: 11px; border-top: 1px solid var(--line); }

/* ===== Drawer Pengaturan ===== */
.scrim { position: fixed; inset: 0; z-index: 30; background: rgba(4,6,14,.55); backdrop-filter: blur(3px); animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer { position: fixed; top: 0; right: 0; z-index: 31; width: 400px; max-width: 92vw; height: 100vh; background: linear-gradient(180deg, rgba(16,22,44,.96), rgba(10,14,30,.98)); border-left: 1px solid var(--glass-border); box-shadow: -20px 0 60px rgba(0,0,0,.5); backdrop-filter: blur(20px); display: flex; flex-direction: column; animation: slidein .34s cubic-bezier(.2,.8,.2,1); }
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 19px; }
.drawer-body { padding: 20px 22px; overflow-y: auto; }
.setblock { padding: 16px 0; border-bottom: 1px solid var(--line); }
.setblock:last-child { border-bottom: none; }
.setblock p { margin-bottom: 10px; }
.soon { font-size: 9px; letter-spacing: .1em; color: #0b1020; background: linear-gradient(135deg, var(--gold1), var(--gold2)); padding: 2px 7px; border-radius: 20px; margin-left: 6px; vertical-align: middle; font-weight: 800; }
.toggle { display: flex; align-items: center; gap: 10px; margin: 9px 0; font-size: 13.5px; color: var(--muted); cursor: not-allowed; }
.toggle input { width: auto; }

/* ===== Toast update senyap ===== */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(24,32,60,.95), rgba(16,22,44,.97)); border: 1px solid var(--glass-border); border-radius: 14px; padding: 13px 16px; font-size: 13px; box-shadow: 0 16px 44px rgba(0,0,0,.5); backdrop-filter: blur(16px); max-width: 340px; animation: toastin .4s cubic-bezier(.2,.8,.2,1); }
@keyframes toastin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ===== Overlay proses update (tanpa kesan instal) ===== */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% 20%, rgba(20,26,52,.9), rgba(4,6,14,.97)); backdrop-filter: blur(18px); animation: fade .4s ease; }
.ov-inner { text-align: center; max-width: 340px; padding: 20px; }
.ov-reel { font-size: 60px; animation: spin 2.2s linear infinite; filter: drop-shadow(0 6px 22px rgba(120,110,255,.6)); }
.ov-title { font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif; font-size: 22px; margin: 20px 0 16px; background: linear-gradient(92deg, #fff, var(--gold2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ov-bar { height: 8px; background: rgba(8,12,26,.8); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.ov-fill { height: 100%; width: 0; border-radius: 20px; background: linear-gradient(90deg, var(--accent), var(--accent2), var(--gold2)); background-size: 200% 100%; animation: flow 1.5s linear infinite, ovgrow 2s cubic-bezier(.4,.1,.2,1) forwards; }
@keyframes ovgrow { to { width: 100%; } }
.ov-sub { margin-top: 14px; }

::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: rgba(122,140,200,.3); border-radius: 10px; } ::-webkit-scrollbar-track { background: transparent; }

/* ================= WEB: hamburger + responsif mobile ================= */
.menuBtn{ display:none; position:fixed; top:12px; left:12px; z-index:35; width:44px; height:44px; border:none; border-radius:12px; background:linear-gradient(135deg,var(--accent),var(--accent2)); color:#fff; font-size:19px; cursor:pointer; box-shadow:0 8px 22px rgba(120,90,255,.4); }
@media (max-width: 860px){
  body{ overflow:auto; }
  .app{ flex-direction:column; height:auto; min-height:100dvh; }
  .menuBtn{ display:block; }
  .sidebar{ position:fixed; top:0; left:0; z-index:34; height:100dvh; width:270px; max-width:84vw; transform:translateX(-100%); transition:transform .3s cubic-bezier(.2,.8,.2,1); }
  .sidebar.open{ transform:translateX(0) !important; box-shadow:24px 0 60px rgba(0,0,0,.55); }
  .content{ width:100%; }
  .main{ padding-top:64px; }
  .side-scrim{ display:none; position:fixed; inset:0; z-index:33; background:rgba(4,6,14,.55); }
  .side-scrim.show{ display:block; }
  .card.hero{ transform:none !important; }
  .htitle{ font-size:23px; }
}

/* ================= WIZARD BERTAHAP (naskah-dulu, mobile-first) ================= */
.wizwrap{ max-width:640px; margin:0 auto; width:100%; }
.stepbar{ display:flex; align-items:flex-start; gap:4px; margin:2px 0 20px; }
.stepbar .st{ flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; position:relative; }
.stepbar .st .bar{ position:absolute; top:16px; left:60%; width:80%; height:2px; background:var(--line); }
.stepbar .st:last-child .bar{ display:none; }
.stepbar .dot{ width:33px; height:33px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; background:rgba(255,255,255,.05); border:1px solid var(--line); color:var(--muted); transition:.25s; position:relative; z-index:1; }
.stepbar .st.active .dot{ background:linear-gradient(135deg,var(--accent),var(--accent2)); border-color:transparent; color:#fff; box-shadow:0 6px 18px rgba(120,90,255,.45); }
.stepbar .st.done .dot{ background:rgba(120,90,255,.20); border-color:var(--glass-border); color:var(--gold2); }
.stepbar .st.done .bar{ background:rgba(120,90,255,.4); }
.stepbar .lbl{ font-size:11px; color:var(--muted); font-weight:600; text-align:center; }
.stepbar .st.active .lbl{ color:var(--txt); }

.step{ display:none; }
.step.show{ display:block; animation:stepin .32s cubic-bezier(.2,.8,.2,1); }
@keyframes stepin{ from{opacity:0; transform:translateX(10px);} to{opacity:1; transform:none;} }
.step .steptitle{ font-family:"Space Grotesk","Plus Jakarta Sans",sans-serif; font-size:20px; font-weight:700; margin-bottom:4px; }
.step .stepsub{ font-size:13px; color:var(--muted); margin-bottom:18px; }

/* Tile pilihan sumber */
.choices{ display:flex; flex-direction:column; gap:11px; margin-bottom:18px; }
.choice{ display:flex; align-items:center; gap:13px; padding:15px; border-radius:15px; background:var(--card); border:1px solid var(--line); cursor:pointer; transition:.18s; text-align:left; width:100%; font-family:inherit; color:var(--txt); }
.choice:active{ transform:scale(.99); }
.choice.active{ border-color:var(--accent2); background:linear-gradient(135deg,rgba(109,123,255,.17),rgba(163,91,255,.10)); box-shadow:0 10px 26px rgba(120,90,255,.16); }
.choice .cic{ width:46px; height:46px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:23px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); flex-shrink:0; }
.choice.active .cic{ background:rgba(163,91,255,.18); border-color:var(--glass-border); }
.choice .ctx b{ display:block; font-size:15px; font-weight:700; }
.choice .ctx span{ font-size:12px; color:var(--muted); }
.choice .cch{ margin-left:auto; color:var(--accent2); opacity:0; transition:.18s; font-size:18px; }
.choice.active .cch{ opacity:1; }

/* CTA sticky bawah (zona jempol) */
.ctabar{ position:sticky; bottom:0; display:flex; gap:10px; padding:16px 0 6px; margin-top:6px; background:linear-gradient(to top, var(--bg0) 62%, transparent); z-index:6; }
.ctabar .b{ flex:1; padding:15px; font-size:16px; font-weight:700; border-radius:13px; border:none; cursor:pointer; font-family:inherit; display:flex; align-items:center; justify-content:center; gap:8px; transition:.15s; }
.ctabar .b.pri{ color:#fff; background:linear-gradient(135deg,var(--accent2),var(--accent)); box-shadow:0 10px 26px rgba(120,90,255,.42); }
.ctabar .b.pri:hover{ filter:brightness(1.07); }
.ctabar .b.pri:disabled{ opacity:.55; }
.ctabar .b.sec{ flex:0 0 auto; padding:15px 17px; background:rgba(255,255,255,.05); border:1px solid var(--line); color:var(--muted); }

#naskahBox2{ min-height:190px; line-height:1.6; }
.naskahmeta{ display:flex; justify-content:space-between; align-items:center; margin:8px 2px 0; }
.naskahmeta .muted{ font-size:12px; }

@media (max-width: 860px){
  .step .steptitle{ font-size:18px; }
  .stepbar .lbl{ font-size:10px; }
}

/* ===== Anti scroll-samping (kompatibel semua HP) ===== */
html{ overflow-x:hidden !important; }
body{ overflow-x:hidden !important; max-width:100%; }
@media (max-width:860px){ body{ overflow-y:auto !important; } }
.orbs{ max-width:100vw; overflow:hidden; }
.stage,.app,.content,.main,.wizwrap{ max-width:100%; }

/* ===== HP: padat, simpel, elegan (kurangi scroll) ===== */
@media (max-width:860px){
  .main{ padding-top:54px; }
  .card.step,.wizwrap .card{ padding:16px 15px; border-radius:16px; }
  .stepbar{ margin:0 0 13px; }
  .stepbar .dot{ width:29px; height:29px; font-size:13px; }
  .stepbar .lbl{ font-size:10px; }
  .step .steptitle{ font-size:17px; }
  .step .stepsub{ font-size:12px; margin-bottom:12px; }
  .choices{ gap:8px; margin-bottom:12px; }
  .choice{ padding:11px 12px; border-radius:13px; }
  .choice .cic{ width:38px; height:38px; font-size:19px; border-radius:11px; }
  .choice .ctx b{ font-size:13.5px; }
  .choice .ctx span{ font-size:10.5px; }
  label{ margin-top:10px; }
  .examples{ gap:6px; margin-top:7px; }
  .ex{ font-size:11px; padding:5px 9px; }
  #naskahBox2{ min-height:148px; }
  .seg{ gap:6px; }
  .segbtn{ padding:10px 8px; font-size:12.5px; }
  .ctabar{ padding:12px 0 4px; }
  .ctabar .b{ padding:14px; font-size:15px; }
  .ctabar .b.sec{ padding:14px 15px; }
}

/* ===== HP: top bar rapi (ganti hamburger ngambang) + kartu rapat ===== */
.mtopbar{ display:none; }
@media (max-width:860px){
  .mtopbar{ display:flex; align-items:center; gap:11px; position:sticky; top:0; z-index:34; padding:9px 13px; background:rgba(9,12,26,.97); border-bottom:1px solid var(--line); }
  .menuBtn{ position:static; display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:11px; background:rgba(255,255,255,.06); border:1px solid var(--line); color:var(--txt); font-size:18px; box-shadow:none; flex-shrink:0; }
  .menuBtn:active{ background:rgba(255,255,255,.12); }
  .mtb-brand{ font-family:"Space Grotesk","Plus Jakarta Sans",sans-serif; font-weight:700; font-size:16px; background:linear-gradient(92deg,#fff,var(--gold2)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
  .mtb-saldo{ margin-left:auto; font-size:12px; color:var(--gold2); font-weight:600; background:var(--card); border:1px solid var(--glass-border); padding:5px 11px; border-radius:20px; }
  .main{ padding:14px 12px 26px !important; }
  .side-scrim{ z-index:40; }
  .sidebar{ z-index:41; width:272px; }
}

/* ===== HP: anti geser-samping (matikan orb) + drawer blur ===== */
@media (max-width:860px){
  .orbs{ display:none !important; }
  body{ background:radial-gradient(120% 70% at 80% -8%, rgba(124,60,255,.15), transparent 55%), radial-gradient(90% 60% at 0% 100%, rgba(195,150,65,.09), transparent 55%), var(--bg0) !important; }
  .side-scrim{ background:rgba(4,6,14,.55); }
  .app.drawer-open .content{ pointer-events:none; }
}

/* ===== Drawer HP: pakai LEFT (transform beku di sebagian render) ===== */
@media (max-width:860px){
  .sidebar{ transform:none !important; left:-290px !important; right:auto !important; transition:left .3s cubic-bezier(.2,.8,.2,1) !important; }
  .sidebar.open{ left:0 !important; }
}

/* ===== Drawer HP: panel SOLID, tanpa blur sama sekali ===== */
@media (max-width:860px){
  .sidebar{ background:#0b1020 !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
  .side-scrim{ backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
}

/* tombol tutup drawer (HP) */
.closeSide{ display:none; }
@media (max-width:860px){
  .side-brand{ align-items:center; }
  .closeSide{ display:flex; margin-left:auto; width:34px; height:34px; border-radius:9px; background:rgba(255,255,255,.06); border:1px solid var(--line); color:var(--txt); font-size:15px; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
}
