/* =====================
   Trade Pay Modal
===================== */

.trade-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 非表示 */
.trade-modal.hidden {
  display: none;
}

.trade-modal-box {
  width: 90%;
  max-width: 360px;
  background: rgba(10, 30, 40, 0.95);
  border-radius: 16px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 0 30px rgba(0, 255, 200, 0.4);
}

/* タイトル */
.trade-modal-box h2 {
  text-align: center;
  margin-bottom: 12px;
}

/* 商品情報 */
.trade-info {
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* タブ */
.pay-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pay-tabs button {
  flex: 1;
  padding: 8px;
  border-radius: 999px;
  border: none;
  background: #333;
  color: #aaa;
  font-weight: bold;
}

.pay-tabs button.active {
  background: linear-gradient(90deg, #00ffc6, #00d9ff);
  color: #000;
}

/* 内部ウォレット */
.wallet-balance {
  margin-bottom: 12px;
  text-align: center;
}

/* 外部ウォレット */
.external-address-area {
  text-align: center;
  margin-bottom: 10px;
}

.copyable {
  background: #111;
  padding: 6px;
  border-radius: 8px;
  word-break: break-all;
  cursor: pointer;
}

.copy-hint {
  font-size: 12px;
  opacity: 0.7;
}

/* 入力欄 */
#txHashInput {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: none;
  margin-bottom: 10px;
}

/* ボタン */
.cta-btn {
  width: 100%;
  padding: 12px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(90deg, #00ffc6, #00d9ff);
  color: #000;
  font-weight: bold;
  margin-bottom: 8px;
}

.sub-btn {
  width: 100%;
  padding: 10px;
  border-radius: 999px;
  border: none;
  background: #333;
  color: #fff;
}

/* 汎用 hidden */
.hidden {
  display: none !important;
}
.item-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
