@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* ── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0f0f0f;
  --bg-card:     #1a1a1a;
  --bg-card2:    #222222;
  --header:      #5a0a0a;
  --header-b:    #8b1a1a;
  --gold:        #c9a84c;
  --gold-h:      #e2c068;
  --gold-dim:    rgba(201,168,76,0.15);
  --red:         #c0392b;
  --red-dark:    #8b1a1a;
  --green:       #27ae60;
  --blue:        #2980b9;
  --text:        #ffffff;
  --text-muted:  #aaaaaa;
  --text-dim:    #555555;
  --border:      #2a2a2a;
  --border2:     #333333;
  --radius:      10px;
  --shadow:      0 4px 20px rgba(0,0,0,0.6);
}

html { font-size: 15px; }
body {
  background: var(--bg);
  color: var(--text);
}

body.public {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  min-height: 100vh;


}

a { color: #f5c842; text-decoration: none; }
a:hover { color: var(--gold-h); }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 2px; }

/* ══ TOP HEADER ══════════════════════════════════════════════════════════════ */
.topbar {
  background: var(--header);
  border-bottom: 3px solid var(--header-b);
  min-height: 52px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 0.8rem;
}
.topbar-logo {
  width: 32px; height: 32px;
  flex-shrink: 0;
}
.topbar-logo img { width: 100%; height: 100%; object-fit: contain; }
.topbar-title {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.3px;
  line-height: 1.2;
}
.topbar-title small {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
}
.topbar-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.8);
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.topbar-btn:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.topbar-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ══ HOME — KATEGORI GRID ════════════════════════════════════════════════════ */
.home-wrap { padding: 1rem; }
.home-subtitle { color: #cc6600 !important;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.6rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.kat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.kat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.1rem 0.6rem 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
  display: block;
  color: var(--text);
  border: 1px solid var(--border);
}
.kat-card:hover, .kat-card:active {
  background: var(--bg-card2);
  border-color: #f5c842;
  color: var(--text);
  transform: scale(0.97);
}
.kat-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.65rem;
  background: var(--gold-dim);
}
.kat-icon svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.kat-name {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.3rem;
}
.kat-count {
  font-size: 0.7rem;
  color: var(--red);
  font-weight: 600;
}

/* Footer home */
.home-footer {
  margin-top: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
}
.home-footer .app-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: #f5c842;
  letter-spacing: 1px;
}
.home-footer .app-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ══ SUB KATEGORI LIST ═══════════════════════════════════════════════════════ */
.list-wrap { padding: 0.8rem; }

.pasal-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.15s;
}
.pasal-item:hover { border-color: var(--header-b); }

