* { box-sizing: border-box; margin: 0; padding: 0; }

/* Backdrop — isi penuh layar */
.modal-backdrop {
  position: fixed;        /* ← kunci utama */
  inset: 0;               /* top:0 right:0 bottom:0 left:0 */
  background: rgba(30, 14, 6, 0.52);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1000;
}

/* Modal box — 75% tinggi layar, tidak terpotong */
.modal-box {
  width: 100%;
  height: 75vh;           /* ← penuh 75% viewport */
  background: #F5F0E6;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Body scrollable di dalam modal */
.modal-body {
  flex: 1;
  overflow-y: auto;       /* ← scroll jika konten panjang */
  padding: 18px 20px 8px;
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* HEADER */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #D4C9BA;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Georgia', serif;
  font-size: 19px;
  font-weight: 700;
  color: #8B1A1A;
}

.modal-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  color: #5C4A3A;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-close-btn:hover { background: rgba(0,0,0,0.06); }

/* BODY — scrollable */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 8px;
}

/* Lead highlight box */
.modal-lead {
  font-family: 'Georgia', serif;
  font-size: 14px;
  line-height: 1.65;
  color: #2A1A0A;
  padding: 12px 14px;
  background: rgba(139, 26, 26, 0.08);
  border-left: 3px solid #8B1A1A;
  border-radius: 0 4px 4px 0;
  margin-bottom: 18px;
}

/* Section title — uppercase monospace merah */
.modal-section-title {
  font-family: 'Courier New', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #8B1A1A;
  margin: 0 0 6px;
}

/* Body paragraph */
.modal-text {
  font-family: 'Georgia', serif;
  font-size: 14px;
  line-height: 1.68;
  color: #3A2A1A;
  margin-bottom: 18px;
}
.modal-text strong,
.modal-lead strong { color: #1E0E06; font-weight: 700; }

/* Date stamp */
.modal-date {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #8A7A6C;
  text-align: center;
  margin: 4px 0 8px;
}

/* FOOTER */
.modal-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid #D4C9BA;
  flex-shrink: 0;
}

.modal-ok-btn {
  display: block;
  width: 100%;
  background: #6B0C0C;
  border: none;
  border-radius: 6px;
  padding: 15px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #F5F0E6;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-ok-btn:active { background: #500909; }