/* =====================================================================
   s.mixdom.id — Lembar gaya
   Arah rupa: "Golden Hour". Gelap seperti naungan di bawah daun bunga
   matahari, dengan emas sebagai satu-satunya sumber cahaya.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Token
   --------------------------------------------------------------------- */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--2: 0.75rem;
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 1.75rem;
  --step-4: clamp(2.1rem, 6vw, 3.25rem);
  --step-5: clamp(2.35rem, 6.4vw, 3.7rem);

  --wrap: 1120px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --gap-1: 0.5rem;
  --gap-2: 0.875rem;
  --gap-3: 1.5rem;
  --gap-4: 2.5rem;
  --gap-5: 4rem;
  --gap-6: 6rem;

  --ease: cubic-bezier(0.32, 0.72, 0.28, 1);
}

:root[data-theme="dark"] {
  --bg: #14120c;
  --bg-deep: #0e0c07;
  --surface: #1d1a12;
  --surface-2: #262115;
  --line: #383222;
  --text: #f7efda;
  --text-dim: #9c9278;
  --gold: #f5b92b;
  --gold-soft: #ffd979;
  --gold-ink: #251b04;
  --rust: #d2571f;
  --leaf: #7ba24a;
  --seed-dark: #2a2010;
  --danger: #ef6a5c;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --glow: rgba(245, 185, 43, 0.16);
}

:root[data-theme="light"] {
  --bg: #fcf4dc;
  --bg-deep: #f5e9c4;
  --surface: #fffdf5;
  --surface-2: #faf1d6;
  --line: #e2d3a8;
  --text: #211d0e;
  --text-dim: #6f664d;
  --gold: #c98a06;
  --gold-soft: #eab029;
  --gold-ink: #241a03;
  --rust: #b54513;
  --leaf: #557a2c;
  --seed-dark: #3b2f14;
  --danger: #a8342a;
  --shadow: 0 20px 48px -26px rgba(90, 66, 10, 0.45);
  --glow: rgba(201, 138, 6, 0.13);
}

/* ---------------------------------------------------------------------
   2. Dasar
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cahaya senja di sudut atas — satu-satunya "sumber matahari" halaman. */
body::before {
  content: "";
  position: fixed;
  inset: -30% -10% auto -10%;
  height: 90vh;
  background:
    radial-gradient(60% 55% at 78% 8%, var(--glow), transparent 68%),
    radial-gradient(45% 40% at 12% 0%, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main { flex: 1 0 auto; position: relative; z-index: 1; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 100;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--gold);
  text-decoration-color: color-mix(in srgb, var(--gold) 40%, transparent);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 99;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { left: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   3. Kepala halaman
   --------------------------------------------------------------------- */
.site-head {
  position: relative;
  z-index: 5;
  padding-block: 1.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 70, "WONK" 1, "opsz" 40;
  font-weight: 600;
  font-size: var(--step-1);
  letter-spacing: -0.02em;
}
.brand-mark { flex: none; transition: transform 0.5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(24deg); }
.brand-s { color: var(--gold); }
.brand-dot { color: var(--rust); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2.5vw, 1.6rem);
  font-size: var(--step--1);
  font-weight: 500;
}
.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--text); border-bottom-color: var(--gold); }

.nav-theme {
  display: grid;
  place-items: center;
  width: 2.15rem; height: 2.15rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: 1rem;
  line-height: 1;
}
.nav-theme:hover { border-color: var(--gold); border-bottom-color: var(--gold); }

/* ---------------------------------------------------------------------
   4. Hero
   --------------------------------------------------------------------- */
