/* Dialog / Modal - Uses CSS variables from base.css */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.dialog-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.dialog-modal {
  background: linear-gradient(155deg, var(--bg-card) 0%, var(--bg-card-soft) 100%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem);
  width: min(520px, 90vw);
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 30px 65px var(--shadow-color);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.2s ease;
  position: relative;
}

.dialog-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
  pointer-events: none;
}

/* Lock page scroll while dialog is open */
body:has(.dialog-overlay.open) {
  overflow: hidden;
}

.dialog-price-display {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--color-amber);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 16, 22, 0.64);
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.dialog-price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: normal;
}

.dialog-overlay.open .dialog-modal {
  transform: translateY(0) scale(1);
}

.dialog-title {
  margin: 0 0 0.75rem 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-main);
}

.dialog-body {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.dialog-input {
  margin-bottom: 1.25rem;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
