/* ============================================================
   dorong v2 — stylesheet
   Tema gelap "graphite & emerald". Space Grotesk + DM Sans +
   JetBrains Mono. Efek: aurora background, fade-up berjenjang,
   sheen tombol, glass navbar, hover lift, shimmer skeleton.
   ============================================================ */

:root {
  --bg: #0a0c10;
  --bg-2: #0d1015;
  --surface: #11151c;
  --surface-2: #171c25;
  --surface-3: #1d2430;
  --ink: #e9edf3;
  --muted: #97a1b2;
  --faint: #5c6779;
  --line: rgba(148, 163, 184, 0.13);
  --line-strong: rgba(148, 163, 184, 0.26);
  --accent: #34d399;
  --accent-strong: #0ea971;
  --accent-soft: rgba(52, 211, 153, 0.13);
  --accent-line: rgba(52, 211, 153, 0.35);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --danger-line: rgba(248, 113, 113, 0.32);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --warn-line: rgba(251, 191, 36, 0.3);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 12px 40px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px var(--accent-line), 0 0 28px rgba(52, 211, 153, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { color-scheme: dark; scroll-behavior: smooth; }

body {
  font: 14.5px/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- latar: grid titik + aurora ---------- */

.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}
.bg-orb.a {
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.16), transparent 65%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.bg-orb.b {
  width: 460px; height: 460px;
  bottom: -200px; right: -100px;
  background: radial-gradient(circle, rgba(56, 130, 246, 0.10), transparent 65%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(90px, 60px) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-80px, -50px) scale(1.1); }
}

::selection { background: rgba(52, 211, 153, 0.28); }

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: #6ee7b7; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.35em;
  word-break: break-all;
}

/* scrollbar halus */
* { scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------- animasi masuk berjenjang ---------- */

.fu { opacity: 0; transform: translateY(14px); animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.d1 { animation-delay: 0.04s; } .d2 { animation-delay: 0.1s; } .d3 { animation-delay: 0.16s; }
.d4 { animation-delay: 0.22s; } .d5 { animation-delay: 0.28s; } .d6 { animation-delay: 0.34s; }
.d7 { animation-delay: 0.4s; }  .d8 { animation-delay: 0.46s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fu { opacity: 1; transform: none; }
}

/* ---------- navbar (glass) ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 12, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand:hover { color: var(--ink); }
.brand .sl { color: var(--accent); }
.brand-lg { font-size: 30px; letter-spacing: -0.03em; }

.brand-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #0ea971 70%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #052e22;
  flex: none;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.35);
}

.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
  transition: color 0.15s, background 0.15s;
  position: relative;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.22);
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}
.nav-right #navUser {
  font-family: var(--mono);
  font-size: 12.5px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
}

/* ---------- layout ---------- */

.wrap { max-width: 1080px; margin: 34px auto 80px; padding: 0 22px; }
.wrap-narrow { max-width: 780px; }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-title {
  font-family: var(--display);
  font-size: 26px;
  margin: 2px 0 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  font-weight: 600;
  margin: 0;
}
.kicker .mono { color: var(--accent); }

.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.search { position: relative; display: inline-flex; }
.search-ic {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  display: inline-flex;
  pointer-events: none;
}
.search .input { padding-left: 32px; width: 240px; }

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ---------- kartu / panel ---------- */

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.card.hoverable:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.card-title { font-family: var(--display); font-size: 18px; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }

.panel {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}

.sec { margin-bottom: 18px; }
.sec-title { font-family: var(--display); font-size: 16px; margin: 0 0 4px; font-weight: 700; }
.sec-desc { font-size: 13px; color: var(--muted); margin: 0 0 16px; line-height: 1.65; }

.hint { font-size: 12px; color: var(--faint); display: block; margin-top: 6px; line-height: 1.55; }
.hint.center { text-align: center; margin-top: 12px; }

/* ---------- tabel & daftar file ---------- */

.list { width: 100%; border-collapse: collapse; }
.list th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 600;
  white-space: nowrap;
}
.list td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.list tbody tr:last-child td { border-bottom: none; }
.list tbody tr { transition: background 0.12s; }
.list tbody tr:hover { background: rgba(148, 163, 184, 0.05); }

.repo-link { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.repo-link:hover { color: var(--accent); }
.repo-desc { color: var(--muted); font-size: 12.5px; margin-top: 3px; max-width: 460px; }

.lang-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: -1px;
  margin-right: 5px;
  box-shadow: 0 0 6px currentColor;
}

.file-link { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.file-link:hover { color: var(--accent); }
.file-link.is-dir { font-weight: 600; }

/* ---------- chip / dot / pill ---------- */

.chip {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: var(--surface-2);
  vertical-align: 2px;
  margin-left: 8px;
}
.chip-ok { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.chip-warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--faint); flex: none; }
.dot-ok { background: var(--accent); animation: pulse 2.2s ease-out infinite; }
.dot-err { background: var(--danger); }
.dot-warn { background: var(--warn); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
}
.pill.ok { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.pill.err { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }

/* ---------- tombol ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 600 13.5px/1 var(--sans);
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--ink);
  background: var(--surface-2);
  transition: transform 0.12s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.2s;
  user-select: none;
  text-decoration: none !important;
  white-space: nowrap;
  overflow: hidden;
}
.btn:active { transform: scale(0.975); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 22px; font-size: 14px; border-radius: 12px; }
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }

/* efek kilau menyapu di tombol utama */
.btn-primary { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); color: #04160f; box-shadow: 0 4px 18px rgba(52, 211, 153, 0.22); }
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover { box-shadow: 0 6px 26px rgba(52, 211, 153, 0.35); }

.btn-dark { background: #171b22; color: var(--ink); border-color: var(--line-strong); }
.btn-dark:hover { background: #1f2530; }

.btn-accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.btn-accent:hover { background: rgba(52, 211, 153, 0.2); box-shadow: 0 0 20px rgba(52, 211, 153, 0.15); }

.btn-outline { border-color: var(--line-strong); background: var(--surface); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--faint); }

.btn-danger { border-color: var(--danger-line); color: var(--danger); background: transparent; }
.btn-danger:hover { background: var(--danger-soft); }

.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }

/* ---------- form ---------- */

.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 10px 13px;
  font: 400 14px/1.4 var(--sans);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.2s, background 0.15s;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15), 0 0 20px rgba(52, 211, 153, 0.08);
  background: var(--surface);
}
.input::placeholder { color: var(--faint); }

