* { box-sizing: border-box; }
[hidden] { display: none !important; }
:root {
  --bg: #070b18; --bg2: #0c1224; --card: #111a30; --card2: #16213d;
  --text: #eef2ff; --muted: #94a0bd; --border: #222e4d;
  --blue: #38bdf8; --violet: #a78bfa; --green: #22c55e; --green-dark: #16a34a;
  --red: #f87171; --amber: #fbbf24;
  --grad: linear-gradient(90deg, #38bdf8, #818cf8 50%, #c084fc);
}
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
}
a { color: var(--blue); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px; }
.muted { color: var(--muted); font-size: 14px; }
.error { color: var(--red); font-size: 14px; min-height: 18px; margin-top: 8px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* form & tombol */
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 5px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; font: inherit; color: var(--text);
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #38bdf866; border-color: var(--blue); }
textarea { min-height: 120px; resize: vertical; }
input[type=date] { color-scheme: dark; }
button, .btn {
  display: inline-block; background: var(--grad); color: #0b1020; font-weight: 700;
  border: 0; border-radius: 10px; padding: 11px 18px; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; text-align: center;
}
button:hover, .btn:hover { filter: brightness(1.1); }
button.ghost, .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 600; }
button.ghost:hover, .btn.ghost:hover { border-color: var(--blue); }
button.ghost.light { color: var(--text); }
button.danger { background: transparent; color: var(--red); border: 1px solid #f8717166; font-weight: 600; }
button.small { padding: 6px 11px; font-size: 13px; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 140px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; margin-bottom: 16px; }
.card h2 { margin: 0 0 12px; font-size: 17px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }

/* ---------- landing ---------- */
.landing { background: radial-gradient(900px 500px at 85% -10%, #3b2a7a55, transparent),
                       radial-gradient(700px 400px at 0% 10%, #0e4a7a44, transparent), var(--bg); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; color: #0b1020; font-size: 18px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

.hero { padding: 60px 0 40px; max-width: 760px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: #ffffff08; font-size: 14px; color: var(--muted); }
.pill b { color: var(--text); }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px #22c55e33; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.08; margin: 22px 0 18px; letter-spacing: -1px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 14px; }
.cta .btn { padding: 14px 22px; }
.ticks { color: var(--muted); font-size: 14px; }

.chat-demo { margin: 10px 0 0; max-width: 420px; background: #0b141a; border: 1px solid var(--border);
  border-radius: 16px; padding: 16px; }
.chat-demo .head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #ffffff12; margin-bottom: 12px; font-weight: 600; }
.chat-demo .avatar { width: 32px; height: 32px; border-radius: 50%; background: #25d366; display: grid; place-items: center; color: #0b141a; font-size: 15px; }
.bubble { background: #005c4b; color: #e9edef; border-radius: 10px 10px 10px 2px; padding: 10px 12px; font-size: 14px; white-space: pre-line; }
.bubble small { display: block; text-align: right; color: #ffffff88; font-size: 11px; margin-top: 4px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

section { padding: 60px 0; }
.eyebrow { color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.section-title { font-size: clamp(26px, 4vw, 38px); margin: 8px 0 10px; letter-spacing: -.5px; }
.section-sub { color: var(--muted); max-width: 640px; margin: 0 0 32px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .features, .steps { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.feature .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, #38bdf833, #a78bfa33); margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.step-num { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #0b1020; font-weight: 800;
  display: grid; place-items: center; margin-bottom: 12px; }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } }
.price { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.price.hot { border-color: #818cf8; box-shadow: 0 0 0 1px #818cf8, 0 20px 60px -20px #818cf880; }
.price .tag { position: absolute; top: -12px; left: 24px; background: var(--grad); color: #0b1020; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.price .name { font-size: 13px; letter-spacing: 2px; color: var(--muted); font-weight: 700; }
.price .amount { font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; margin: 8px 0 0; white-space: nowrap; }
.price .amount span { font-size: 15px; color: var(--muted); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; flex: 1; }
.price li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 15px; display: flex; justify-content: space-between; gap: 10px; }
.price li span:first-child { color: var(--muted); }

.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.auth-section { display: grid; grid-template-columns: 1fr 420px; gap: 40px; align-items: center; }
@media (max-width: 900px) { .auth-section { grid-template-columns: 1fr; } }
.auth { width: 100%; }
.tabs { display: flex; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.tabs button { flex: 1; background: none; color: var(--muted); border-radius: 0; border-bottom: 2px solid transparent; font-weight: 600; }
.tabs button.active { color: var(--text); border-bottom-color: var(--blue); }
form button[type=submit] { width: 100%; margin-top: 16px; }
footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- dashboard ---------- */
.sub-big { font-size: 42px; font-weight: 800; margin: 4px 0; }
.sub-ok { color: var(--green); } .sub-warn { color: var(--amber); } .sub-bad { color: var(--red); }
.card.sub-ok h2, .card.sub-warn h2, .card.sub-bad h2 { color: var(--text); }
.bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.bar div { height: 100%; background: currentColor; }
.qr { text-align: center; }
.qr img { width: 240px; height: 240px; border-radius: 12px; background: #fff; padding: 8px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--muted); }
.dot.on { background: var(--green); box-shadow: 0 0 0 4px #22c55e33; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; }
td.actions { white-space: nowrap; text-align: right; }
td.actions button { margin-left: 4px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-ok { background: #22c55e22; color: #4ade80; }
.b-soon { background: #fbbf2422; color: var(--amber); }
.b-late { background: #f8717122; color: var(--red); }
.b-done { background: #ffffff12; color: var(--muted); }
.table-wrap { overflow-x: auto; }
dialog { border: 1px solid var(--border); border-radius: 16px; padding: 22px; width: min(480px, 92vw); background: var(--card); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--border); color: var(--text); padding: 10px 16px; border-radius: 10px; display: none; }

/* ---------- layout aplikasi (sidebar) ---------- */
body.app { background: radial-gradient(800px 400px at 100% 0%, #3b2a7a33, transparent), var(--bg); min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 250px; background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; transition: transform .2s;
}
.sidebar .logo { padding: 4px 8px 18px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.sidebar nav { flex: 1; overflow-y: auto; }
.nav-group { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 16px 10px 6px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; margin-bottom: 2px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent;
}
.sidebar nav a:hover { color: var(--text); background: #ffffff08; }
.sidebar nav a.active { color: var(--text); background: linear-gradient(90deg, #38bdf822, #818cf811); border-color: #38bdf844; }
.ni { width: 20px; text-align: center; }
.nav-dot { width: 8px; height: 8px; border-radius: 50%; margin-left: auto; }
.nav-dot.on { background: var(--green); } .nav-dot.off { background: var(--red); }
.sidebar .logout { margin-top: 10px; text-align: left; }
.main { margin-left: 250px; }
.appbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 14px 24px;
  background: #070b18cc; backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.appbar b { font-size: 17px; flex: 1; }
.icon-btn { display: none; padding: 6px 12px; font-size: 18px; }
.avatar-chip { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #0b1020; font-weight: 800; display: grid; place-items: center; }
.content { padding: 24px; max-width: 1150px; }
.scrim { display: none; }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .menu-open .sidebar { transform: none; }
  .menu-open .scrim { display: block; position: fixed; inset: 0; background: #0009; z-index: 20; }
  .main { margin-left: 0; }
  .icon-btn { display: inline-block; }
  .content { padding: 16px; }
}

.page-h { font-size: 26px; margin: 0 0 16px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 900px) { .stat-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-cards { grid-template-columns: 1fr; } }
.scard { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; }
.sicon { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, #38bdf833, #a78bfa33); border: 1px solid #38bdf833; }
.slabel { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.sval { font-size: 22px; font-weight: 800; }
.sval.small { font-size: 15px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.banner { border: 1px solid currentColor; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; background: #ffffff06; font-weight: 600; }
.banner a { color: inherit; margin-left: 4px; }
.price.selectable { cursor: default; }
.price.chosen { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.price.chosen button { background: var(--grad); color: #0b1020; border: 0; }
.steps-list { padding-left: 20px; color: var(--muted); }
.steps-list li { margin-bottom: 6px; }
.btn[aria-disabled=true] { opacity: .5; }
.qr #qris-img { width: 260px; height: auto; max-width: 100%; }
.prose h2 { margin-top: 24px; } .prose h2:first-child { margin-top: 0; }
.prose li, .prose p { color: var(--muted); } .prose b { color: var(--text); }
.wa-card { max-width: 560px; }

/* ---------- admin ---------- */
dialog.wide { width: min(1050px, 96vw); max-height: 92vh; }
dialog h3 { margin: 22px 0 8px; font-size: 16px; }
.appbar .logo { font-size: 17px; }