.pasal-header {
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  gap: 0.8rem;
  cursor: pointer;
}
.pasal-badge {
  background: var(--header);
  border: 1px solid var(--header-b);
  color: #f5c842;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  white-space: nowrap;
  min-width: 64px;
  text-align: center;
  flex-shrink: 0;
}
.pasal-info { flex: 1; }
.pasal-nama {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.pasal-ancaman {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.pasal-arrow {
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.pasal-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.pasal-item.open .pasal-arrow { transform: rotate(90deg); }

/* Children list */
.pasal-children {
  display: none;
  border-top: 1px solid var(--border);
}
.pasal-item.open .pasal-children { display: block; }
.child-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem 0.75rem 1.2rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: background 0.15s;
}
.child-link:last-child { border-bottom: none; }
.child-link:hover, .child-link:active { background: var(--bg-card2); }
.child-huruf {
  background: var(--gold-dim);
  border: 1px solid rgba(201,168,76,0.4);
  color: #f5c842;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.child-nama { font-size: 0.83rem; flex: 1; }
.child-nama svg { width: 14px; height: 14px; stroke: var(--text-dim); fill: none; float: right; }

/* ══ UNSUR LIST ══════════════════════════════════════════════════════════════ */
.sub-info-box {
  background: var(--header);
  border-bottom: 2px solid var(--header-b);
  padding: 0.75rem 1rem;
}
.sub-info-box .pasal-ref {
  font-size: 0.72rem;
  color: #f5c842;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.sub-info-box .pasal-judul {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.sub-info-box .ancaman {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.unsur-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.unsur-list { padding: 0.8rem; display: flex; flex-direction: column; gap: 0.55rem; }
.unsur-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--text);
}
.unsur-item:hover, .unsur-item:active {
  background: var(--bg-card2);
  border-color: #f5c842;
}
.unsur-num {
  width: 30px; height: 30px;
  background: var(--header);
  border: 1.5px solid var(--header-b);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #f5c842;
  flex-shrink: 0;
}
.unsur-teks { font-size: 0.88rem; flex: 1; line-height: 1.4; }
.unsur-arr { color: var(--text-dim); flex-shrink: 0; }
.unsur-arr svg { width: 14px; height: 14px; stroke: var(--gold); fill: none; stroke-width: 2; }

.unsur-kumulatif { color: rgba(201,168,76,0.6); font-style: italic; font-size: 0.7rem; text-align: center; padding: 0.5rem 1rem; display: inline-block; width: auto; margin: 0 auto; }
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  padding: 0.5rem 0 1rem;
}

/* ══ UNSUR DETAIL ════════════════════════════════════════════════════════════ */
.unsur-title-box {
  background: var(--header);
  border-bottom: 2px solid var(--header-b);
  padding: 0.8rem 1rem;
}
.unsur-title-box .label {
  font-size: 0.68rem;
  color: #f5c842;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.unsur-title-box .teks {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}
.unsur-title-box .ref {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* Accordion */
.detail-wrap { padding: 0.8rem; display: flex; flex-direction: column; gap: 0.55rem; }
.acc {
  border: 1px solid rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.12);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.acc-head { 
  display: flex;
  align-items: center;
  padding: 0.85rem 1rem;
  cursor: pointer;
  gap: 0.75rem;
  transition: background 0.15s;
  user-select: none;
}
.acc-head:hover { background: var(--bg-card2); }
.acc-head.open { background: var(--bg-card2); border-bottom: 1px solid var(--border); }
.acc-dot { display: none; }
.acc-label-text {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 700;
  color: #f5c842;
  background: #3d0606;
  padding: 6px 24px;
  border-radius: 20px;
  display: inline-block;
}
.acc-chev { color: var(--gold); transition: transform 0.2s; }
.acc-header.active .acc-chev { transform: rotate(180deg); }
.acc-chev svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.acc-head.open .acc-chev { transform: rotate(180deg); }

.acc-body.public {
  display: none;
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #dddddd;
}
.acc-body { padding: 1rem 1.5rem; display: none; font-size: 0.75rem; }
.acc-body.show { display: block; }
.acc-body p { margin-bottom: 0.6rem; }
.acc-body ol { padding-left: 1.3rem; }
.acc-body li { margin-bottom: 0.5rem; padding-left: 0.3rem; }

/* Dot colors */
.dot-kuhp     { background: #5dade2; }
.dot-anotasi  { background: #58d68d; }
.dot-tindakan { background: #f4d03f; }
.dot-korban   { background: #ec7063; }
.dot-saksi    { background: #bb8fce; }
.dot-tersangka{ background: #f0a500; }
.dot-putusan  { background: #3d0606; }

/* Putusan card */
.putusan-card {
  background: var(--bg-card2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 0.6rem;
}
.putusan-card .nomor { font-size: 0.83rem; font-weight: 700; color: #f5c842; margin-bottom: 3px; }
.putusan-card .meta  { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.putusan-card .isi   { font-size: 0.82rem; color: #ddd; line-height: 1.5; }
.putusan-card a      { font-size: 0.88rem; color: #5dade2; display: inline-block; margin-top: 5px; }

/* Nav prev/next */
.unsur-nav {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem;
  padding-top: 0;
}
.unsur-nav a {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.3;
  transition: all 0.15s;
}
.unsur-nav a:hover { border-color: var(--header-b); color: var(--text); }
.unsur-nav a.next { text-align: right; }

/* ══ FLASH ═══════════════════════════════════════════════════════════════════ */
.flash { padding: 0.6rem 1rem; font-size: 0.82rem; }
.flash.success { background: rgba(39,174,96,0.15); color: #58d68d; border-bottom: 1px solid rgba(39,174,96,0.2); }
.flash.error   { background: rgba(231,76,60,0.15);  color: #ec7063; border-bottom: 1px solid rgba(231,76,60,0.2); }

/* ══ EMPTY ═══════════════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}
.empty-state svg { width: 44px; height: 44px; stroke: var(--text-dim); fill: none; margin-bottom: 1rem; }
.empty-state p { font-size: 0.85rem; }

/* ══════════════════════════════════════════════════════════════════════════ */
/* ADMIN STYLES — tidak berubah                                               */
/* ══════════════════════════════════════════════════════════════════════════ */

.admin-layout { display: flex; min-height: 100vh; max-width: none; }

.admin-sidebar {
  width: 220px;
  background: #0d0d0d;
  border-right: 1px solid #2a1a1a;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
}
.admin-sidebar-brand { padding: 1.2rem 1rem; border-bottom: 1px solid #2a1a1a; }
.admin-sidebar-brand h2 { font-size: 0.85rem; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.admin-sidebar-brand span { color: #f5c842; }
.admin-sidebar-brand p { font-size: 0.72rem; color: #666; margin-top: 2px; }

.sidebar-nav { padding: 0.8rem 0; flex: 1; }
.sidebar-section { font-size: 0.68rem; font-weight: 700; color: #444; letter-spacing: 1px; text-transform: uppercase; padding: 0.8rem 1rem 0.3rem; }
.sidebar-link { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 1rem; font-size: 0.83rem; color: #888; transition: all 0.15s; }
.sidebar-link:hover { background: rgba(139,26,26,0.2); color: #fff; }
.sidebar-link.active { background: var(--header); color: #fff; }
.sidebar-link svg { width: 16px; height: 16px; stroke: currentColor; fill: none; flex-shrink: 0; }

.sidebar-footer { padding: 1rem; border-top: 1px solid #2a1a1a; }
.sidebar-footer a { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: #666; }
.sidebar-footer a:hover { color: var(--red); }
.sidebar-footer svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

.admin-main { flex: 1; margin-left: 220px; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { background: #161616; border-bottom: 1px solid #2a2a2a; padding: 0.7rem 1.5rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.admin-topbar h1 { font-size: 1rem; font-weight: 700; color: #fff; }
.admin-topbar .user-badge { font-size: 0.78rem; color: #888; display: flex; align-items: center; gap: 0.4rem; }
.admin-topbar .user-badge svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.admin-content { padding: 1.5rem; flex: 1; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: #161616; border: 1px solid #2a2a2a; border-radius: var(--radius); padding: 1rem; }
.stat-card .stat-num { font-size: 2rem; font-weight: 700; color: #f5c842; }
.stat-card .stat-label { font-size: 0.88rem; color: #888; margin-top: 0.2rem; }

.admin-table-wrap { background: #161616; border: 1px solid #2a2a2a; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.admin-table-header { padding: 0.8rem 1.2rem; border-bottom: 1px solid #2a2a2a; display: flex; align-items: center; justify-content: space-between; }
.admin-table-header h3 { font-size: 0.88rem; font-weight: 700; color: #fff; }
table { width: 100%; border-collapse: collapse; }
th { background: #1e1e1e; padding: 0.6rem 1rem; text-align: left; font-size: 0.88rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
td { padding: 0.65rem 1rem; font-size: 0.83rem; color: #ddd; border-bottom: 1px solid #222; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

.form-card { background: #161616; border: 1px solid #2a2a2a; border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1.5rem; }
.form-card h3 { font-size: 0.88rem; font-weight: 700; color: #fff; margin-bottom: 1rem; padding-bottom: 0.6rem; border-bottom: 1px solid #2a2a2a; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.8rem; }
.form-group { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.6rem; }
.form-group label { font-size: 0.88rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group select, .form-group textarea { background: #1e1e1e; border: 1px solid #2a2a2a; border-radius: 5px; color: #ddd; font-size: 0.85rem; padding: 0.5rem 0.8rem; outline: none; font-family: inherit; transition: border-color 0.15s; width: 100%; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--red-dark); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: #1e1e1e; }
.form-hint { font-size: 0.72rem; color: #555; }

.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1rem; border-radius: 5px; font-size: 0.82rem; font-weight: 600; border: none; cursor: pointer; transition: all 0.15s; font-family: inherit; text-decoration: none; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.btn-red { background: var(--header); color: #fff; }
.btn-red:hover { background: var(--red); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { opacity: 0.85; }
.btn-ghost { background: transparent; color: #888; border: 1px solid #2a2a2a; }
.btn-ghost:hover { background: #1e1e1e; color: #fff; }
.btn-danger { background: transparent; color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.btn-danger:hover { background: rgba(231,76,60,0.1); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.88rem; }

.filter-bar { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.filter-bar select { background: #161616; border: 1px solid #2a2a2a; border-radius: 5px; color: #ddd; font-size: 0.83rem; padding: 0.4rem 0.8rem; outline: none; font-family: inherit; }

.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.badge-red { background: rgba(139,26,26,0.3); color: #e74c3c; border: 1px solid rgba(231,76,60,0.3); }
.badge-gold { background: rgba(201,168,76,0.2); color: #f5c842; border: 1px solid rgba(201,168,76,0.3); }
.badge-blue { background: rgba(41,128,185,0.2); color: #5dade2; border: 1px solid rgba(93,173,226,0.3); }
.badge-green { background: rgba(39,174,96,0.2); color: #58d68d; border: 1px solid rgba(88,214,141,0.3); }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.login-box { background: #161616; border: 1px solid #2a2a2a; border-radius: 12px; padding: 2.5rem; width: 100%; max-width: 380px; }
.login-logo { text-align: center; margin-bottom: 2rem; }
.login-logo .icon-wrap { width: 64px; height: 64px; background: var(--header); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.login-logo svg { width: 34px; height: 34px; stroke: #fff; fill: none; }
.login-logo h1 { font-size: 1.15rem; font-weight: 700; color: #fff; }
.login-logo p { font-size: 0.78rem; color: #888; margin-top: 0.3rem; }

@media (max-width: 480px) {
  .kat-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .kat-icon { width: 48px; height: 48px; }
  .kat-icon svg { width: 22px; height: 22px; }
  .kat-name { font-size: 0.62rem; }
}
body { max-width: 600px; margin: 0 auto; }
/* ══ COVER PAGE ═══════════════════════════════════════════════════════════ */
.cover-wrap {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}
.cover-bg {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 0;
}
.cover-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}
.cover-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.4rem 2.2rem;
}

/* Header */
.cover-head { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.75rem; }
.cover-serse { width: 62px; height: 62px; object-fit: contain; flex-shrink: 0; }
.cover-head-text { line-height: 1.25; }
.cover-title { font-size: 1.52rem; letter-spacing: 0.3px; }
.ct-kitab { color: #ffffff; font-weight: 800; }
.ct-sidik { color: var(--gold); font-weight: 700; }
.cover-sub {
  font-size: 0.86rem;
  color: #ff4d4d;
  letter-spacing: 0.4px;
  margin-top: 1px;
}

/* Themis */
.cover-mid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0;
}
.cover-themis {
  width: 120%;
  max-width: 560px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 58%, rgba(0,0,0,0.55) 70%, transparent 78%);
  mask-image: radial-gradient(circle at 50% 50%, #000 58%, rgba(0,0,0,0.55) 70%, transparent 78%);
  height: auto;
  filter: drop-shadow(0 0 34px rgba(201,168,76,0.28));
}

/* Footer cover */
.cover-foot { text-align: center; }
.cover-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 0.9rem;
  opacity: 0.85;
}
.cover-tag {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  margin-bottom: 1.5rem;
}
.cover-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--gold);
  color: #1a0505;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  padding: 0.72rem 2.1rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(0,0,0,0.5);
  transition: transform 0.15s, background 0.15s;
}
.cover-btn:hover, .cover-btn:active {
  background: var(--gold-h);
  color: #1a0505;
  transform: translateY(-2px);
}
.cover-btn svg {
  width: 15px; height: 15px;
  stroke: currentColor; fill: none; stroke-width: 2.5;
}

@media (max-height: 640px) {
  .cover-themis { width: 62%; }
  .cover-tag { font-size: 0.9rem; margin-bottom: 1.1rem; }
}

/* ══ GRID PENGANTAR PASAL ══════════════════════════════════════════════════ */
.pg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding: 1rem 0.8rem 0.2rem;
}
.pg-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 1.1rem 0.7rem 0.9rem;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  display: block;
  transition: all 0.18s;
}
.pg-card:hover, .pg-card:active {
  background: var(--bg-card2);
  border-color: var(--gold);
  color: var(--text);
  transform: scale(0.97);
}
.pg-card.kosong {
  opacity: 0.4;
  cursor: default;
}
.pg-card.kosong:hover, .pg-card.kosong:active {
  background: var(--bg-card);
  border-color: rgba(255,255,255,0.15);
  transform: none;
}
.pg-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: rgba(201,168,76,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.7rem;
}
.pg-icon svg { width: 25px; height: 25px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.pg-name {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.pg-note { font-size: 0.66rem; color: var(--text-muted); }

/* ══ UNSUR RUJUKAN ═════════════════════════════════════════════════════════ */
.unsur-ref { cursor: default; }
.unsur-ref:hover, .unsur-ref:active {
  background: var(--bg-card);
  border-color: var(--border);
  transform: none;
}
.unsur-mata {
  width: 34px; height: 34px;
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}
.unsur-mata:hover, .unsur-mata:active { background: rgba(201,168,76,0.18); }
.unsur-mata svg {
  width: 16px; height: 16px;
  stroke: var(--gold); fill: none; stroke-width: 1.8;
}