textarea.input, .editor {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  padding: 14px;
  white-space: pre;
  overflow: auto;
  min-height: 440px;
  tab-size: 2;
  resize: vertical;
}
.editor:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12);
}

.form-msg { margin-top: 14px; }
.msg-err, .msg-info {
  font-size: 13px;
  border-radius: 10px;
  padding: 11px 14px;
  line-height: 1.6;
}
/* Blok biasa (bukan flex) — konten bisa berupa HTML campuran (teks + <strong> + <code>). */
.msg-err svg, .msg-info svg { vertical-align: -2.5px; margin-right: 7px; }
.msg-err { background: var(--danger-soft); color: #fca5a5; border: 1px solid var(--danger-line); }
.msg-info { background: var(--warn-soft); color: #fcd34d; border: 1px solid var(--warn-line); }
.msg-err a, .msg-info a { color: inherit; font-weight: 600; text-decoration: underline; }

.row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* ---------- halaman auth ---------- */

body.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

.auth-wrap { width: 100%; max-width: 410px; }

.auth-brand { text-align: center; margin-bottom: 26px; }
.tagline { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.auth-card { animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.step-note {
  font-size: 13px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: #6ee7b7;
  border-radius: 10px;
  padding: 11px 14px;
  margin-bottom: 16px;
  line-height: 1.55;
}

.foot {
  text-align: center;
  font-size: 12px;
  color: var(--faint);
  margin-top: 18px;
}

/* ---------- langkah deploy ---------- */

.step {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-1);
}
.step-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.step-head h2 { font-family: var(--display); font-size: 15px; margin: 0; font-weight: 700; }
.step-num {
  width: 26px; height: 26px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--mono);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.mode-row { display: flex; gap: 20px; margin-bottom: 14px; flex-wrap: wrap; }
.radio, .check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  cursor: pointer;
}
.radio input, .check input { accent-color: var(--accent); }
.check { display: flex; margin-top: 14px; align-items: flex-start; line-height: 1.5; color: var(--muted); }
.check input { margin-top: 3px; }

.pick {
  display: block;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 34px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.25s;
}
.pick:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.1) inset;
}
.pick.drag { border-color: var(--accent); background: var(--accent-soft); }
.pick-hint { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
.pick-hint svg { color: var(--accent); }
.pick-hint span { font-weight: 600; color: var(--ink); font-family: var(--display); }
.pick-hint small { font-size: 11.5px; color: var(--faint); }

.sum-line { font-size: 13px; color: var(--ink); margin: 14px 0 10px; }
.file-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  max-height: 230px;
  overflow: auto;
  font-size: 12px;
}
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 2.5px 0; color: var(--ink); }
.file-list li em { font-style: normal; color: var(--faint); flex: none; }
.file-list li.more { color: var(--muted); justify-content: center; }

.progress {
  height: 8px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin: 16px 0 8px;
  border: 1px solid var(--line);
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  background-size: 200% 100%;
  transition: width 0.25s ease;
  animation: progflow 1.2s linear infinite;
}
@keyframes progflow { to { background-position: -200% 0; } }
.prog-label { font-size: 12px; color: var(--muted); margin-bottom: 10px; font-family: var(--mono); }

.res-ok .res-head, .res-err .res-head {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--display);
  font-weight: 700; font-size: 16px; margin-bottom: 6px;
}
.res-ok { border-color: var(--accent-line) !important; }
.res-ok .res-head { color: var(--accent); }
.res-err { border-color: var(--danger-line) !important; }
.res-err .res-head { color: var(--danger); }

