/* Palet diambil dari feed @tdasoloraya: navy, royal blue, hijau "9.0" */
:root {
  --navy-900: #071447;
  --navy-800: #0b1d6b;
  --blue-600: #1e3fd0;
  --blue-500: #2f55e6;
  --green-400: #3fe08c;
  --green-500: #1fc46f;
  --ink: #0b1440;
  --muted: #5b678f;
  --line: #dfe5f7;
  --paper: #f4f6fd;
  --white: #fff;
  --radius: 18px;
}
* { box-sizing: border-box; margin: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--white);
  min-height: 100vh;
  background:
    radial-gradient(520px 320px at 85% -5%, rgba(63, 224, 140, .28), transparent 70%),
    radial-gradient(600px 400px at 0% 0%, rgba(47, 85, 230, .55), transparent 70%),
    linear-gradient(180deg, var(--navy-800), var(--navy-900));
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

/* ---------- Halaman publik ---------- */
.wrap { max-width: 520px; margin: 0 auto; padding: 44px 16px 36px; }
.avatar {
  width: 104px; height: 104px; border-radius: 50%; display: block; margin: 0 auto 14px;
  background: #fff; object-fit: cover; border: 3px solid var(--green-400);
  box-shadow: 0 0 0 6px rgba(63, 224, 140, .18);
}
h1 { font-size: 21px; text-align: center; line-height: 1.3; }
.handle { text-align: center; color: var(--green-400); font-weight: 600; font-size: 14px; margin-top: 2px; }
.bio { text-align: center; color: #c9d3ff; font-size: 14px; line-height: 1.55; margin: 12px auto 26px; max-width: 400px; }
.links { display: grid; gap: 12px; }
.link {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px); transition: transform .15s, background .15s, border-color .15s;
}
.link:hover, .link:focus-visible { transform: translateY(-2px); background: rgba(255, 255, 255, .15); border-color: var(--green-400); outline: none; }
.link .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .12); }
.link .txt { flex: 1; min-width: 0; }
.link b { display: block; font-size: 15px; }
.link small { display: block; color: #b8c4f5; font-size: 12.5px; margin-top: 2px; }
.link .arrow { color: #8fa0ee; font-size: 18px; }
.link.primary { background: linear-gradient(135deg, var(--green-500), var(--green-400)); border-color: transparent; color: var(--navy-900); }
.link.primary .ico { background: rgba(7, 20, 71, .14); }
.link.primary small, .link.primary .arrow { color: rgba(7, 20, 71, .75); }
.link.primary:hover { background: linear-gradient(135deg, #25d57d, #6af0a8); }
.empty { text-align: center; color: #b8c4f5; padding: 24px 0; }
footer { text-align: center; margin-top: 30px; font-size: 12px; color: #8fa0ee; }
footer a { color: #b8c4f5; }
footer .lets { color: var(--green-400); font-weight: 700; }

/* ---------- Login & admin ---------- */
body.light { background: var(--paper); color: var(--ink); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: 0 6px 24px rgba(11, 29, 107, .06); }
.login-wrap { max-width: 380px; margin: 0 auto; padding: 12vh 16px 40px; }
.login-wrap .avatar { width: 84px; height: 84px; border-color: var(--blue-600); box-shadow: none; }
.login-wrap h1 { color: var(--ink); font-size: 19px; margin-bottom: 4px; }
.login-wrap p.sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin: 12px 0 5px; }
input[type=text], input[type=password], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--blue-500); outline-offset: 0; border-color: transparent; }
textarea { resize: vertical; min-height: 70px; }
.btn { border: 0; cursor: pointer; border-radius: 10px; padding: 10px 16px; font-weight: 700; background: var(--blue-600); color: #fff; }
.btn:hover { background: var(--blue-500); }
.btn.green { background: var(--green-500); color: var(--navy-900); }
.btn.green:hover { background: var(--green-400); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--paper); }
.btn.full { width: 100%; margin-top: 16px; }
.btn:disabled { opacity: .6; cursor: default; }
.msg { font-size: 13px; margin-top: 12px; min-height: 18px; }
.msg.err { color: #c23030; } .msg.ok { color: #12804a; }

.topbar { background: var(--navy-800); color: #fff; position: sticky; top: 0; z-index: 5; }
.topbar .in { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.topbar .in b { flex: 1; font-size: 15px; }
.topbar .btn { padding: 7px 12px; font-size: 13px; }
.topbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.main { max-width: 760px; margin: 0 auto; padding: 20px 16px 90px; display: grid; gap: 16px; }
.card h2 { font-size: 16px; color: var(--ink); margin-bottom: 4px; }
.card .hint { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.item { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 12px; background: #fbfcff; }
.item.off { opacity: .6; }
.item .head { display: flex; align-items: center; gap: 8px; }
.item .head input[type=text] { font-weight: 700; }
.item .icon-in { width: 56px !important; flex: none; text-align: center; font-size: 18px; }
.item .tools { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.item .tools .grow { flex: 1; }
.chip { font-size: 12px; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.chip.warn { color: #a65b00; background: #fff4e0; border-color: #ffd9a1; }
.mini { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; width: 32px; height: 32px; cursor: pointer; }
.mini:hover { background: var(--paper); }
.mini.del { color: #c23030; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0; cursor: pointer; }
.savebar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); }
.savebar .in { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.savebar .msg { flex: 1; margin: 0; }
