body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 95vh;
  background: rgb(182, 120, 253);
  font-family: "Poppins", sans-serif;
}

.viewer-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 12;
}

.viewer-card {
  width: 100%;
  max-width: 80%;
  height: 90vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.img-area {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  background: #f3f3f3;
  overflow: hidden;
}

.img-area img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.step-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
}

.viewer-footer {
  padding: 16px 20px 20px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dot-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
}

.dot.active {
  background: rgb(74, 16, 107);
  transform: scale(1.4);
}

.dot:hover:not(.active) {
  background: #999;
}

.btn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: transparent;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
  color: rgb(74, 16, 107);
}

.nav-btn:hover {
  background: #f5f0fa;
}
.nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.nav-btn svg {
  width: 30px;
  height: 90px;
}

.step-label {
  font-size: 13px;
  color: #888;
}

.step-label span {
  color: rgb(74, 16, 107);
  font-weight: 600;
}

.back-link {
  align-self: flex-start;
  margin-left: 10%;
  color: white;
  font-size: 13px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.15s;
}

.back-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.complete-btn {
  background: rgb(74, 16, 107) !important;
  color: white !important;
  border-color: rgb(74, 16, 107) !important;
}

.complete-btn:hover {
  background: rgb(94, 30, 130) !important;
}
