* Modal lebih menarik */
.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100vw; 
  height: 100vh; 
  overflow: auto; 
  background: linear-gradient(135deg, rgba(0,0,0,0.5) 60%, rgba(255,0,0,0.2) 100%);
  animation: fadeInBg 0.5s;
}
@keyframes fadeInBg {
  from { background-color: rgba(0,0,0,0); }
  to { background: linear-gradient(135deg, rgba(0,0,0,0.5) 60%, rgba(255,0,0,0.2) 100%);}
}
.modal-content {
  background: linear-gradient(120deg, #fff 80%, #ffe5e5 100%);
  margin: 10% auto;
  padding: 16px 20px;
  border-radius: 16px;
  width: 320px; /* Ukuran modal diperkecil */
  max-width: 90vw;
  box-shadow: 0 8px 24px rgba(255,0,0,0.15), 0 2px 8px rgba(0,0,0,0.15);
  min-height: 80px;
  max-height: 180px; /* Modal dipendekkan */
  overflow-y: auto;
  border: 2px solid #ff4d4d;
  animation: popUpShow 0.4s;
  position: relative;
}
@keyframes popUpShow {
  0% { transform: scale(0.8) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: bold;
  font-size: 1.1em;
  color: #d32f2f;
  border-bottom: 1px solid #ffe5e5;
  margin-bottom: 8px;
  padding-bottom: 4px;
}
.modal-header i {
  margin-right: 8px;
  color: #ff4d4d;
  animation: iconPop 0.7s;
}
@keyframes iconPop {
  0% { transform: scale(0.5) rotate(-20deg);}
  60% { transform: scale(1.2) rotate(10deg);}
  100% { transform: scale(1) rotate(0);}
}
.close {
  color: #d32f2f;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  margin-left: 10px;
}
.close:hover {
  color: #fff;
  background: #ff4d4d;
  border-radius: 50%;
  transform: scale(1.2);
  padding: 0 6px;
}
.modal-body p {
  color: #333;
  font-size: 1em;
  margin: 0;
  text-align: center;
  letter-spacing: 0.01em;
  animation: fadeInText 0.7s;
}
@keyframes fadeInText {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}