/* modal.css */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(5px);
  z-index: 1000;
  overflow-y: auto;
}

.modal-content {
  background: var(--neutral-900);
  margin: 3% auto;
  border-radius: var(--space-4);
  max-width: 900px;
  animation: modalSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

/* modal.css */
/* …existing… */

.modal-body .sold-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.modal-body .sold-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}

.modal-body .sold-icon {
  width: var(--icon-size-md);
  height: var(--icon-size-md);
  object-fit: cover;
  border-radius: var(--space-1);
}

.modal-body .sold-name {
  font-weight: 600;
  flex: 1;
}

.modal-body .sold-qty,
.modal-body .sold-price {
  color: var(--neutral-200);
  font-size: 0.95rem;
}


/* modal.css */
/* … the top of file stays the same … */

/* ✖️ Global close-icon for every modal */
.modal-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-3);
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--neutral-500);
  cursor: pointer;
  transition: color .2s;
}
.modal-close:hover {
  color: var(--neutral-50);
}





@keyframes modalSlideIn {
  from { transform: translateY(-5%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header,
.modal-footer {
  padding: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.modal-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
}
.modal-title h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
}
.close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--neutral-500);
  cursor: pointer;
}
.close-button:hover {
  color: var(--neutral-50);
}
.modal-body {
  padding: var(--space-4);
}
