/* ============================================================
   Prompter Studio — tema gelap hijau-emas (keluarga CISSREC)
   ============================================================ */
:root {
  --bg: #030712;
  --bg-2: #0a1220;
  --card: rgba(255,255,255,.04);
  --card-border: rgba(255,255,255,.09);
  --card-hover: rgba(16,185,129,.08);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --green: #10b981;
  --green-2: #34d399;
  --gold: #fbbf24;
  --gold-2: #fcd34d;
  --red: #ef4444;
  --radius: 14px;
  --grad: linear-gradient(135deg, #10b981 0%, #0ea5a4 50%, #fbbf24 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(900px 420px at 85% -5%, rgba(16,185,129,.14), transparent 60%),
    radial-gradient(800px 420px at 0% 10%, rgba(251,191,36,.07), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--green-2); text-decoration: none; }
a:hover { opacity: .9; }
h1,h2,h3,h4 { line-height: 1.25; margin: 0 0 .5rem; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.text-muted { color: var(--muted); }
.text-green { color: var(--green-2); }
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 2rem; } .mt-4 { margin-top: 3rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 2rem; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(3,7,18,.82);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a { color: var(--text); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.nav-links a:hover { background: rgba(255,255,255,.06); }
.nav-links .pill {
  background: rgba(251,191,36,.14); color: var(--gold);
  border: 1px solid rgba(251,191,36,.35);
}
.badge-premium {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1000; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; font-size: .72rem;
  letter-spacing: .02em;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 0;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s;
  text-align: center; line-height: 1.2;
}
.btn:active { transform: scale(.98); }
.btn-primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; box-shadow: 0 8px 24px -8px rgba(16,185,129,.55);
}
.btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(16,185,129,.7); }
.btn-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #201300; box-shadow: 0 8px 24px -8px rgba(251,191,36,.5);
}
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--card-border); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-danger { background: rgba(239,68,68,.15); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Kartu ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(8px);
}
.card-hover { transition: transform .2s, border-color .2s, background .2s; }
.card-hover:hover { border-color: rgba(16,185,129,.4); background: var(--card-hover); transform: translateY(-2px); }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.grid-5 { grid-template-columns: repeat(5,1fr); }

@media (max-width: 1024px) { .grid-4,.grid-5 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 820px) { .grid-3,.grid-4,.grid-5 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .grid-2,.grid-3,.grid-4,.grid-5 { grid-template-columns: 1fr; } }

/* ---------- Chip pilihan ---------- */
.chip-wrap { display: grid; gap: 10px; }
.chip {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--card-border); background: rgba(255,255,255,.03);
  transition: border-color .15s, background .15s, box-shadow .15s;
  text-align: left; color: var(--text); font: inherit; width: 100%;
}
.chip small { color: var(--muted); font-weight: 400; line-height: 1.35; }
.chip .t { font-weight: 700; display: flex; gap: 8px; align-items: center; }
.chip:hover { border-color: rgba(16,185,129,.45); background: rgba(16,185,129,.06); }
.chip.active {
  border-color: var(--green); background: rgba(16,185,129,.14);
  box-shadow: 0 0 0 3px rgba(16,185,129,.15);
}
.chip.active .t { color: var(--green-2); }

/* ---------- Form ---------- */
label.fl { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; color: #cbd5e1; }
/* Label kelompok besar & mencolok (kuning) untuk form Studio */
label.fl-lg {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 9px;
  color: var(--gold);
  letter-spacing: .01em;
}
label.fl-lg small { color: var(--muted); font-weight: 500; font-size: .84rem; }
/* Penanda field yang kurang diisi */
input.inp-miss, textarea.inp-miss, select.inp-miss {
  border-color: rgba(239,68,68,.75) !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15) !important;
}
.chip.chip-miss { border-color: rgba(239,68,68,.75) !important; background: rgba(239,68,68,.07); }
.field-note-miss { color: var(--red); font-size: .84rem; font-weight: 600; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--card-border); background: rgba(255,255,255,.05);
  color: var(--text); font: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.18);
  background: rgba(255,255,255,.07);
}
textarea { resize: vertical; min-height: 90px; }
.field { margin-bottom: 16px; }

