.blockchain-demo2-wrap {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 16px;
}

.blockchain-demo2-card {
  background: #fff;
  /* border: 1px solid #e5e7eb; */
  /* border-radius: 24px; */
  padding: 24px;
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); */
}

.blockchain-demo2-title-box{
    border-radius: 15px;
    background: #DCE6F3;
    padding: 20px;

}

.blockchain-demo2-title {
  margin: 0 0 8px;
  font-size: 25px;
  font-weight: 700;
  color:#111827;
}

.blockchain-demo2-desc {
  margin: 0 0 24px;
  color: #6b7280;
  line-height: 1.6;
    font-size: 13px;
}

.blockchain-demo2-section {
  border-radius: 10px;
  margin: 15px 0px;
  box-shadow:1px 1px 8px  #00000027 ;
  padding: 20px;
}

.blockchain-demo2-section-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.blockchain-demo2-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.blockchain-demo2-field {
  margin-bottom: 16px;
}

.blockchain-demo2-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.bd2-select{
  border-radius: 5px !important;
  border: 1.5px solid #3485EF !important;
  padding: 5px 12px !important;
}
.bd2-label{
  color: #004AAB;
}

.blockchain-demo2-field input,
.blockchain-demo2-field textarea,
.blockchain-demo2-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  font-size: 15px;
  background: #fff;
  text-align: center;
}

.blockchain-demo2-field textarea {
  min-height: 120px;
  resize: vertical;
}

.blockchain-demo2-field.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blockchain-demo2-field.row label {
  margin-bottom: 0;
  white-space: nowrap; 
  flex-shrink: 0; 
  font-size: 13px;
}

.blockchain-demo2-field.row select,
.blockchain-demo2-field.row input {
  flex: 1;           
  height: 44px;      
}

.blockchain-demo2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  background: #111827;
  color: #fff;
  margin-top: 20px;
}

.blockchain-demo2-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.blockchain-demo2-result {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #f9fafb;
  min-height: 60px;
  line-height: 1.65;
  word-break: break-word;
}

.bd2-success {
  color: #047857;
  font-weight: 700;
  margin-bottom: 8px;
}

.bd2-error {
  color: #b91c1c;
  font-weight: 700;
  margin-bottom: 8px;
}

.bd2-warn {
  color: #b45309;
  font-weight: 700;
  margin-bottom: 8px;
}

.bd2-meta {
  margin-bottom: 6px;
}

.bd2-link-wrap {
  margin: 14px 0 10px;
}

.bd2-link {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
}

.bd2-details {
  margin-top: 10px;
}

.bd2-pre {
  margin-top: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  background: #111827;
  color: #f9fafb;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .blockchain-demo2-grid {
    grid-template-columns: 1fr;
  }
}

.blockchain-demo2-section-title{
  color: black;
}

.blockchain-demo2-box{
  border-radius: 10px;
  background-color: #F1F1F1;
  padding: 20px;

}

/* 공통 field */
.field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field label {
  white-space: nowrap;
  font-weight: 600;
  flex-shrink: 0;
}

.field input {
  flex: 1;
  height: 35px;
  border-radius: 4px;
}

.p-row-1 {
  margin-bottom: 12px;
}

.p-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.p-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.p-row-4 .full {
  width: 100%;
}





/* 내부 박스 */
.blockchain-demo2-info-box2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 공통 field */
.field2 {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field2 label {
  font-weight: 700;
  font-size: 14px;
}

.field2 textarea {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 12px;
  background: #ffffff;
  resize: none;
  font-size: 13px;
  line-height: 1.5;
  box-sizing: border-box;
}

.f-row-1 textarea {
  height: 100px;
  overflow-y: auto;
}

.f-row-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.f-row-2 textarea {
  height: 100px;
  overflow-y: auto;
}













/*결과창 관련 내용*/

.bd2-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.bd2-tab {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  font-weight: 700;
  cursor: pointer;
}

.bd2-tab.active {
  background: #111827;
  color: #fff;
}

.bd2-tab-content {
  display: none;
}

.bd2-tab-content.active {
  display: block;
}

.bd2-item {
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 8px;
  background: #fff;
}

/* 결과 영역 탭 UI */
.bd2-result-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 0 16px;
}

.bd2-result-tabs {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bd2-tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 16px;
  font-weight: 800;
  padding: 0 18px 8px;
  border-bottom: 3px solid #d1d5db;
  cursor: pointer;
}

.bd2-tab-btn.active {
  color: #111827;
  border-bottom-color: #111827;
}

.bd2-explorer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 7px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #004AAB;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-decoration-line: none;
}

.bd2-tab-panel {
  display: none;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.bd2-tab-panel.active {
  display: block;
}

.bd2-info-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 7px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.bd2-info-row:last-child {
  margin-bottom: 0;
}

.bd2-info-label {
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

.bd2-info-value {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  word-break: break-word;
}

.bd2-json-area {
  margin-top: 18px;
  padding: 18px;
  border-radius: 14px;
  background: #f9fafb;
}

.bd2-json-area .bd2-details {
  margin-top: 12px;
}

.bd2-json-area summary {
  cursor: pointer;
  font-weight: 700;
  color: #374151;
}

.bd2-checking {
  margin-top: 14px;
}

/* JSON 박스 개선 */
.bd2-pre {
  max-height: 420px;
  overflow: auto;
}

/* 모바일 */
@media (max-width: 640px) {
  .bd2-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .bd2-result-tabs {
    width: 100%;
  }

  .bd2-tab-btn {
    flex: 1;
    padding-left: 8px;
    padding-right: 8px;
  }

  .bd2-explorer-btn {
    width: 100%;
  }

  .bd2-info-row {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

/* 결과 UI 기본 숨김 */
#bd2-result.bd2-empty .bd2-result-head,
#bd2-result.bd2-empty .bd2-tab-panel,
#bd2-result.bd2-empty .bd2-json-area {
  display: none;
}



/*모달 관련 내용 */

.bd2-tx-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}

.bd2-tx-modal.active {
  display: block;
}

.bd2-tx-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.bd2-tx-modal-card {
  position: relative;
  width: min(760px, calc(100% - 32px));
  max-height: calc(100vh - 80px);
  overflow: auto;
  margin: 40px auto;
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.bd2-tx-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.bd2-tx-modal-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #111827;
}

.bd2-tx-modal-close {
  border: none;
  background: #f3f4f6;
  color: #111827;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.bd2-tx-modal-body {
  line-height: 1.6;
}

@media (max-width: 640px) {
  .bd2-tx-modal-card {
    margin: 20px auto;
    max-height: calc(100vh - 40px);
  }
}