:root {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel-2: #273449;
  --border: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --primary: #22c55e;
  --primary-d: #16a34a;
  --ok: #22c55e;
  --fail: #ef4444;
  --accent: #38bdf8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: var(--panel); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.brand { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.meta-logo { flex-shrink: 0; height: 26px; width: auto; display: block; }
.topbar nav a {
  color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 14px;
}
.topbar nav a:hover { color: var(--text); }
.nav-logout { color: var(--fail) !important; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 360px; max-width: 92vw; }
.login-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; justify-content: center; margin-bottom: 20px; }
.login-error { background: rgba(239,68,68,.12); border: 1px solid var(--fail); color: var(--fail); font-size: 13px; padding: 9px 12px; border-radius: 8px; margin-bottom: 14px; }
main { max-width: 1200px; margin: 24px auto; padding: 0 20px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; margin-bottom: 20px;
}
.card h2 { margin: 0 0 16px; font-size: 16px; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
input, textarea, select {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 14px; font-family: inherit;
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); }
small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.row { display: flex; gap: 14px; }
.small-field { flex: 1; }
.hint { color: var(--accent); font-size: 11px; font-weight: 400; }
.modes { display: flex; gap: 12px; margin-bottom: 14px; }
.mode-opt {
  flex: 1; display: flex; gap: 8px; align-items: flex-start; margin: 0;
  padding: 12px; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer; color: var(--text);
}
.mode-opt input { width: auto; margin-top: 3px; }
.mode-opt small { margin-top: 2px; }
.actions { display: flex; gap: 10px; }
.btn {
  padding: 10px 18px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel-2); color: var(--text); font-size: 14px;
  cursor: pointer; text-decoration: none; display: inline-block;
}
.btn.primary { background: var(--primary); border-color: var(--primary-d); color: #06240f; font-weight: 600; }
.btn.primary:hover { background: var(--primary-d); }
.btn.ghost { background: transparent; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #06240f; font-weight: 600; }
.btn.accent:hover { filter: brightness(1.08); }
.btn.small { padding: 5px 12px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.summary { display: flex; gap: 10px; margin-bottom: 14px; }
.pill {
  padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: var(--panel-2); border: 1px solid var(--border);
}
.pill.ok { color: var(--ok); }
.pill.fail { color: var(--fail); }
.progress-bar {
  height: 8px; background: var(--panel-2); border-radius: 999px;
  overflow: hidden; margin-bottom: 14px;
}
#pbar { height: 100%; width: 0; background: var(--primary); transition: width .2s; }
.log { list-style: none; margin: 0; padding: 0; max-height: 480px; overflow-y: auto; }
.log-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.log-item em { color: var(--muted); font-style: normal; }
.log-item .status { margin-left: auto; font-size: 12px; }
.log-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.log-item.ok .dot { background: var(--ok); }
.log-item.ok .status { color: var(--ok); }
.log-item.fail .dot { background: var(--fail); }
.log-item.fail .status { color: var(--fail); }
.log-item.pending .dot { background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.saved-note {
  margin-top: 14px; padding: 10px 12px; background: var(--panel-2);
  border-radius: 8px; font-size: 13px;
}
.saved-note a { color: var(--accent); }
.hidden { display: none; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border);
}
.table th { color: var(--muted); font-weight: 500; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.muted { color: var(--muted); }
.ok-text { color: var(--ok); }
.fail-text { color: var(--fail); }
.tag {
  padding: 2px 10px; border-radius: 999px; font-size: 11px;
  background: var(--panel-2); border: 1px solid var(--border);
}
.tag.ok, .tag.same_name { color: var(--ok); }
.tag.fail { color: var(--fail); }
.tag.anti_block { color: var(--accent); }
.tag.phone { color: var(--primary); }
.tag.profile { color: var(--accent); }
.detail-head { display: flex; align-items: center; justify-content: space-between; }
.meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 700px) { .meta-grid { grid-template-columns: 1fr 1fr; } }
.meta-grid > div { font-size: 14px; }
.meta-grid span:first-child { display: block; color: var(--muted); font-size: 11px; margin-bottom: 2px; }
.sep { border: none; border-top: 1px solid var(--border); margin: 18px 0; }
.opt { font-size: 10px; font-weight: 500; color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.note-box { font-size: 12px; color: var(--muted); background: var(--panel-2);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 10px 12px; margin: 0 0 16px; }
.subhead { font-size: 13px; color: var(--muted); margin: 0 0 14px; font-weight: 600; }
h3.subhead { text-transform: none; }
.toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.inline { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text); }
.inline input { width: auto; margin: 0; }
.table-scroll { max-height: 340px; overflow-y: auto; border: 1px solid var(--border); border-radius: 8px; }
.table-scroll .table th { position: sticky; top: 0; z-index: 3; background: var(--panel); }
/* Daftar Nomor (halaman Registrasi): tampilkan semua nomor tanpa scroll */
#num-wrap { max-height: none; overflow: visible; }
#num-wrap .table th { position: static; }
.table td.status { font-size: 12px; }
.desc-pre { white-space: pre-wrap; background: var(--bg); padding: 10px; border-radius: 6px; margin-top: 4px; font-size: 12px; max-width: 100%; }
.act { display: flex; gap: 6px; white-space: nowrap; }
.reg-cell { white-space: nowrap; }
.reg-status { font-size: 11px; }
.tag { display: inline-block; }
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center; z-index: 100;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px; width: 380px; max-width: 92vw;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-x { background: none; border: none; color: var(--muted); font-size: 16px; cursor: pointer; }
.modal-x:hover { color: var(--text); }
.otp-status { font-size: 12px; min-height: 16px; margin: 8px 0; }
select { appearance: none; }
details summary { cursor: pointer; color: var(--accent); font-size: 12px; }
details pre {
  background: var(--bg); padding: 10px; border-radius: 6px; margin-top: 6px;
  overflow-x: auto; font-size: 11px; max-width: 360px;
}
