/* 后台图片上传与待上传预览 */
body[data-mode="admin"][data-admin-section="coins"] .coin-image-form {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

body[data-mode="admin"][data-admin-section="coins"] .coin-image-form h3,
body[data-mode="admin"][data-admin-section="coins"] #uploadHint {
  margin-bottom: 0;
}

.add-image-card {
  display: grid;
  gap: 10px;
  border: 1px dashed #b8c2cc;
  border-radius: 8px;
  background: var(--admin-soft);
  padding: 14px;
}

.add-image-card strong {
  font-size: 15px;
}

.image-drop-zone {
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 92px;
  border: 1px dashed #9db4c5;
  border-radius: 8px;
  background: #f8fbfd;
  color: #223144;
  cursor: pointer;
  padding: 14px;
  text-align: center;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.image-drop-zone span {
  font-size: 14px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.image-drop-zone em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
}

.add-image-card.drag-over .image-drop-zone {
  border-color: #0f766e;
  background: #e8f6f3;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.18);
}

.image-drop-zone.has-file {
  border-style: solid;
  border-color: #8fbfb6;
  background: #eef8f5;
}

.image-drop-zone.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.pending-image-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pending-image-preview {
  position: relative;
  width: 72px;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.pending-image-view {
  width: 100%;
  height: 72px;
  min-height: 72px;
  overflow: hidden;
  border: 1px solid #bfd2d7;
  border-radius: 7px;
  background: #fff;
  cursor: zoom-in;
  padding: 3px;
  box-shadow: 0 8px 18px rgba(39, 58, 77, 0.08);
}

.pending-image-view img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pending-image-remove {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 24px;
  min-width: 24px;
  height: 24px;
  min-height: 24px;
  place-items: center;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff1f2;
  color: #b91c1c;
  padding: 0;
  box-shadow: 0 4px 10px rgba(185, 28, 28, 0.16);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.pending-image-remove::before,
.pending-image-remove::after {
  position: absolute;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.pending-image-remove::before {
  transform: rotate(45deg);
}

.pending-image-remove::after {
  transform: rotate(-45deg);
}

.pending-image-remove:hover,
.pending-image-remove:focus-visible {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
  box-shadow: 0 5px 12px rgba(185, 28, 28, 0.24);
}

.add-image-card.disabled-card {
  border-color: var(--line);
  background: #f5f6f8;
}

.add-image-card.disabled-card .hint {
  color: #8a929d;
}

.pending-image-status {
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
.pending-image-preview progress { width: 100%; height: 5px; accent-color: #167368; }
.pending-image-preview[data-status="error"] .pending-image-status { color: #b42318; }
body[data-mode="admin"] .pending-image-retry {
  width: 100%; min-width: 0; min-height: 28px; height: auto; padding: 3px 6px; font-size: 12px;
}
body[data-mode="admin"] #retryImagesBtn { justify-self: start; width: auto; }