.hero {
  padding-block: clamp(1.4rem, 5vw, 4.25rem) clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(1.25rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 1.6rem; height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  font-size: var(--step-5);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 144;
  font-weight: 600;
  margin-bottom: 0.5em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.hero-lede {
  font-size: var(--step-1);
  color: var(--text-dim);
  max-width: 44ch;
  margin-bottom: 1.6rem;
}
@media (max-width: 640px) {
  .hero-lede { font-size: var(--step-0); }
}

/* --- Tanda tangan halaman: bunga matahari phyllotaxis ----------------- */
.bloom {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 400px);
  margin-inline: auto;
}
.bloom canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.bloom-core {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.bloom-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.4vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--gold-soft);
  background: color-mix(in srgb, var(--seed-dark) 92%, transparent);
  padding: 0.35em 0.7em;
  border-radius: var(--r-pill);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: auto;
  transition: transform 0.45s var(--ease);
}
.bloom.is-fresh .bloom-code { transform: scale(1.06); }

@media (max-width: 899px) {
  /* Di layar kecil, formulir harus tetap terjangkau tanpa menggulir jauh,
     jadi bunganya dikecilkan dan hanya berperan sebagai penanda merek. */
  .bloom { width: min(42%, 164px); order: -1; margin-bottom: -0.5rem; }
}

/* ---------------------------------------------------------------------
   5. Formulir pemendek
   --------------------------------------------------------------------- */
.shorten-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  box-shadow: var(--shadow);
}

.field-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.field {
  flex: 1 1 16rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label,
.opt-grid label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-dim);
}

.input,
.select {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--step-0);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder { color: color-mix(in srgb, var(--text-dim) 70%, transparent); }
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}
.input[aria-invalid="true"] { border-color: var(--danger); }

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

.prefix-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
}
.prefix-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}
.prefix-wrap .prefix {
  display: grid;
  place-items: center;
  padding-inline: 0.85rem;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--text-dim);
  background: var(--surface-2);
  border-right: 1px solid var(--line);
  white-space: nowrap;
}
.prefix-wrap .input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.prefix-wrap .input:focus { box-shadow: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--gold-ink);
}
.btn-primary:hover { background: var(--gold-soft); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-sm { padding: 0.6rem 0.95rem; font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }

.form-submit { flex: 0 0 auto; align-self: flex-end; }

/* Rincian opsi lanjutan */
.opts { margin-top: 0.9rem; }
.opts > summary {
  cursor: pointer;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-dim);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0;
}
.opts > summary::-webkit-details-marker { display: none; }
.opts > summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--gold);
}
.opts[open] > summary::before { content: "–"; }
.opts > summary:hover { color: var(--text); }

.opt-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}
@media (min-width: 620px) {
  .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.opt-grid > div { display: flex; flex-direction: column; gap: 0.4rem; }
.opt-hint { font-size: var(--step--2); color: var(--text-dim); }

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.alias-status { font-size: var(--step--2); min-height: 1.2em; }
.alias-status[data-state="ok"] { color: var(--leaf); }
.alias-status[data-state="bad"] { color: var(--danger); }

/* ---------------------------------------------------------------------
   6. Kartu hasil
   --------------------------------------------------------------------- */
.result {
  margin-top: 1.25rem;
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line));
  border-radius: var(--r-lg);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  animation: rise 0.5s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.result-head {
  margin-bottom: 0.85rem;
}
.result-head h2 {
  font-size: var(--step-2);
  margin: 0 0 0.15rem;
}
.result-target {
  display: block;
  font-size: var(--step--2);
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.7rem 0.7rem 0.7rem 1rem;
}
.result-url {
  flex: 1 1 12rem;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.85rem;
  font-size: var(--step--2);
  color: var(--text-dim);
}
.result-meta a { color: var(--text-dim); }
.result-meta a:hover { color: var(--gold); }

.qr-panel {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.qr-panel.is-open { display: flex; }
.qr-panel img {
  width: 148px; height: 148px;
  border-radius: var(--r-sm);
  background: #fff;
  padding: 6px;
}
.qr-copy { flex: 1 1 12rem; font-size: var(--step--1); color: var(--text-dim); }

/* ---------------------------------------------------------------------
   7. Pemberitahuan
   --------------------------------------------------------------------- */
.notice {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  margin-bottom: 1rem;
  font-size: var(--step--1);
}
.notice p { margin: 0; }
.notice strong { display: block; font-weight: 700; margin-bottom: 0.15rem; }
.notice-icon { flex: none; font-size: 1.05rem; line-height: 1.4; }
.notice-error { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); color: var(--danger); }
.notice-ok { border-color: color-mix(in srgb, var(--leaf) 55%, var(--line)); color: var(--leaf); }
.notice-warn { border-color: color-mix(in srgb, var(--rust) 55%, var(--line)); color: var(--rust); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  translate: -50% 0;
  z-index: 60;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  font-size: var(--step--1);
  padding: 0.7rem 1.2rem;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, translate 0.25s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% -0.4rem; }

