/* =====================================================================
   NUCLEASOFT — Design System
   Konsep: "Instrument Panel" — presisi, tepercaya, seperti panel kendali
   yang menampilkan hasil analisa. Motif cincin orbit dari logo dipakai
   berulang sebagai elemen tanda tangan visual.
   ===================================================================== */

:root {
  /* Warna */
  --ink:        #0E1420;
  --ink-soft:   #161E2C;
  --ink-line:   #2A3446;
  --paper:      #F3F1EB;
  --paper-dim:  #E8E5DC;
  --text-dark:  #12181F;
  --text-mute:  #5B6472;
  --text-inv:   #E9ECF1;
  --text-inv-mute: #8C97AC;
  --signal:     #2C7BB0;
  --signal-lt:  #59A6D6;
  --brass:      #C99A4E;
  --brass-lt:   #E0B97A;
  --ok:         #4C9A6A;

  /* Tipografi */
  --f-display: 'Space Grotesk', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  /* Layout */
  --maxw: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
}

/* ---- Reset dasar ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--text-dark);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  margin: 0 0 .5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-dark);
}
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brass);
  color: var(--ink); padding: 10px 16px; z-index: 999; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---- Eyebrow / mono label (menggantikan angka 01/02/03 generik) ---- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--signal);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--brass-lt); }
.eyebrow.on-dark::before { background: var(--brass-lt); }

/* ---- Tombol ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: #24699a; }
.btn-outline { background: transparent; color: var(--text-dark); border-color: var(--ink-line); }
.btn-outline:hover { border-color: var(--signal); color: var(--signal); }
.btn-ghost-invert { background: transparent; color: var(--text-inv); border-color: var(--ink-line); }
.btn-ghost-invert:hover { border-color: var(--brass-lt); color: var(--brass-lt); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-lt); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(14, 20, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.brand-word {
  font-family: var(--f-display); font-weight: 600; font-size: 19px;
  color: var(--text-inv); letter-spacing: -0.01em;
}
.main-nav { display: flex; gap: 30px; }
.main-nav a {
  color: var(--text-inv-mute); font-size: 14.5px; font-weight: 500;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--text-inv); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 10px 18px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text-inv);
  margin: 5px 0; transition: transform .2s ease, opacity .2s ease;
}
.mobile-nav {
  display: none; flex-direction: column; background: var(--ink-soft);
  border-top: 1px solid var(--ink-line); padding: 8px 28px 20px;
}
.mobile-nav a { color: var(--text-inv-mute); padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--ink-line); }
.mobile-nav.open { display: flex; }

@media (max-width: 920px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* =====================================================================
   HERO — dengan motif cincin orbit (signature element)
   ===================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-inv);
  padding: 88px 0 110px;
  overflow: hidden;
}
.hero::before {
  /* cincin orbit besar, samar, di belakang konten — echo dari logo */
  content: '';
  position: absolute;
  top: -220px; right: -260px;
  width: 720px; height: 720px;
  border: 1.5px solid var(--ink-line);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.hero::after {
  content: '';
  position: absolute;
  top: -180px; right: -150px;
  width: 560px; height: 560px;
  border: 1px solid rgba(89, 166, 214, 0.25);
  border-radius: 50%;
  transform: rotate(-18deg);
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
  color: #fff;
  max-width: 640px;
}
.hero h1 em {
  font-style: normal;
  color: var(--signal-lt);
}
.hero-sub {
  font-size: 17.5px;
  color: var(--text-inv-mute);
  max-width: 480px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--f-mono); font-size: 22px; color: var(--brass-lt); }
.hero-stat .label { font-size: 12.5px; color: var(--text-inv-mute); margin-top: 2px; }

/* --- Panel instrumen (mock chat) di hero --- */
.console {
  position: relative;
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.console::before, .console::after,
.console .tick-br, .console .tick-bl {
  content: ''; position: absolute; width: 14px; height: 14px;
  border-color: var(--brass-lt); opacity: .8;
}
.console::before { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.console::after { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.console .tick-bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.console .tick-br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }
.console-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--text-inv-mute); padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px dashed var(--ink-line); text-transform: uppercase;
}
.console-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.console-msg { margin-bottom: 14px; font-size: 14px; }
.console-msg .who { font-family: var(--f-mono); font-size: 11px; color: var(--text-inv-mute); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .05em; }
.console-msg.user .bubble { background: transparent; color: var(--text-inv); border: 1px solid var(--ink-line); }
.console-msg.agent .bubble { background: rgba(44,123,176,0.12); border: 1px solid rgba(44,123,176,0.35); }
.bubble { padding: 12px 14px; border-radius: 8px; color: var(--text-inv); }
.mini-chart { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin: 12px 0 6px; }
.mini-chart i { flex: 1; background: linear-gradient(180deg, var(--signal-lt), var(--signal)); border-radius: 3px 3px 0 0; }
.console-insight {
  font-family: var(--f-mono); font-size: 12px; color: var(--brass-lt);
  border-top: 1px dashed var(--ink-line); padding-top: 12px; margin-top: 4px;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero::before, .hero::after { display: none; }
}

