/* ===== Netman Content Bot — tema biru ===== */
:root {
  --bg: #060b16;
  --bg-2: #0a1222;
  --card: #0f1a2e;
  --card-2: #14223b;
  --line: #1e2f4d;
  --text: #f2f6fc;
  --muted: #8fa3c2;
  --lime: #4aa8ff;
  --lime-ink: #03182f;
  --blue: #7cc4ff;
  --blue-soft: rgba(124, 196, 255, .16);
  --green: #4ade80;
  --red: #f87171;
  --radius: 18px;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 10% -10%, #0b2f66 0%, transparent 55%), var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }

/* ---------- Tipografi ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.title {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
}
.title .lime { color: var(--lime); }
.hl {                       /* kotak biru Netman */
  display: inline-block;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 0 .22em .04em;
  border-radius: .18em;
  transform: rotate(-1.5deg);
  box-shadow: 0 6px 0 rgba(0,0,0,.35);
}
.sub { color: var(--muted); margin: 10px 0 0; max-width: 60ch; }
.mono { font-family: var(--mono); }
h2.section {
  font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  margin: 36px 0 14px; display: flex; align-items: center; gap: 10px;
}
h2.section .count { font-family: var(--mono); font-size: 14px; color: var(--lime); font-weight: 600; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.main:has(#form-buat) { max-width: none; }
.side {
  position: sticky; top: 0; height: 100vh;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(8, 9, 11, .7);
  backdrop-filter: blur(10px);
  overflow-y: auto; overscroll-behavior: contain;   /* menu panjang / layar pendek: sidebar bisa di-scroll */
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.side > * { flex-shrink: 0; }
.side::-webkit-scrollbar { width: 6px; }
.side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 900; letter-spacing: -.02em; }
.brand-dot { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #4aa8ff, #1f5fd6); display: grid; place-items: center; color: #fff; font-size: 14px; }
.brand-sub { font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-left: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  color: var(--muted); font-weight: 600;
}
.nav-link:hover { background: var(--card); color: var(--text); }
.nav-link.active { background: var(--card-2); color: var(--text); box-shadow: inset 3px 0 0 var(--lime); }
.nav-link svg { width: 19px; height: 19px; flex: none; }
.side .spacer { flex: 1; }
.main { padding: 32px clamp(16px, 4vw, 48px) 120px; max-width: 1180px; width: 100%; }

/* ---------- Stepper 1-2-3-4 ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 28px; }
.step {
  border: 1px solid var(--line); border-radius: 14px;
  padding: 10px 12px; background: var(--bg-2);
  font-size: 13px; color: var(--muted);
}
.step b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; font-weight: 500; }
.step span { font-weight: 700; }
.step.done { border-color: rgba(74, 222, 128, .35); color: var(--text); }
.step.done b { color: var(--green); }
.step.now { border-color: var(--lime); background: rgba(74, 168, 255, .07); color: var(--text); }
.step.now b { color: var(--lime); }

/* ---------- Kartu ---------- */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card.light { background: #eef4fc; color: #08111f; border-color: #fff; }
.card.light .muted { color: #5b6170; }
.card.blue { border-color: rgba(91,124,250,.6); box-shadow: 0 0 0 1px rgba(91,124,250,.25) inset; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.muted { color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
  color: var(--muted);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.tag.lime::before { background: var(--lime); }
.tag.green::before { background: var(--green); }

/* kartu pipeline "AI 1 / AI 2" */
.pipe h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; }
.pipe p { margin: 0; font-size: 14px; }
.pipe .code {
  margin-top: 14px; font-family: var(--mono); font-size: 13px;
  background: #0b0d10; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; color: #9fb1ff;
}
.card.light .code { background: #dde8f7; border-color: #c6d6ec; color: #2a3a8a; }

/* stat besar */
.stat .num { font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.stat .num.lime { color: var(--lime); }
.stat .lbl { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; }

/* checklist "Bagian saya" */
.checklist { display: flex; flex-direction: column; gap: 10px; }
.check {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-weight: 800; font-size: 17px; letter-spacing: -.01em;
}
.check small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.tick {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: 2px solid var(--line); display: grid; place-items: center; color: transparent;
}
.check.ok .tick { border-color: var(--green); background: rgba(74,222,128,.12); color: var(--green); }
.check.wait .tick { border-color: var(--lime); border-style: dashed; }
label.check { cursor: pointer; }
label.check input { position: absolute; opacity: 0; pointer-events: none; }
label.check:has(input:checked) .tick { border-color: var(--green); background: rgba(74,222,128,.12); color: var(--green); border-style: solid; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; }
.field .hint { font-size: 13px; color: var(--muted); }
.options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 18px; }
.options-grid > .field { min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.options-grid select.input { min-width: 0; padding: 11px 28px 11px 10px; font-size: 13px; text-overflow: ellipsis; }
.options-grid .hint { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px !important; line-height: 1.35; }
.options-grid .chip { padding: 7px 10px; font-size: 12px; }
.buat-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.buat-side-column { display: grid; gap: 14px; align-content: start; min-width: 0; }
.options-card > .eyebrow { margin-bottom: 14px; }
.next-steps { padding: 2px 4px; }
.next-steps .eyebrow { margin: 0 0 7px; font-size: 10px; }
.next-steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; }
.next-steps-grid > div { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 7px; row-gap: 2px; padding: 7px 9px; border-left: 2px solid var(--line); }
.next-steps-grid b { font-size: 12px; font-weight: 700; }
.next-steps-grid small { font-size: 11px; line-height: 1.35; color: var(--muted); }
.input, textarea.input, select.input {
  width: 100%; background: #0b0d10; border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 14px; outline: none;
}
.input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(74,168,255,.15); }
textarea.input { resize: vertical; min-height: 90px; line-height: 1.55; }
textarea.input.code { font-family: var(--mono); font-size: 13px; min-height: 320px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--bg-2);
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.chip input { display: none; }
.chip:has(input:checked), .chip.on { border-color: var(--lime); color: var(--lime); background: rgba(74,168,255,.08); }
.realtime-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.realtime-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.realtime-track { width: 46px; height: 26px; flex: none; padding: 3px; border-radius: 99px; background: #2a3a55; transition: background .18s; }
.realtime-track i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; }
.realtime-toggle input:checked + .realtime-track { background: var(--lime); }
.realtime-toggle input:checked + .realtime-track i { transform: translateX(20px); background: #10120b; }
.realtime-toggle input:focus-visible + .realtime-track { outline: 2px solid var(--lime); outline-offset: 3px; }
.realtime-toggle small { display: block; margin-top: 3px; max-width: 68ch; color: var(--muted); font-size: 12px; font-weight: 500; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 13px 20px;
  font-weight: 800; cursor: pointer; letter-spacing: -.01em;
  background: var(--card-2); color: var(--text); border: 1px solid var(--line);
}
.btn:hover { filter: brightness(1.12); }
.btn.primary { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.btn.blue { background: var(--blue); color: #fff; border-color: var(--blue); font-family: var(--mono); font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* bar "PENINJAU ... cek ✓" */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--blue); color: #0b0f2a; border-radius: 14px; padding: 12px 12px 12px 18px;
  font-family: var(--mono); font-weight: 700; letter-spacing: .12em;
}
.bar .btn { letter-spacing: 0; background: #0b0d10; color: #fff; border-color: #0b0d10; font-family: var(--font); }

/* progress */
.progress { height: 10px; background: #0b0d10; border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > i { display: block; height: 100%; background: var(--green); border-radius: 99px; transition: width .3s; }

/* ---------- Scene (upload & naskah) ---------- */
.scene { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; }
.scene-no {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--lime);
}
.scene h3 { margin: 4px 0 8px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.say { font-size: 16px; font-weight: 600; }
.say::before { content: "say: "; font-family: var(--mono); color: var(--blue); font-weight: 400; font-size: 13px; }
.prompt-box {
  position: relative; margin-top: 12px;
  background: #0b0d10; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 84px 12px 14px; font-family: var(--mono); font-size: 13px; color: #c9d3e0;
}
.prompt-box .btn { position: absolute; top: 8px; right: 8px; }
.prompt-box .k { color: var(--muted); display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: .12em; }
.drop {
  aspect-ratio: 9 / 16; width: 100%;
  border: 2px dashed var(--line); border-radius: 14px;
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: 13px; cursor: pointer; overflow: hidden; position: relative;
  background: #0b0d10;
}
.drop:hover { border-color: var(--lime); color: var(--text); }
.drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop input { display: none; }
.drop.filled { border-style: solid; border-color: var(--green); }
.badge {
  font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px;
  background: var(--card-2); border: 1px solid var(--line); color: var(--muted);
}
.badge.ok { color: var(--green); border-color: rgba(74,222,128,.4); }

/* ---------- Galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.vcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.vthumb { aspect-ratio: 9/16; background: linear-gradient(160deg, #0d2a55, #0b0d10 60%); position: relative; }
.vthumb video, .vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vthumb .dur { position: absolute; right: 8px; bottom: 8px; font-family: var(--mono); font-size: 11px; background: rgba(0,0,0,.7); padding: 2px 6px; border-radius: 6px; }
.vthumb .cap { position: absolute; left: 0; right: 0; bottom: 38%; text-align: center; font-weight: 900; font-size: 20px; letter-spacing: -.03em; padding: 0 10px; }
.vbody { padding: 12px; }
.vbody b { display: block; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.vbody small { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.vbody .actions { margin-top: 10px; }

/* ---------- Hasil ---------- */
.player { aspect-ratio: 9/16; max-height: 78vh; width: 100%; background: #000; border-radius: 18px; border: 1px solid var(--line); object-fit: contain; }
.player.lanskap { aspect-ratio: 16/9; max-height: none; }

/* ---------- Flash ---------- */
.flash { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--card); }
.flash.error { border-color: rgba(248,113,113,.5); color: #fecaca; }
.flash.success { border-color: rgba(74,222,128,.5); color: #bbf7d0; }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { padding: 56px clamp(20px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; gap: 28px; border-right: 1px solid var(--line); }
.auth-hero .title { font-size: clamp(40px, 7vw, 76px); }
.auth-form { display: grid; place-items: center; padding: 32px 16px; }
.auth-form .card { width: 100%; max-width: 400px; }

/* ---------- Mobile ---------- */
.bottom-nav, .side-tutup { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  /* sidebar jadi laci dari kiri, dibuka lewat tombol "Menu" di bawah */
  .side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; height: 100dvh;
    width: min(280px, 84vw); background: #0b0d10;
    transform: translateX(-102%); transition: transform .22s ease;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
  body.menu-buka .side { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .side-tutup { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0,0,0,.55); border: 0; padding: 0;
    opacity: 0; pointer-events: none; transition: opacity .22s; }
  body.menu-buka .side-tutup { opacity: 1; pointer-events: auto; }
  body.menu-buka { overflow: hidden; }
  .bottom-nav button { background: none; border: 0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 600; }
  .main { padding: 20px 16px 110px; min-width: 0; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .scene { grid-template-columns: 110px 1fr; gap: 14px; }
  .stepper { gap: 6px; }
  .step { padding: 8px; font-size: 12px; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { border-right: 0; padding-bottom: 8px; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: rgba(8,9,11,.92); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); font-weight: 600; }
  .bottom-nav a.active { color: var(--text); }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .plus { background: var(--lime); color: var(--lime-ink); border-radius: 12px; width: 46px; height: 32px; display: grid; place-items: center; }
}
@media (max-width: 520px) {
  .g2 { grid-template-columns: 1fr; }
  .stat .num { font-size: 34px; }
  .scene { grid-template-columns: 92px 1fr; gap: 12px; }
  .scene .prompt-box { padding-right: 14px; padding-top: 40px; }
  .step b { font-size: 10px; letter-spacing: .04em; }
}
@media (max-width: 359px) {
  .options-grid { grid-template-columns: 1fr; }
}

/* kartu adegan landscape: kolom gambar selebar pratinjau 16:9 supaya tidak menimpa teks */
.scene.lanskap { grid-template-columns: 260px 1fr; }
@media (max-width: 760px) { .scene.lanskap { grid-template-columns: 1fr; } .scene.lanskap .drop { width: 100% !important; } }
