/* Halaman publik — biru & putih, nuansa tech. Admin tetap memakai style.css. */
:root {
  --bg: #f4f7ff;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, .78);
  --ink: #0a1230;
  --ink-soft: #4b5677;
  --ink-mute: #8a93b0;
  --blue: #0a3cff;
  --blue-deep: #0026b8;
  --blue-bright: #3d6bff;
  --cyan: #19b5ff;
  --blue-soft: #e3ebff;
  --blue-line: #cdd9ff;
  --ok: #10b981;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius-lg: 24px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 60px -30px rgba(10, 38, 184, .35), 0 8px 20px -12px rgba(10, 38, 184, .18);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -64px;
  background:
    radial-gradient(circle at 1px 1px, rgba(10, 60, 255, .22) 1px, transparent 1.5px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  animation: grid-drift 40s linear infinite;
}
.bg-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.bg-orb-a {
  width: 520px; height: 520px; top: -220px; left: 50%; margin-left: -380px;
  background: radial-gradient(circle, rgba(10, 60, 255, .45), transparent 65%);
  animation: float-a 18s var(--ease) infinite alternate;
}
.bg-orb-b {
  width: 420px; height: 420px; top: 30%; right: -160px;
  background: radial-gradient(circle, rgba(25, 181, 255, .35), transparent 65%);
  animation: float-b 22s var(--ease) infinite alternate;
}
.bg-scan {
  position: absolute; left: 0; right: 0; height: 160px; top: -160px;
  background: linear-gradient(180deg, transparent, rgba(10, 60, 255, .05) 60%, rgba(10, 60, 255, .09), transparent);
  animation: scan 9s linear infinite;
}
@keyframes grid-drift { to { transform: translate3d(28px, 28px, 0); } }
@keyframes float-a { to { transform: translate3d(80px, 40px, 0) scale(1.08); } }
@keyframes float-b { to { transform: translate3d(-60px, -50px, 0) scale(.94); } }
@keyframes scan { to { transform: translate3d(0, calc(100vh + 320px), 0); } }

/* ---------- layout ---------- */
.wrap {
  width: 100%; max-width: 520px; margin: 0 auto;
  padding: max(40px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
.card {
  position: relative; background: var(--surface-glass);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--blue-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
  animation: card-in .7s var(--ease) both;
}
.card::before { /* garis aksen biru di tepi atas */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), var(--blue), transparent);
  background-size: 200% 100%; animation: sheen 6s linear infinite;
}
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@keyframes sheen { to { background-position: -200% 0; } }

.card-bar {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--blue-soft);
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute);
}
.card-dots { display: inline-flex; gap: 6px; }
.card-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--blue-line); }
.card-dots i:first-child { background: var(--blue); }
.card-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; }
.pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- profil ---------- */
.hero { text-align: center; padding: 30px 22px 22px; }
.avatar-ring {
  position: relative; width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; padding: 4px;
  isolation: isolate;
}
.avatar-orbit {
  position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: conic-gradient(from 0deg, var(--blue), var(--cyan), transparent 40%, var(--blue-bright) 70%, var(--blue));
  animation: spin 7s linear infinite;
}
.avatar-ring::after { /* halo lembut */
  content: ""; position: absolute; inset: -10px; border-radius: 50%; z-index: -2;
  background: radial-gradient(circle, rgba(10, 60, 255, .25), transparent 70%);
}
@keyframes spin { to { transform: rotate(1turn); } }
.avatar {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--surface); background: var(--surface);
}
.avatar-fallback {
  display: grid; place-items: center; font-weight: 800; font-size: 34px; letter-spacing: -.02em;
  color: var(--blue); background: var(--blue-soft);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 2px; margin: 0 0 8px; padding: 4px 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .02em; color: var(--blue);
  background: var(--blue-soft); border-radius: 999px;
}
.caret { width: 7px; height: 13px; margin-left: 3px; background: var(--blue); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero h1 {
  margin: 0; font-size: clamp(26px, 7vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.15;
  background: linear-gradient(180deg, var(--ink) 30%, var(--blue-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bio { margin: 10px auto 0; max-width: 38ch; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* ---------- link ---------- */
.links { list-style: none; margin: 0; padding: 0 16px 18px; display: grid; gap: 10px; }
.links li { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i) * 70ms + 250ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.link {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 9px 14px 9px 9px;
  text-decoration: none; background: var(--surface); border: 1px solid var(--blue-line); border-radius: var(--radius);
  overflow: hidden; isolation: isolate; -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease, color .25s ease;
}
.link::before { /* isi biru yang menyapu dari kiri */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--blue-deep), var(--blue) 55%, var(--blue-bright));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.link::after { /* kilau tipis yang lewat saat hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); opacity: 0;
}
.link-icon {
  flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
  transition: background .25s ease, color .25s ease, transform .25s var(--ease);
}
.link-title { flex: 1; min-width: 0; font-weight: 600; font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; }
.link-index { flex: none; font-family: var(--mono); font-size: 11px; color: var(--ink-mute); transition: color .25s ease; }
.link-arrow {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  color: var(--blue); border: 1px solid var(--blue-soft);
  transition: transform .25s var(--ease), color .25s ease, border-color .25s ease, background .25s ease;
}
.link:hover, .link:focus-visible {
  color: #fff; border-color: var(--blue); transform: translateY(-2px); outline: none;
  box-shadow: 0 16px 32px -14px rgba(10, 60, 255, .65);
}
.link:focus-visible { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--blue); }
.link:hover::before, .link:focus-visible::before { transform: scaleX(1); }
.link:hover::after { animation: shine .8s var(--ease) .1s; }
@keyframes shine { 0% { left: -40%; opacity: 1; } 100% { left: 120%; opacity: 0; } }
.link:hover .link-icon, .link:focus-visible .link-icon { background: rgba(255, 255, 255, .16); color: #fff; transform: scale(1.04); }
.link:hover .link-index, .link:focus-visible .link-index { color: rgba(255, 255, 255, .7); }
.link:hover .link-arrow, .link:focus-visible .link-arrow {
  color: var(--blue); background: #fff; border-color: #fff; transform: translateX(2px);
}
.link:active { transform: scale(.985); }
.empty { text-align: center; color: var(--ink-soft); padding: 24px; animation: none !important; }

/* ---------- footer ---------- */
.foot {
  margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-mute); letter-spacing: .04em;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }

/* ---------- layar lebar ---------- */
@media (min-width: 640px) {
  .wrap { padding-top: 64px; }
  .hero { padding: 36px 32px 24px; }
  .links { padding: 0 24px 24px; }
}
/* layar sempit: rapatkan */
@media (max-width: 360px) {
  .link-index { display: none; }
  .card-path { display: none; }
}

/* ---------- aksesibilitas gerak ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bg-scan { display: none; }
}