/* =====================================================================
   SECTIONS UMUM
   ===================================================================== */
.section { padding: 96px 0; }
.section-dark { background: var(--ink); color: var(--text-inv); }
.section-dark h2 { color: #fff; }
.section-dim { background: var(--paper-dim); }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { color: var(--text-mute); font-size: 16px; }
.section-dark .section-head p { color: var(--text-inv-mute); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* --- Grid fitur --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature-card {
  background: var(--ink-soft);
  padding: 34px 28px;
  position: relative;
}
.feature-card .tag {
  font-family: var(--f-mono); font-size: 11.5px; color: var(--brass-lt);
  letter-spacing: .08em; margin-bottom: 16px; display: block;
}
.feature-card h3 { color: #fff; font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--text-inv-mute); font-size: 14.5px; margin: 0; }

@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* --- Use cases / solusi --- */
.usecase-list { display: grid; gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.usecase-row {
  display: grid; grid-template-columns: minmax(0,200px) minmax(0,1fr); gap: 28px;
  background: var(--paper); padding: 30px 32px; align-items: start;
}
.usecase-row .role { font-family: var(--f-mono); font-size: 13px; color: var(--signal); text-transform: uppercase; letter-spacing: .05em; }
.usecase-row h3 { font-size: 19px; margin-bottom: 8px; }
.usecase-row p { color: var(--text-mute); margin: 0; font-size: 15px; }
@media (max-width: 720px) {
  .usecase-row { grid-template-columns: minmax(0, 1fr); }
}

/* --- Kartu artikel --- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card {
  background: #fff; border: 1px solid var(--paper-dim); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(14,20,32,0.25); }
.article-card .thumb {
  height: 150px; background: linear-gradient(135deg, var(--ink) 0%, var(--signal) 130%);
  position: relative; overflow: hidden;
}
.article-card .thumb::after {
  content: ''; position: absolute; width: 220px; height: 220px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%; top: -60px; right: -60px; transform: rotate(-15deg);
}
.article-card .body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.article-card .cat { font-family: var(--f-mono); font-size: 11px; color: var(--signal); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.article-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.article-card p { color: var(--text-mute); font-size: 14px; flex: 1; }
.article-card .meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--text-mute); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--paper-dim); }
@media (max-width: 920px) { .article-grid { grid-template-columns: 1fr; } }

/* --- CTA band --- */
.cta-band {
  background: var(--signal);
  color: #fff;
  border-radius: var(--radius);
  padding: 52px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; font-size: 26px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-outline:hover { border-color: #fff; }

/* =====================================================================
   FORM (kontak, admin)
   ===================================================================== */
.form-card {
  background: #fff; border: 1px solid var(--paper-dim); border-radius: var(--radius);
  padding: 36px; max-width: 620px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text-dark); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--paper-dim); border-radius: var(--radius-sm);
  font-family: var(--f-body); font-size: 15px; background: var(--paper); color: var(--text-dark);
  transition: border-color .2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--signal); background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }
.field-hint { font-size: 12.5px; color: var(--text-mute); margin-top: 6px; }
.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; margin-bottom: 22px; }
.alert-ok { background: #E7F3EB; color: #2C5F41; border: 1px solid #BFE0CB; }
.alert-err { background: #FBEAEA; color: #7A2B2B; border: 1px solid #F1C4C4; }

/* =====================================================================
   HALAMAN DEMO — antarmuka chat
   ===================================================================== */
.demo-shell {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 0;
  background: var(--ink-soft); border: 1px solid var(--ink-line); border-radius: var(--radius);
  overflow: hidden; min-height: 620px; width: 100%; max-width: 100%; position: relative;
}
.demo-sidebar { background: var(--ink); border-right: 1px solid var(--ink-line); padding: 22px 18px; }
.demo-sidebar .new-chat {
  display: block; text-align: center; font-family: var(--f-mono); font-size: 12.5px;
  color: var(--brass-lt); border: 1px dashed var(--ink-line); border-radius: var(--radius-sm);
  padding: 10px; margin-bottom: 22px; cursor: pointer;
}
.demo-sidebar .session {
  font-size: 13.5px; color: var(--text-inv-mute); padding: 10px 10px; border-radius: 6px; margin-bottom: 4px; cursor: pointer;
}
.demo-sidebar .session.active, .demo-sidebar .session:hover { background: var(--ink-soft); color: var(--text-inv); }
.demo-sidebar .group-label { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-inv-mute); text-transform: uppercase; letter-spacing: .08em; margin: 18px 0 8px; }

.demo-main { display: flex; flex-direction: column; min-width: 0; max-width: 100%; }
.demo-topbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px;
  padding: 16px 24px; border-bottom: 1px solid var(--ink-line);
  font-family: var(--f-mono); font-size: 12px; color: var(--text-inv-mute);
}
.demo-topbar span { min-width: 0; }
.demo-topbar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.demo-messages { flex: 1; padding: 28px 32px; overflow-y: auto; overflow-x: hidden; max-height: 560px; }
.demo-msg { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; margin-bottom: 26px; align-items: flex-start; }
.demo-msg .avatar {
  width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: var(--f-mono); font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.demo-msg.user .avatar { background: var(--ink-line); color: var(--text-inv); }
.demo-msg.agent .avatar { background: var(--signal); color: #fff; }
.demo-msg .content { color: var(--text-inv); font-size: 15px; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.demo-msg .content p { margin: 0 0 10px; }
.demo-msg .content ul { margin: 10px 0; padding-left: 18px; color: var(--text-inv-mute); }
.demo-chart { display: flex; align-items: stretch; gap: 6px; height: 110px; margin: 16px 0; background: var(--ink); border: 1px solid var(--ink-line); border-radius: 8px; padding: 16px; }
.demo-chart .bar-wrap { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.demo-chart .bar { width: 100%; min-height: 4px; background: linear-gradient(180deg, var(--signal-lt), var(--signal)); border-radius: 4px 4px 0 0; }
.demo-chart .bar-label { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-inv-mute); flex-shrink: 0; }
.demo-note { font-family: var(--f-mono); font-size: 12px; color: var(--brass-lt); background: rgba(201,154,78,.1); border: 1px solid rgba(201,154,78,.3); padding: 12px 14px; border-radius: 8px; overflow-wrap: break-word; }
.typing-dots span { display: inline-block; width: 6px; height: 6px; background: var(--text-inv-mute); border-radius: 50%; margin-right: 4px; animation: blink 1.2s infinite ease-in-out; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

.demo-inputbar { padding: 18px 24px 24px; border-top: 1px solid var(--ink-line); }
.demo-suggestions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.demo-suggestions button {
  font-family: var(--f-mono); font-size: 12px; color: var(--text-inv-mute); background: var(--ink);
  border: 1px solid var(--ink-line); border-radius: 20px; padding: 8px 14px; cursor: pointer; transition: all .2s ease;
  max-width: 100%; white-space: normal; text-align: left;
}
.demo-suggestions button:hover { color: var(--brass-lt); border-color: var(--brass-lt); }
.demo-input-row { display: flex; gap: 10px; }
.demo-input-row input {
  flex: 1; min-width: 0; background: var(--ink); border: 1px solid var(--ink-line); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text-inv); font-family: var(--f-body); font-size: 15px;
}
.demo-input-row input:focus { outline: none; border-color: var(--signal); }
.demo-input-row button { border: none; flex-shrink: 0; }
.demo-disclaimer { font-size: 11.5px; color: var(--text-inv-mute); text-align: center; margin-top: 12px; }

.demo-sidebar-toggle {
  display: none; align-items: center; justify-content: center; gap: 3px; flex-direction: column;
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--ink-line);
  background: var(--ink); cursor: pointer; flex-shrink: 0; margin-right: 4px;
}
.demo-sidebar-toggle span { width: 14px; height: 2px; background: var(--text-inv-mute); display: block; }

/* Backdrop hanya relevan di mode drawer mobile; di desktop harus benar-benar
   tidak ada di alur layout grid, atau dia ikut jadi grid-item liar dan
   mengacaukan urutan kolom sidebar/main. */
.demo-sidebar-backdrop { display: none; }

@media (max-width: 820px) {
  .demo-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }

  .demo-sidebar {
    display: block; position: absolute; top: 0; left: 0; height: 100%;
    width: 82%; max-width: 280px; z-index: 30;
    transform: translateX(-100%); transition: transform .25s ease;
    box-shadow: 24px 0 50px -16px rgba(0,0,0,0.55);
    overflow-y: auto;
  }
  .demo-sidebar.open { transform: translateX(0); }

  .demo-sidebar-backdrop {
    display: none; position: absolute; inset: 0; z-index: 25;
    background: rgba(0,0,0,0.5);
  }
  .demo-sidebar-backdrop.show { display: block; }

  .demo-sidebar-toggle { display: inline-flex; }
}

@media (max-width: 560px) {
  .demo-topbar { padding: 12px 16px; font-size: 11px; }
  .demo-messages { padding: 20px 16px; max-height: 66vh; }
  .demo-msg { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
  .demo-msg .avatar { width: 28px; height: 28px; font-size: 11px; }
  .demo-msg .content { font-size: 14px; }
  .demo-inputbar { padding: 14px 16px 18px; }
  .demo-chart { padding: 10px; gap: 4px; }
  .demo-chart .bar-label { font-size: 9px; }
}

/* =====================================================================
   ARTIKEL — daftar & detail
   ===================================================================== */
.page-header {
  background: var(--ink); color: var(--text-inv); padding: 64px 0 56px; position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute; top: -140px; right: -140px; width: 380px; height: 380px;
  border: 1px solid var(--ink-line); border-radius: 50%; transform: rotate(-20deg);
}
.page-header h1 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); position: relative; z-index: 1; }
.page-header p { color: var(--text-inv-mute); max-width: 560px; position: relative; z-index: 1; }

.article-body { max-width: 740px; margin: 0 auto; padding: 64px 28px; }
.article-body .meta-row { font-family: var(--f-mono); font-size: 12.5px; color: var(--text-mute); margin-bottom: 18px; }
.article-body h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 20px; }
.article-content { font-size: 17px; color: var(--text-dark); }
.article-content p { margin-bottom: 1.3em; }
.article-content h2 { font-size: 24px; margin-top: 1.6em; }
.article-content h3 { font-size: 19px; margin-top: 1.4em; }

.empty-state {
  text-align: center; padding: 70px 20px; color: var(--text-mute);
  border: 1px dashed var(--paper-dim); border-radius: var(--radius);
}

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--paper); }
.admin-sidebar { background: var(--ink); color: var(--text-inv); padding: 26px 20px; }
.admin-sidebar .brand-word { color: #fff; }
.admin-sidebar nav { margin-top: 36px; display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a { padding: 11px 12px; border-radius: 7px; color: var(--text-inv-mute); font-size: 14.5px; }
.admin-sidebar nav a.active, .admin-sidebar nav a:hover { background: var(--ink-soft); color: #fff; }
.admin-main { padding: 40px 44px; }
.admin-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.admin-topline h1 { font-size: 24px; margin: 0; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--paper-dim); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--paper-dim); }
.admin-table th { font-family: var(--f-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); background: var(--paper-dim); }
.badge { font-family: var(--f-mono); font-size: 11px; padding: 4px 9px; border-radius: 20px; text-transform: uppercase; }
.badge-terbit { background: #E7F3EB; color: #2C5F41; }
.badge-draft { background: #F2EFE4; color: #8A6D2F; }
.icon-link { font-size: 13px; color: var(--signal); margin-right: 12px; }
.icon-link.danger { color: #B23B3B; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 20px; }
.login-card { background: var(--ink-soft); border: 1px solid var(--ink-line); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 380px; }
.login-card .brand-word { color: #fff; }
.login-card .field label { color: var(--text-inv-mute); }
.login-card .field input { background: var(--ink); border-color: var(--ink-line); color: var(--text-inv); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--ink); color: var(--text-inv-mute); padding: 72px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .brand-mark { width: 34px; height: 34px; border-radius: 8px; }
.footer-brand p { font-size: 14px; max-width: 280px; }
.footer-heading { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-inv); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-address { font-size: 14px; margin: 0; }
.footer-bottom { border-top: 1px solid var(--ink-line); }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 20px 28px; font-size: 12.5px; flex-wrap: wrap; gap: 8px; }
.footer-signature { font-family: var(--f-mono); color: var(--text-inv-mute); }

/* ---- Tombol WhatsApp mengambang ---- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px -8px rgba(0,0,0,0.45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }

@media (max-width: 780px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

/* ---- Reveal-on-scroll (halus, tidak berlebihan) ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
