/* Modal Styles - Glassmorphic Overlay, Pop Scale */
.hd-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--hd-duration-normal) var(--hd-ease-out);
  padding: var(--hd-spacing-md);
}

.hd-modal.active {
  opacity: 1;
  pointer-events: all;
}

.hd-modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
}

.hd-modal-content {
  position: relative;
  width: 100%;
  max-width: 640px;
  background-color: var(--hd-surface);
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-lg);
  box-shadow: var(--hd-shadow-xl);
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform var(--hd-duration-normal) var(--hd-ease-elastic);
  z-index: 2;
  overflow: hidden;
}

.hd-modal.active .hd-modal-content {
  transform: scale(1);
}

.hd-modal-header {
  padding: var(--hd-spacing-lg);
  border-bottom: 1px solid var(--hd-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hd-modal-close {
  font-size: 28px;
  color: var(--hd-text-muted);
  transition: var(--hd-transition-all);
  line-height: 1;
}

.hd-modal-close:hover {
  color: var(--hd-primary);
}

.hd-modal-body {
  padding: var(--hd-spacing-lg);
  max-height: 70vh;
  overflow-y: auto;
}