/* ---------- file browser ---------- */

.crumbs {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 13px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  min-height: 26px;
}
.crumbs a { color: var(--accent); padding: 3px 6px; border-radius: 6px; }
.crumbs a:hover { background: var(--accent-soft); }
.crumbs .sep { color: var(--faint); }
.crumbs .cur { color: var(--ink); font-weight: 700; padding: 3px 6px; }

.file-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  flex-wrap: wrap;
}
.file-meta { color: var(--faint); font-size: 11.5px; white-space: nowrap; font-family: var(--mono); }

#editor { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.editor:focus { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }

.commit-card { margin-top: 14px; }

/* ---------- grid kartu repo (dashboard) ---------- */

.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.repo-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-1);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.18s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.repo-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), transparent);
  opacity: 0;
  transition: opacity 0.25s;
}
.repo-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  box-shadow: var(--shadow-2), 0 0 24px rgba(52, 211, 153, 0.06);
}
.repo-card:hover::before { opacity: 1; }

.repo-card-head { display: flex; align-items: center; gap: 9px; }
.repo-card-head svg { color: var(--accent); flex: none; }
.repo-card-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.repo-card:hover .repo-card-name { color: var(--accent); }
.repo-card-name:hover { color: var(--accent) !important; }

.repo-card-desc {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  min-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.repo-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}
.repo-card-meta .grow { flex: 1; }

.repo-card-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 2px;
}
.repo-card-foot .spacer { flex: 1; }

/* ---------- wizard koneksi ---------- */

.wiz {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-1);
}
.wiz-step { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; }
.wiz-step + .wiz-step { border-top: 1px dashed var(--line); }
.wiz-ic { flex: none; margin-top: 1px; }
.wiz-body { flex: 1; min-width: 0; }
.wiz-title { font-weight: 600; font-size: 13.5px; }
.wiz-sub { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.wiz-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- modal ---------- */

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 6, 9, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-2), 0 0 60px rgba(52, 211, 153, 0.05);
  animation: modalIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  max-height: 90vh;
  overflow: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal h3 { font-family: var(--display); margin: 0 0 6px; font-size: 17px; }
.modal .modal-sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; line-height: 1.6; }

/* ---------- panduan (details/summary) ---------- */

details.guide {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  padding: 0;
  overflow: hidden;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}
details.guide[open] { border-color: var(--line-strong); }
details.guide summary {
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13.5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  transition: background 0.15s;
}
details.guide summary::-webkit-details-marker { display: none; }
details.guide summary:hover { background: var(--surface-2); }
details.guide summary .arrow { margin-left: auto; transition: transform 0.2s; color: var(--faint); }
details.guide[open] summary .arrow { transform: rotate(90deg); }
details.guide .guide-body { padding: 4px 16px 16px; font-size: 13px; color: var(--muted); line-height: 1.7; border-top: 1px solid var(--line); }
details.guide .guide-body ol { margin: 8px 0 8px 18px; padding: 0; }
details.guide .guide-body li { margin-bottom: 6px; }
details.guide .guide-body code { font-size: 11.5px; }

/* ---------- empty / skeleton ---------- */

.empty {
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.75;
}
.empty p { margin: 4px 0; }
.empty .empty-ic { color: var(--faint); margin-bottom: 8px; }

.skel {
  display: inline-block;
  height: 12px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.skel-card {
  height: 150px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  position: relative;
  overflow: hidden;
}
.skel-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 25%, rgba(148, 163, 184, 0.06) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

/* ---------- toast ---------- */

#toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 120;
  max-width: 400px;
}
.toast {
  background: var(--surface-3);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: var(--shadow-2);
  animation: toastIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  word-break: break-word;
}
.toast-success { border-color: var(--accent-line); background: linear-gradient(180deg, #10241c, #0d1c16); }
.toast-success::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px rgba(52, 211, 153, 0.6); }
.toast-error { border-color: var(--danger-line); background: linear-gradient(180deg, #241214, #1d0f11); }
.toast-error::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 8px; vertical-align: 1px; box-shadow: 0 0 10px rgba(248, 113, 113, 0.6); }
.toast.hide { opacity: 0; transform: translateX(20px); transition: opacity 0.3s, transform 0.3s; }
@keyframes toastIn {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ---------- spinner ---------- */

.spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(148, 163, 184, 0.3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: rot 0.7s linear infinite;
  vertical-align: -2px;
  flex: none;
}
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- responsive ---------- */

@media (max-width: 680px) {
  .nav-in { padding: 0 14px; gap: 10px; height: 54px; }
  .nav-links a { padding: 6px 9px; font-size: 13px; }
  .nav-right #navUser { display: none; }
  .wrap { padding: 0 14px; margin-top: 22px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .search .input { width: 100%; }
  .search { width: 100%; }
  .page-title { font-size: 22px; }
}
