/* ============================================================
   Publikasi HTML - satu-satunya aset statis (tanpa CDN)
   ============================================================ */

:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-soft: #eef2ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --err: #b91c1c;
  --err-soft: #fef2f2;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 15.5px/1.65 "Segoe UI", system-ui, -apple-system, Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0 0 10px; }
h1 { font-size: 30px; letter-spacing: -.4px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
p { margin: 8px 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.page { flex: 1 0 auto; padding-top: 30px; padding-bottom: 50px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: Consolas, "Courier New", monospace; }
.inline { display: inline; }
.nowrap { white-space: nowrap; }

/* ---------------- Topbar ---------------- */
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 800;
  color: var(--ink);
  font-size: 16.5px;
  letter-spacing: -.2px;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* Tautan nav biasa. Tautan bertombol (.btn) dikecualikan supaya memakai warna
   tombolnya sendiri — dulu teks tombol "+ Publikasi" gelap di atas latar biru. */
.nav > a:not(.btn) { color: var(--text); font-weight: 600; font-size: 14px; padding: 7px 10px; border-radius: 8px; }
.nav > a:not(.btn):hover { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }
.nav > a:not(.btn).active { color: var(--brand-dark); background: var(--brand-soft); }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 3px;
  border-radius: 999px;
  background: var(--err);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  vertical-align: 1px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px 4px 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.chip .avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}
a.chip { color: var(--text); text-decoration: none; }
a.chip:hover { background: var(--brand-soft); border-color: #c7d2fe; color: var(--brand-dark); text-decoration: none; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--brand);
  color: #fff;
  border: 1px solid transparent;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: #f8fafc; color: var(--brand-dark); }
.btn.soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn.soft:hover { background: #e0e7ff; color: var(--brand-dark); }
.btn.danger { background: var(--err); }
.btn.danger:hover { background: #991b1b; }
.btn.ghost-danger { background: #fff; color: var(--err); border-color: #fecaca; }
.btn.ghost-danger:hover { background: var(--err-soft); color: var(--err); }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.card-head h2, .card-head h3 { margin: 0; }
.card-head .spacer { margin-left: auto; }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: #fbfcfe; border-radius: 0 0 var(--radius) var(--radius); }

/* ---------------- Alerts ---------------- */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 0 0 18px;
  border: 1px solid transparent;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.alert.ok { background: var(--ok-soft); border-color: #a7f3d0; color: var(--ok); }
.alert.err { background: var(--err-soft); border-color: #fecaca; color: var(--err); }
.alert.warn { background: var(--warn-soft); border-color: #fde68a; color: var(--warn); }

/* ---------------- Forms ---------------- */
.field { margin-bottom: 16px; }
.field > label, .lb {
  display: block;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 6px;
}
input[type="text"], input[type="password"], input[type="email"], input[type="number"],
input[type="file"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="file"] { padding: 9px 10px; background: #f8fafc; }
textarea { resize: vertical; min-height: 110px; }
textarea.code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  min-height: 320px;
  background: #0f172a;
  color: #e2e8f0;
  border-color: #1e293b;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .14);
}
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .85fr); gap: 18px; align-items: start; }
.split > aside .card:first-child { margin-top: 0; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text); }
.check input { width: auto; margin-top: 4px; accent-color: var(--brand); }
.slug-input { display: flex; align-items: stretch; }
.slug-input .prefix {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 10px 11px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  display: flex; align-items: center;
}
.slug-input input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------------- Hero / landing ---------------- */
.hero {
  background:
    radial-gradient(circle at 12% 8%, #e0e7ff 0, transparent 46%),
    radial-gradient(circle at 88% 88%, #cffafe 0, transparent 44%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 46px 44px;
  box-shadow: var(--shadow);
  margin-bottom: 26px;
}
.hero-badge {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -1px; max-width: 18ch; }
.hero .lead { font-size: 16.5px; color: var(--text); max-width: 62ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  max-width: 560px;
}
.hero-stats .stat {
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
}
.hero-stats .stat b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.5px; }
.hero-stats .stat span { font-size: 12.5px; color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.step .num {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-dark);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  margin-bottom: 10px;
}
.step h3 { margin-bottom: 4px; font-size: 15.5px; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------------- Grid halaman ---------------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.page-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c7d2fe; }
.page-card h3 { margin: 0; font-size: 16px; }
.page-card .slug { font-size: 12.5px; color: var(--brand-dark); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; align-self: flex-start; word-break: break-all; }
.page-card .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; }
.page-card .open { font-weight: 700; font-size: 13.5px; }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.tbl th, table.tbl td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #f8fafc; }
table.tbl tbody tr:hover { background: #fbfcff; }
table.tbl td .url { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- Badges ---------------- */
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge.ok { background: var(--ok-soft); color: var(--ok); border: 1px solid #a7f3d0; }
.badge.off { background: #f1f5f9; color: var(--muted); border: 1px solid var(--line); }
.badge.brand { background: var(--brand-soft); color: var(--brand-dark); border: 1px solid #c7d2fe; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #fde68a; }
.badge.err { background: var(--err-soft); color: var(--err); border: 1px solid #fecaca; }

/* ---------------- Stat cards ---------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.stat-card b { display: block; font-size: 26px; color: var(--ink); letter-spacing: -.6px; }
.stat-card span { font-size: 12.5px; color: var(--muted); }

/* ---------------- Page header ---------------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 26px; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.page-head .spacer { margin-left: auto; }

/* ---------------- Auth ---------------- */
.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: stretch; max-width: 960px; margin: 10px auto; }
.auth-side {
  background: linear-gradient(150deg, #4f46e5, #312e81 55%, #0e7490);
  color: #e5e7eb;
  border-radius: 20px;
  padding: 38px 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-side h2 { color: #fff; font-size: 26px; letter-spacing: -.5px; }
.auth-side p { color: #c7d2fe; font-size: 14.5px; }
.auth-side ul { margin: 18px 0 0; padding: 0; list-style: none; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 10px 0; color: #e0e7ff; }
.auth-side li .tick { color: #6ee7b7; font-weight: 800; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 24px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.auth-card .foot-note { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }

/* ---------------- Misc ---------------- */
.empty {
  text-align: center;
  color: var(--muted);
  padding: 44px 20px;
}
.empty .big { font-size: 34px; margin-bottom: 8px; }
.empty h3 { color: var(--ink); }

.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}
.pager a:hover { border-color: #c7d2fe; color: var(--brand-dark); text-decoration: none; }
.pager .cur { background: var(--brand); border-color: var(--brand); color: #fff; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tabs a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  border: 1px solid transparent;
}
.tabs a:hover { background: #eef2ff; color: var(--brand-dark); text-decoration: none; }
.tabs a.on { background: #fff; border-color: var(--line); color: var(--brand-dark); box-shadow: var(--shadow-sm); }

.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; color: var(--ink); word-break: break-word; }

.danger-zone { border: 1px solid #fecaca; background: #fffafa; border-radius: var(--radius); padding: 18px 20px; }
.danger-zone h3 { color: var(--err); }

details.panel { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
details.panel > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: var(--ink); font-size: 14px; }
details.panel[open] > summary { border-bottom: 1px solid var(--line); }
details.panel .panel-body { padding: 16px; }

.note {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--muted);
}

.app-foot {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.app-foot b { color: var(--ink); }

/* ---------------- Responsif ---------------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { order: 2; padding: 26px 24px; }
  .hero { padding: 32px 24px; border-radius: 18px; }
  .grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-in { flex-wrap: wrap; min-height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px; }
  .nav { margin-left: 0; width: 100%; }
  .nav > a:not(.btn) { padding: 6px 9px; }
  .page-head h1 { font-size: 22px; }
  .hero-stats { grid-template-columns: 1fr; }
  .card-body { padding: 16px; }
  .card-head { padding: 14px 16px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  table.tbl { min-width: 540px; }
}

/* ============================================================
   Landing page
   ============================================================ */
.lp-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  align-items: center;
  gap: 26px 34px;
  padding: 52px 48px 26px;
  margin-bottom: 72px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 104% -8%, #cffafe 0, transparent 58%),
    radial-gradient(620px 380px at -8% 4%, #e0e7ff 0, transparent 56%),
    linear-gradient(180deg, #ffffff, #fbfcff);
  box-shadow: 0 24px 60px -36px rgba(15, 23, 42, .38);
}
.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 70, 229, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 70, 229, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 26%, #000 0, transparent 72%);
  mask-image: radial-gradient(ellipse at 72% 26%, #000 0, transparent 72%);
}
.lp-hero-copy, .lp-hero-art, .lp-hero-stats { position: relative; z-index: 1; }

.lp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.lp-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .16);
  animation: lpPulse 2.4s ease-in-out infinite;
}
@keyframes lpPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, .16); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, .05); }
}
.lp-hero h1 {
  max-width: 650px;
  margin: 16px 0;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.6px;
}
.lp-lead {
  max-width: 55ch;
  margin: 0;
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.7;
}
.lp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.lp-btn-lg {
  padding: 13px 22px;
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 14px 26px -16px rgba(79, 70, 229, .9);
}
.lp-btn-lg.ghost { box-shadow: none; border-color: #dbe3ef; }
.lp-trust {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.lp-trust li { display: inline-flex; align-items: center; gap: 6px; }
.lp-tick {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 9px;
  font-weight: 900;
}

/* Hero preview */
.lp-hero-art {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 8px 12px;
}
.lp-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.lp-glow-a {
  width: 240px;
  height: 240px;
  top: 4px;
  right: -34px;
  background: radial-gradient(circle, #bae6fd 0, transparent 68%);
  opacity: .75;
}
.lp-glow-b {
  width: 240px;
  height: 240px;
  bottom: -10px;
  left: -46px;
  background: radial-gradient(circle, #c7d2fe 0, transparent 68%);
  opacity: .7;
}
.lp-window {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 36px 80px -30px rgba(30, 41, 59, .5), 0 6px 18px rgba(15, 23, 42, .08);
  transform: rotate(-1.2deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.lp-hero-art:hover .lp-window {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 42px 90px -30px rgba(30, 41, 59, .55), 0 8px 22px rgba(15, 23, 42, .1);
}
.lp-window-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}
.lp-dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.lp-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
}
.lp-dots i:first-child { background: #fca5a5; }
.lp-dots i:nth-child(2) { background: #fcd34d; }
.lp-dots i:nth-child(3) { background: #86efac; }
.lp-url {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}
.lp-url svg { width: 11px; height: 11px; flex-shrink: 0; color: #10b981; }
.lp-url-host {
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-url b { color: var(--ink); font-weight: 700; }
.lp-window-dots { flex-shrink: 0; color: #94a3b8; font-size: 12px; letter-spacing: 1px; }
.lp-window-body {
  padding: 20px 20px 18px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.lp-preview-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lp-preview-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.lp-preview-mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.lp-preview-links { display: inline-flex; gap: 10px; }
.lp-preview-links b {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
}
.lp-preview-hero { padding: 26px 0 18px; }
.lp-preview-kicker {
  color: var(--brand);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lp-preview-hero h2 {
  max-width: 260px;
  margin: 7px 0 6px;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.7px;
}
.lp-preview-hero p {
  max-width: 250px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.lp-preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.lp-preview-btn span { color: #a5b4fc; }
.lp-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}
.lp-preview-card {
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px -6px rgba(15, 23, 42, .15);
}
.lp-thumb {
  display: block;
  height: 52px;
  border-radius: 5px;
}
.lp-thumb-a { background: linear-gradient(135deg, #c7d2fe, #818cf8 55%, #4f46e5); }
.lp-thumb-b { background: linear-gradient(135deg, #bae6fd, #38bdf8 55%, #0e7490); }
.lp-thumb-c { background: linear-gradient(135deg, #fde68a, #fb923c 58%, #be123c); }
.lp-preview-card i {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 3px;
  background: #e2e8f0;
}
.lp-preview-card i.short { width: 62%; }
.lp-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .45);
  animation: lpFloat 6s ease-in-out infinite;
}
.lp-float b { display: block; color: var(--ink); font-size: 11.5px; line-height: 1.25; }
.lp-float small { display: block; color: var(--muted); font-size: 10px; line-height: 1.25; }
.lp-float-live {
  top: 2px;
  right: -6px;
  transform: rotate(1.5deg);
}
.lp-float-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 11px;
  font-weight: 900;
}
.lp-float-views {
  bottom: 0;
  left: -10px;
  transform: rotate(-1.5deg);
  animation-delay: -3s;
}
.lp-mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 28px;
  height: 24px;
}
.lp-mini-chart i {
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #818cf8, var(--brand));
}
.lp-mini-chart i:nth-child(1) { height: 35%; }
.lp-mini-chart i:nth-child(2) { height: 62%; }
.lp-mini-chart i:nth-child(3) { height: 48%; }
.lp-mini-chart i:nth-child(4) { height: 88%; }
@keyframes lpFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* Hero statistics */
.lp-hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.lp-stat {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.lp-stat:first-child { padding-left: 2px; border-left: 0; }
.lp-stat b {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.8px;
}
.lp-stat span { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* Landing sections */
.lp-features, .lp-section, .lp-steps-section { margin-bottom: 72px; }
.lp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.lp-section-head h2 {
  margin: 3px 0 4px;
  font-size: clamp(22px, 2.8vw, 32px);
  letter-spacing: -.9px;
}
.lp-section-head p {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.lp-center {
  display: block;
  max-width: 700px;
  margin: 0 auto 34px;
  text-align: center;
}
.lp-kicker {
  display: inline-block;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lp-kicker-light { color: #a5b4fc; }

/* Feature cards */
.lp-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.lp-feature {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.lp-feature:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: var(--shadow);
}
.lp-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.lp-icon svg { width: 21px; height: 21px; }
.lp-feature:nth-child(2) .lp-icon { background: #ecfeff; color: #0e7490; }
.lp-feature:nth-child(3) .lp-icon { background: #ecfdf5; color: #047857; }
.lp-feature:nth-child(4) .lp-icon { background: #fffbeb; color: #b45309; }
.lp-feature h3 { margin-bottom: 5px; font-size: 15.5px; }
.lp-feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }

/* Latest publications */
.lp-latest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lp-page-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  gap: 10px;
}
.lp-page-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), #06b6d4);
  opacity: 0;
  transition: opacity .15s;
}
.lp-page-card:hover::before { opacity: 1; }
.lp-page-card h3 { font-size: 17px; }
.lp-card-action {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}
.lp-card-action .open { display: inline-flex; align-items: center; gap: 6px; }
.lp-card-action .open span { transition: transform .15s; }
.lp-card-action .open:hover span { transform: translateX(3px); }

.lp-empty {
  padding: 52px 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.lp-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.lp-empty-icon svg { width: 26px; height: 26px; }
.lp-empty h3 { margin-bottom: 4px; }
.lp-empty p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }

/* Steps */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lp-step {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.lp-step::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, #eef2ff 0, transparent 68%);
  pointer-events: none;
}
.lp-step-num {
  display: inline-block;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.lp-step h3 { margin-bottom: 5px; font-size: 16.5px; }
.lp-step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.lp-step .mono {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 12.5px;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}
.lp-step-url {
  display: block;
  width: 100%;
  margin: 6px 0 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-step-note { font-size: 12.5px; }

/* Closing CTA */
.lp-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  padding: 42px 44px;
  border-radius: 26px;
  background: linear-gradient(120deg, #312e81 0%, #4f46e5 52%, #0e7490 100%);
  color: #fff;
  box-shadow: 0 28px 60px -30px rgba(49, 46, 129, .85);
}
.lp-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(320px 240px at 12% 0, rgba(255, 255, 255, .18) 0, transparent 70%),
    radial-gradient(380px 280px at 92% 110%, rgba(34, 211, 238, .3) 0, transparent 70%);
  pointer-events: none;
}
.lp-cta-copy, .lp-cta-actions { position: relative; z-index: 1; }
.lp-cta h2 {
  max-width: 21ch;
  margin: 4px 0 8px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -1px;
}
.lp-cta p {
  max-width: 52ch;
  margin: 0;
  color: #dbeafe;
  font-size: 14.5px;
}
.lp-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.lp-cta-primary {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 14px 26px -14px rgba(0, 0, 0, .45);
}
.lp-cta-primary:hover { background: #eef2ff; color: var(--brand-dark); }
.lp-cta-ghost {
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.lp-cta-ghost:hover { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .22); color: #fff; }

/* Landing responsive */
@media (max-width: 1020px) {
  .lp-hero { grid-template-columns: 1fr; padding: 44px 36px 24px; }
  .lp-hero-art { width: 100%; max-width: 520px; min-height: 380px; margin: 0 auto; }
  .lp-hero-stats { margin-top: 30px; }
  .lp-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .lp-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-cta { flex-direction: column; align-items: flex-start; padding: 34px 30px; }
}

@media (max-width: 700px) {
  .lp-features, .lp-section, .lp-steps-section { margin-bottom: 48px; }
  .lp-hero { margin-bottom: 48px; }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-hero-stats { grid-template-columns: 1fr; gap: 0; }
  .lp-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .lp-stat:first-child { padding-top: 0; border-top: 0; }
  .lp-stat b { font-size: 22px; }
}

@media (max-width: 620px) {
  .lp-hero { padding: 30px 22px 20px; border-radius: 22px; }
  .lp-hero h1 { font-size: clamp(28px, 8.5vw, 38px); letter-spacing: -1px; }
  .lp-lead { font-size: 15.5px; }
  .lp-actions .btn { flex: 1 1 100%; }
  .lp-trust { gap: 8px 16px; }
  .lp-hero-art { min-height: 340px; padding: 0; }
  .lp-window { max-width: 100%; transform: none; }
  .lp-float { display: none; }
  .lp-feature-grid, .lp-latest-grid { grid-template-columns: 1fr; }
  .lp-section-head { align-items: flex-start; }
  .lp-cta { padding: 30px 24px; border-radius: 20px; }
  .lp-cta-actions { width: 100%; }
  .lp-cta-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 420px) {
  .lp-window-body { padding: 16px 14px 14px; }
  .lp-preview-links { display: none; }
  .lp-preview-hero h2 { font-size: 20px; }
  .lp-window-dots { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-pulse, .lp-float { animation: none; }
  .lp-window, .lp-feature, .lp-page-card, .lp-card-action .open span { transition: none; }
}

/* ============================================================
   Login (halaman masuk)
   ============================================================ */
.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 28px;
  align-items: stretch;
  max-width: 1080px;
  margin: 6px auto 20px;
}

.login-visual {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border-radius: 26px;
  padding: 42px 40px 32px;
  color: #e0e7ff;
  background:
    radial-gradient(circle at 15% 10%, rgba(129, 140, 248, .55), transparent 38%),
    radial-gradient(circle at 90% 80%, rgba(34, 211, 238, .35), transparent 42%),
    linear-gradient(145deg, #312e81 0%, #4f46e5 58%, #0e7490 100%);
  box-shadow: 0 22px 50px rgba(49, 46, 129, .22);
  display: flex;
  flex-direction: column;
}
.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .35;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
}
.login-visual > * { position: relative; z-index: 1; }
.login-visual-glow {
  position: absolute;
  z-index: 0;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  filter: blur(12px);
}
.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 11px;
  border: 1px solid rgba(224, 231, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #e0e7ff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7b7;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, .18);
}
.login-visual h2 {
  max-width: 15ch;
  margin: 20px 0 12px;
  color: #fff;
  font-size: clamp(29px, 3.3vw, 40px);
  line-height: 1.15;
  letter-spacing: -1.1px;
}
.login-lead {
  max-width: 43ch;
  margin: 0;
  color: #dbeafe;
  font-size: 15px;
}
.login-benefits {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.login-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 8px 0;
  color: #eef2ff;
  font-size: 13.5px;
}
.login-tick {
  color: #6ee7b7;
  font-weight: 800;
  line-height: 1.55;
}
.login-preview {
  width: 100%;
  max-width: 430px;
  margin-top: auto;
  padding-top: 26px;
}
.login-preview-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(15, 23, 42, .28);
}
.login-preview-dots { display: inline-flex; gap: 4px; }
.login-preview-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.login-preview-url {
  flex: 1;
  overflow: hidden;
  color: #c7d2fe;
  font-size: 10.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.login-preview-body {
  padding: 18px 18px 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 0 0 14px 14px;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}
.login-preview-kicker {
  color: #a5f3fc;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.login-preview-title {
  width: 62%;
  height: 12px;
  margin: 10px 0 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .82);
}
.login-preview-line {
  width: 48%;
  height: 6px;
  margin: 6px 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .32);
}
.login-preview-line.wide { width: 82%; }
.login-preview-metrics {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}
.login-preview-metrics span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  background: rgba(15, 23, 42, .18);
  color: #e0e7ff;
  font-size: 10.5px;
}
.login-preview-metrics b { color: #fff; }
.login-visual-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #c7d2fe;
  font-size: 11.5px;
}
.login-android {
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(110, 231, 183, .16);
  color: #a7f3d0;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 36px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}
.login-card-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.login-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(79, 70, 229, .23);
}
.login-kicker {
  display: block;
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.login-card h1 {
  margin: 2px 0 0;
  font-size: 28px;
  letter-spacing: -.8px;
}
.login-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.login-field { margin-bottom: 15px; }
.login-field > label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.login-control { position: relative; }
.login-control > svg {
  position: absolute;
  left: 13px;
  top: 50%;
  width: 19px;
  height: 19px;
  color: #94a3b8;
  transform: translateY(-50%);
  pointer-events: none;
}
.login-control input {
  height: 48px;
  padding-left: 41px;
  border-radius: 11px;
  font-size: 14.5px;
}
.login-control input#password { padding-right: 82px; }
.login-pass-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--brand-dark);
  font: inherit;
  font-size: 11.5px;
  font-weight: 800;
  transform: translateY(-50%);
  cursor: pointer;
}
.login-pass-toggle:hover { background: var(--brand-soft); }
.login-submit {
  height: 48px;
  margin-top: 4px;
  border-radius: 11px;
  font-size: 15px;
  box-shadow: 0 10px 22px rgba(79, 70, 229, .2);
}
.login-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11.5px;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 14px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.login-register {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.login-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11.5px;
  text-align: center;
}
.login-trust svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--ok); }

@media (max-width: 940px) {
  .login-shell { grid-template-columns: 1fr; gap: 20px; max-width: 680px; }
  .login-card { order: 1; }
  .login-visual { order: 2; min-height: 0; padding: 32px 28px; }
  .login-visual h2 { max-width: 22ch; }
  .login-preview { margin-top: 24px; }
}

@media (max-width: 520px) {
  .login-card { padding: 28px 22px; border-radius: 20px; }
  .login-visual { padding: 28px 22px; border-radius: 20px; }
  .login-visual h2 { font-size: 28px; }
  .login-preview-metrics { flex-wrap: wrap; }
  .login-card h1 { font-size: 25px; }
  .login-logo { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
  .login-meta { font-size: 11px; }
}

/* ============================================================
   Paket Pro (user + admin)
   ============================================================ */
.pro-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  margin-bottom: 20px;
  padding: 28px 32px;
  border: 1px solid #c7d2fe;
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 15%, #cffafe 0, transparent 42%),
    linear-gradient(125deg, #eef2ff 0%, #fff 55%, #ecfeff 100%);
  box-shadow: var(--shadow-sm);
}
.pro-hero.is-pro {
  border-color: #a7f3d0;
  background:
    radial-gradient(circle at 90% 15%, #d1fae5 0, transparent 42%),
    linear-gradient(125deg, #ecfdf5 0%, #fff 60%, #f0fdfa 100%);
}
.pro-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--brand-dark);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pro-hero.is-pro .pro-kicker { color: var(--ok); }
.pro-hero h2 {
  max-width: 24ch;
  margin: 0 0 7px;
  font-size: clamp(23px, 3vw, 31px);
  letter-spacing: -.8px;
}
.pro-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--text);
  font-size: 14px;
}
.pro-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
}
.pro-hero-meta b { color: var(--ink); }
.pro-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  justify-self: end;
  color: var(--brand);
}
.pro-hero.is-pro .pro-hero-art { color: var(--ok); }
.pro-star {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  color: #fff;
  font-size: 32px;
  box-shadow: 0 14px 28px rgba(79, 70, 229, .28);
  transform: rotate(-7deg);
}
.pro-hero.is-pro .pro-star { background: linear-gradient(135deg, #047857, #14b8a6); }
.pro-orbit {
  position: absolute;
  border: 1px solid rgba(79, 70, 229, .23);
  border-radius: 50%;
}
.pro-orbit-a { width: 112px; height: 112px; }
.pro-orbit-b { width: 148px; height: 148px; border-style: dashed; opacity: .65; }
.pro-hero.is-pro .pro-orbit { border-color: rgba(4, 120, 87, .25); }
.pro-art-label {
  position: absolute;
  bottom: -1px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: var(--brand-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .17em;
}
.pro-hero.is-pro .pro-art-label { color: var(--ok); }

.pro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr);
  gap: 20px;
  align-items: start;
}
.pro-layout > * { min-width: 0; }
.pro-layout .card { margin-top: 0; }
.pro-layout .card + .card { margin-top: 18px; }
.pro-history-table { min-width: 560px; }
.pro-intro {
  margin-top: 0;
  color: var(--text);
  font-size: 14.5px;
}
.pro-price-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
  padding: 14px 17px;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--brand-soft), #ecfeff);
}
.pro-price-box span {
  color: var(--brand-dark);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.pro-price-box b {
  color: var(--brand-dark);
  font-size: 23px;
  letter-spacing: -.6px;
  text-align: right;
}
.pro-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.pro-pay-card {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}
.pro-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}
.pro-lines {
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
  word-break: break-word;
}
.pro-lines > div + div { margin-top: 2px; }
.pro-wa-number {
  margin: 7px 0 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
}
.pro-steps-wrap { margin-top: 18px; }
.pro-steps-wrap h3 { font-size: 14px; margin-bottom: 7px; }
.pro-steps {
  margin: 0;
  padding-left: 22px;
  color: var(--text);
  font-size: 13.5px;
}
.pro-steps li { margin: 6px 0; padding-left: 2px; }
.pro-steps li::marker { color: var(--brand); font-weight: 800; }
.pro-notes { margin-top: 16px; }
.pro-request-card .card-body { padding-top: 18px; }
.pro-pending { text-align: left; }
.pro-pending p { margin: 8px 0; }
.pro-active-box { text-align: center; padding: 6px 0; }
.pro-check {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 24px;
  font-weight: 900;
}
.pro-active-box h3 { margin-bottom: 4px; }
.pro-active-box p { margin-bottom: 14px; }

.pro-admin-table { min-width: 980px; }
.pro-admin-msg {
  max-width: 220px;
  font-size: 13px;
  word-break: break-word;
}
.pro-process-form {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 275px;
}
.pro-process-form select,
.pro-process-form input {
  width: auto;
  min-width: 72px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 12px;
}
.pro-process-form input { flex: 1 1 120px; }
.pro-process-form .btn { flex: 0 0 auto; }
.pro-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.pro-switch input { width: auto; margin: 0; }
.pro-switch span { font-weight: 700; font-size: 13.5px; }

@media (max-width: 900px) {
  .pro-layout { grid-template-columns: 1fr; }
  .pro-hero { grid-template-columns: 1fr; }
  .pro-hero-art { display: none; }
}

@media (max-width: 700px) {
  .pro-pay-grid { grid-template-columns: 1fr; }
  .pro-hero { padding: 22px 20px; border-radius: 16px; }
  .pro-price-box { align-items: flex-start; flex-direction: column; gap: 3px; }
  .pro-price-box b { text-align: left; }
  .pro-admin-table { min-width: 860px; }
}

/* ============================================================
   PWA / install
   ============================================================ */
#pwaInstallBtn { white-space: nowrap; }

/* ============================================================
   AI page builder
   ============================================================ */
.nav-badge.badge-ok {
  background: var(--ok-soft);
  color: var(--ok);
  border: 1px solid #a7f3d0;
}

.nav-badge.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
  border: 1px solid #fde68a;
}

.ai-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: start;
}
.ai-layout > aside { min-width: 0; }
.ai-layout > aside .card:first-child { margin-top: 0; }
.ai-generate-card .card-body { padding-bottom: 18px; }
.ai-key-row { display: flex; gap: 8px; align-items: stretch; }
.ai-key-row input { flex: 1 1 auto; min-width: 0; }
.ai-key-row .btn { flex: 0 0 auto; }

.ai-model-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ai-model-pills .badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-notes {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text);
}
.ai-notes li { margin: 6px 0; }
.ai-notes li::marker { color: var(--brand); font-weight: 800; }

.ai-tips .card-head h3,
.ai-info-card .card-head h3 { font-size: 15px; }
.ai-tips .note { margin-top: 14px; }
.ai-info-card .kv { grid-template-columns: 94px 1fr; gap: 8px 10px; font-size: 13px; }

.ai-empty-art {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
}
.ai-empty-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--brand), #06b6d4);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 12px 24px -10px rgba(79, 70, 229, .6);
}
.ai-empty-orbit {
  position: absolute;
  inset: 0;
  border: 1px dashed #c7d2fe;
  border-radius: 50%;
  animation: aiOrbit 9s linear infinite;
}
@keyframes aiOrbit { to { transform: rotate(360deg); } }

.ai-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  min-width: 0;
}
.ai-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex: 0 0 auto;
}
.ai-status.is-busy .ai-status-dot {
  background: var(--brand);
  animation: aiPulse 1.2s ease-in-out infinite;
}
.ai-status.is-ok .ai-status-dot { background: var(--ok); }
.ai-status.is-err .ai-status-dot { background: var(--err); }
.ai-status.is-warn .ai-status-dot { background: var(--warn); }
@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, .35); }
  50% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
}

.ai-stream {
  margin: 0;
  max-height: 380px;
  overflow: auto;
  padding: 15px 16px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #e2e8f0;
  font: 12.5px/1.6 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}

.ai-preview-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ai-preview-head .btn { margin-left: auto; }
.ai-preview-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #eef2f7;
  padding: 8px;
  margin-bottom: 18px;
}
.ai-preview {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
  border-radius: 7px;
  background: #fff;
}
#aiResultCard { scroll-margin-top: 84px; }
.ai-code-panel { margin-top: 4px; }
.ai-code-panel textarea.ai-code {
  min-height: 360px;
  margin: 0;
}
.ai-code-panel .hint { margin-bottom: 0; }
.ai-code-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ai-code-foot .hint { flex: 1 1 320px; }
.ai-code-foot .btn { flex: 0 0 auto; }

@media (max-width: 1020px) {
  .ai-layout { grid-template-columns: 1fr; }
  .ai-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
  }
  .ai-layout > aside .card + .card { margin-top: 0; }
}

@media (max-width: 700px) {
  .ai-layout > aside { grid-template-columns: 1fr; gap: 14px; }
  .ai-preview { height: 380px; }
  .ai-preview-head .btn { margin-left: 0; }
  .ai-stream { max-height: 300px; font-size: 12px; }
  .ai-info-card .kv { grid-template-columns: 84px 1fr; }
  .ai-key-row { flex-wrap: wrap; }
  .ai-key-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-empty-orbit, .ai-status.is-busy .ai-status-dot { animation: none; }
}