/* ---------------------------------------------------------------------
   8. Bagian umum
   --------------------------------------------------------------------- */
.section { padding-block: clamp(3rem, 8vw, 5.5rem); position: relative; }
.section-alt { background: var(--bg-deep); }

.section-head { max-width: 48ch; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head h2 { font-size: var(--step-4); }
.section-head p { color: var(--text-dim); font-size: var(--step-1); }

/* Tahap tumbuh — urutannya nyata, jadi penomorannya bermakna. */
.stages {
  display: grid;
  gap: 1.25rem;
  counter-reset: stage;
}
@media (min-width: 780px) { .stages { grid-template-columns: repeat(3, 1fr); } }

.stage {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.stage-mark {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.7rem;
}
.stage h3 { font-size: var(--step-2); margin-bottom: 0.35em; }
.stage p { color: var(--text-dim); font-size: var(--step--1); margin: 0; }

.feature-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }

.feature {
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.feature h3 { font-size: var(--step-1); margin-bottom: 0.3em; }
.feature p { font-size: var(--step--1); color: var(--text-dim); margin: 0; }
.feature-icon { font-size: 1.4rem; display: block; margin-bottom: 0.6rem; }

.counters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--text-dim);
}
.counters b {
  font-family: var(--font-mono);
  color: var(--text);
  font-size: var(--step-1);
  display: block;
  line-height: 1.2;
}

/* ---------------------------------------------------------------------
   9. Halaman isi (tentang, syarat, privasi, dokumentasi)
   --------------------------------------------------------------------- */
.prose { max-width: 68ch; padding-block: clamp(2.5rem, 6vw, 4rem); }
.prose h1 { font-size: var(--step-4); }
.prose h2 { font-size: var(--step-2); margin-top: 2.2em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.2rem; color: var(--text-dim); }
.prose li { margin-bottom: 0.5em; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12em 0.4em;
}
.prose pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-size: var(--step--1);
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); font-weight: 700; }
.prose td { color: var(--text-dim); }
.lede { font-size: var(--step-1); color: var(--text-dim); }

/* ---------------------------------------------------------------------
   10. Statistik
   --------------------------------------------------------------------- */
.stat-hero { padding-block: clamp(2rem, 5vw, 3rem) 1rem; }
.stat-hero h1 { font-size: var(--step-3); margin-bottom: 0.3em; }
.stat-target { color: var(--text-dim); font-size: var(--step--1); word-break: break-all; }

.stat-cards {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  margin-block: 1.75rem;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.15rem;
}
.stat-card b {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step-3);
  line-height: 1.1;
  color: var(--gold);
}
.stat-card span { font-size: var(--step--2); color: var(--text-dim); }