/* ---------- Alert ---------- */
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; font-size: .93rem; border: 1px solid; }
.alert-success { background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.4); color: #6ee7b7; }
.alert-error { background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.4); color: #fca5a5; }
.alert-info { background: rgba(56,189,248,.1); border-color: rgba(56,189,248,.35); color: #7dd3fc; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--card-border);
  margin-top: 70px; padding: 40px 20px 28px;
  background: rgba(3,7,18,.6);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; max-width: 1180px; margin: 0 auto; }
.footer a { color: var(--muted); display: block; padding: 3px 0; font-size: .9rem; }
.footer h4 { color: #fff; margin-bottom: 10px; font-size: .95rem; }
.footer .copy { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 32px; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Hero landing ---------- */
.hero { padding: 74px 0 54px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -.02em; }
.hero p.lead { max-width: 640px; margin: 16px auto 26px; font-size: 1.1rem; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.statline { display: flex; gap: 34px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.statline .s { text-align: center; }
.statline .n { font-size: 1.8rem; font-weight: 800; color: var(--green-2); }
.statline .l { color: var(--muted); font-size: .86rem; }

.section-title { text-align: center; margin: 60px 0 8px; }
.section-title .eyebrow { color: var(--green-2); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .78rem; }
.section-title h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 6px; }

/* ---------- Studio langkah ---------- */
.step-card { border: 1px solid var(--card-border); border-radius: 18px; padding: 24px; margin-bottom: 22px; background: rgba(255,255,255,.025); }
.step-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.step-num {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.step-head h3 { margin: 0; font-size: 1.1rem; }
.step-head p { margin: 0; color: var(--muted); font-size: .86rem; }

/* ---------- Tabs output ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab-btn {
  padding: 9px 16px; border-radius: 10px; border: 1px solid var(--card-border);
  background: rgba(255,255,255,.04); color: var(--muted); font-weight: 700; cursor: pointer; font-size: .88rem;
}
.tab-btn.active { background: rgba(16,185,129,.15); border-color: var(--green); color: var(--green-2); }
.panel { display: none; }
.panel.active { display: block; }
.outbox {
  background: #060c18; border: 1px solid var(--card-border); border-radius: 12px;
  padding: 18px; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85rem; line-height: 1.6; max-height: 560px; overflow: auto;
}

/* ---------- Modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(2,6,16,.7); z-index: 90;
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.modal-back.open { display: flex; }
.modal {
  background: #0b1220; border: 1px solid var(--card-border); border-radius: 18px;
  padding: 26px; max-width: 560px; width: 100%; max-height: 88vh; overflow: auto;
}
.modal h3 { margin-top: 0; }

/* ---------- Misc ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; }
.badge-green { background: rgba(16,185,129,.15); color: #6ee7b7; }
.badge-gold { background: rgba(251,191,36,.15); color: var(--gold); }
.badge-gray { background: rgba(255,255,255,.08); color: var(--muted); }

.spin {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.25); border-top-color: #fff;
  animation: spin .7s linear infinite; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.divider { height: 1px; background: var(--card-border); margin: 20px 0; border: 0; }
.kbd { background: rgba(255,255,255,.08); padding: 1px 7px; border-radius: 6px; font-size: .8em; font-weight: 700; }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.icon-box {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem;
  background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.25);
}

/* Tabel */
table.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 700; border-bottom: 1px solid var(--card-border); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255,255,255,.02); }

.banner-lite {
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(251,191,36,.08));
  border: 1px solid rgba(16,185,129,.3);
  border-radius: 14px; padding: 14px 18px; display: flex; gap: 12px; align-items: center;
}

/* Responsif kecil */
@media (max-width: 640px) {
  .nav-links a { font-size: .85rem; padding: 6px 8px; }
  .hero { padding: 46px 0 34px; }
  .step-card { padding: 16px; }
}
