/* CSS Modal - Bunga Desaku */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
  padding: 16px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 35px rgba(216, 27, 96, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--line);
  overflow: hidden;
  transform: translateY(-30px);
  transition: transform 0.3s ease;
  margin: auto;
}

.modal-overlay.show .modal-container {
  transform: translateY(0);
}

.modal-header {
  background: var(--pink-soft);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.modal-header h3 {
  margin: 0;
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-deep);
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--alert);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  max-height: calc(100dvh - 120px);
}

.modal-footer {
  padding: 14px 20px;
  background: #fafafa;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