.chart {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.chart h2 { font-size: var(--step-1); margin-bottom: 1rem; }
.spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 130px;
}
.spark-bar {
  flex: 1;
  min-width: 2px;
  background: color-mix(in srgb, var(--gold) 68%, transparent);
  border-radius: 2px 2px 0 0;
  position: relative;
  transition: background-color 0.2s;
}
.spark-bar:hover { background: var(--gold); }
.spark-bar[data-zero="1"] { background: var(--line); }
.spark-axis {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--2);
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.bars { display: grid; gap: 0.6rem; }
.bar-row { display: grid; grid-template-columns: minmax(6rem, 9rem) 1fr auto; gap: 0.75rem; align-items: center; font-size: var(--step--1); }
.bar-label { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.bar-fill { height: 100%; background: var(--gold); border-radius: var(--r-pill); }
.bar-value { font-family: var(--font-mono); font-size: var(--step--2); color: var(--text); }

.split { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .split { grid-template-columns: repeat(2, 1fr); } }

/* ---------------------------------------------------------------------
   11. Daftar link
   --------------------------------------------------------------------- */
.link-list { display: grid; gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
.link-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.link-item .code {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
}
.link-item .dest {
  flex: 1 1 14rem;
  min-width: 0;
  font-size: var(--step--1);
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-item .meta { font-size: var(--step--2); color: var(--text-dim); font-family: var(--font-mono); }

.pill {
  display: inline-block;
  font-size: var(--step--2);
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.pill-ok { color: var(--leaf); border-color: color-mix(in srgb, var(--leaf) 45%, var(--line)); }
.pill-off { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.pill-warn { color: var(--rust); border-color: color-mix(in srgb, var(--rust) 45%, var(--line)); }

.empty {
  text-align: center;
  padding: clamp(2.5rem, 8vw, 4.5rem) 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.empty h2 { font-size: var(--step-2); }
.empty p { color: var(--text-dim); max-width: 40ch; margin-inline: auto; }

/* ---------------------------------------------------------------------
   12. Halaman terpusat (404, sandi, pratinjau, diblokir)
   --------------------------------------------------------------------- */
.centered {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(3rem, 10vw, 6rem);
}
.centered .inner { max-width: 34rem; }
.centered h1 { font-size: var(--step-4); }
.centered p { color: var(--text-dim); }
.centered .mascot { margin-bottom: 1rem; }
.centered .btn { margin-top: 1.2rem; }

.preview-target {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 0.9rem 1rem;
  word-break: break-all;
  text-align: left;
  margin-block: 1.25rem;
}
.preview-host {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--gold);
  display: block;
  margin-bottom: 0.3rem;
  word-break: break-all;
}

.pw-form { display: grid; gap: 0.75rem; margin-top: 1.5rem; text-align: left; }

/* ---------------------------------------------------------------------
   13. Kaki halaman
   --------------------------------------------------------------------- */
.site-foot {
  flex: none;
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 8vw, 6rem);
  padding-top: clamp(2.5rem, 6vw, 3.5rem);
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}
.foot-inner {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 820px) {
  .foot-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.foot-brand { display: flex; gap: 1rem; align-items: flex-start; }
.foot-note { font-size: var(--step--1); color: var(--text-dim); max-width: 30ch; margin: 0; }

.foot-links {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}
.foot-links h3 {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.7rem;
}
.foot-links a {
  display: block;
  font-size: var(--step--1);
  color: var(--text-dim);
  text-decoration: none;
  padding-block: 0.22rem;
}
.foot-links a:hover { color: var(--gold); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-block: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  font-size: var(--step--2);
  color: var(--text-dim);
}
.foot-bottom p { margin: 0; }

/* ---------------------------------------------------------------------
   14. Panel admin
   --------------------------------------------------------------------- */
.admin-shell { padding-block: 2rem 4rem; }
.admin-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.admin-bar h1 { font-size: var(--step-3); margin: 0; }
.admin-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.admin-tabs a {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.admin-tabs a:hover { color: var(--text); border-color: var(--gold); }
.admin-tabs a[aria-current="page"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  min-width: 44rem;
}
.table th, .table td { padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid var(--line); }
.table th { background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.table td { color: var(--text-dim); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .cell-code { font-family: var(--font-mono); color: var(--gold); }
.table .cell-url { max-width: 22rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.login-card {
  max-width: 24rem;
  margin: clamp(3rem, 12vw, 6rem) auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
}
.login-card h1 { font-size: var(--step-2); text-align: center; }
.login-card form { display: grid; gap: 0.9rem; margin-top: 1.25rem; }

.inline-form { display: inline; }

/* ---------------------------------------------------------------------
   15. Gerak
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------
   16. Cetak
   --------------------------------------------------------------------- */
@media print {
  .site-head, .site-foot, .bloom, .result-actions { display: none; }
  body { background: #fff; color: #000; }
}
